From 19ccff04e526d09763299a5f0cf255618def8929 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Aug 2022 08:37:07 +0200 Subject: [PATCH 1/3] Bump release-it from 15.2.0 to 15.3.0 (#954) Bumps [release-it](https://github.com/release-it/release-it) from 15.2.0 to 15.3.0. - [Release notes](https://github.com/release-it/release-it/releases) - [Changelog](https://github.com/release-it/release-it/blob/master/CHANGELOG.md) - [Commits](https://github.com/release-it/release-it/compare/15.2.0...15.3.0) --- updated-dependencies: - dependency-name: release-it dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 48 ++++++++++++++++++++++++------------------------ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index b9d3816..1fe4aeb 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "kind-of": "^6.0.3", "minimist": ">=1.2.3", "nock": "13.2.9", - "release-it": "15.2.0", + "release-it": "15.3.0", "ts-auto-mock": "^3.3.5", "ts-jest": "^27.0.4", "ts-loader": "8.0.10", diff --git a/yarn.lock b/yarn.lock index d721f2e..af9cc04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2535,10 +2535,10 @@ globby@^11.1.0: merge2 "^1.4.1" slash "^3.0.0" -got@12.2.0, got@^12.1.0: - version "12.2.0" - resolved "https://registry.yarnpkg.com/got/-/got-12.2.0.tgz#0b5de8cd48d0a16cd44789fd5fdd071ba3ee1de5" - integrity sha512-A81ll5Z8wzeCmSdIlWVMDWFKDo82v2nmOaMZDQNHKGInNqDBcle+CSb6BBiZcn/Aiefz/kSpo520WBKi9QAO/A== +got@12.3.1, got@^12.1.0: + version "12.3.1" + resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" + integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== dependencies: "@sindresorhus/is" "^5.2.0" "@szmarczak/http-timer" "^5.0.1" @@ -2761,10 +2761,10 @@ ini@^1.3.4, ini@~1.3.0: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -inquirer@9.0.2: - version "9.0.2" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.0.2.tgz#81d830044718528485d7b9f7d47c6d590ccd1a7f" - integrity sha512-AqmDHmz3bIe573OiM4svTZzajBzff1xpuzYAimW8gjzW5ncuPllWB8t/GKl+NSuKRJaKyIF2bU2RCx8H1dwqyQ== +inquirer@9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.1.0.tgz#446a09abe2e5a18973322bee89b42a6c304f2cd3" + integrity sha512-eukdjrBljg9t55ZnvJjvGi1OyYEzVBFsO/8o5d2MV3mc28u3x4X2kS4eJ/+9U10KiREfPkEBSeCrU/S2G/uRtw== dependencies: ansi-escapes "^5.0.0" chalk "^5.0.1" @@ -3932,10 +3932,10 @@ node-domexception@^1.0.0: resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@3.2.9: - version "3.2.9" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.9.tgz#3f6070bf854de20f21b9fe8479f823462e615d7d" - integrity sha512-/2lI+DBecVvVm9tDhjziTVjo2wmTsSxSk58saUYP0P/fRJ3xxtfMDY24+CKTkfm0Dlhyn3CSXNL0SoRiCZ8Rzg== +node-fetch@3.2.10: + version "3.2.10" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.10.tgz#e8347f94b54ae18b57c9c049ef641cef398a85c8" + integrity sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA== dependencies: data-uri-to-buffer "^4.0.0" fetch-blob "^3.1.4" @@ -4484,10 +4484,10 @@ registry-url@^6.0.0: dependencies: rc "1.2.8" -release-it@15.2.0: - version "15.2.0" - resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.2.0.tgz#06837d4682f913d820c873a7934fa05cd8120a7f" - integrity sha512-zVtk/+BSX941e9lR2dhWGQhOIVdr98Fifgel4xUnsJVycU0uTtalOUhjoZM2jyDgcD22idmuDVgvgOTl9IyJ/g== +release-it@15.3.0: + version "15.3.0" + resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.3.0.tgz#700a7edca3664653991c39f0c2e7d268aee5c4b7" + integrity sha512-MI4EBGca+y4SskgBkWNIakFp/GvXfpZEMWkmqmsysPcou/L+E+sKd0oy33ovGCyLic+9SI2rv/lQ3ACgonmqdQ== dependencies: "@iarna/toml" "2.2.5" "@octokit/rest" "19.0.3" @@ -4498,13 +4498,13 @@ release-it@15.2.0: form-data "4.0.0" git-url-parse "12.0.0" globby "13.1.2" - got "12.2.0" - inquirer "9.0.2" + got "12.3.1" + inquirer "9.1.0" is-ci "3.0.1" lodash "4.17.21" mime-types "2.1.35" new-github-release-url "2.0.0" - node-fetch "3.2.9" + node-fetch "3.2.10" open "8.4.0" ora "6.1.2" os-name "5.0.1" @@ -4515,7 +4515,7 @@ release-it@15.2.0: update-notifier "6.0.2" url-join "5.0.0" wildcard-match "5.1.2" - yargs-parser "21.0.1" + yargs-parser "21.1.1" request@^2.88.2: version "2.88.2" @@ -5527,10 +5527,10 @@ yargs-parser@20.x, yargs-parser@^20.2.2: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== -yargs-parser@21.0.1: - version "21.0.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.0.1.tgz#0267f286c877a4f0f728fceb6f8a3e4cb95c6e35" - integrity sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg== +yargs-parser@21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^16.2.0: version "16.2.0" From 085ac91bf301da8d816bc291b072ecd1c63e5b42 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 10 Aug 2022 17:51:04 +0200 Subject: [PATCH 2/3] [create-pull-request] automated change (#956) --- src/typings/management/cartesBancairesInfo.ts | 30 + src/typings/management/company.ts | 18 + .../management/createCompanyWebhookRequest.ts | 2 +- .../management/createMerchantRequest.ts | 75 +++ .../management/createMerchantResponse.ts | 84 +++ .../createMerchantWebhookRequest.ts | 2 +- .../management/listWebhooksResponse.ts | 9 + src/typings/management/merchant.ts | 37 ++ .../management/minorUnitsMonetaryValue.ts | 39 ++ src/typings/management/models.ts | 40 ++ src/typings/management/offlineProcessing.ts | 40 ++ src/typings/management/paymentMethod.ts | 7 + .../management/paymentMethodSetupInfo.ts | 29 + src/typings/management/payoutSettings.ts | 97 +++ .../management/payoutSettingsRequest.ts | 48 ++ .../management/payoutSettingsResponse.ts | 31 + src/typings/management/profile.ts | 2 +- src/typings/management/receiptOptions.ts | 9 + .../management/releaseUpdateDetails.ts | 44 ++ .../management/requestActivationResponse.ts | 39 ++ src/typings/management/restServiceError.ts | 18 +- .../scheduleTerminalActionsRequest.ts | 5 +- .../scheduleTerminalActionsResponse.ts | 12 +- src/typings/management/terminal.ts | 171 ++++++ .../terminalActionScheduleDetail.ts | 33 + src/typings/management/terminalSettings.ts | 7 + .../management/updateCompanyWebhookRequest.ts | 2 +- .../updateMerchantWebhookRequest.ts | 2 +- .../management/updatePayoutSettingsRequest.ts | 30 + src/typings/management/webhook.ts | 11 +- src/typings/payouts/accountInfo.ts | 232 +++++++ src/typings/payouts/acctInfo.ts | 208 +++++++ src/typings/payouts/additionalData3DSecure.ts | 66 ++ src/typings/payouts/additionalDataAirline.ts | 273 +++++++++ .../payouts/additionalDataCarRental.ts | 228 +++++++ src/typings/payouts/additionalDataCommon.ts | 153 +++++ src/typings/payouts/additionalDataLevel23.ts | 174 ++++++ src/typings/payouts/additionalDataLodging.ts | 174 ++++++ .../payouts/additionalDataOpenInvoice.ts | 165 +++++ src/typings/payouts/additionalDataOpi.ts | 30 + src/typings/payouts/additionalDataPayout.ts | 88 +++ src/typings/payouts/additionalDataRatepay.ts | 93 +++ src/typings/payouts/additionalDataRetry.ts | 48 ++ src/typings/payouts/additionalDataRisk.ts | 210 +++++++ .../payouts/additionalDataRiskStandalone.ts | 156 +++++ .../payouts/additionalDataSubMerchant.ts | 111 ++++ .../additionalDataTemporaryServices.ts | 102 ++++ src/typings/payouts/additionalDataWallets.ts | 75 +++ src/typings/payouts/address.ts | 75 +++ src/typings/payouts/amount.ts | 39 ++ src/typings/payouts/applicationInfo.ts | 61 ++ src/typings/payouts/bankAccount.ts | 102 ++++ src/typings/payouts/browserInfo.ts | 102 ++++ src/typings/payouts/card.ts | 93 +++ src/typings/payouts/commonField.ts | 39 ++ src/typings/payouts/deviceRenderOptions.ts | 53 ++ src/typings/payouts/externalPlatform.ts | 48 ++ src/typings/payouts/forexQuote.ts | 118 ++++ src/typings/payouts/fraudCheckResult.ts | 48 ++ src/typings/payouts/fraudResult.ts | 40 ++ src/typings/payouts/fundSource.ts | 69 +++ src/typings/payouts/installments.ts | 45 ++ src/typings/payouts/mandate.ts | 114 ++++ src/typings/payouts/merchantDevice.ts | 48 ++ src/typings/payouts/merchantRiskIndicator.ts | 162 +++++ src/typings/payouts/models.ts | 385 ++++++++++++ src/typings/payouts/modifyRequest.ts | 48 ++ src/typings/payouts/modifyResponse.ts | 48 ++ src/typings/payouts/name.ts | 39 ++ src/typings/payouts/payoutRequest.ts | 143 +++++ src/typings/payouts/payoutResponse.ts | 132 ++++ src/typings/payouts/phone.ts | 39 ++ src/typings/payouts/recurring.ts | 77 +++ .../payouts/responseAdditionalData3DSecure.ts | 66 ++ .../responseAdditionalDataBillingAddress.ts | 75 +++ .../payouts/responseAdditionalDataCard.ts | 93 +++ .../payouts/responseAdditionalDataCommon.ts | 570 ++++++++++++++++++ .../responseAdditionalDataInstallments.ts | 129 ++++ .../responseAdditionalDataNetworkTokens.ts | 48 ++ .../payouts/responseAdditionalDataOpi.ts | 30 + .../payouts/responseAdditionalDataSepa.ts | 48 ++ src/typings/payouts/sDKEphemPubKey.ts | 57 ++ src/typings/payouts/serviceError.ts | 75 +++ .../payouts/shopperInteractionDevice.ts | 48 ++ src/typings/payouts/split.ts | 76 +++ src/typings/payouts/splitAmount.ts | 39 ++ .../payouts/storeDetailAndSubmitRequest.ts | 186 ++++++ .../payouts/storeDetailAndSubmitResponse.ts | 57 ++ src/typings/payouts/storeDetailRequest.ts | 161 +++++ src/typings/payouts/storeDetailResponse.ts | 57 ++ src/typings/payouts/submitRequest.ts | 156 +++++ src/typings/payouts/submitResponse.ts | 57 ++ src/typings/payouts/threeDS2RequestData.ts | 392 ++++++++++++ .../threeDSRequestorAuthenticationInfo.ts | 58 ++ ...threeDSRequestorPriorAuthenticationInfo.ts | 65 ++ src/typings/payouts/threeDSecureData.ts | 156 +++++ src/typings/platformsAccount/account.ts | 57 +- src/typings/platformsAccount/accountEvent.ts | 10 +- .../platformsAccount/accountHolderDetails.ts | 34 +- .../platformsAccount/accountHolderStatus.ts | 15 +- .../platformsAccount/accountPayoutState.ts | 11 +- .../accountProcessingState.ts | 11 +- src/typings/platformsAccount/amount.ts | 10 +- .../platformsAccount/bankAccountDetail.ts | 12 +- .../platformsAccount/businessDetails.ts | 23 +- .../closeAccountHolderRequest.ts | 10 +- .../closeAccountHolderResponse.ts | 13 +- .../platformsAccount/closeAccountRequest.ts | 10 +- .../platformsAccount/closeAccountResponse.ts | 11 +- .../platformsAccount/closeStoresRequest.ts | 39 ++ .../createAccountHolderRequest.ts | 11 +- .../createAccountHolderResponse.ts | 21 +- .../platformsAccount/createAccountRequest.ts | 18 +- .../platformsAccount/createAccountResponse.ts | 13 +- .../deleteBankAccountRequest.ts | 10 +- .../deletePayoutMethodRequest.ts | 10 +- .../deleteShareholderRequest.ts | 10 +- .../deleteSignatoriesRequest.ts | 10 +- .../platformsAccount/documentDetail.ts | 37 +- .../platformsAccount/errorFieldType.ts | 11 +- src/typings/platformsAccount/fieldType.ts | 33 +- .../platformsAccount/genericResponse.ts | 11 +- .../getAccountHolderRequest.ts | 10 +- .../getAccountHolderResponse.ts | 23 +- .../getAccountHolderStatusResponse.ts | 13 +- .../platformsAccount/getTaxFormRequest.ts | 10 +- .../platformsAccount/getTaxFormResponse.ts | 11 +- .../getUploadedDocumentsRequest.ts | 10 +- .../getUploadedDocumentsResponse.ts | 13 +- .../platformsAccount/individualDetails.ts | 13 +- .../platformsAccount/kYCCheckResult.ts | 31 + .../platformsAccount/kYCCheckResult2.ts | 34 -- .../platformsAccount/kYCCheckStatusData.ts | 11 +- .../platformsAccount/kYCCheckSummary.ts | 10 +- .../kYCLegalArrangementCheckResult.ts | 11 +- .../kYCLegalArrangementEntityCheckResult.ts | 11 +- .../kYCPayoutMethodCheckResult.ts | 11 +- .../kYCShareholderCheckResult.ts | 11 +- .../kYCSignatoryCheckResult.ts | 11 +- .../kYCUltimateParentCompanyCheckResult.ts | 40 ++ .../platformsAccount/kYCVerificationResult.ts | 88 +++ .../kYCVerificationResult2.ts | 81 --- .../legalArrangementDetail.ts | 29 +- .../legalArrangementEntityDetail.ts | 36 +- src/typings/platformsAccount/models.ts | 196 +++--- src/typings/platformsAccount/payoutMethod.ts | 38 +- .../payoutScheduleResponse.ts | 18 +- .../performVerificationRequest.ts | 10 +- .../platformsAccount/personalDocumentData.ts | 10 +- src/typings/platformsAccount/serviceError.ts | 10 +- .../platformsAccount/shareholderContact.ts | 17 +- .../platformsAccount/signatoryContact.ts | 21 +- src/typings/platformsAccount/storeDetail.ts | 17 +- .../suspendAccountHolderRequest.ts | 10 +- .../suspendAccountHolderResponse.ts | 13 +- .../platformsAccount/ultimateParentCompany.ts | 44 ++ .../ultimateParentCompanyBusinessDetails.ts | 66 ++ .../unSuspendAccountHolderRequest.ts | 10 +- .../unSuspendAccountHolderResponse.ts | 13 +- .../updateAccountHolderRequest.ts | 11 +- .../updateAccountHolderResponse.ts | 21 +- .../updateAccountHolderStateRequest.ts | 10 +- .../platformsAccount/updateAccountRequest.ts | 11 +- .../platformsAccount/updateAccountResponse.ts | 13 +- .../updatePayoutScheduleRequest.ts | 20 +- .../platformsAccount/uploadDocumentRequest.ts | 11 +- src/typings/platformsAccount/viasAddress.ts | 20 +- src/typings/platformsAccount/viasName.ts | 10 +- .../platformsAccount/viasPersonalData.ts | 11 +- .../platformsAccount/viasPhoneNumber.ts | 10 +- .../createNotificationConfigurationRequest.ts | 28 + .../deleteNotificationConfigurationRequest.ts | 30 + .../errorFieldType.ts | 46 ++ .../exchangeMessage.ts | 33 + .../fieldType.ts | 208 +++++++ .../genericResponse.ts | 49 ++ ...etNotificationConfigurationListResponse.ts | 59 ++ .../getNotificationConfigurationRequest.ts | 30 + .../getNotificationConfigurationResponse.ts | 56 ++ .../models.ts | 195 ++++++ .../notificationConfigurationDetails.ts | 123 ++++ .../notificationEventConfiguration.ts | 70 +++ .../serviceError.ts | 66 ++ .../testNotificationConfigurationRequest.ts | 66 ++ .../testNotificationConfigurationResponse.ts | 122 ++++ .../updateNotificationConfigurationRequest.ts | 28 + 186 files changed, 10482 insertions(+), 772 deletions(-) create mode 100644 src/typings/management/cartesBancairesInfo.ts create mode 100644 src/typings/management/createMerchantRequest.ts create mode 100644 src/typings/management/createMerchantResponse.ts create mode 100644 src/typings/management/minorUnitsMonetaryValue.ts create mode 100644 src/typings/management/offlineProcessing.ts create mode 100644 src/typings/management/payoutSettings.ts create mode 100644 src/typings/management/payoutSettingsRequest.ts create mode 100644 src/typings/management/payoutSettingsResponse.ts create mode 100644 src/typings/management/releaseUpdateDetails.ts create mode 100644 src/typings/management/requestActivationResponse.ts create mode 100644 src/typings/management/terminalActionScheduleDetail.ts create mode 100644 src/typings/management/updatePayoutSettingsRequest.ts create mode 100644 src/typings/payouts/accountInfo.ts create mode 100644 src/typings/payouts/acctInfo.ts create mode 100644 src/typings/payouts/additionalData3DSecure.ts create mode 100644 src/typings/payouts/additionalDataAirline.ts create mode 100644 src/typings/payouts/additionalDataCarRental.ts create mode 100644 src/typings/payouts/additionalDataCommon.ts create mode 100644 src/typings/payouts/additionalDataLevel23.ts create mode 100644 src/typings/payouts/additionalDataLodging.ts create mode 100644 src/typings/payouts/additionalDataOpenInvoice.ts create mode 100644 src/typings/payouts/additionalDataOpi.ts create mode 100644 src/typings/payouts/additionalDataPayout.ts create mode 100644 src/typings/payouts/additionalDataRatepay.ts create mode 100644 src/typings/payouts/additionalDataRetry.ts create mode 100644 src/typings/payouts/additionalDataRisk.ts create mode 100644 src/typings/payouts/additionalDataRiskStandalone.ts create mode 100644 src/typings/payouts/additionalDataSubMerchant.ts create mode 100644 src/typings/payouts/additionalDataTemporaryServices.ts create mode 100644 src/typings/payouts/additionalDataWallets.ts create mode 100644 src/typings/payouts/address.ts create mode 100644 src/typings/payouts/amount.ts create mode 100644 src/typings/payouts/applicationInfo.ts create mode 100644 src/typings/payouts/bankAccount.ts create mode 100644 src/typings/payouts/browserInfo.ts create mode 100644 src/typings/payouts/card.ts create mode 100644 src/typings/payouts/commonField.ts create mode 100644 src/typings/payouts/deviceRenderOptions.ts create mode 100644 src/typings/payouts/externalPlatform.ts create mode 100644 src/typings/payouts/forexQuote.ts create mode 100644 src/typings/payouts/fraudCheckResult.ts create mode 100644 src/typings/payouts/fraudResult.ts create mode 100644 src/typings/payouts/fundSource.ts create mode 100644 src/typings/payouts/installments.ts create mode 100644 src/typings/payouts/mandate.ts create mode 100644 src/typings/payouts/merchantDevice.ts create mode 100644 src/typings/payouts/merchantRiskIndicator.ts create mode 100644 src/typings/payouts/models.ts create mode 100644 src/typings/payouts/modifyRequest.ts create mode 100644 src/typings/payouts/modifyResponse.ts create mode 100644 src/typings/payouts/name.ts create mode 100644 src/typings/payouts/payoutRequest.ts create mode 100644 src/typings/payouts/payoutResponse.ts create mode 100644 src/typings/payouts/phone.ts create mode 100644 src/typings/payouts/recurring.ts create mode 100644 src/typings/payouts/responseAdditionalData3DSecure.ts create mode 100644 src/typings/payouts/responseAdditionalDataBillingAddress.ts create mode 100644 src/typings/payouts/responseAdditionalDataCard.ts create mode 100644 src/typings/payouts/responseAdditionalDataCommon.ts create mode 100644 src/typings/payouts/responseAdditionalDataInstallments.ts create mode 100644 src/typings/payouts/responseAdditionalDataNetworkTokens.ts create mode 100644 src/typings/payouts/responseAdditionalDataOpi.ts create mode 100644 src/typings/payouts/responseAdditionalDataSepa.ts create mode 100644 src/typings/payouts/sDKEphemPubKey.ts create mode 100644 src/typings/payouts/serviceError.ts create mode 100644 src/typings/payouts/shopperInteractionDevice.ts create mode 100644 src/typings/payouts/split.ts create mode 100644 src/typings/payouts/splitAmount.ts create mode 100644 src/typings/payouts/storeDetailAndSubmitRequest.ts create mode 100644 src/typings/payouts/storeDetailAndSubmitResponse.ts create mode 100644 src/typings/payouts/storeDetailRequest.ts create mode 100644 src/typings/payouts/storeDetailResponse.ts create mode 100644 src/typings/payouts/submitRequest.ts create mode 100644 src/typings/payouts/submitResponse.ts create mode 100644 src/typings/payouts/threeDS2RequestData.ts create mode 100644 src/typings/payouts/threeDSRequestorAuthenticationInfo.ts create mode 100644 src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts create mode 100644 src/typings/payouts/threeDSecureData.ts create mode 100644 src/typings/platformsAccount/closeStoresRequest.ts create mode 100644 src/typings/platformsAccount/kYCCheckResult.ts delete mode 100644 src/typings/platformsAccount/kYCCheckResult2.ts create mode 100644 src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts create mode 100644 src/typings/platformsAccount/kYCVerificationResult.ts delete mode 100644 src/typings/platformsAccount/kYCVerificationResult2.ts create mode 100644 src/typings/platformsAccount/ultimateParentCompany.ts create mode 100644 src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts create mode 100644 src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts create mode 100644 src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts create mode 100644 src/typings/platformsNotificationConfiguration/errorFieldType.ts create mode 100644 src/typings/platformsNotificationConfiguration/exchangeMessage.ts create mode 100644 src/typings/platformsNotificationConfiguration/fieldType.ts create mode 100644 src/typings/platformsNotificationConfiguration/genericResponse.ts create mode 100644 src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts create mode 100644 src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts create mode 100644 src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts create mode 100644 src/typings/platformsNotificationConfiguration/models.ts create mode 100644 src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts create mode 100644 src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts create mode 100644 src/typings/platformsNotificationConfiguration/serviceError.ts create mode 100644 src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts create mode 100644 src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts create mode 100644 src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts diff --git a/src/typings/management/cartesBancairesInfo.ts b/src/typings/management/cartesBancairesInfo.ts new file mode 100644 index 0000000..9cd647f --- /dev/null +++ b/src/typings/management/cartesBancairesInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CartesBancairesInfo { + /** + * Cartes Bancaires SIRET. Format: 14 digits. + */ + 'siret': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "siret", + "baseName": "siret", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CartesBancairesInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/company.ts b/src/typings/management/company.ts index 53c7938..07e1504 100644 --- a/src/typings/management/company.ts +++ b/src/typings/management/company.ts @@ -17,6 +17,10 @@ export class Company { */ 'dataCenters'?: Array; /** + * Your description for the company account, maximum 300 characters + */ + 'description'?: string; + /** * The unique identifier of the company account. */ 'id'?: string; @@ -25,6 +29,10 @@ export class Company { */ 'name'?: string; /** + * Your reference to the account + */ + 'reference'?: string; + /** * 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. */ 'status'?: string; @@ -42,6 +50,11 @@ export class Company { "baseName": "dataCenters", "type": "Array" }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, { "name": "id", "baseName": "id", @@ -52,6 +65,11 @@ export class Company { "baseName": "name", "type": "string" }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, { "name": "status", "baseName": "status", diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts index 0ce1ead..e03ea96 100644 --- a/src/typings/management/createCompanyWebhookRequest.ts +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -56,7 +56,7 @@ export class CreateCompanyWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **SSL** * **SSLv3** * **TLS** * **TLSv1** * **TLSv1.1** 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.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: CreateCompanyWebhookRequest.SslVersionEnum; /** diff --git a/src/typings/management/createMerchantRequest.ts b/src/typings/management/createMerchantRequest.ts new file mode 100644 index 0000000..6366ccd --- /dev/null +++ b/src/typings/management/createMerchantRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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. + */ + 'businessLineId'?: string; + /** + * The unique identifier of the company account. + */ + 'companyId': string; + /** + * Your description for the merchant account, maximum 300 characters. + */ + 'description'?: string; + /** + * 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. + */ + 'legalEntityId'?: string; + /** + * 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. + */ + 'pricingPlan'?: string; + /** + * 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. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "pricingPlan", + "baseName": "pricingPlan", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantResponse.ts b/src/typings/management/createMerchantResponse.ts new file mode 100644 index 0000000..eaf2d29 --- /dev/null +++ b/src/typings/management/createMerchantResponse.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateMerchantResponse { + /** + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + */ + 'businessLineId'?: string; + /** + * The unique identifier of the company account. + */ + 'companyId'?: string; + /** + * Your description for the merchant account, maximum 300 characters. + */ + 'description'?: string; + /** + * 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. + */ + 'id'?: string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + */ + 'legalEntityId'?: string; + /** + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + */ + 'pricingPlan'?: string; + /** + * Your reference for the merchant account. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "pricingPlan", + "baseName": "pricingPlan", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts index 6a3f029..0c4bad9 100644 --- a/src/typings/management/createMerchantWebhookRequest.ts +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -48,7 +48,7 @@ export class CreateMerchantWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **SSL** * **SSLv3** * **TLS** * **TLSv1** * **TLSv1.1** 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.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: CreateMerchantWebhookRequest.SslVersionEnum; /** diff --git a/src/typings/management/listWebhooksResponse.ts b/src/typings/management/listWebhooksResponse.ts index b9efec7..c993e5d 100644 --- a/src/typings/management/listWebhooksResponse.ts +++ b/src/typings/management/listWebhooksResponse.ts @@ -13,6 +13,10 @@ import { Webhook } from './webhook'; export class ListWebhooksResponse { 'links'?: PaginationLinks; /** + * Reference to the account. + */ + 'accountReference'?: string; + /** * The list of webhooks configured for this account. */ 'data'?: Array; @@ -33,6 +37,11 @@ export class ListWebhooksResponse { "baseName": "_links", "type": "PaginationLinks" }, + { + "name": "accountReference", + "baseName": "accountReference", + "type": "string" + }, { "name": "data", "baseName": "data", diff --git a/src/typings/management/merchant.ts b/src/typings/management/merchant.ts index e246e05..e7eecf8 100644 --- a/src/typings/management/merchant.ts +++ b/src/typings/management/merchant.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { DataCenter } from './dataCenter'; import { MerchantLinks } from './merchantLinks'; export class Merchant { @@ -16,10 +17,22 @@ export class Merchant { */ 'captureDelay'?: string; /** + * The unique identifier of the company account this merchant belongs to + */ + 'companyId'?: string; + /** + * 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. + */ + 'dataCenters'?: Array; + /** * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. */ 'defaultShopperInteraction'?: string; /** + * Your description for the merchant account, maximum 300 characters + */ + 'description'?: string; + /** * The unique identifier of the merchant account. */ 'id'?: string; @@ -40,6 +53,10 @@ export class Merchant { */ 'primarySettlementCurrency'?: string; /** + * Reference of the merchant account. + */ + 'reference'?: string; + /** * The URL for the ecommerce website used with this merchant account. */ 'shopWebAddress'?: string; @@ -61,11 +78,26 @@ export class Merchant { "baseName": "captureDelay", "type": "string" }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "dataCenters", + "baseName": "dataCenters", + "type": "Array" + }, { "name": "defaultShopperInteraction", "baseName": "defaultShopperInteraction", "type": "string" }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, { "name": "id", "baseName": "id", @@ -91,6 +123,11 @@ export class Merchant { "baseName": "primarySettlementCurrency", "type": "string" }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, { "name": "shopWebAddress", "baseName": "shopWebAddress", diff --git a/src/typings/management/minorUnitsMonetaryValue.ts b/src/typings/management/minorUnitsMonetaryValue.ts new file mode 100644 index 0000000..ba0bf6e --- /dev/null +++ b/src/typings/management/minorUnitsMonetaryValue.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MinorUnitsMonetaryValue { + /** + * Amount of this monetary value, in minor units + */ + 'amount'?: number; + /** + * Currency of this monetary value, Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currencyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MinorUnitsMonetaryValue.attributeTypeMap; + } +} + diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts index c3a7219..3dc69ab 100644 --- a/src/typings/management/models.ts +++ b/src/typings/management/models.ts @@ -27,6 +27,7 @@ export * from './bcmcInfo'; export * from './billingEntitiesResponse'; export * from './billingEntity'; export * from './cardholderReceipt'; +export * from './cartesBancairesInfo'; export * from './company'; export * from './companyApiCredential'; export * from './companyLinks'; @@ -42,6 +43,8 @@ export * from './createCompanyUserRequest'; export * from './createCompanyUserResponse'; export * from './createCompanyWebhookRequest'; export * from './createMerchantApiCredentialRequest'; +export * from './createMerchantRequest'; +export * from './createMerchantResponse'; export * from './createMerchantUserRequest'; export * from './createMerchantWebhookRequest'; export * from './createUserResponse'; @@ -79,10 +82,12 @@ export * from './logo'; export * from './meApiCredential'; export * from './merchant'; export * from './merchantLinks'; +export * from './minorUnitsMonetaryValue'; export * from './modelFile'; export * from './name'; export * from './name2'; export * from './nexo'; +export * from './offlineProcessing'; export * from './opi'; export * from './orderItem'; export * from './paginationLinks'; @@ -90,9 +95,14 @@ export * from './payPalInfo'; export * from './paymentMethod'; export * from './paymentMethodResponse'; export * from './paymentMethodSetupInfo'; +export * from './payoutSettings'; +export * from './payoutSettingsRequest'; +export * from './payoutSettingsResponse'; export * from './profile'; export * from './receiptOptions'; export * from './receiptPrinting'; +export * from './releaseUpdateDetails'; +export * from './requestActivationResponse'; export * from './restServiceError'; export * from './scheduleTerminalActionsRequest'; export * from './scheduleTerminalActionsResponse'; @@ -108,6 +118,7 @@ export * from './storeSplitConfiguration'; export * from './surcharge'; export * from './swishInfo'; export * from './terminal'; +export * from './terminalActionScheduleDetail'; export * from './terminalModelsResponse'; export * from './terminalOrder'; export * from './terminalOrderRequest'; @@ -130,6 +141,7 @@ export * from './updateMerchantApiCredentialRequest'; export * from './updateMerchantUserRequest'; export * from './updateMerchantWebhookRequest'; export * from './updatePaymentMethodInfo'; +export * from './updatePayoutSettingsRequest'; export * from './updateStoreRequest'; export * from './url'; export * from './user'; @@ -157,6 +169,7 @@ import { BcmcInfo } from './bcmcInfo'; import { BillingEntitiesResponse } from './billingEntitiesResponse'; import { BillingEntity } from './billingEntity'; import { CardholderReceipt } from './cardholderReceipt'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; import { Company } from './company'; import { CompanyApiCredential } from './companyApiCredential'; import { CompanyLinks } from './companyLinks'; @@ -172,6 +185,8 @@ import { CreateCompanyUserRequest } from './createCompanyUserRequest'; import { CreateCompanyUserResponse } from './createCompanyUserResponse'; import { CreateCompanyWebhookRequest } from './createCompanyWebhookRequest'; import { CreateMerchantApiCredentialRequest } from './createMerchantApiCredentialRequest'; +import { CreateMerchantRequest } from './createMerchantRequest'; +import { CreateMerchantResponse } from './createMerchantResponse'; import { CreateMerchantUserRequest } from './createMerchantUserRequest'; import { CreateMerchantWebhookRequest } from './createMerchantWebhookRequest'; import { CreateUserResponse } from './createUserResponse'; @@ -209,10 +224,12 @@ import { Logo } from './logo'; import { MeApiCredential } from './meApiCredential'; import { Merchant } from './merchant'; import { MerchantLinks } from './merchantLinks'; +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; import { ModelFile } from './modelFile'; import { Name } from './name'; import { Name2 } from './name2'; import { Nexo } from './nexo'; +import { OfflineProcessing } from './offlineProcessing'; import { Opi } from './opi'; import { OrderItem } from './orderItem'; import { PaginationLinks } from './paginationLinks'; @@ -220,9 +237,14 @@ import { PayPalInfo } from './payPalInfo'; import { PaymentMethod } from './paymentMethod'; import { PaymentMethodResponse } from './paymentMethodResponse'; import { PaymentMethodSetupInfo } from './paymentMethodSetupInfo'; +import { PayoutSettings } from './payoutSettings'; +import { PayoutSettingsRequest } from './payoutSettingsRequest'; +import { PayoutSettingsResponse } from './payoutSettingsResponse'; import { Profile } from './profile'; import { ReceiptOptions } from './receiptOptions'; import { ReceiptPrinting } from './receiptPrinting'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { RequestActivationResponse } from './requestActivationResponse'; import { RestServiceError } from './restServiceError'; import { ScheduleTerminalActionsRequest } from './scheduleTerminalActionsRequest'; import { ScheduleTerminalActionsResponse } from './scheduleTerminalActionsResponse'; @@ -238,6 +260,7 @@ import { StoreSplitConfiguration } from './storeSplitConfiguration'; import { Surcharge } from './surcharge'; import { SwishInfo } from './swishInfo'; import { Terminal } from './terminal'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; import { TerminalModelsResponse } from './terminalModelsResponse'; import { TerminalOrder } from './terminalOrder'; import { TerminalOrderRequest } from './terminalOrderRequest'; @@ -260,6 +283,7 @@ import { UpdateMerchantApiCredentialRequest } from './updateMerchantApiCredentia import { UpdateMerchantUserRequest } from './updateMerchantUserRequest'; import { UpdateMerchantWebhookRequest } from './updateMerchantWebhookRequest'; import { UpdatePaymentMethodInfo } from './updatePaymentMethodInfo'; +import { UpdatePayoutSettingsRequest } from './updatePayoutSettingsRequest'; import { UpdateStoreRequest } from './updateStoreRequest'; import { Url } from './url'; import { User } from './user'; @@ -292,7 +316,11 @@ let enumsMap: {[index: string]: any} = { "InstallAndroidAppDetails.TypeEnum": InstallAndroidAppDetails.TypeEnum, "InstallAndroidCertificateDetails.TypeEnum": InstallAndroidCertificateDetails.TypeEnum, "KlarnaInfo.RegionEnum": KlarnaInfo.RegionEnum, + "PaymentMethodSetupInfo.ShopperInteractionEnum": PaymentMethodSetupInfo.ShopperInteractionEnum, "PaymentMethodSetupInfo.TypeEnum": PaymentMethodSetupInfo.TypeEnum, + "PayoutSettings.PriorityEnum": PayoutSettings.PriorityEnum, + "PayoutSettings.VerificationStatusEnum": PayoutSettings.VerificationStatusEnum, + "ReleaseUpdateDetails.TypeEnum": ReleaseUpdateDetails.TypeEnum, "Store.StatusEnum": Store.StatusEnum, "UninstallAndroidAppDetails.TypeEnum": UninstallAndroidAppDetails.TypeEnum, "UninstallAndroidCertificateDetails.TypeEnum": UninstallAndroidCertificateDetails.TypeEnum, @@ -330,6 +358,7 @@ let typeMap: {[index: string]: any} = { "BillingEntitiesResponse": BillingEntitiesResponse, "BillingEntity": BillingEntity, "CardholderReceipt": CardholderReceipt, + "CartesBancairesInfo": CartesBancairesInfo, "Company": Company, "CompanyApiCredential": CompanyApiCredential, "CompanyLinks": CompanyLinks, @@ -345,6 +374,8 @@ let typeMap: {[index: string]: any} = { "CreateCompanyUserResponse": CreateCompanyUserResponse, "CreateCompanyWebhookRequest": CreateCompanyWebhookRequest, "CreateMerchantApiCredentialRequest": CreateMerchantApiCredentialRequest, + "CreateMerchantRequest": CreateMerchantRequest, + "CreateMerchantResponse": CreateMerchantResponse, "CreateMerchantUserRequest": CreateMerchantUserRequest, "CreateMerchantWebhookRequest": CreateMerchantWebhookRequest, "CreateUserResponse": CreateUserResponse, @@ -382,10 +413,12 @@ let typeMap: {[index: string]: any} = { "MeApiCredential": MeApiCredential, "Merchant": Merchant, "MerchantLinks": MerchantLinks, + "MinorUnitsMonetaryValue": MinorUnitsMonetaryValue, "ModelFile": ModelFile, "Name": Name, "Name2": Name2, "Nexo": Nexo, + "OfflineProcessing": OfflineProcessing, "Opi": Opi, "OrderItem": OrderItem, "PaginationLinks": PaginationLinks, @@ -393,9 +426,14 @@ let typeMap: {[index: string]: any} = { "PaymentMethod": PaymentMethod, "PaymentMethodResponse": PaymentMethodResponse, "PaymentMethodSetupInfo": PaymentMethodSetupInfo, + "PayoutSettings": PayoutSettings, + "PayoutSettingsRequest": PayoutSettingsRequest, + "PayoutSettingsResponse": PayoutSettingsResponse, "Profile": Profile, "ReceiptOptions": ReceiptOptions, "ReceiptPrinting": ReceiptPrinting, + "ReleaseUpdateDetails": ReleaseUpdateDetails, + "RequestActivationResponse": RequestActivationResponse, "RestServiceError": RestServiceError, "ScheduleTerminalActionsRequest": ScheduleTerminalActionsRequest, "ScheduleTerminalActionsResponse": ScheduleTerminalActionsResponse, @@ -411,6 +449,7 @@ let typeMap: {[index: string]: any} = { "Surcharge": Surcharge, "SwishInfo": SwishInfo, "Terminal": Terminal, + "TerminalActionScheduleDetail": TerminalActionScheduleDetail, "TerminalModelsResponse": TerminalModelsResponse, "TerminalOrder": TerminalOrder, "TerminalOrderRequest": TerminalOrderRequest, @@ -433,6 +472,7 @@ let typeMap: {[index: string]: any} = { "UpdateMerchantUserRequest": UpdateMerchantUserRequest, "UpdateMerchantWebhookRequest": UpdateMerchantWebhookRequest, "UpdatePaymentMethodInfo": UpdatePaymentMethodInfo, + "UpdatePayoutSettingsRequest": UpdatePayoutSettingsRequest, "UpdateStoreRequest": UpdateStoreRequest, "Url": Url, "User": User, diff --git a/src/typings/management/offlineProcessing.ts b/src/typings/management/offlineProcessing.ts new file mode 100644 index 0000000..9e58aff --- /dev/null +++ b/src/typings/management/offlineProcessing.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; + +export class OfflineProcessing { + /** + * The (inclusive) limit for accepting chip cards offline, in the processing currency, in minor units + */ + 'chipFloorLimit'?: number; + /** + * The maximum amount up to which swiped credit cards can be accepted offline, in the specified currency + */ + 'offlineSwipeLimits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chipFloorLimit", + "baseName": "chipFloorLimit", + "type": "number" + }, + { + "name": "offlineSwipeLimits", + "baseName": "offlineSwipeLimits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return OfflineProcessing.attributeTypeMap; + } +} + diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index a7b5ab0..5875d37 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -9,6 +9,7 @@ import { ApplePayInfo } from './applePayInfo'; import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; import { GiroPayInfo } from './giroPayInfo'; import { KlarnaInfo } from './klarnaInfo'; import { PayPalInfo } from './payPalInfo'; @@ -22,6 +23,7 @@ export class PaymentMethod { * The unique identifier of the business line. */ 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @@ -70,6 +72,11 @@ export class PaymentMethod { "baseName": "businessLineId", "type": "string" }, + { + "name": "cartesBancaires", + "baseName": "cartesBancaires", + "type": "CartesBancairesInfo" + }, { "name": "countries", "baseName": "countries", diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 1cc0c4f..97e840a 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -9,6 +9,7 @@ import { ApplePayInfo } from './applePayInfo'; import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; import { GiroPayInfo } from './giroPayInfo'; import { KlarnaInfo } from './klarnaInfo'; import { PayPalInfo } from './payPalInfo'; @@ -22,6 +23,7 @@ export class PaymentMethodSetupInfo { * The unique identifier of the business line. */ 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ @@ -33,6 +35,10 @@ export class PaymentMethodSetupInfo { 'giroPay'?: GiroPayInfo; 'klarna'?: KlarnaInfo; 'paypal'?: PayPalInfo; + /** + * 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**. + */ + 'shopperInteraction'?: PaymentMethodSetupInfo.ShopperInteractionEnum; 'sofort'?: SofortInfo; /** * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. @@ -62,6 +68,11 @@ export class PaymentMethodSetupInfo { "baseName": "businessLineId", "type": "string" }, + { + "name": "cartesBancaires", + "baseName": "cartesBancaires", + "type": "CartesBancairesInfo" + }, { "name": "countries", "baseName": "countries", @@ -87,6 +98,11 @@ export class PaymentMethodSetupInfo { "baseName": "paypal", "type": "PayPalInfo" }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentMethodSetupInfo.ShopperInteractionEnum" + }, { "name": "sofort", "baseName": "sofort", @@ -114,6 +130,12 @@ export class PaymentMethodSetupInfo { } export namespace PaymentMethodSetupInfo { + export enum ShopperInteractionEnum { + ECommerce = 'eCommerce', + Pos = 'pos', + Moto = 'moto', + ContAuth = 'contAuth' + } export enum TypeEnum { Alipay = 'alipay', Amex = 'amex', @@ -124,7 +146,9 @@ export namespace PaymentMethodSetupInfo { Cup = 'cup', Diners = 'diners', DirectEbanking = 'directEbanking', + DirectdebitGb = 'directdebit_GB', Discover = 'discover', + EbankingFi = 'ebanking_FI', EftposAustralia = 'eftpos_australia', Girocard = 'girocard', Giropay = 'giropay', @@ -135,11 +159,16 @@ export namespace PaymentMethodSetupInfo { KlarnaAccount = 'klarna_account', KlarnaPaynow = 'klarna_paynow', Maestro = 'maestro', + Mbway = 'mbway', Mc = 'mc', Mobilepay = 'mobilepay', + Multibanco = 'multibanco', Paypal = 'paypal', + Payshop = 'payshop', Swish = 'swish', + Trustly = 'trustly', Visa = 'visa', + Wechatpay = 'wechatpay', WechatpayPos = 'wechatpay_pos' } } diff --git a/src/typings/management/payoutSettings.ts b/src/typings/management/payoutSettings.ts new file mode 100644 index 0000000..8366336 --- /dev/null +++ b/src/typings/management/payoutSettings.ts @@ -0,0 +1,97 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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. + */ + 'allowed'?: boolean; + /** + * 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**. + */ + 'enabled'?: boolean; + /** + * 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**. + */ + 'enabledFromDate'?: string; + /** + * The unique identifier of the payout setting. + */ + 'id': string; + /** + * 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. + */ + 'priority'?: PayoutSettings.PriorityEnum; + /** + * 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. + */ + 'transferInstrumentId': string; + /** + * 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. + */ + 'verificationStatus'?: PayoutSettings.VerificationStatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "enabledFromDate", + "baseName": "enabledFromDate", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "priority", + "baseName": "priority", + "type": "PayoutSettings.PriorityEnum" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "PayoutSettings.VerificationStatusEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutSettings.attributeTypeMap; + } +} + +export namespace PayoutSettings { + export enum PriorityEnum { + First = 'first', + Normal = 'normal', + Urgent = 'urgent' + } + export enum VerificationStatusEnum { + Invalid = 'invalid', + Pending = 'pending', + Rejected = 'rejected', + Valid = 'valid' + } +} diff --git a/src/typings/management/payoutSettingsRequest.ts b/src/typings/management/payoutSettingsRequest.ts new file mode 100644 index 0000000..519bc35 --- /dev/null +++ b/src/typings/management/payoutSettingsRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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**. + */ + 'enabled'?: boolean; + /** + * 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**. + */ + 'enabledFromDate'?: string; + /** + * 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. + */ + 'transferInstrumentId': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "enabledFromDate", + "baseName": "enabledFromDate", + "type": "string" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutSettingsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/payoutSettingsResponse.ts b/src/typings/management/payoutSettingsResponse.ts new file mode 100644 index 0000000..cf4dbf0 --- /dev/null +++ b/src/typings/management/payoutSettingsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PayoutSettings } from './payoutSettings'; + +export class PayoutSettingsResponse { + /** + * The list of payout accounts. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PayoutSettingsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/profile.ts b/src/typings/management/profile.ts index a7028bd..e863f28 100644 --- a/src/typings/management/profile.ts +++ b/src/typings/management/profile.ts @@ -50,7 +50,7 @@ export class Profile { */ 'eapPwd'?: string; /** - * Indicates if a network does not broadcast its SSID, so an SSID-specific probe request must be used for scans. + * 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. */ 'hiddenSsid'?: boolean; /** diff --git a/src/typings/management/receiptOptions.ts b/src/typings/management/receiptOptions.ts index 8b3cad7..8ac5ace 100644 --- a/src/typings/management/receiptOptions.ts +++ b/src/typings/management/receiptOptions.ts @@ -13,6 +13,10 @@ export class 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. */ 'logo'?: string; + /** + * 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}**. + */ + 'qrCodeData'?: string; static discriminator: string | undefined = undefined; @@ -21,6 +25,11 @@ export class ReceiptOptions { "name": "logo", "baseName": "logo", "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/releaseUpdateDetails.ts b/src/typings/management/releaseUpdateDetails.ts new file mode 100644 index 0000000..c6cfc54 --- /dev/null +++ b/src/typings/management/releaseUpdateDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ReleaseUpdateDetails { + /** + * Type of terminal action: Update Release. + */ + 'type'?: ReleaseUpdateDetails.TypeEnum; + /** + * 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. + */ + 'updateAtFirstMaintenanceCall'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "ReleaseUpdateDetails.TypeEnum" + }, + { + "name": "updateAtFirstMaintenanceCall", + "baseName": "updateAtFirstMaintenanceCall", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ReleaseUpdateDetails.attributeTypeMap; + } +} + +export namespace ReleaseUpdateDetails { + export enum TypeEnum { + ReleaseUpdate = 'ReleaseUpdate' + } +} diff --git a/src/typings/management/requestActivationResponse.ts b/src/typings/management/requestActivationResponse.ts new file mode 100644 index 0000000..8ba6845 --- /dev/null +++ b/src/typings/management/requestActivationResponse.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RequestActivationResponse { + /** + * The unique identifier of the company account. + */ + 'companyId'?: string; + /** + * The unique identifier of the merchant account you requested to activate. + */ + 'merchantId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RequestActivationResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/restServiceError.ts b/src/typings/management/restServiceError.ts index d49c022..06c1285 100644 --- a/src/typings/management/restServiceError.ts +++ b/src/typings/management/restServiceError.ts @@ -20,10 +20,6 @@ export class RestServiceError { */ 'errorCode': string; /** - * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. - */ - 'errorType': string; - /** * A unique URI that identifies the specific occurrence of the problem. */ 'instance'?: string; @@ -44,6 +40,10 @@ export class RestServiceError { * A short, human-readable summary of the problem type. */ 'title': string; + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + */ + 'type': string; static discriminator: string | undefined = undefined; @@ -58,11 +58,6 @@ export class RestServiceError { "baseName": "errorCode", "type": "string" }, - { - "name": "errorType", - "baseName": "errorType", - "type": "string" - }, { "name": "instance", "baseName": "instance", @@ -92,6 +87,11 @@ export class RestServiceError { "name": "title", "baseName": "title", "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/scheduleTerminalActionsRequest.ts b/src/typings/management/scheduleTerminalActionsRequest.ts index fcd077e..14992d9 100644 --- a/src/typings/management/scheduleTerminalActionsRequest.ts +++ b/src/typings/management/scheduleTerminalActionsRequest.ts @@ -9,6 +9,7 @@ import { InstallAndroidAppDetails } from './installAndroidAppDetails'; import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; @@ -16,7 +17,7 @@ export class ScheduleTerminalActionsRequest { /** * Information about the action to take. */ - 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; /** * 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+01:00** 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. */ @@ -36,7 +37,7 @@ export class ScheduleTerminalActionsRequest { { "name": "actionDetails", "baseName": "actionDetails", - "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" }, { "name": "scheduledAt", diff --git a/src/typings/management/scheduleTerminalActionsResponse.ts b/src/typings/management/scheduleTerminalActionsResponse.ts index be173d4..c3a9665 100644 --- a/src/typings/management/scheduleTerminalActionsResponse.ts +++ b/src/typings/management/scheduleTerminalActionsResponse.ts @@ -9,6 +9,8 @@ import { InstallAndroidAppDetails } from './installAndroidAppDetails'; import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; @@ -16,7 +18,8 @@ export class ScheduleTerminalActionsResponse { /** * Information about the action to take. */ - 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + 'items'?: Array; /** * 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+01:00** 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. */ @@ -48,7 +51,12 @@ export class ScheduleTerminalActionsResponse { { "name": "actionDetails", "baseName": "actionDetails", - "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" }, { "name": "scheduledAt", diff --git a/src/typings/management/terminal.ts b/src/typings/management/terminal.ts index bf70b00..18f03ec 100644 --- a/src/typings/management/terminal.ts +++ b/src/typings/management/terminal.ts @@ -14,13 +14,89 @@ export class Terminal { */ 'assigned'?: boolean; /** + * The Bluetooth IP address of the terminal. + */ + 'bluetoothIp'?: string; + /** + * The Bluetooth MAC address of the terminal. + */ + 'bluetoothMac'?: string; + /** + * The city where the terminal is located. + */ + 'city'?: string; + /** + * The company account of the terminal. + */ + 'companyAccount'?: string; + /** + * The country code where the terminal is located. + */ + 'countryCode'?: string; + /** + * The terminal model of the device. + */ + 'deviceModel'?: string; + /** + * The ethernet IP address of the terminal. + */ + 'ethernetIp'?: string; + /** + * The ethernet MAC address of the terminal. + */ + 'ethernetMac'?: string; + /** + * The firmware Version of the terminal. + */ + 'firmwareVersion'?: string; + /** + * The ICCID number of the cellular communications card. + */ + 'iccid'?: string; + /** * The unique identifier of the terminal. */ 'id'?: string; /** + * The last Activity Date and Time of the terminal. + */ + 'lastActivityDateTime'?: Date; + /** + * The last Transaction Date and Time of the terminal. + */ + 'lastTransactionDateTime'?: Date; + /** + * The ethernet link speed of the terminal that was negotiated. + */ + 'linkNegotiation'?: string; + /** + * The serial number of the terminal. + */ + 'serialNumber'?: string; + /** + * On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY. + */ + 'simStatus'?: string; + /** * Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off. If the terminal was last online more that a week ago, it is also shown as turned off. */ 'status'?: string; + /** + * The Status of store where the terminal is located. + */ + 'storeStatus'?: string; + /** + * The WiFi IP address of the terminal. + */ + 'wifiIp'?: string; + /** + * The WiFi MAC address of the terminal. + */ + 'wifiMac'?: string; + /** + * The WIFI SSID of the terminal. + */ + 'wifiSsid'?: string; static discriminator: string | undefined = undefined; @@ -30,15 +106,110 @@ export class Terminal { "baseName": "assigned", "type": "boolean" }, + { + "name": "bluetoothIp", + "baseName": "bluetoothIp", + "type": "string" + }, + { + "name": "bluetoothMac", + "baseName": "bluetoothMac", + "type": "string" + }, + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "deviceModel", + "baseName": "deviceModel", + "type": "string" + }, + { + "name": "ethernetIp", + "baseName": "ethernetIp", + "type": "string" + }, + { + "name": "ethernetMac", + "baseName": "ethernetMac", + "type": "string" + }, + { + "name": "firmwareVersion", + "baseName": "firmwareVersion", + "type": "string" + }, + { + "name": "iccid", + "baseName": "iccid", + "type": "string" + }, { "name": "id", "baseName": "id", "type": "string" }, + { + "name": "lastActivityDateTime", + "baseName": "lastActivityDateTime", + "type": "Date" + }, + { + "name": "lastTransactionDateTime", + "baseName": "lastTransactionDateTime", + "type": "Date" + }, + { + "name": "linkNegotiation", + "baseName": "linkNegotiation", + "type": "string" + }, + { + "name": "serialNumber", + "baseName": "serialNumber", + "type": "string" + }, + { + "name": "simStatus", + "baseName": "simStatus", + "type": "string" + }, { "name": "status", "baseName": "status", "type": "string" + }, + { + "name": "storeStatus", + "baseName": "storeStatus", + "type": "string" + }, + { + "name": "wifiIp", + "baseName": "wifiIp", + "type": "string" + }, + { + "name": "wifiMac", + "baseName": "wifiMac", + "type": "string" + }, + { + "name": "wifiSsid", + "baseName": "wifiSsid", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/terminalActionScheduleDetail.ts b/src/typings/management/terminalActionScheduleDetail.ts new file mode 100644 index 0000000..9001630 --- /dev/null +++ b/src/typings/management/terminalActionScheduleDetail.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TerminalActionScheduleDetail { + 'id'?: string; + 'terminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TerminalActionScheduleDetail.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalSettings.ts b/src/typings/management/terminalSettings.ts index eb317d8..5858250 100644 --- a/src/typings/management/terminalSettings.ts +++ b/src/typings/management/terminalSettings.ts @@ -12,6 +12,7 @@ import { Connectivity } from './connectivity'; import { Gratuity } from './gratuity'; import { Hardware } from './hardware'; import { Nexo } from './nexo'; +import { OfflineProcessing } from './offlineProcessing'; import { Opi } from './opi'; import { ReceiptOptions } from './receiptOptions'; import { ReceiptPrinting } from './receiptPrinting'; @@ -29,6 +30,7 @@ export class TerminalSettings { 'gratuities'?: Array; 'hardware'?: Hardware; 'nexo'?: Nexo; + 'offlineProcessing'?: OfflineProcessing; 'opi'?: Opi; 'receiptOptions'?: ReceiptOptions; 'receiptPrinting'?: ReceiptPrinting; @@ -65,6 +67,11 @@ export class TerminalSettings { "baseName": "nexo", "type": "Nexo" }, + { + "name": "offlineProcessing", + "baseName": "offlineProcessing", + "type": "OfflineProcessing" + }, { "name": "opi", "baseName": "opi", diff --git a/src/typings/management/updateCompanyWebhookRequest.ts b/src/typings/management/updateCompanyWebhookRequest.ts index 56e74ba..e41ba41 100644 --- a/src/typings/management/updateCompanyWebhookRequest.ts +++ b/src/typings/management/updateCompanyWebhookRequest.ts @@ -56,7 +56,7 @@ export class UpdateCompanyWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **SSL** * **SSLv3** * **TLS** * **TLSv1** * **TLSv1.1** 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.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: UpdateCompanyWebhookRequest.SslVersionEnum; /** diff --git a/src/typings/management/updateMerchantWebhookRequest.ts b/src/typings/management/updateMerchantWebhookRequest.ts index 7da8d92..7ddb5d0 100644 --- a/src/typings/management/updateMerchantWebhookRequest.ts +++ b/src/typings/management/updateMerchantWebhookRequest.ts @@ -48,7 +48,7 @@ export class UpdateMerchantWebhookRequest { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **SSL** * **SSLv3** * **TLS** * **TLSv1** * **TLSv1.1** 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.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: UpdateMerchantWebhookRequest.SslVersionEnum; /** diff --git a/src/typings/management/updatePayoutSettingsRequest.ts b/src/typings/management/updatePayoutSettingsRequest.ts new file mode 100644 index 0000000..164ee5c --- /dev/null +++ b/src/typings/management/updatePayoutSettingsRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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**. + */ + 'enabled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return UpdatePayoutSettingsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts index 9ea1780..2711e6e 100644 --- a/src/typings/management/webhook.ts +++ b/src/typings/management/webhook.ts @@ -25,6 +25,10 @@ export class Webhook { */ 'acceptsUntrustedRootCertificate'?: boolean; /** + * Reference to the account the webook is set on. + */ + 'accountReference'?: string; + /** * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. */ 'active': boolean; @@ -74,7 +78,7 @@ export class Webhook { */ 'populateSoapActionHeader'?: boolean; /** - * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **SSL** * **SSLv3** * **TLS** * **TLSv1** * **TLSv1.1** 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.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. */ 'sslVersion'?: Webhook.SslVersionEnum; /** @@ -113,6 +117,11 @@ export class Webhook { "baseName": "acceptsUntrustedRootCertificate", "type": "boolean" }, + { + "name": "accountReference", + "baseName": "accountReference", + "type": "string" + }, { "name": "active", "baseName": "active", diff --git a/src/typings/payouts/accountInfo.ts b/src/typings/payouts/accountInfo.ts new file mode 100644 index 0000000..5bc957b --- /dev/null +++ b/src/typings/payouts/accountInfo.ts @@ -0,0 +1,232 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export 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 + */ + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; + /** + * Date when the shopper\'s account was last changed. + */ + 'accountChangeDate'?: Date; + /** + * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; + /** + * Date when the shopper\'s account was created. + */ + 'accountCreationDate'?: Date; + /** + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + */ + 'accountType'?: AccountInfo.AccountTypeEnum; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + 'addCardAttemptsDay'?: number; + /** + * Date the selected delivery address was first used. + */ + 'deliveryAddressUsageDate'?: Date; + /** + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + /** + * Shopper\'s home phone number (including the country code). + */ + 'homePhone'?: string; + /** + * Shopper\'s mobile phone number (including the country code). + */ + 'mobilePhone'?: string; + /** + * Date when the shopper last changed their password. + */ + 'passwordChangeDate'?: Date; + /** + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + 'pastTransactionsDay'?: number; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + 'pastTransactionsYear'?: number; + /** + * Date this payment method was added to the shopper\'s account. + */ + 'paymentAccountAge'?: Date; + /** + * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; + /** + * Number of successful purchases in the last six months. + */ + 'purchasesLast6Months'?: number; + /** + * Whether suspicious activity was recorded on this account. + */ + 'suspiciousActivity'?: boolean; + /** + * Shopper\'s work phone number (including the country code). + */ + 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } +} + +export namespace AccountInfo { + export enum AccountAgeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountChangeIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountTypeEnum { + NotApplicable = 'notApplicable', + Credit = 'credit', + Debit = 'debit' + } + export enum DeliveryAddressUsageIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PasswordChangeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PaymentAccountIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } +} diff --git a/src/typings/payouts/acctInfo.ts b/src/typings/payouts/acctInfo.ts new file mode 100644 index 0000000..82a9271 --- /dev/null +++ b/src/typings/payouts/acctInfo.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export 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 + */ + 'chAccAgeInd'?: AcctInfo.ChAccAgeIndEnum; + /** + * 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** + */ + 'chAccChange'?: string; + /** + * 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 + */ + 'chAccChangeInd'?: AcctInfo.ChAccChangeIndEnum; + /** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + */ + 'chAccPwChange'?: string; + /** + * 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 + */ + 'chAccPwChangeInd'?: AcctInfo.ChAccPwChangeIndEnum; + /** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'chAccString'?: string; + /** + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + */ + 'nbPurchaseAccount'?: string; + /** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'paymentAccAge'?: string; + /** + * 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 + */ + 'paymentAccInd'?: AcctInfo.PaymentAccIndEnum; + /** + * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + */ + 'provisionAttemptsDay'?: string; + /** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'shipAddressUsage'?: string; + /** + * 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 + */ + 'shipAddressUsageInd'?: AcctInfo.ShipAddressUsageIndEnum; + /** + * 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 + */ + 'shipNameIndicator'?: AcctInfo.ShipNameIndicatorEnum; + /** + * 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 + */ + 'suspiciousAccActivity'?: AcctInfo.SuspiciousAccActivityEnum; + /** + * 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. + */ + 'txnActivityDay'?: string; + /** + * 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. + */ + 'txnActivityYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chAccAgeInd", + "baseName": "chAccAgeInd", + "type": "AcctInfo.ChAccAgeIndEnum" + }, + { + "name": "chAccChange", + "baseName": "chAccChange", + "type": "string" + }, + { + "name": "chAccChangeInd", + "baseName": "chAccChangeInd", + "type": "AcctInfo.ChAccChangeIndEnum" + }, + { + "name": "chAccPwChange", + "baseName": "chAccPwChange", + "type": "string" + }, + { + "name": "chAccPwChangeInd", + "baseName": "chAccPwChangeInd", + "type": "AcctInfo.ChAccPwChangeIndEnum" + }, + { + "name": "chAccString", + "baseName": "chAccString", + "type": "string" + }, + { + "name": "nbPurchaseAccount", + "baseName": "nbPurchaseAccount", + "type": "string" + }, + { + "name": "paymentAccAge", + "baseName": "paymentAccAge", + "type": "string" + }, + { + "name": "paymentAccInd", + "baseName": "paymentAccInd", + "type": "AcctInfo.PaymentAccIndEnum" + }, + { + "name": "provisionAttemptsDay", + "baseName": "provisionAttemptsDay", + "type": "string" + }, + { + "name": "shipAddressUsage", + "baseName": "shipAddressUsage", + "type": "string" + }, + { + "name": "shipAddressUsageInd", + "baseName": "shipAddressUsageInd", + "type": "AcctInfo.ShipAddressUsageIndEnum" + }, + { + "name": "shipNameIndicator", + "baseName": "shipNameIndicator", + "type": "AcctInfo.ShipNameIndicatorEnum" + }, + { + "name": "suspiciousAccActivity", + "baseName": "suspiciousAccActivity", + "type": "AcctInfo.SuspiciousAccActivityEnum" + }, + { + "name": "txnActivityDay", + "baseName": "txnActivityDay", + "type": "string" + }, + { + "name": "txnActivityYear", + "baseName": "txnActivityYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AcctInfo.attributeTypeMap; + } +} + +export namespace AcctInfo { + export enum ChAccAgeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum ChAccChangeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } + export enum ChAccPwChangeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum PaymentAccIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum ShipAddressUsageIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } + export enum ShipNameIndicatorEnum { + _01 = '01', + _02 = '02' + } + export enum SuspiciousAccActivityEnum { + _01 = '01', + _02 = '02' + } +} diff --git a/src/typings/payouts/additionalData3DSecure.ts b/src/typings/payouts/additionalData3DSecure.ts new file mode 100644 index 0000000..ce337ba --- /dev/null +++ b/src/typings/payouts/additionalData3DSecure.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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 still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + */ + 'allow3DS2'?: string; + /** + * 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. + */ + 'executeThreeD'?: string; + /** + * In case of Secure+, this field must be set to **CUPSecurePlus**. + */ + 'mpiImplementationType'?: string; + /** + * 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** + */ + 'scaExemption'?: string; + /** + * 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: * **1.0.2**: Apply 3D Secure version 1.0.2. * **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. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error. + */ + 'threeDSVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataAirline.ts b/src/typings/payouts/additionalDataAirline.ts new file mode 100644 index 0000000..edcb9bf --- /dev/null +++ b/src/typings/payouts/additionalDataAirline.ts @@ -0,0 +1,273 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataAirline { + /** + * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 + */ + 'airlineAgencyInvoiceNumber'?: string; + /** + * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 + */ + 'airlineAgencyPlanName'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 + */ + 'airlineAirlineCode'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineAirlineDesignatorCode'?: string; + /** + * Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 + */ + 'airlineBoardingFee'?: string; + /** + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 + */ + 'airlineComputerizedReservationSystem'?: string; + /** + * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 + */ + 'airlineCustomerReferenceNumber'?: string; + /** + * Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. * Format: 2-digit code * Example: Passenger ticket = 01 * minLength: 2 * maxLength: 2 + */ + 'airlineDocumentType'?: string; + /** + * 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 * maxLength: 16 + */ + 'airlineFlightDate'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineLegCarrierCode'?: string; + /** + * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegClassOfTravel'?: string; + /** + * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 + */ + 'airlineLegDateOfTravel'?: string; + /** + * Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDepartAirport'?: string; + /** + * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 + */ + 'airlineLegDepartTax'?: string; + /** + * Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDestinationCode'?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 + */ + 'airlineLegFareBaseCode'?: string; + /** + * The flight identifier. * minLength: 1 * maxLength: 5 + */ + 'airlineLegFlightNumber'?: string; + /** + * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegStopOverCode'?: string; + /** + * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + */ + 'airlinePassengerDateOfBirth'?: string; + /** + * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerFirstName'?: string; + /** + * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerLastName'?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 + */ + 'airlinePassengerTelephoneNumber'?: string; + /** + * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 + */ + 'airlinePassengerTravellerType'?: string; + /** + * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 + */ + 'airlinePassengerName': string; + /** + * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 + */ + 'airlineTicketIssueAddress'?: string; + /** + * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 + */ + 'airlineTicketNumber'?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 + */ + 'airlineTravelAgencyCode'?: string; + /** + * The name of the travel agency. * minLength: 1 * maxLength: 25 + */ + 'airlineTravelAgencyName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineDocumentType", + "baseName": "airline.document_type", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataCarRental.ts b/src/typings/payouts/additionalDataCarRental.ts new file mode 100644 index 0000000..7371d12 --- /dev/null +++ b/src/typings/payouts/additionalDataCarRental.ts @@ -0,0 +1,228 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataCarRental { + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalCheckOutDate'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalCustomerServiceTollFreeNumber'?: string; + /** + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 19 + */ + 'carRentalDaysRented'?: string; + /** + * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalFuelCharges'?: string; + /** + * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalInsuranceCharges'?: string; + /** + * The city from which the car is rented. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalLocationCity'?: string; + /** + * The country from which the car is rented. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalLocationCountry'?: string; + /** + * The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalLocationStateProvince'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable. + */ + 'carRentalNoShowIndicator'?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + 'carRentalOneWayDropOffCharges'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRate'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalRateIndicator'?: string; + /** + * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9 + */ + 'carRentalRentalAgreementNumber'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRentalClassId'?: string; + /** + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 + */ + 'carRentalRenterName'?: string; + /** + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalReturnCity'?: string; + /** + * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalReturnCountry'?: string; + /** + * The last date to return the car by. * Date format: `yyyyMMdd` + */ + 'carRentalReturnDate'?: string; + /** + * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 + */ + 'carRentalReturnLocationId'?: string; + /** + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalReturnStateProvince'?: string; + /** + * Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + */ + 'carRentalTaxExemptIndicator'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * 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 + */ + 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataCommon.ts b/src/typings/payouts/additionalDataCommon.ts new file mode 100644 index 0000000..c216297 --- /dev/null +++ b/src/typings/payouts/additionalDataCommon.ts @@ -0,0 +1,153 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataCommon { + /** + * 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. + */ + 'requestedTestErrorResponseCode'?: string; + /** + * 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. + */ + 'authorisationType'?: string; + /** + * 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://support.adyen.com/hc/en-us/requests/new). + */ + 'customRoutingFlag'?: string; + /** + * 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. + */ + 'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum; + /** + * 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. + */ + 'networkTxReference'?: string; + /** + * 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. + */ + 'overwriteBrand'?: string; + /** + * 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. + */ + 'subMerchantCity'?: string; + /** + * 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. + */ + 'subMerchantCountry'?: string; + /** + * 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. + */ + 'subMerchantID'?: string; + /** + * 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. + */ + 'subMerchantName'?: string; + /** + * 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. + */ + 'subMerchantPostalCode'?: string; + /** + * 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. + */ + 'subMerchantState'?: string; + /** + * 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. + */ + 'subMerchantStreet'?: string; + /** + * 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. + */ + 'subMerchantTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "industryUsage", + "baseName": "industryUsage", + "type": "AdditionalDataCommon.IndustryUsageEnum" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "subMerchantCity", + "baseName": "subMerchantCity", + "type": "string" + }, + { + "name": "subMerchantCountry", + "baseName": "subMerchantCountry", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + }, + { + "name": "subMerchantName", + "baseName": "subMerchantName", + "type": "string" + }, + { + "name": "subMerchantPostalCode", + "baseName": "subMerchantPostalCode", + "type": "string" + }, + { + "name": "subMerchantState", + "baseName": "subMerchantState", + "type": "string" + }, + { + "name": "subMerchantStreet", + "baseName": "subMerchantStreet", + "type": "string" + }, + { + "name": "subMerchantTaxId", + "baseName": "subMerchantTaxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } +} + +export namespace AdditionalDataCommon { + export enum IndustryUsageEnum { + NoShow = 'NoShow', + DelayedCharge = 'DelayedCharge' + } +} diff --git a/src/typings/payouts/additionalDataLevel23.ts b/src/typings/payouts/additionalDataLevel23.ts new file mode 100644 index 0000000..80bb517 --- /dev/null +++ b/src/typings/payouts/additionalDataLevel23.ts @@ -0,0 +1,174 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Destination country code. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationCountryCode'?: string; + /** + * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. + */ + 'enhancedSchemeDataDestinationPostalCode'?: string; + /** + * Destination state or province code. Encoding: ASCII.Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationStateProvinceCode'?: string; + /** + * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataDutyAmount'?: string; + /** + * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataFreightAmount'?: string; + /** + * Item commodity code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string; + /** + * Item description. Encoding: ASCII. Max length: 26 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDescription'?: string; + /** + * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: string; + /** + * Product code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string; + /** + * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrQuantity'?: string; + /** + * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: string; + /** + * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: string; + /** + * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. + */ + 'enhancedSchemeDataOrderDate'?: string; + /** + * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. + */ + 'enhancedSchemeDataShipFromPostalCode'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataLodging.ts b/src/typings/payouts/additionalDataLodging.ts new file mode 100644 index 0000000..ee2352c --- /dev/null +++ b/src/typings/payouts/additionalDataLodging.ts @@ -0,0 +1,174 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataLodging { + /** + * The arrival date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckInDate'?: string; + /** + * The departure date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckOutDate'?: string; + /** + * The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingCustomerServiceTollFreeNumber'?: string; + /** + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1 + */ + 'lodgingFireSafetyActIndicator'?: string; + /** + * The folio cash advances. * Format: Numeric * maxLength: 12 + */ + 'lodgingFolioCashAdvances'?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25 + */ + 'lodgingFolioNumber'?: string; + /** + * Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingFoodBeverageCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1 + */ + 'lodgingNoShowIndicator'?: string; + /** + * Prepaid expenses for the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingPrepaidExpenses'?: string; + /** + * Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingPropertyPhoneNumber'?: string; + /** + * Total number of nights the room will be rented. * Format: Numeric * maxLength: 4 + */ + 'lodgingRoom1NumberOfNights'?: string; + /** + * The rate of the room. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Rate'?: string; + /** + * The total amount of tax to be paid. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Tax'?: string; + /** + * Total room tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalRoomTax'?: string; + /** + * Total tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalTax'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataOpenInvoice.ts b/src/typings/payouts/additionalDataOpenInvoice.ts new file mode 100644 index 0000000..1d0a766 --- /dev/null +++ b/src/typings/payouts/additionalDataOpenInvoice.ts @@ -0,0 +1,165 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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. + */ + 'openinvoicedataMerchantData'?: string; + /** + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + */ + 'openinvoicedataNumberOfLines'?: string; + /** + * The three-character ISO currency code. + */ + 'openinvoicedataLineItemNrCurrencyCode'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'openinvoicedataLineItemNrDescription'?: string; + /** + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + */ + 'openinvoicedataLineItemNrItemAmount'?: string; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + 'openinvoicedataLineItemNrItemId'?: string; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + 'openinvoicedataLineItemNrItemVatAmount'?: string; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + */ + 'openinvoicedataLineItemNrItemVatPercentage'?: string; + /** + * The number of units purchased of a specific product. + */ + 'openinvoicedataLineItemNrNumberOfItems'?: string; + /** + * Name of the shipping company handling the the return shipment. + */ + 'openinvoicedataLineItemNrReturnShippingCompany'?: string; + /** + * The tracking number for the return of the shipment. + */ + 'openinvoicedataLineItemNrReturnTrackingNumber'?: string; + /** + * URI where the customer can track the return of their shipment. + */ + 'openinvoicedataLineItemNrReturnTrackingUri'?: string; + /** + * Name of the shipping company handling the delivery. + */ + 'openinvoicedataLineItemNrShippingCompany'?: string; + /** + * Shipping method. + */ + 'openinvoicedataLineItemNrShippingMethod'?: string; + /** + * The tracking number for the shipment. + */ + 'openinvoicedataLineItemNrTrackingNumber'?: string; + /** + * URI where the customer can track their shipment. + */ + 'openinvoicedataLineItemNrTrackingUri'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedataLine[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedataLine[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedataLine[itemNr].itemAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedataLine[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedataLine[itemNr].itemVatAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedataLine[itemNr].numberOfItems", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnShippingCompany", + "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingUri", + "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingCompany", + "baseName": "openinvoicedataLine[itemNr].shippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingMethod", + "baseName": "openinvoicedataLine[itemNr].shippingMethod", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].trackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingUri", + "baseName": "openinvoicedataLine[itemNr].trackingUri", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataOpi.ts b/src/typings/payouts/additionalDataOpi.ts new file mode 100644 index 0000000..69af200 --- /dev/null +++ b/src/typings/payouts/additionalDataOpi.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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). + */ + 'opiIncludeTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiIncludeTransToken", + "baseName": "opi.includeTransToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpi.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataPayout.ts b/src/typings/payouts/additionalDataPayout.ts new file mode 100644 index 0000000..24d4b5f --- /dev/null +++ b/src/typings/payouts/additionalDataPayout.ts @@ -0,0 +1,88 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataPayout { + 'fundingNetwork'?: string; + 'fundingSource'?: AdditionalDataPayout.FundingSourceEnum; + 'fundingTransactionId'?: string; + 'payoutAccountCode'?: string; + 'payoutAccountHolderCode'?: string; + 'payoutMarketPayUser'?: string; + 'processOver'?: AdditionalDataPayout.ProcessOverEnum; + 'verifyOver'?: string; + 'walletIdentifier'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingNetwork", + "baseName": "fundingNetwork", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "AdditionalDataPayout.FundingSourceEnum" + }, + { + "name": "fundingTransactionId", + "baseName": "fundingTransactionId", + "type": "string" + }, + { + "name": "payoutAccountCode", + "baseName": "payoutAccountCode", + "type": "string" + }, + { + "name": "payoutAccountHolderCode", + "baseName": "payoutAccountHolderCode", + "type": "string" + }, + { + "name": "payoutMarketPayUser", + "baseName": "payoutMarketPayUser", + "type": "string" + }, + { + "name": "processOver", + "baseName": "processOver", + "type": "AdditionalDataPayout.ProcessOverEnum" + }, + { + "name": "verifyOver", + "baseName": "verifyOver", + "type": "string" + }, + { + "name": "walletIdentifier", + "baseName": "walletIdentifier", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataPayout.attributeTypeMap; + } +} + +export namespace AdditionalDataPayout { + export enum FundingSourceEnum { + Credit = 'CREDIT', + Debit = 'DEBIT', + Prepaid = 'PREPAID', + DepositAccount = 'DEPOSIT_ACCOUNT' + } + export enum ProcessOverEnum { + McP2P = 'MC_P2P', + VisaOct = 'Visa_OCT', + UnlinkedRefund = 'UnlinkedRefund' + } +} diff --git a/src/typings/payouts/additionalDataRatepay.ts b/src/typings/payouts/additionalDataRatepay.ts new file mode 100644 index 0000000..99e5f83 --- /dev/null +++ b/src/typings/payouts/additionalDataRatepay.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + 'ratepayInstallmentAmount'?: string; + /** + * Interest rate of this installment. + */ + 'ratepayInterestRate'?: string; + /** + * Amount of the last installment. + */ + 'ratepayLastInstallmentAmount'?: string; + /** + * Calendar day of the first payment. + */ + 'ratepayPaymentFirstday'?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + 'ratepaydataDeliveryDate'?: string; + /** + * Date by which the customer must settle the payment. + */ + 'ratepaydataDueDate'?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + 'ratepaydataInvoiceDate'?: string; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + 'ratepaydataInvoiceId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "string" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "string" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "string" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataRetry.ts b/src/typings/payouts/additionalDataRetry.ts new file mode 100644 index 0000000..80a8143 --- /dev/null +++ b/src/typings/payouts/additionalDataRetry.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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. + */ + 'retryChainAttemptNumber'?: string; + /** + * 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. + */ + 'retryOrderAttemptNumber'?: string; + /** + * 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. + */ + 'retrySkipRetry'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "string" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "string" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataRisk.ts b/src/typings/payouts/additionalDataRisk.ts new file mode 100644 index 0000000..8ab476b --- /dev/null +++ b/src/typings/payouts/additionalDataRisk.ts @@ -0,0 +1,210 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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). + */ + 'riskdataCustomFieldName'?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataBasketItemItemNrAmountPerItem'?: string; + /** + * Brand of the item. + */ + 'riskdataBasketItemItemNrBrand'?: string; + /** + * Category of the item. + */ + 'riskdataBasketItemItemNrCategory'?: string; + /** + * Color of the item. + */ + 'riskdataBasketItemItemNrColor'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataBasketItemItemNrCurrency'?: string; + /** + * ID of the item. + */ + 'riskdataBasketItemItemNrItemID'?: string; + /** + * Manufacturer of the item. + */ + 'riskdataBasketItemItemNrManufacturer'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'riskdataBasketItemItemNrProductTitle'?: string; + /** + * Quantity of the item purchased. + */ + 'riskdataBasketItemItemNrQuantity'?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + 'riskdataBasketItemItemNrReceiverEmail'?: string; + /** + * Size of the item. + */ + 'riskdataBasketItemItemNrSize'?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + 'riskdataBasketItemItemNrSku'?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + 'riskdataBasketItemItemNrUpc'?: string; + /** + * Code of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionCode'?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string; + /** + * 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. + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string; + /** + * Name of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionName'?: string; + /** + * 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). + */ + 'riskdataRiskProfileReference'?: string; + /** + * 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. + */ + 'riskdataSkipRisk'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataCustomFieldName", + "baseName": "riskdata.[customFieldName]", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataRiskProfileReference", + "baseName": "riskdata.riskProfileReference", + "type": "string" + }, + { + "name": "riskdataSkipRisk", + "baseName": "riskdata.skipRisk", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataRiskStandalone.ts b/src/typings/payouts/additionalDataRiskStandalone.ts new file mode 100644 index 0000000..2650796 --- /dev/null +++ b/src/typings/payouts/additionalDataRiskStandalone.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRiskStandalone { + /** + * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. + */ + 'payPalCountryCode'?: string; + /** + * Shopper\'s email. + */ + 'payPalEmailId'?: string; + /** + * Shopper\'s first name. + */ + 'payPalFirstName'?: string; + /** + * Shopper\'s last name. + */ + 'payPalLastName'?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + 'payPalPayerId'?: string; + /** + * Shopper\'s phone number. + */ + 'payPalPhone'?: string; + /** + * 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. + */ + 'payPalProtectionEligibility'?: string; + /** + * Unique transaction ID of the payment. + */ + 'payPalTransactionId'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * 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/risk-management/standalone-risk#tokenised-pan-request). + */ + 'bin'?: string; + /** + * Raw CVC result received from the acquirer, where available. Example: 1 + */ + 'cvcResultRaw'?: string; + /** + * Unique identifier or token for the shopper\'s card details. + */ + 'riskToken'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * Required for PayPal payments only. The only supported value is: **paypal**. + */ + 'tokenDataType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "riskToken", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataSubMerchant.ts b/src/typings/payouts/additionalDataSubMerchant.ts new file mode 100644 index 0000000..6037771 --- /dev/null +++ b/src/typings/payouts/additionalDataSubMerchant.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataSubMerchant { + /** + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + */ + 'subMerchantNumberOfSubSellers'?: string; + /** + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters + */ + 'subMerchantSubSellerSubSellerNrCity'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrCountry'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrId'?: string; + /** + * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + */ + 'subMerchantSubSellerSubSellerNrMcc'?: string; + /** + * 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. * Format: Alphanumeric * Maximum length: 22 characters + */ + 'subMerchantSubSellerSubSellerNrName'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrPostalCode'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrState'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrStreet'?: string; + /** + * 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 + */ + 'subMerchantSubSellerSubSellerNrTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "subMerchantNumberOfSubSellers", + "baseName": "subMerchant.numberOfSubSellers", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCity", + "baseName": "subMerchant.subSeller[subSellerNr].city", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCountry", + "baseName": "subMerchant.subSeller[subSellerNr].country", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrId", + "baseName": "subMerchant.subSeller[subSellerNr].id", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrMcc", + "baseName": "subMerchant.subSeller[subSellerNr].mcc", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrName", + "baseName": "subMerchant.subSeller[subSellerNr].name", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrPostalCode", + "baseName": "subMerchant.subSeller[subSellerNr].postalCode", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrState", + "baseName": "subMerchant.subSeller[subSellerNr].state", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrStreet", + "baseName": "subMerchant.subSeller[subSellerNr].street", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrTaxId", + "baseName": "subMerchant.subSeller[subSellerNr].taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataSubMerchant.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataTemporaryServices.ts b/src/typings/payouts/additionalDataTemporaryServices.ts new file mode 100644 index 0000000..b5c3824 --- /dev/null +++ b/src/typings/payouts/additionalDataTemporaryServices.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataEmployeeName'?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataJobDescription'?: string; + /** + * Amount paid per regular hours worked, minor units. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursRate'?: string; + /** + * Amount of time worked during a normal operation for the task or job. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursWorked'?: string; + /** + * Name of the individual requesting temporary services. * maxLength: 40 + */ + 'enhancedSchemeDataRequestName'?: string; + /** + * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempStartDate'?: string; + /** + * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempWeekEnding'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/additionalDataWallets.ts b/src/typings/payouts/additionalDataWallets.ts new file mode 100644 index 0000000..672b9cb --- /dev/null +++ b/src/typings/payouts/additionalDataWallets.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + 'androidpayToken'?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + 'masterpassTransactionId'?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + 'paymentToken'?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + 'paywithgoogleToken'?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + 'samsungpayToken'?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/address.ts b/src/typings/payouts/address.ts new file mode 100644 index 0000000..41b5bf0 --- /dev/null +++ b/src/typings/payouts/address.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + /** + * The name of the city. Maximum length: 3000 characters. + */ + 'city': string; + /** + * 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`. + */ + 'country': string; + /** + * The number or name of the house. Maximum length: 3000 characters. + */ + 'houseNumberOrName': string; + /** + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; + /** + * 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. + */ + 'stateOrProvince'?: string; + /** + * 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`. + */ + 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/amount.ts b/src/typings/payouts/amount.ts new file mode 100644 index 0000000..4ef042f --- /dev/null +++ b/src/typings/payouts/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/applicationInfo.ts b/src/typings/payouts/applicationInfo.ts new file mode 100644 index 0000000..11bb365 --- /dev/null +++ b/src/typings/payouts/applicationInfo.ts @@ -0,0 +1,61 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CommonField } from './commonField'; +import { ExternalPlatform } from './externalPlatform'; +import { MerchantDevice } from './merchantDevice'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; + +export class ApplicationInfo { + 'adyenLibrary'?: CommonField; + 'adyenPaymentSource'?: CommonField; + 'externalPlatform'?: ExternalPlatform; + 'merchantApplication'?: CommonField; + 'merchantDevice'?: MerchantDevice; + 'shopperInteractionDevice'?: ShopperInteractionDevice; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "adyenLibrary", + "baseName": "adyenLibrary", + "type": "CommonField" + }, + { + "name": "adyenPaymentSource", + "baseName": "adyenPaymentSource", + "type": "CommonField" + }, + { + "name": "externalPlatform", + "baseName": "externalPlatform", + "type": "ExternalPlatform" + }, + { + "name": "merchantApplication", + "baseName": "merchantApplication", + "type": "CommonField" + }, + { + "name": "merchantDevice", + "baseName": "merchantDevice", + "type": "MerchantDevice" + }, + { + "name": "shopperInteractionDevice", + "baseName": "shopperInteractionDevice", + "type": "ShopperInteractionDevice" + } ]; + + static getAttributeTypeMap() { + return ApplicationInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/bankAccount.ts b/src/typings/payouts/bankAccount.ts new file mode 100644 index 0000000..e9f6e28 --- /dev/null +++ b/src/typings/payouts/bankAccount.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BankAccount { + /** + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; + /** + * The bank city. + */ + 'bankCity'?: string; + /** + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; + /** + * The name of the bank. + */ + 'bankName'?: string; + /** + * 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. + */ + 'bic'?: string; + /** + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; + /** + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; + /** + * 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\'. + */ + 'ownerName'?: string; + /** + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/browserInfo.ts b/src/typings/payouts/browserInfo.ts new file mode 100644 index 0000000..a21b855 --- /dev/null +++ b/src/typings/payouts/browserInfo.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BrowserInfo { + /** + * The accept header value of the shopper\'s browser. + */ + 'acceptHeader': string; + /** + * 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. + */ + 'colorDepth': number; + /** + * Boolean value indicating if the shopper\'s browser is able to execute Java. + */ + 'javaEnabled': boolean; + /** + * 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. + */ + 'javaScriptEnabled'?: boolean; + /** + * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). + */ + 'language': string; + /** + * The total height of the shopper\'s device screen in pixels. + */ + 'screenHeight': number; + /** + * The total width of the shopper\'s device screen in pixels. + */ + 'screenWidth': number; + /** + * Time difference between UTC time and the shopper\'s browser local time, in minutes. + */ + 'timeZoneOffset': number; + /** + * The user agent value of the shopper\'s browser. + */ + 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/card.ts b/src/typings/payouts/card.ts new file mode 100644 index 0000000..4faa202 --- /dev/null +++ b/src/typings/payouts/card.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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. + */ + 'cvc'?: string; + /** + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; + /** + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; + /** + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; + /** + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; + /** + * 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. + */ + 'number': string; + /** + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; + /** + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/commonField.ts b/src/typings/payouts/commonField.ts new file mode 100644 index 0000000..618f18e --- /dev/null +++ b/src/typings/payouts/commonField.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CommonField { + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CommonField.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/deviceRenderOptions.ts b/src/typings/payouts/deviceRenderOptions.ts new file mode 100644 index 0000000..93159f0 --- /dev/null +++ b/src/typings/payouts/deviceRenderOptions.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DeviceRenderOptions { + /** + * Supported SDK interface types. Allowed values: * native * html * both + */ + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; + /** + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + */ + 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } +} + +export namespace DeviceRenderOptions { + export enum SdkInterfaceEnum { + Native = 'native', + Html = 'html', + Both = 'both' + } + export enum SdkUiTypeEnum { + MultiSelect = 'multiSelect', + OtherHtml = 'otherHtml', + OutOfBand = 'outOfBand', + SingleSelect = 'singleSelect', + Text = 'text' + } +} diff --git a/src/typings/payouts/externalPlatform.ts b/src/typings/payouts/externalPlatform.ts new file mode 100644 index 0000000..f877b6d --- /dev/null +++ b/src/typings/payouts/externalPlatform.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ExternalPlatform { + /** + * External platform integrator. + */ + 'integrator'?: string; + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "integrator", + "baseName": "integrator", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalPlatform.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/forexQuote.ts b/src/typings/payouts/forexQuote.ts new file mode 100644 index 0000000..4a6646b --- /dev/null +++ b/src/typings/payouts/forexQuote.ts @@ -0,0 +1,118 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class ForexQuote { + /** + * The account name. + */ + 'account'?: string; + /** + * The account type. + */ + 'accountType'?: string; + 'baseAmount'?: Amount; + /** + * The base points. + */ + 'basePoints': number; + 'buy'?: Amount; + 'interbank'?: Amount; + /** + * The reference assigned to the forex quote request. + */ + 'reference'?: string; + 'sell'?: Amount; + /** + * The signature to validate the integrity. + */ + 'signature'?: string; + /** + * The source of the forex quote. + */ + 'source'?: string; + /** + * The type of forex. + */ + 'type'?: string; + /** + * The date until which the forex quote is valid. + */ + 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fraudCheckResult.ts b/src/typings/payouts/fraudCheckResult.ts new file mode 100644 index 0000000..756b1f3 --- /dev/null +++ b/src/typings/payouts/fraudCheckResult.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + 'accountScore': number; + /** + * The ID of the risk check. + */ + 'checkId': number; + /** + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fraudResult.ts b/src/typings/payouts/fraudResult.ts new file mode 100644 index 0000000..00d3b44 --- /dev/null +++ b/src/typings/payouts/fraudResult.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FraudCheckResult } from './fraudCheckResult'; + +export class FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; + /** + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fundSource.ts b/src/typings/payouts/fundSource.ts new file mode 100644 index 0000000..0612f0b --- /dev/null +++ b/src/typings/payouts/fundSource.ts @@ -0,0 +1,69 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; + +export class FundSource { + /** + * A map of name-value pairs for passing additional or industry-specific data. + */ + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * Email address of the person. + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * Phone number of the person + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FundSource.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/installments.ts b/src/typings/payouts/installments.ts new file mode 100644 index 0000000..cdbda01 --- /dev/null +++ b/src/typings/payouts/installments.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Installments { + /** + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving** + */ + 'plan'?: Installments.PlanEnum; + /** + * Defines the number of installments. Its value needs to be greater than zero. 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. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "plan", + "baseName": "plan", + "type": "Installments.PlanEnum" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } +} + +export namespace Installments { + export enum PlanEnum { + Regular = 'regular', + Revolving = 'revolving' + } +} diff --git a/src/typings/payouts/mandate.ts b/src/typings/payouts/mandate.ts new file mode 100644 index 0000000..0ea3d49 --- /dev/null +++ b/src/typings/payouts/mandate.ts @@ -0,0 +1,114 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Mandate { + /** + * The billing amount (in minor units) of the recurring transactions. + */ + 'amount': string; + /** + * 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`. + */ + 'amountRule'?: Mandate.AmountRuleEnum; + /** + * 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. + */ + 'billingAttemptsRule'?: Mandate.BillingAttemptsRuleEnum; + /** + * 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`. + */ + 'billingDay'?: string; + /** + * End date of the billing plan, in YYYY-MM-DD format. + */ + 'endsAt': string; + /** + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + */ + 'frequency': Mandate.FrequencyEnum; + /** + * The message shown by UPI to the shopper on the approval screen. + */ + 'remarks'?: string; + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + */ + 'startsAt'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "string" + }, + { + "name": "amountRule", + "baseName": "amountRule", + "type": "Mandate.AmountRuleEnum" + }, + { + "name": "billingAttemptsRule", + "baseName": "billingAttemptsRule", + "type": "Mandate.BillingAttemptsRuleEnum" + }, + { + "name": "billingDay", + "baseName": "billingDay", + "type": "string" + }, + { + "name": "endsAt", + "baseName": "endsAt", + "type": "string" + }, + { + "name": "frequency", + "baseName": "frequency", + "type": "Mandate.FrequencyEnum" + }, + { + "name": "remarks", + "baseName": "remarks", + "type": "string" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Mandate.attributeTypeMap; + } +} + +export namespace Mandate { + export enum AmountRuleEnum { + Max = 'max', + Exact = 'exact' + } + export enum BillingAttemptsRuleEnum { + On = 'on', + Before = 'before', + After = 'after' + } + export enum FrequencyEnum { + Adhoc = 'adhoc', + Daily = 'daily', + Weekly = 'weekly', + BiWeekly = 'biWeekly', + Monthly = 'monthly', + Quarterly = 'quarterly', + HalfYearly = 'halfYearly', + Yearly = 'yearly' + } +} diff --git a/src/typings/payouts/merchantDevice.ts b/src/typings/payouts/merchantDevice.ts new file mode 100644 index 0000000..704a668 --- /dev/null +++ b/src/typings/payouts/merchantDevice.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MerchantDevice { + /** + * Operating system running on the merchant device. + */ + 'os'?: string; + /** + * Version of the operating system on the merchant device. + */ + 'osVersion'?: string; + /** + * Merchant device reference. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/merchantRiskIndicator.ts b/src/typings/payouts/merchantRiskIndicator.ts new file mode 100644 index 0000000..d2dc361 --- /dev/null +++ b/src/typings/payouts/merchantRiskIndicator.ts @@ -0,0 +1,162 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class MerchantRiskIndicator { + /** + * Whether the chosen delivery address is identical to the billing address. + */ + 'addressMatch'?: boolean; + /** + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + */ + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + /** + * The delivery email address (for digital goods). + */ + 'deliveryEmail'?: string; + /** + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + */ + 'deliveryEmailAddress'?: string; + /** + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + */ + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount; + /** + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + */ + 'giftCardCount'?: number; + /** + * 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. + */ + 'giftCardCurr'?: string; + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + 'preOrderDate'?: Date; + /** + * Indicator for whether this transaction is for pre-ordering a product. + */ + 'preOrderPurchase'?: boolean; + /** + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + */ + 'preOrderPurchaseInd'?: string; + /** + * Indicator for whether the shopper has already purchased the same items in the past. + */ + 'reorderItems'?: boolean; + /** + * Indicates whether the cardholder is reordering previously purchased merchandise. + */ + 'reorderItemsInd'?: string; + /** + * Indicates shipping method chosen for the transaction. + */ + 'shipIndicator'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryEmailAddress", + "baseName": "deliveryEmailAddress", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "giftCardCurr", + "baseName": "giftCardCurr", + "type": "string" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "preOrderPurchaseInd", + "baseName": "preOrderPurchaseInd", + "type": "string" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + }, + { + "name": "reorderItemsInd", + "baseName": "reorderItemsInd", + "type": "string" + }, + { + "name": "shipIndicator", + "baseName": "shipIndicator", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } +} + +export namespace MerchantRiskIndicator { + export enum DeliveryAddressIndicatorEnum { + ShipToBillingAddress = 'shipToBillingAddress', + ShipToVerifiedAddress = 'shipToVerifiedAddress', + ShipToNewAddress = 'shipToNewAddress', + ShipToStore = 'shipToStore', + DigitalGoods = 'digitalGoods', + GoodsNotShipped = 'goodsNotShipped', + Other = 'other' + } + export enum DeliveryTimeframeEnum { + ElectronicDelivery = 'electronicDelivery', + SameDayShipping = 'sameDayShipping', + OvernightShipping = 'overnightShipping', + TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' + } +} diff --git a/src/typings/payouts/models.ts b/src/typings/payouts/models.ts new file mode 100644 index 0000000..5a17453 --- /dev/null +++ b/src/typings/payouts/models.ts @@ -0,0 +1,385 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './accountInfo'; +export * from './acctInfo'; +export * from './additionalData3DSecure'; +export * from './additionalDataAirline'; +export * from './additionalDataCarRental'; +export * from './additionalDataCommon'; +export * from './additionalDataLevel23'; +export * from './additionalDataLodging'; +export * from './additionalDataOpenInvoice'; +export * from './additionalDataOpi'; +export * from './additionalDataPayout'; +export * from './additionalDataRatepay'; +export * from './additionalDataRetry'; +export * from './additionalDataRisk'; +export * from './additionalDataRiskStandalone'; +export * from './additionalDataSubMerchant'; +export * from './additionalDataTemporaryServices'; +export * from './additionalDataWallets'; +export * from './address'; +export * from './amount'; +export * from './applicationInfo'; +export * from './bankAccount'; +export * from './browserInfo'; +export * from './card'; +export * from './commonField'; +export * from './deviceRenderOptions'; +export * from './externalPlatform'; +export * from './forexQuote'; +export * from './fraudCheckResult'; +export * from './fraudResult'; +export * from './fundSource'; +export * from './installments'; +export * from './mandate'; +export * from './merchantDevice'; +export * from './merchantRiskIndicator'; +export * from './modifyRequest'; +export * from './modifyResponse'; +export * from './name'; +export * from './payoutRequest'; +export * from './payoutResponse'; +export * from './phone'; +export * from './recurring'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './sDKEphemPubKey'; +export * from './serviceError'; +export * from './shopperInteractionDevice'; +export * from './split'; +export * from './splitAmount'; +export * from './storeDetailAndSubmitRequest'; +export * from './storeDetailAndSubmitResponse'; +export * from './storeDetailRequest'; +export * from './storeDetailResponse'; +export * from './submitRequest'; +export * from './submitResponse'; +export * from './threeDS2RequestData'; +export * from './threeDSRequestorAuthenticationInfo'; +export * from './threeDSRequestorPriorAuthenticationInfo'; +export * from './threeDSecureData'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataPayout } from './additionalDataPayout'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BankAccount } from './bankAccount'; +import { BrowserInfo } from './browserInfo'; +import { Card } from './card'; +import { CommonField } from './commonField'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { ExternalPlatform } from './externalPlatform'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { FundSource } from './fundSource'; +import { Installments } from './installments'; +import { Mandate } from './mandate'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { ModifyRequest } from './modifyRequest'; +import { ModifyResponse } from './modifyResponse'; +import { Name } from './name'; +import { PayoutRequest } from './payoutRequest'; +import { PayoutResponse } from './payoutResponse'; +import { Phone } from './phone'; +import { Recurring } from './recurring'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ServiceError } from './serviceError'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { StoreDetailAndSubmitRequest } from './storeDetailAndSubmitRequest'; +import { StoreDetailAndSubmitResponse } from './storeDetailAndSubmitResponse'; +import { StoreDetailRequest } from './storeDetailRequest'; +import { StoreDetailResponse } from './storeDetailResponse'; +import { SubmitRequest } from './submitRequest'; +import { SubmitResponse } from './submitResponse'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "AdditionalDataPayout.FundingSourceEnum": AdditionalDataPayout.FundingSourceEnum, + "AdditionalDataPayout.ProcessOverEnum": AdditionalDataPayout.ProcessOverEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "PayoutRequest.ShopperInteractionEnum": PayoutRequest.ShopperInteractionEnum, + "PayoutResponse.ResultCodeEnum": PayoutResponse.ResultCodeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "Split.TypeEnum": Split.TypeEnum, + "StoreDetailAndSubmitRequest.EntityTypeEnum": StoreDetailAndSubmitRequest.EntityTypeEnum, + "StoreDetailRequest.EntityTypeEnum": StoreDetailRequest.EntityTypeEnum, + "SubmitRequest.EntityTypeEnum": SubmitRequest.EntityTypeEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataPayout": AdditionalDataPayout, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "Amount": Amount, + "ApplicationInfo": ApplicationInfo, + "BankAccount": BankAccount, + "BrowserInfo": BrowserInfo, + "Card": Card, + "CommonField": CommonField, + "DeviceRenderOptions": DeviceRenderOptions, + "ExternalPlatform": ExternalPlatform, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "FundSource": FundSource, + "Installments": Installments, + "Mandate": Mandate, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "ModifyRequest": ModifyRequest, + "ModifyResponse": ModifyResponse, + "Name": Name, + "PayoutRequest": PayoutRequest, + "PayoutResponse": PayoutResponse, + "Phone": Phone, + "Recurring": Recurring, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "SDKEphemPubKey": SDKEphemPubKey, + "ServiceError": ServiceError, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, + "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, + "StoreDetailRequest": StoreDetailRequest, + "StoreDetailResponse": StoreDetailResponse, + "SubmitRequest": SubmitRequest, + "SubmitResponse": SubmitResponse, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/payouts/modifyRequest.ts b/src/typings/payouts/modifyRequest.ts new file mode 100644 index 0000000..7421bbe --- /dev/null +++ b/src/typings/payouts/modifyRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModifyRequest { + /** + * This field contains additional data, which may be required for a particular payout request. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The PSP reference received in the `/submitThirdParty` response. + */ + 'originalReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/modifyResponse.ts b/src/typings/payouts/modifyResponse.ts new file mode 100644 index 0000000..b7f1a3e --- /dev/null +++ b/src/typings/payouts/modifyResponse.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModifyResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * Adyen\'s 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + */ + 'pspReference': string; + /** + * 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. + */ + 'response': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/name.ts b/src/typings/payouts/name.ts new file mode 100644 index 0000000..e0ca497 --- /dev/null +++ b/src/typings/payouts/name.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name { + /** + * The first name. + */ + 'firstName': string; + /** + * The last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/payoutRequest.ts b/src/typings/payouts/payoutRequest.ts new file mode 100644 index 0000000..fe70aa9 --- /dev/null +++ b/src/typings/payouts/payoutRequest.ts @@ -0,0 +1,143 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; +import { Card } from './card'; +import { FundSource } from './fundSource'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class PayoutRequest { + 'amount': Amount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'fundSource'?: FundSource; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + '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. + */ + 'reference': string; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + */ + 'shopperEmail'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PayoutRequest.ShopperInteractionEnum; + 'shopperName'?: Name; + /** + * 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. + */ + 'shopperReference'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "fundSource", + "baseName": "fundSource", + "type": "FundSource" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PayoutRequest.ShopperInteractionEnum" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutRequest.attributeTypeMap; + } +} + +export namespace PayoutRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/payouts/payoutResponse.ts b/src/typings/payouts/payoutResponse.ts new file mode 100644 index 0000000..4349ef9 --- /dev/null +++ b/src/typings/payouts/payoutResponse.ts @@ -0,0 +1,132 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; + +export class PayoutResponse { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * 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. + */ + 'authCode'?: string; + 'dccAmount'?: Amount; + /** + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + */ + 'dccSignature'?: string; + 'fraudResult'?: FraudResult; + /** + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + */ + 'issuerUrl'?: string; + /** + * The payment session. + */ + 'md'?: string; + /** + * 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). + */ + 'paRequest'?: string; + /** + * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * 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). + */ + 'refusalReason'?: string; + /** + * 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. * **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. + */ + 'resultCode'?: PayoutResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "dccAmount", + "baseName": "dccAmount", + "type": "Amount" + }, + { + "name": "dccSignature", + "baseName": "dccSignature", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "issuerUrl", + "baseName": "issuerUrl", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "type": "string" + }, + { + "name": "paRequest", + "baseName": "paRequest", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PayoutResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutResponse.attributeTypeMap; + } +} + +export namespace PayoutResponse { + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused', + Success = 'Success' + } +} diff --git a/src/typings/payouts/phone.ts b/src/typings/payouts/phone.ts new file mode 100644 index 0000000..aab0bae --- /dev/null +++ b/src/typings/payouts/phone.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Phone { + /** + * Country code. Length: 1–3 characters. + */ + 'cc'?: string; + /** + * Subscriber number. Maximum length: 15 characters. + */ + 'subscriber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cc", + "baseName": "cc", + "type": "string" + }, + { + "name": "subscriber", + "baseName": "subscriber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Phone.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/recurring.ts b/src/typings/payouts/recurring.ts new file mode 100644 index 0000000..1d80454 --- /dev/null +++ b/src/typings/payouts/recurring.ts @@ -0,0 +1,77 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export 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). + */ + 'contract'?: Recurring.ContractEnum; + /** + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } +} + +export namespace Recurring { + export enum ContractEnum { + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' + } + export enum TokenServiceEnum { + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/payouts/responseAdditionalData3DSecure.ts b/src/typings/payouts/responseAdditionalData3DSecure.ts new file mode 100644 index 0000000..0c4bd7d --- /dev/null +++ b/src/typings/payouts/responseAdditionalData3DSecure.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalData3DSecure { + /** + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + */ + 'cardHolderInfo'?: string; + /** + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. + */ + 'cavvAlgorithm'?: string; + /** + * 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** + */ + 'scaExemptionRequested'?: string; + /** + * Indicates whether a card is enrolled for 3D Secure 2. + */ + 'threeds2CardEnrolled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "scaExemptionRequested", + "baseName": "scaExemptionRequested", + "type": "string" + }, + { + "name": "threeds2CardEnrolled", + "baseName": "threeds2.cardEnrolled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataBillingAddress.ts b/src/typings/payouts/responseAdditionalDataBillingAddress.ts new file mode 100644 index 0000000..d8eeff5 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataBillingAddress.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataBillingAddress { + /** + * The billing address city passed in the payment request. + */ + 'billingAddressCity'?: string; + /** + * The billing address country passed in the payment request. Example: NL + */ + 'billingAddressCountry'?: string; + /** + * The billing address house number or name passed in the payment request. + */ + 'billingAddressHouseNumberOrName'?: string; + /** + * The billing address postal code passed in the payment request. Example: 1011 DJ + */ + 'billingAddressPostalCode'?: string; + /** + * The billing address state or province passed in the payment request. Example: NH + */ + 'billingAddressStateOrProvince'?: string; + /** + * The billing address street passed in the payment request. + */ + 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataCard.ts b/src/typings/payouts/responseAdditionalDataCard.ts new file mode 100644 index 0000000..b61f91e --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataCard.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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 + */ + 'cardBin'?: string; + /** + * The cardholder name passed in the payment request. + */ + 'cardHolderName'?: string; + /** + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + */ + 'cardIssuingBank'?: string; + /** + * The country where the card was issued. Example: US + */ + 'cardIssuingCountry'?: string; + /** + * 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 + */ + 'cardIssuingCurrency'?: string; + /** + * The card payment method used for the transaction. Example: amex + */ + 'cardPaymentMethod'?: string; + /** + * The last four digits of a card number. > Returned only in case of a card payment. + */ + 'cardSummary'?: string; + /** + * 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 + */ + 'issuerBin'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + }, + { + "name": "issuerBin", + "baseName": "issuerBin", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataCommon.ts b/src/typings/payouts/responseAdditionalDataCommon.ts new file mode 100644 index 0000000..5e1e876 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataCommon.ts @@ -0,0 +1,570 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataCommon { + /** + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + */ + 'acquirerAccountCode'?: string; + /** + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + */ + 'acquirerCode'?: string; + /** + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + */ + 'acquirerReference'?: string; + /** + * The Adyen alias of the card. Example: H167852639363479 + */ + 'alias'?: string; + /** + * The type of the card alias. Example: Default + */ + 'aliasType'?: string; + /** + * 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 + */ + 'authCode'?: string; + /** + * Merchant ID known by the acquirer. + */ + 'authorisationMid'?: string; + /** + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountCurrency'?: string; + /** + * 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). + */ + 'authorisedAmountValue'?: string; + /** + * 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). + */ + 'avsResult'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + */ + 'bic'?: string; + /** + * Includes the co-branded card information. + */ + 'coBrandedWith'?: string; + /** + * The result of CVC verification. + */ + 'cvcResult'?: string; + /** + * The raw result of CVC verification. + */ + 'cvcResultRaw'?: string; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + */ + 'eci'?: string; + /** + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + */ + 'expiryDate'?: string; + /** + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + */ + 'extraCostsCurrency'?: string; + /** + * 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. + */ + 'extraCostsValue'?: string; + /** + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + */ + 'fraudCheckItemNrFraudCheckname'?: string; + /** + * Indicates if the payment is sent to manual review. + */ + 'fraudManualReview'?: string; + /** + * The fraud result properties of the payment. + */ + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + /** + * 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**. + */ + 'fundingSource'?: string; + /** + * 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\". + */ + 'fundsAvailability'?: string; + /** + * 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 + */ + 'inferredRefusalReason'?: string; + /** + * Indicates if the card is used for business purposes only. + */ + 'isCardCommercial'?: string; + /** + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + */ + 'issuerCountry'?: string; + /** + * A Boolean value indicating whether a liability shift was offered for this payment. + */ + 'liabilityShift'?: string; + /** + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + */ + 'mcBankNetReferenceNumber'?: string; + /** + * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + */ + 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + /** + * The reference provided for the transaction. + */ + 'merchantReference'?: string; + /** + * 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. + */ + 'networkTxReference'?: string; + /** + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + */ + 'ownerName'?: string; + /** + * 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. + */ + 'paymentAccountReference'?: string; + /** + * The payment method used in the transaction. + */ + 'paymentMethod'?: string; + /** + * 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 + */ + 'paymentMethodVariant'?: string; + /** + * 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) + */ + 'payoutEligible'?: string; + /** + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + */ + 'realtimeAccountUpdaterStatus'?: string; + /** + * Message to be displayed on the terminal. + */ + 'receiptFreeText'?: string; + /** + * The recurring contract types applicable to the transaction. + */ + 'recurringContractTypes'?: string; + /** + * 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. + */ + 'recurringFirstPspReference'?: string; + /** + * The reference that uniquely identifies the recurring transaction. + */ + 'recurringRecurringDetailReference'?: string; + /** + * The provided reference of the shopper for a recurring transaction. + */ + 'recurringShopperReference'?: string; + /** + * The processing model used for the recurring transaction. + */ + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + /** + * 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 + */ + 'referred'?: string; + /** + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + */ + 'refusalReasonRaw'?: string; + /** + * The amount of the payment request. + */ + 'requestAmount'?: string; + /** + * The currency of the payment request. + */ + 'requestCurrencyCode'?: string; + /** + * The shopper interaction type of the payment request. Example: Ecommerce + */ + 'shopperInteraction'?: string; + /** + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + */ + 'shopperReference'?: string; + /** + * The terminal ID used in a point-of-sale payment. Example: 06022622 + */ + 'terminalId'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * The raw 3DS authentication result from the card issuer. Example: N + */ + 'threeDAuthenticatedResponse'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + */ + 'threeDOfferedResponse'?: string; + /** + * The 3D Secure 2 version. + */ + 'threeDSVersion'?: string; + /** + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + */ + 'visaTransactionId'?: string; + /** + * 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\'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "coBrandedWith", + "baseName": "coBrandedWith", + "type": "string" + }, + { + "name": "cvcResult", + "baseName": "cvcResult", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fraudManualReview", + "baseName": "fraudManualReview", + "type": "string" + }, + { + "name": "fraudResultType", + "baseName": "fraudResultType", + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "isCardCommercial", + "baseName": "isCardCommercial", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "liabilityShift", + "baseName": "liabilityShift", + "type": "string" + }, + { + "name": "mcBankNetReferenceNumber", + "baseName": "mcBankNetReferenceNumber", + "type": "string" + }, + { + "name": "merchantAdviceCode", + "baseName": "merchantAdviceCode", + "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "realtimeAccountUpdaterStatus", + "baseName": "realtimeAccountUpdaterStatus", + "type": "string" + }, + { + "name": "receiptFreeText", + "baseName": "receiptFreeText", + "type": "string" + }, + { + "name": "recurringContractTypes", + "baseName": "recurring.contractTypes", + "type": "string" + }, + { + "name": "recurringFirstPspReference", + "baseName": "recurring.firstPspReference", + "type": "string" + }, + { + "name": "recurringRecurringDetailReference", + "baseName": "recurring.recurringDetailReference", + "type": "string" + }, + { + "name": "recurringShopperReference", + "baseName": "recurring.shopperReference", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" + }, + { + "name": "referred", + "baseName": "referred", + "type": "string" + }, + { + "name": "refusalReasonRaw", + "baseName": "refusalReasonRaw", + "type": "string" + }, + { + "name": "requestAmount", + "baseName": "requestAmount", + "type": "string" + }, + { + "name": "requestCurrencyCode", + "baseName": "requestCurrencyCode", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "visaTransactionId", + "baseName": "visaTransactionId", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } +} + +export namespace ResponseAdditionalDataCommon { + export enum FraudResultTypeEnum { + Green = 'GREEN', + Fraud = 'FRAUD' + } + export enum MerchantAdviceCodeEnum { + _01NewAccountInformationAvailable = '01: New account information available', + _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', + _03DoNotTryAgain = '03: Do not try again', + _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', + _21PaymentCancellation = '21: Payment Cancellation' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } +} diff --git a/src/typings/payouts/responseAdditionalDataInstallments.ts b/src/typings/payouts/responseAdditionalDataInstallments.ts new file mode 100644 index 0000000..9f4163c --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataInstallments.ts @@ -0,0 +1,129 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataInstallments { + /** + * Type of installment. The value of `installmentType` should be **IssuerFinanced**. + */ + 'installmentPaymentDataInstallmentType'?: string; + /** + * Annual interest rate. + */ + 'installmentPaymentDataOptionItemNrAnnualPercentageRate'?: string; + /** + * First Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrFirstInstallmentAmount'?: string; + /** + * Installment fee amount in minor units. + */ + 'installmentPaymentDataOptionItemNrInstallmentFee'?: string; + /** + * Interest rate for the installment period. + */ + 'installmentPaymentDataOptionItemNrInterestRate'?: string; + /** + * Maximum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMaximumNumberOfInstallments'?: string; + /** + * Minimum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMinimumNumberOfInstallments'?: string; + /** + * Total number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrNumberOfInstallments'?: string; + /** + * Subsequent Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrSubsequentInstallmentAmount'?: string; + /** + * Total amount in minor units. + */ + 'installmentPaymentDataOptionItemNrTotalAmountDue'?: string; + /** + * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + */ + 'installmentPaymentDataPaymentOptions'?: string; + /** + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + */ + 'installmentsValue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataNetworkTokens.ts b/src/typings/payouts/responseAdditionalDataNetworkTokens.ts new file mode 100644 index 0000000..b016c90 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataNetworkTokens.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataNetworkTokens { + /** + * Indicates whether a network token is available for the specified card. + */ + 'networkTokenAvailable'?: string; + /** + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + */ + 'networkTokenBin'?: string; + /** + * The last four digits of a network token. + */ + 'networkTokenTokenSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokenAvailable", + "baseName": "networkToken.available", + "type": "string" + }, + { + "name": "networkTokenBin", + "baseName": "networkToken.bin", + "type": "string" + }, + { + "name": "networkTokenTokenSummary", + "baseName": "networkToken.tokenSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataNetworkTokens.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataOpi.ts b/src/typings/payouts/responseAdditionalDataOpi.ts new file mode 100644 index 0000000..5ab76d3 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataOpi.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class 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). + */ + 'opiTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiTransToken", + "baseName": "opi.transToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataOpi.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataSepa.ts b/src/typings/payouts/responseAdditionalDataSepa.ts new file mode 100644 index 0000000..b7cabf4 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataSepa.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataSepa { + /** + * The transaction signature date. Format: yyyy-MM-dd + */ + 'sepadirectdebitDateOfSignature'?: string; + /** + * Its value corresponds to the pspReference value of the transaction. + */ + 'sepadirectdebitMandateId'?: string; + /** + * 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 + */ + 'sepadirectdebitSequenceType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sepadirectdebitDateOfSignature", + "baseName": "sepadirectdebit.dateOfSignature", + "type": "string" + }, + { + "name": "sepadirectdebitMandateId", + "baseName": "sepadirectdebit.mandateId", + "type": "string" + }, + { + "name": "sepadirectdebitSequenceType", + "baseName": "sepadirectdebit.sequenceType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSepa.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/sDKEphemPubKey.ts b/src/typings/payouts/sDKEphemPubKey.ts new file mode 100644 index 0000000..ffe46b8 --- /dev/null +++ b/src/typings/payouts/sDKEphemPubKey.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SDKEphemPubKey { + /** + * The `crv` value as received from the 3D Secure 2 SDK. + */ + 'crv'?: string; + /** + * The `kty` value as received from the 3D Secure 2 SDK. + */ + 'kty'?: string; + /** + * The `x` value as received from the 3D Secure 2 SDK. + */ + 'x'?: string; + /** + * The `y` value as received from the 3D Secure 2 SDK. + */ + 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/serviceError.ts b/src/typings/payouts/serviceError.ts new file mode 100644 index 0000000..551936c --- /dev/null +++ b/src/typings/payouts/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/shopperInteractionDevice.ts b/src/typings/payouts/shopperInteractionDevice.ts new file mode 100644 index 0000000..ce8e982 --- /dev/null +++ b/src/typings/payouts/shopperInteractionDevice.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ShopperInteractionDevice { + /** + * Locale on the shopper interaction device. + */ + 'locale'?: string; + /** + * Operating system running on the shopper interaction device. + */ + 'os'?: string; + /** + * Version of the operating system on the shopper interaction device. + */ + 'osVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShopperInteractionDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/split.ts b/src/typings/payouts/split.ts new file mode 100644 index 0000000..76b0992 --- /dev/null +++ b/src/typings/payouts/split.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { SplitAmount } from './splitAmount'; + +export class Split { + /** + * Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. + */ + 'account'?: string; + 'amount': SplitAmount; + /** + * A description of this split. + */ + 'description'?: string; + /** + * Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. + */ + 'reference'?: string; + /** + * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } +} + +export namespace Split { + export enum TypeEnum { + BalanceAccount = 'BalanceAccount', + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + Remainder = 'Remainder', + Vat = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/payouts/splitAmount.ts b/src/typings/payouts/splitAmount.ts new file mode 100644 index 0000000..c1ababd --- /dev/null +++ b/src/typings/payouts/splitAmount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SplitAmount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; + /** + * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/storeDetailAndSubmitRequest.ts b/src/typings/payouts/storeDetailAndSubmitRequest.ts new file mode 100644 index 0000000..a15614e --- /dev/null +++ b/src/typings/payouts/storeDetailAndSubmitRequest.ts @@ -0,0 +1,186 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class StoreDetailAndSubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + '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. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailAndSubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + '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. + */ + 'reference': string; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * 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). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The shopper\'s phone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailAndSubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitRequest.attributeTypeMap; + } +} + +export namespace StoreDetailAndSubmitRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/storeDetailAndSubmitResponse.ts b/src/typings/payouts/storeDetailAndSubmitResponse.ts new file mode 100644 index 0000000..91a6533 --- /dev/null +++ b/src/typings/payouts/storeDetailAndSubmitResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoreDetailAndSubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; + /** + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/storeDetailRequest.ts b/src/typings/payouts/storeDetailRequest.ts new file mode 100644 index 0000000..d070c8b --- /dev/null +++ b/src/typings/payouts/storeDetailRequest.ts @@ -0,0 +1,161 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class StoreDetailRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + '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. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + 'recurring': Recurring; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The shopper\'s phone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailRequest.attributeTypeMap; + } +} + +export namespace StoreDetailRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/storeDetailResponse.ts b/src/typings/payouts/storeDetailResponse.ts new file mode 100644 index 0000000..6fabe95 --- /dev/null +++ b/src/typings/payouts/storeDetailResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoreDetailResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * The token which you can use later on for submitting the payout. + */ + 'recurringDetailReference': string; + /** + * The result code of the transaction. `Success` indicates that the details were stored successfully. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/submitRequest.ts b/src/typings/payouts/submitRequest.ts new file mode 100644 index 0000000..1ffbed9 --- /dev/null +++ b/src/typings/payouts/submitRequest.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class SubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + '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. + */ + 'dateOfBirth'?: Date; + /** + * 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. + */ + 'entityType'?: SubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier you want to process the transaction request with. + */ + 'merchantAccount': string; + /** + * 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. + */ + 'nationality'?: string; + '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. + */ + 'reference': string; + /** + * 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. + */ + 'selectedRecurringDetailReference': string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payout transaction. + */ + 'shopperReference': string; + /** + * 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). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "SubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitRequest.attributeTypeMap; + } +} + +export namespace SubmitRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/submitResponse.ts b/src/typings/payouts/submitResponse.ts new file mode 100644 index 0000000..68dd641 --- /dev/null +++ b/src/typings/payouts/submitResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; + /** + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/threeDS2RequestData.ts b/src/typings/payouts/threeDS2RequestData.ts new file mode 100644 index 0000000..ef0f123 --- /dev/null +++ b/src/typings/payouts/threeDS2RequestData.ts @@ -0,0 +1,392 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AcctInfo } from './acctInfo'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { Phone } from './phone'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; + +export class ThreeDS2RequestData { + '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 + */ + 'acctType'?: ThreeDS2RequestData.AcctTypeEnum; + /** + * 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. + */ + 'acquirerBIN'?: string; + /** + * 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. + */ + 'acquirerMerchantID'?: string; + /** + * 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. + */ + 'addrMatch'?: ThreeDS2RequestData.AddrMatchEnum; + /** + * 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. + */ + 'authenticationOnly'?: boolean; + /** + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; + /** + * The environment of the shopper. Allowed values: * `app` * `browser` + */ + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions; + 'homePhone'?: Phone; + /** + * 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. + */ + 'mcc'?: string; + /** + * 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. + */ + 'merchantName'?: string; + /** + * The `messageVersion` value indicating the 3D Secure 2 protocol version. + */ + 'messageVersion'?: string; + 'mobilePhone'?: Phone; + /** + * 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**. + */ + 'notificationURL'?: string; + /** + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + */ + 'payTokenInd'?: boolean; + /** + * Indicates the type of payment for which an authentication is requested (message extension) + */ + 'paymentAuthenticationUseCase'?: string; + /** + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + */ + 'purchaseInstalData'?: string; + /** + * Date after which no further authorisations shall be performed. Format: YYYYMMDD + */ + 'recurringExpiry'?: string; + /** + * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + */ + 'recurringFrequency'?: string; + /** + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkAppID'?: string; + /** + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkEncData'?: string; + '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. + */ + 'sdkMaxTimeout'?: number; + /** + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkReferenceNumber'?: string; + /** + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkTransID'?: string; + /** + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkVersion'?: string; + /** + * Completion indicator for the device fingerprinting. + */ + 'threeDSCompInd'?: string; + /** + * Indicates the type of Authentication request. + */ + 'threeDSRequestorAuthenticationInd'?: string; + '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) + */ + 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; + /** + * 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. + */ + 'threeDSRequestorID'?: string; + /** + * 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. + */ + 'threeDSRequestorName'?: string; + '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. + */ + 'threeDSRequestorURL'?: string; + /** + * 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 + */ + 'transType'?: ThreeDS2RequestData.TransTypeEnum; + /** + * Identify the type of the transaction being authenticated. + */ + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; + /** + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + */ + 'whiteListStatus'?: string; + 'workPhone'?: Phone; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acctInfo", + "baseName": "acctInfo", + "type": "AcctInfo" + }, + { + "name": "acctType", + "baseName": "acctType", + "type": "ThreeDS2RequestData.AcctTypeEnum" + }, + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "addrMatch", + "baseName": "addrMatch", + "type": "ThreeDS2RequestData.AddrMatchEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "Phone" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "Phone" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "payTokenInd", + "baseName": "payTokenInd", + "type": "boolean" + }, + { + "name": "paymentAuthenticationUseCase", + "baseName": "paymentAuthenticationUseCase", + "type": "string" + }, + { + "name": "purchaseInstalData", + "baseName": "purchaseInstalData", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInd", + "baseName": "threeDSRequestorAuthenticationInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInfo", + "baseName": "threeDSRequestorAuthenticationInfo", + "type": "ThreeDSRequestorAuthenticationInfo" + }, + { + "name": "threeDSRequestorChallengeInd", + "baseName": "threeDSRequestorChallengeInd", + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorPriorAuthenticationInfo", + "baseName": "threeDSRequestorPriorAuthenticationInfo", + "type": "ThreeDSRequestorPriorAuthenticationInfo" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transType", + "baseName": "transType", + "type": "ThreeDS2RequestData.TransTypeEnum" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "Phone" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } +} + +export namespace ThreeDS2RequestData { + export enum AcctTypeEnum { + _01 = '01', + _02 = '02', + _03 = '03' + } + export enum AddrMatchEnum { + Y = 'Y', + N = 'N' + } + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum ThreeDSRequestorChallengeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum TransTypeEnum { + _01 = '01', + _03 = '03', + _10 = '10', + _11 = '11', + _28 = '28' + } + export enum TransactionTypeEnum { + GoodsOrServicePurchase = 'goodsOrServicePurchase', + CheckAcceptance = 'checkAcceptance', + AccountFunding = 'accountFunding', + QuasiCashTransaction = 'quasiCashTransaction', + PrepaidActivationAndLoad = 'prepaidActivationAndLoad' + } +} diff --git a/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts b/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts new file mode 100644 index 0000000..dcb19ef --- /dev/null +++ b/src/typings/payouts/threeDSRequestorAuthenticationInfo.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSRequestorAuthenticationInfo { + /** + * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + */ + 'threeDSReqAuthData'?: string; + /** + * 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. + */ + 'threeDSReqAuthMethod'?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; + /** + * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + */ + 'threeDSReqAuthTimestamp'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqAuthData", + "baseName": "threeDSReqAuthData", + "type": "string" + }, + { + "name": "threeDSReqAuthMethod", + "baseName": "threeDSReqAuthMethod", + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" + }, + { + "name": "threeDSReqAuthTimestamp", + "baseName": "threeDSReqAuthTimestamp", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; + } +} + +export namespace ThreeDSRequestorAuthenticationInfo { + export enum ThreeDSReqAuthMethodEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05', + _06 = '06' + } +} diff --git a/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts new file mode 100644 index 0000000..622f63b --- /dev/null +++ b/src/typings/payouts/threeDSRequestorPriorAuthenticationInfo.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSRequestorPriorAuthenticationInfo { + /** + * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + */ + 'threeDSReqPriorAuthData'?: string; + /** + * 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. + */ + 'threeDSReqPriorAuthMethod'?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; + /** + * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + */ + 'threeDSReqPriorAuthTimestamp'?: string; + /** + * 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. + */ + 'threeDSReqPriorRef'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqPriorAuthData", + "baseName": "threeDSReqPriorAuthData", + "type": "string" + }, + { + "name": "threeDSReqPriorAuthMethod", + "baseName": "threeDSReqPriorAuthMethod", + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" + }, + { + "name": "threeDSReqPriorAuthTimestamp", + "baseName": "threeDSReqPriorAuthTimestamp", + "type": "string" + }, + { + "name": "threeDSReqPriorRef", + "baseName": "threeDSReqPriorRef", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; + } +} + +export namespace ThreeDSRequestorPriorAuthenticationInfo { + export enum ThreeDSReqPriorAuthMethodEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } +} diff --git a/src/typings/payouts/threeDSecureData.ts b/src/typings/payouts/threeDSecureData.ts new file mode 100644 index 0000000..c746dee --- /dev/null +++ b/src/typings/payouts/threeDSecureData.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSecureData { + /** + * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + */ + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; + /** + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. Include this only for 3D Secure 1. + */ + 'cavvAlgorithm'?: string; + /** + * 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). + */ + 'challengeCancel'?: ThreeDSecureData.ChallengeCancelEnum; + /** + * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. + */ + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The electronic commerce indicator. + */ + 'eci'?: string; + /** + * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + */ + 'riskScore'?: string; + /** + * The version of the 3D Secure protocol. + */ + 'threeDSVersion'?: string; + /** + * Network token authentication verification value (TAVV). The network token cryptogram. + */ + 'tokenAuthenticationVerificationValue'?: string; + /** + * 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). + */ + 'transStatusReason'?: string; + /** + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDSecureData.ChallengeCancelEnum" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "tokenAuthenticationVerificationValue", + "baseName": "tokenAuthenticationVerificationValue", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } +} + +export namespace ThreeDSecureData { + export enum AuthenticationResponseEnum { + Y = 'Y', + N = 'N', + U = 'U', + A = 'A' + } + export enum ChallengeCancelEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05', + _06 = '06', + _07 = '07' + } + export enum DirectoryResponseEnum { + A = 'A', + C = 'C', + D = 'D', + I = 'I', + N = 'N', + R = 'R', + U = 'U', + Y = 'Y' + } +} diff --git a/src/typings/platformsAccount/account.ts b/src/typings/platformsAccount/account.ts index e4fa3be..679b4cc 100644 --- a/src/typings/platformsAccount/account.ts +++ b/src/typings/platformsAccount/account.ts @@ -1,59 +1,56 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class Account { /** - * The code of the account. - */ + * The code of the account. + */ 'accountCode'?: string; /** - * The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder. - */ + * The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder. + */ 'bankAccountUUID'?: string; /** - * The beneficiary of the account. - */ + * The beneficiary of the account. + */ 'beneficiaryAccount'?: string; /** - * The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user. - */ + * The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user. + */ 'beneficiaryMerchantReference'?: string; /** - * A description of the account. - */ + * A description of the account. + */ 'description'?: string; /** - * A set of key and value pairs for general use by the merchant. 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 by the merchant. 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. + */ 'metadata'?: { [key: string]: string; }; /** - * The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - */ + * The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. + */ 'payoutMethodCode'?: string; 'payoutSchedule'?: PayoutScheduleResponse; /** - * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. - */ + * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. + */ 'payoutSpeed'?: Account.PayoutSpeedEnum; /** - * The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. - */ + * The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ 'status'?: string; static discriminator: string | undefined = undefined; - static attributeTypeMap: Array<{ name: string, baseName: string, type: string }> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountCode", "baseName": "accountCode", @@ -103,7 +100,7 @@ export class Account { "name": "status", "baseName": "status", "type": "string" - }]; + } ]; static getAttributeTypeMap() { return Account.attributeTypeMap; @@ -112,8 +109,8 @@ export class Account { export namespace Account { export enum PayoutSpeedEnum { - Instant = 'INSTANT', - SameDay = 'SAME_DAY', - Standard = 'STANDARD' + Instant = 'INSTANT', + SameDay = 'SAME_DAY', + Standard = 'STANDARD' } } diff --git a/src/typings/platformsAccount/accountEvent.ts b/src/typings/platformsAccount/accountEvent.ts index 3c8a521..a914017 100644 --- a/src/typings/platformsAccount/accountEvent.ts +++ b/src/typings/platformsAccount/accountEvent.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AccountEvent { /** * The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks). diff --git a/src/typings/platformsAccount/accountHolderDetails.ts b/src/typings/platformsAccount/accountHolderDetails.ts index e9b78c8..4193d0c 100644 --- a/src/typings/platformsAccount/accountHolderDetails.ts +++ b/src/typings/platformsAccount/accountHolderDetails.ts @@ -1,22 +1,19 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {BankAccountDetail} from './bankAccountDetail'; -import {BusinessDetails} from './businessDetails'; -import {IndividualDetails} from './individualDetails'; -import {LegalArrangementDetail} from './legalArrangementDetail'; -import {PayoutMethod} from './payoutMethod'; -import {StoreDetail} from './storeDetail'; -import {ViasAddress} from './viasAddress'; +import { BankAccountDetail } from './bankAccountDetail'; +import { BusinessDetails } from './businessDetails'; +import { IndividualDetails } from './individualDetails'; +import { LegalArrangementDetail } from './legalArrangementDetail'; +import { PayoutMethod } from './payoutMethod'; +import { StoreDetail } from './storeDetail'; +import { ViasAddress } from './viasAddress'; export class AccountHolderDetails { 'address'?: ViasAddress; @@ -39,7 +36,11 @@ export class AccountHolderDetails { 'fullPhoneNumber': string; 'individualDetails'?: IndividualDetails; /** - * Array that contains information about legal arrangements, used when the account holder is acting on behalf of different parties or is part of a contractual business agreement. + * Date when you last reviewed the account holder\'s information, in ISO-8601 YYYY-MM-DD format. For example, **2020-01-31**. + */ + 'lastReviewDate'?: string; + /** + * An array containing information about the account holder\'s [legal arrangements](https://docs.adyen.com/platforms/verification-checks/legal-arrangements). */ 'legalArrangements'?: Array; /** @@ -102,6 +103,11 @@ export class AccountHolderDetails { "baseName": "individualDetails", "type": "IndividualDetails" }, + { + "name": "lastReviewDate", + "baseName": "lastReviewDate", + "type": "string" + }, { "name": "legalArrangements", "baseName": "legalArrangements", diff --git a/src/typings/platformsAccount/accountHolderStatus.ts b/src/typings/platformsAccount/accountHolderStatus.ts index 40efe28..c8d9a79 100644 --- a/src/typings/platformsAccount/accountHolderStatus.ts +++ b/src/typings/platformsAccount/accountHolderStatus.ts @@ -1,18 +1,15 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountEvent} from './accountEvent'; -import {AccountPayoutState} from './accountPayoutState'; -import {AccountProcessingState} from './accountProcessingState'; +import { AccountEvent } from './accountEvent'; +import { AccountPayoutState } from './accountPayoutState'; +import { AccountProcessingState } from './accountProcessingState'; export class AccountHolderStatus { /** diff --git a/src/typings/platformsAccount/accountPayoutState.ts b/src/typings/platformsAccount/accountPayoutState.ts index bcec318..7ae0521 100644 --- a/src/typings/platformsAccount/accountPayoutState.ts +++ b/src/typings/platformsAccount/accountPayoutState.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Amount} from './amount'; +import { Amount } from './amount'; export class AccountPayoutState { /** diff --git a/src/typings/platformsAccount/accountProcessingState.ts b/src/typings/platformsAccount/accountProcessingState.ts index 6fb476c..d09ea64 100644 --- a/src/typings/platformsAccount/accountProcessingState.ts +++ b/src/typings/platformsAccount/accountProcessingState.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Amount} from './amount'; +import { Amount } from './amount'; export class AccountProcessingState { /** diff --git a/src/typings/platformsAccount/amount.ts b/src/typings/platformsAccount/amount.ts index 390c664..531ba7d 100644 --- a/src/typings/platformsAccount/amount.ts +++ b/src/typings/platformsAccount/amount.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). diff --git a/src/typings/platformsAccount/bankAccountDetail.ts b/src/typings/platformsAccount/bankAccountDetail.ts index 1e8106d..f940e97 100644 --- a/src/typings/platformsAccount/bankAccountDetail.ts +++ b/src/typings/platformsAccount/bankAccountDetail.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BankAccountDetail { /** * The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. @@ -76,7 +74,7 @@ export class BankAccountDetail { */ 'ownerCountryCode'?: string; /** - * The date of birth of the bank account owner. + * The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). */ 'ownerDateOfBirth'?: string; /** diff --git a/src/typings/platformsAccount/businessDetails.ts b/src/typings/platformsAccount/businessDetails.ts index b0b6e2c..3a622a1 100644 --- a/src/typings/platformsAccount/businessDetails.ts +++ b/src/typings/platformsAccount/businessDetails.ts @@ -1,17 +1,15 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ShareholderContact} from './shareholderContact'; -import {SignatoryContact} from './signatoryContact'; +import { ShareholderContact } from './shareholderContact'; +import { SignatoryContact } from './signatoryContact'; +import { UltimateParentCompany } from './ultimateParentCompany'; export class BusinessDetails { /** @@ -23,6 +21,10 @@ export class BusinessDetails { */ 'legalBusinessName'?: string; /** + * Information about the parent public company. Required if the account holder is 100% owned by a publicly listed company. + */ + 'listedUltimateParentCompany'?: Array; + /** * The registration number of the company. */ 'registrationNumber'?: string; @@ -64,6 +66,11 @@ export class BusinessDetails { "baseName": "legalBusinessName", "type": "string" }, + { + "name": "listedUltimateParentCompany", + "baseName": "listedUltimateParentCompany", + "type": "Array" + }, { "name": "registrationNumber", "baseName": "registrationNumber", diff --git a/src/typings/platformsAccount/closeAccountHolderRequest.ts b/src/typings/platformsAccount/closeAccountHolderRequest.ts index 449ebe1..02d796c 100644 --- a/src/typings/platformsAccount/closeAccountHolderRequest.ts +++ b/src/typings/platformsAccount/closeAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CloseAccountHolderRequest { /** * The code of the Account Holder to be closed. diff --git a/src/typings/platformsAccount/closeAccountHolderResponse.ts b/src/typings/platformsAccount/closeAccountHolderResponse.ts index 74fba47..49dcbde 100644 --- a/src/typings/platformsAccount/closeAccountHolderResponse.ts +++ b/src/typings/platformsAccount/closeAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class CloseAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/closeAccountRequest.ts b/src/typings/platformsAccount/closeAccountRequest.ts index 908f06d..c5bb2e3 100644 --- a/src/typings/platformsAccount/closeAccountRequest.ts +++ b/src/typings/platformsAccount/closeAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CloseAccountRequest { /** * The code of account to be closed. diff --git a/src/typings/platformsAccount/closeAccountResponse.ts b/src/typings/platformsAccount/closeAccountResponse.ts index a6a413d..74c4c38 100644 --- a/src/typings/platformsAccount/closeAccountResponse.ts +++ b/src/typings/platformsAccount/closeAccountResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class CloseAccountResponse { /** diff --git a/src/typings/platformsAccount/closeStoresRequest.ts b/src/typings/platformsAccount/closeStoresRequest.ts new file mode 100644 index 0000000..eabce40 --- /dev/null +++ b/src/typings/platformsAccount/closeStoresRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CloseStoresRequest { + /** + * The code of the account holder. + */ + 'accountHolderCode': string; + /** + * List of stores to be closed. + */ + 'stores': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "stores", + "baseName": "stores", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CloseStoresRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/createAccountHolderRequest.ts b/src/typings/platformsAccount/createAccountHolderRequest.ts index 38f0aaf..d2a5beb 100644 --- a/src/typings/platformsAccount/createAccountHolderRequest.ts +++ b/src/typings/platformsAccount/createAccountHolderRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; +import { AccountHolderDetails } from './accountHolderDetails'; export class CreateAccountHolderRequest { /** diff --git a/src/typings/platformsAccount/createAccountHolderResponse.ts b/src/typings/platformsAccount/createAccountHolderResponse.ts index cf5450f..1654ffc 100644 --- a/src/typings/platformsAccount/createAccountHolderResponse.ts +++ b/src/typings/platformsAccount/createAccountHolderResponse.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class CreateAccountHolderResponse { /** @@ -50,7 +47,7 @@ export class CreateAccountHolderResponse { * The result code. */ 'resultCode'?: string; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -112,7 +109,7 @@ export class CreateAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/createAccountRequest.ts b/src/typings/platformsAccount/createAccountRequest.ts index 4ff56c1..a221f9b 100644 --- a/src/typings/platformsAccount/createAccountRequest.ts +++ b/src/typings/platformsAccount/createAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreateAccountRequest { /** * The code of Account Holder under which to create the account. @@ -97,6 +95,9 @@ export namespace CreateAccountRequest { export enum PayoutScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -109,7 +110,12 @@ export namespace CreateAccountRequest { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } export enum PayoutSpeedEnum { diff --git a/src/typings/platformsAccount/createAccountResponse.ts b/src/typings/platformsAccount/createAccountResponse.ts index 0d21586..ad1d0c0 100644 --- a/src/typings/platformsAccount/createAccountResponse.ts +++ b/src/typings/platformsAccount/createAccountResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { ErrorFieldType } from './errorFieldType'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class CreateAccountResponse { /** diff --git a/src/typings/platformsAccount/deleteBankAccountRequest.ts b/src/typings/platformsAccount/deleteBankAccountRequest.ts index 79d8194..ab3215c 100644 --- a/src/typings/platformsAccount/deleteBankAccountRequest.ts +++ b/src/typings/platformsAccount/deleteBankAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteBankAccountRequest { /** * The code of the Account Holder from which to delete the Bank Account(s). diff --git a/src/typings/platformsAccount/deletePayoutMethodRequest.ts b/src/typings/platformsAccount/deletePayoutMethodRequest.ts index cc5f669..9aeb722 100644 --- a/src/typings/platformsAccount/deletePayoutMethodRequest.ts +++ b/src/typings/platformsAccount/deletePayoutMethodRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeletePayoutMethodRequest { /** * The code of the account holder, from which to delete the payout methods. diff --git a/src/typings/platformsAccount/deleteShareholderRequest.ts b/src/typings/platformsAccount/deleteShareholderRequest.ts index 519d2a6..a9e7642 100644 --- a/src/typings/platformsAccount/deleteShareholderRequest.ts +++ b/src/typings/platformsAccount/deleteShareholderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteShareholderRequest { /** * The code of the Account Holder from which to delete the Shareholders. diff --git a/src/typings/platformsAccount/deleteSignatoriesRequest.ts b/src/typings/platformsAccount/deleteSignatoriesRequest.ts index d3ee138..dee9b3e 100644 --- a/src/typings/platformsAccount/deleteSignatoriesRequest.ts +++ b/src/typings/platformsAccount/deleteSignatoriesRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteSignatoriesRequest { /** * The code of the account holder from which to delete the signatories. diff --git a/src/typings/platformsAccount/documentDetail.ts b/src/typings/platformsAccount/documentDetail.ts index b3dc536..ad21396 100644 --- a/src/typings/platformsAccount/documentDetail.ts +++ b/src/typings/platformsAccount/documentDetail.ts @@ -1,22 +1,20 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DocumentDetail { /** * The code of account holder, to which the document applies. */ 'accountHolderCode': string; /** - * The unique ID of the Bank Account to which the document applies. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a bank account. + * The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/platforms/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. */ 'bankAccountUUID'?: string; /** @@ -24,7 +22,7 @@ export class DocumentDetail { */ 'description'?: string; /** - * The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. + * The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder\'s legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. */ 'documentType': DocumentDetail.DocumentTypeEnum; /** @@ -32,11 +30,19 @@ export class DocumentDetail { */ 'filename': string; /** - * The code of the shareholder, to which the document applies. Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) for details on when a document should be submitted in order to verify a shareholder.>Required if the account holder referred to by the `accountHolderCode` has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a shareholder. + * The Adyen-generated [`legalArrangementCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementCode) to which the document must be linked. + */ + 'legalArrangementCode'?: string; + /** + * The Adyen-generated [`legalArrangementEntityCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementEntities-legalArrangementEntityCode) to which the document must be linked. + */ + 'legalArrangementEntityCode'?: string; + /** + * The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. */ 'shareholderCode'?: string; /** - * The code of the signatory, to which the document applies + * The Adyen-generated [`signatoryCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-signatories-signatoryCode) to which the document must be linked. */ 'signatoryCode'?: string; @@ -68,6 +74,16 @@ export class DocumentDetail { "baseName": "filename", "type": "string" }, + { + "name": "legalArrangementCode", + "baseName": "legalArrangementCode", + "type": "string" + }, + { + "name": "legalArrangementEntityCode", + "baseName": "legalArrangementEntityCode", + "type": "string" + }, { "name": "shareholderCode", "baseName": "shareholderCode", @@ -97,6 +113,7 @@ export namespace DocumentDetail { IdCardBack = 'ID_CARD_BACK', IdCardFront = 'ID_CARD_FRONT', Passport = 'PASSPORT', + ProofOfResidency = 'PROOF_OF_RESIDENCY', Ssn = 'SSN', SupportingDocuments = 'SUPPORTING_DOCUMENTS' } diff --git a/src/typings/platformsAccount/errorFieldType.ts b/src/typings/platformsAccount/errorFieldType.ts index 4f2e132..6ad0e7c 100644 --- a/src/typings/platformsAccount/errorFieldType.ts +++ b/src/typings/platformsAccount/errorFieldType.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {FieldType} from './fieldType'; +import { FieldType } from './fieldType'; export class ErrorFieldType { /** diff --git a/src/typings/platformsAccount/fieldType.ts b/src/typings/platformsAccount/fieldType.ts index a34218f..487bf1b 100644 --- a/src/typings/platformsAccount/fieldType.ts +++ b/src/typings/platformsAccount/fieldType.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class FieldType { /** * The full name of the property. @@ -58,6 +56,10 @@ export namespace FieldType { AccountStatus = 'accountStatus', AccountType = 'accountType', Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', BankAccount = 'bankAccount', BankAccountCode = 'bankAccountCode', BankAccountName = 'bankAccountName', @@ -82,6 +84,7 @@ export namespace FieldType { Description = 'description', DestinationAccountCode = 'destinationAccountCode', Document = 'document', + DocumentContent = 'documentContent', DocumentExpirationDate = 'documentExpirationDate', DocumentIssuerCountry = 'documentIssuerCountry', DocumentIssuerState = 'documentIssuerState', @@ -106,14 +109,17 @@ export namespace FieldType { IdNumber = 'idNumber', IdentityDocument = 'identityDocument', IndividualDetails = 'individualDetails', + Infix = 'infix', JobTitle = 'jobTitle', LastName = 'lastName', + LastReviewDate = 'lastReviewDate', LegalArrangement = 'legalArrangement', LegalArrangementCode = 'legalArrangementCode', LegalArrangementEntity = 'legalArrangementEntity', LegalArrangementEntityCode = 'legalArrangementEntityCode', LegalArrangementLegalForm = 'legalArrangementLegalForm', LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', LegalArrangementName = 'legalArrangementName', LegalArrangementReference = 'legalArrangementReference', LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', @@ -131,6 +137,7 @@ export namespace FieldType { OriginalReference = 'originalReference', OwnerCity = 'ownerCity', OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', OwnerHouseNumberOrName = 'ownerHouseNumberOrName', OwnerName = 'ownerName', OwnerPostalCode = 'ownerPostalCode', @@ -139,6 +146,8 @@ export namespace FieldType { Passport = 'passport', PassportNumber = 'passportNumber', PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', PersonalData = 'personalData', PhoneCountryCode = 'phoneCountryCode', PhoneNumber = 'phoneNumber', @@ -159,6 +168,7 @@ export namespace FieldType { SocialSecurityNumber = 'socialSecurityNumber', SourceAccountCode = 'sourceAccountCode', SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', SplitCurrency = 'splitCurrency', SplitValue = 'splitValue', Splits = 'splits', @@ -176,6 +186,17 @@ export namespace FieldType { Tier = 'tier', TierNumber = 'tierNumber', TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', Unknown = 'unknown', Value = 'value', VerificationType = 'verificationType', diff --git a/src/typings/platformsAccount/genericResponse.ts b/src/typings/platformsAccount/genericResponse.ts index cc0bd48..796ccac 100644 --- a/src/typings/platformsAccount/genericResponse.ts +++ b/src/typings/platformsAccount/genericResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class GenericResponse { /** diff --git a/src/typings/platformsAccount/getAccountHolderRequest.ts b/src/typings/platformsAccount/getAccountHolderRequest.ts index 0c4617b..a0c81ca 100644 --- a/src/typings/platformsAccount/getAccountHolderRequest.ts +++ b/src/typings/platformsAccount/getAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetAccountHolderRequest { /** * The code of the account of which to retrieve the details. > Required if no `accountHolderCode` is provided. diff --git a/src/typings/platformsAccount/getAccountHolderResponse.ts b/src/typings/platformsAccount/getAccountHolderResponse.ts index f0a4627..6777f64 100644 --- a/src/typings/platformsAccount/getAccountHolderResponse.ts +++ b/src/typings/platformsAccount/getAccountHolderResponse.ts @@ -1,20 +1,17 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Account} from './account'; -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { Account } from './account'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class GetAccountHolderResponse { /** @@ -55,7 +52,7 @@ export class GetAccountHolderResponse { * The time that shows how up to date is the information in the response. */ 'systemUpToDateTime'?: Date; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -122,7 +119,7 @@ export class GetAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/getAccountHolderStatusResponse.ts b/src/typings/platformsAccount/getAccountHolderStatusResponse.ts index 0d4c12f..523afe3 100644 --- a/src/typings/platformsAccount/getAccountHolderStatusResponse.ts +++ b/src/typings/platformsAccount/getAccountHolderStatusResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class GetAccountHolderStatusResponse { /** diff --git a/src/typings/platformsAccount/getTaxFormRequest.ts b/src/typings/platformsAccount/getTaxFormRequest.ts index 4fdd049..a5e8440 100644 --- a/src/typings/platformsAccount/getTaxFormRequest.ts +++ b/src/typings/platformsAccount/getTaxFormRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetTaxFormRequest { /** * The account holder code you provided when you created the account holder. diff --git a/src/typings/platformsAccount/getTaxFormResponse.ts b/src/typings/platformsAccount/getTaxFormResponse.ts index 73d80ea..239d68e 100644 --- a/src/typings/platformsAccount/getTaxFormResponse.ts +++ b/src/typings/platformsAccount/getTaxFormResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class GetTaxFormResponse { /** diff --git a/src/typings/platformsAccount/getUploadedDocumentsRequest.ts b/src/typings/platformsAccount/getUploadedDocumentsRequest.ts index 3730113..15df462 100644 --- a/src/typings/platformsAccount/getUploadedDocumentsRequest.ts +++ b/src/typings/platformsAccount/getUploadedDocumentsRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetUploadedDocumentsRequest { /** * The code of the Account Holder for which to retrieve the documents. diff --git a/src/typings/platformsAccount/getUploadedDocumentsResponse.ts b/src/typings/platformsAccount/getUploadedDocumentsResponse.ts index 9729ef7..82950c9 100644 --- a/src/typings/platformsAccount/getUploadedDocumentsResponse.ts +++ b/src/typings/platformsAccount/getUploadedDocumentsResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {DocumentDetail} from './documentDetail'; -import {ErrorFieldType} from './errorFieldType'; +import { DocumentDetail } from './documentDetail'; +import { ErrorFieldType } from './errorFieldType'; export class GetUploadedDocumentsResponse { /** diff --git a/src/typings/platformsAccount/individualDetails.ts b/src/typings/platformsAccount/individualDetails.ts index b1a7dc4..931cafc 100644 --- a/src/typings/platformsAccount/individualDetails.ts +++ b/src/typings/platformsAccount/individualDetails.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; export class IndividualDetails { 'name'?: ViasName; diff --git a/src/typings/platformsAccount/kYCCheckResult.ts b/src/typings/platformsAccount/kYCCheckResult.ts new file mode 100644 index 0000000..585e987 --- /dev/null +++ b/src/typings/platformsAccount/kYCCheckResult.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckStatusData } from './kYCCheckStatusData'; + +export class KYCCheckResult { + /** + * A list of the checks and their statuses. + */ + 'checks'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checks", + "baseName": "checks", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return KYCCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCCheckResult2.ts b/src/typings/platformsAccount/kYCCheckResult2.ts deleted file mode 100644 index b274457..0000000 --- a/src/typings/platformsAccount/kYCCheckResult2.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 - * Contact: developer-experience@adyen.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import {KYCCheckStatusData} from './kYCCheckStatusData'; - -export class KYCCheckResult2 { - /** - * A list of the checks and their statuses. - */ - 'checks'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "checks", - "baseName": "checks", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return KYCCheckResult2.attributeTypeMap; - } -} - diff --git a/src/typings/platformsAccount/kYCCheckStatusData.ts b/src/typings/platformsAccount/kYCCheckStatusData.ts index 37bc3b4..b753040 100644 --- a/src/typings/platformsAccount/kYCCheckStatusData.ts +++ b/src/typings/platformsAccount/kYCCheckStatusData.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckSummary} from './kYCCheckSummary'; +import { KYCCheckSummary } from './kYCCheckSummary'; export class KYCCheckStatusData { /** diff --git a/src/typings/platformsAccount/kYCCheckSummary.ts b/src/typings/platformsAccount/kYCCheckSummary.ts index 802319c..9fed6f5 100644 --- a/src/typings/platformsAccount/kYCCheckSummary.ts +++ b/src/typings/platformsAccount/kYCCheckSummary.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class KYCCheckSummary { /** * The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/platforms/verification-codes). diff --git a/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts b/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts index 0638eba..fe7814f 100644 --- a/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts +++ b/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCLegalArrangementCheckResult { /** diff --git a/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts b/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts index 90b7675..bf1c07f 100644 --- a/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts +++ b/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCLegalArrangementEntityCheckResult { /** diff --git a/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts b/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts index c35ca28..1267f15 100644 --- a/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts +++ b/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCPayoutMethodCheckResult { /** diff --git a/src/typings/platformsAccount/kYCShareholderCheckResult.ts b/src/typings/platformsAccount/kYCShareholderCheckResult.ts index 7e6c23f..df5cbec 100644 --- a/src/typings/platformsAccount/kYCShareholderCheckResult.ts +++ b/src/typings/platformsAccount/kYCShareholderCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCShareholderCheckResult { /** diff --git a/src/typings/platformsAccount/kYCSignatoryCheckResult.ts b/src/typings/platformsAccount/kYCSignatoryCheckResult.ts index 29d817e..76f3366 100644 --- a/src/typings/platformsAccount/kYCSignatoryCheckResult.ts +++ b/src/typings/platformsAccount/kYCSignatoryCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCSignatoryCheckResult { /** diff --git a/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts b/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts new file mode 100644 index 0000000..ed38c01 --- /dev/null +++ b/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckStatusData } from './kYCCheckStatusData'; + +export class KYCUltimateParentCompanyCheckResult { + /** + * A list of the checks and their statuses. + */ + 'checks'?: Array; + /** + * The code of the Ultimate Parent Company to which the check applies. + */ + 'ultimateParentCompanyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checks", + "baseName": "checks", + "type": "Array" + }, + { + "name": "ultimateParentCompanyCode", + "baseName": "ultimateParentCompanyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return KYCUltimateParentCompanyCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCVerificationResult.ts b/src/typings/platformsAccount/kYCVerificationResult.ts new file mode 100644 index 0000000..0febf33 --- /dev/null +++ b/src/typings/platformsAccount/kYCVerificationResult.ts @@ -0,0 +1,88 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckResult } from './kYCCheckResult'; +import { KYCLegalArrangementCheckResult } from './kYCLegalArrangementCheckResult'; +import { KYCLegalArrangementEntityCheckResult } from './kYCLegalArrangementEntityCheckResult'; +import { KYCPayoutMethodCheckResult } from './kYCPayoutMethodCheckResult'; +import { KYCShareholderCheckResult } from './kYCShareholderCheckResult'; +import { KYCSignatoryCheckResult } from './kYCSignatoryCheckResult'; +import { KYCUltimateParentCompanyCheckResult } from './kYCUltimateParentCompanyCheckResult'; + +export class KYCVerificationResult { + 'accountHolder'?: KYCCheckResult; + /** + * The results of the checks on the legal arrangements. + */ + 'legalArrangements'?: Array; + /** + * The results of the checks on the legal arrangement entities. + */ + 'legalArrangementsEntities'?: Array; + /** + * The results of the checks on the payout methods. + */ + 'payoutMethods'?: Array; + /** + * The results of the checks on the shareholders. + */ + 'shareholders'?: Array; + /** + * The results of the checks on the signatories. + */ + 'signatories'?: Array; + /** + * The result of the check on the Ultimate Parent Company. + */ + 'ultimateParentCompany'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolder", + "baseName": "accountHolder", + "type": "KYCCheckResult" + }, + { + "name": "legalArrangements", + "baseName": "legalArrangements", + "type": "Array" + }, + { + "name": "legalArrangementsEntities", + "baseName": "legalArrangementsEntities", + "type": "Array" + }, + { + "name": "payoutMethods", + "baseName": "payoutMethods", + "type": "Array" + }, + { + "name": "shareholders", + "baseName": "shareholders", + "type": "Array" + }, + { + "name": "signatories", + "baseName": "signatories", + "type": "Array" + }, + { + "name": "ultimateParentCompany", + "baseName": "ultimateParentCompany", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return KYCVerificationResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCVerificationResult2.ts b/src/typings/platformsAccount/kYCVerificationResult2.ts deleted file mode 100644 index 4d71eb5..0000000 --- a/src/typings/platformsAccount/kYCVerificationResult2.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 - * Contact: developer-experience@adyen.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import {KYCCheckResult2} from './kYCCheckResult2'; -import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult'; -import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult'; -import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult'; -import {KYCShareholderCheckResult} from './kYCShareholderCheckResult'; -import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult'; - -export class KYCVerificationResult2 { - 'accountHolder'?: KYCCheckResult2; - /** - * The results of the checks on the legal arrangements. - */ - 'legalArrangements'?: Array; - /** - * The results of the checks on the legal arrangement entities. - */ - 'legalArrangementsEntities'?: Array; - /** - * The results of the checks on the payout methods. - */ - 'payoutMethods'?: Array; - /** - * The results of the checks on the shareholders. - */ - 'shareholders'?: Array; - /** - * The results of the checks on the signatories. - */ - 'signatories'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountHolder", - "baseName": "accountHolder", - "type": "KYCCheckResult2" - }, - { - "name": "legalArrangements", - "baseName": "legalArrangements", - "type": "Array" - }, - { - "name": "legalArrangementsEntities", - "baseName": "legalArrangementsEntities", - "type": "Array" - }, - { - "name": "payoutMethods", - "baseName": "payoutMethods", - "type": "Array" - }, - { - "name": "shareholders", - "baseName": "shareholders", - "type": "Array" - }, - { - "name": "signatories", - "baseName": "signatories", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return KYCVerificationResult2.attributeTypeMap; - } -} - diff --git a/src/typings/platformsAccount/legalArrangementDetail.ts b/src/typings/platformsAccount/legalArrangementDetail.ts index 46f3e17..e619788 100644 --- a/src/typings/platformsAccount/legalArrangementDetail.ts +++ b/src/typings/platformsAccount/legalArrangementDetail.ts @@ -1,26 +1,23 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail'; -import {ViasAddress} from './viasAddress'; +import { LegalArrangementEntityDetail } from './legalArrangementEntityDetail'; +import { ViasAddress } from './viasAddress'; export class LegalArrangementDetail { - 'address'?: ViasAddress; + 'address': ViasAddress; /** * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement. Required when updating an existing legal arrangement entry in an `/updateAccountHolder` request. */ 'legalArrangementCode'?: string; /** - * Array that contains information about the entities or members that are part of the legal arrangement. + * An array containing information about other entities that are part of the legal arrangement. */ 'legalArrangementEntities'?: Array; /** @@ -28,13 +25,13 @@ export class LegalArrangementDetail { */ 'legalArrangementReference'?: string; /** - * The structure of the legal arrangement as defined according to legislations in the country. Possible values: **CashManagementTrust**, **CorporateUnitTrust**, **DeceasedEstate**, **DiscretionaryInvestmentTrust**, **DiscretionaryServicesManagementTrust**, **DiscretionaryTradingTrust**, **FirstHomeSaverAccountsTrust**, **FixedTrust**, **FixedUnitTrust**, **HybridTrust**, **ListedPublicUnitTrust**, **OtherTrust**, **PooledSuperannuationTrust**, **PublicTradingTrust**, **UnlistedPublicUnitTrust**, **LimitedPartnership**, **FamilyPartnership**, **OtherPartnership**. + * The form of legal arrangement. Required if `type` is **Trust** or **Partnership**. The possible values depend on the `type`. - For `type` **Trust**: **CashManagementTrust**, **CorporateUnitTrust**, **DeceasedEstate**, **DiscretionaryInvestmentTrust**, **DiscretionaryServicesManagementTrust**, **DiscretionaryTradingTrust**, **FirstHomeSaverAccountsTrust**, **FixedTrust**, **FixedUnitTrust**, **HybridTrust**, **ListedPublicUnitTrust**, **OtherTrust**, **PooledSuperannuationTrust**, **PublicTradingTrust**, or **UnlistedPublicUnitTrust**. - For `type` **Partnership**: **LimitedPartnership**, **FamilyPartnership**, or **OtherPartnership** */ 'legalForm'?: LegalArrangementDetail.LegalFormEnum; /** - * The legal name of the legal arrangement. + * The legal name of the legal arrangement. Minimum length: 3 characters. */ - 'name'?: string; + 'name': string; /** * The registration number of the legal arrangement. */ @@ -44,9 +41,9 @@ export class LegalArrangementDetail { */ 'taxNumber'?: string; /** - * The type of legal arrangement. Possible values: - **Trust** - A legal agreement where the account holder is a trustee that manages assets for beneficiaries. - **Partnership** - A legal arrangement where the account holder is a partner that has an agreement with one or more partners to manage, operate and share profits of their jointly-owned business. + * The [type of legal arrangement](https://docs.adyen.com/platforms/verification-checks/legal-arrangements#types-of-legal-arrangements). Possible values: - **Association** - **Partnership** - **SoleProprietorship** - **Trust** */ - 'type'?: LegalArrangementDetail.TypeEnum; + 'type': LegalArrangementDetail.TypeEnum; static discriminator: string | undefined = undefined; @@ -124,7 +121,9 @@ export namespace LegalArrangementDetail { OtherPartnership = 'OtherPartnership' } export enum TypeEnum { + Association = 'Association', Partnership = 'Partnership', + SoleProprietorship = 'SoleProprietorship', Trust = 'Trust' } } diff --git a/src/typings/platformsAccount/legalArrangementEntityDetail.ts b/src/typings/platformsAccount/legalArrangementEntityDetail.ts index 323c861..d9e8052 100644 --- a/src/typings/platformsAccount/legalArrangementEntityDetail.ts +++ b/src/typings/platformsAccount/legalArrangementEntityDetail.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {BusinessDetails} from './businessDetails'; -import {IndividualDetails} from './individualDetails'; -import {ViasAddress} from './viasAddress'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { BusinessDetails } from './businessDetails'; +import { IndividualDetails } from './individualDetails'; +import { ViasAddress } from './viasAddress'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class LegalArrangementEntityDetail { 'address'?: ViasAddress; @@ -28,7 +25,7 @@ export class LegalArrangementEntityDetail { 'fullPhoneNumber'?: string; 'individualDetails'?: IndividualDetails; /** - * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Required when updating an existing legal arrangement entity entry in an `/updateAccountHolder` request. */ 'legalArrangementEntityCode'?: string; /** @@ -36,9 +33,9 @@ export class LegalArrangementEntityDetail { */ 'legalArrangementEntityReference'?: string; /** - * The role of the entity in the legal arrangement. The values depend on the `legalArragementType`. Possible values: - For `legalArragementType` **Trust**, you can use **Trustee**, **Settlor**, **Protector**, **Beneficiary**, or **Shareholder**. - For `legalArragementType` **Partnership**, you can use **Partner** or **Shareholder**. + * An array containing the roles of the entity in the legal arrangement. The possible values depend on the legal arrangement `type`. - For `type` **Association**: **ControllingPerson** and **Shareholder**. - For `type` **Partnership**: **Partner** and **Shareholder**. - For `type` **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**, and **Shareholder**. */ - 'legalArrangementMember'?: LegalArrangementEntityDetail.LegalArrangementMemberEnum; + 'legalArrangementMembers'?: Array; /** * The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. */ @@ -88,9 +85,9 @@ export class LegalArrangementEntityDetail { "type": "string" }, { - "name": "legalArrangementMember", - "baseName": "legalArrangementMember", - "type": "LegalArrangementEntityDetail.LegalArrangementMemberEnum" + "name": "legalArrangementMembers", + "baseName": "legalArrangementMembers", + "type": "Array" }, { "name": "legalEntityType", @@ -114,16 +111,13 @@ export class LegalArrangementEntityDetail { } export namespace LegalArrangementEntityDetail { - export enum LegalArrangementMemberEnum { - Associate = 'Associate', + export enum LegalArrangementMembersEnum { Beneficiary = 'Beneficiary', - Chairman = 'Chairman', + ControllingPerson = 'ControllingPerson', Partner = 'Partner', Protector = 'Protector', - Secretary = 'Secretary', Settlor = 'Settlor', Shareholder = 'Shareholder', - Treasurer = 'Treasurer', Trustee = 'Trustee' } export enum LegalEntityTypeEnum { diff --git a/src/typings/platformsAccount/models.ts b/src/typings/platformsAccount/models.ts index 523c3fb..9a20eab 100644 --- a/src/typings/platformsAccount/models.ts +++ b/src/typings/platformsAccount/models.ts @@ -1,22 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. */ + export * from './account'; export * from './accountEvent'; export * from './accountHolderDetails'; @@ -30,6 +21,7 @@ export * from './closeAccountHolderRequest'; export * from './closeAccountHolderResponse'; export * from './closeAccountRequest'; export * from './closeAccountResponse'; +export * from './closeStoresRequest'; export * from './createAccountHolderRequest'; export * from './createAccountHolderResponse'; export * from './createAccountRequest'; @@ -50,7 +42,7 @@ export * from './getTaxFormResponse'; export * from './getUploadedDocumentsRequest'; export * from './getUploadedDocumentsResponse'; export * from './individualDetails'; -export * from './kYCCheckResult2'; +export * from './kYCCheckResult'; export * from './kYCCheckStatusData'; export * from './kYCCheckSummary'; export * from './kYCLegalArrangementCheckResult'; @@ -58,7 +50,8 @@ export * from './kYCLegalArrangementEntityCheckResult'; export * from './kYCPayoutMethodCheckResult'; export * from './kYCShareholderCheckResult'; export * from './kYCSignatoryCheckResult'; -export * from './kYCVerificationResult2'; +export * from './kYCUltimateParentCompanyCheckResult'; +export * from './kYCVerificationResult'; export * from './legalArrangementDetail'; export * from './legalArrangementEntityDetail'; export * from './payoutMethod'; @@ -71,6 +64,8 @@ export * from './signatoryContact'; export * from './storeDetail'; export * from './suspendAccountHolderRequest'; export * from './suspendAccountHolderResponse'; +export * from './ultimateParentCompany'; +export * from './ultimateParentCompanyBusinessDetails'; export * from './unSuspendAccountHolderRequest'; export * from './unSuspendAccountHolderResponse'; export * from './updateAccountHolderRequest'; @@ -85,85 +80,78 @@ export * from './viasName'; export * from './viasPersonalData'; export * from './viasPhoneNumber'; -import * as fs from 'fs'; -import {Account} from './account'; -import {AccountEvent} from './accountEvent'; -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {AccountPayoutState} from './accountPayoutState'; -import {AccountProcessingState} from './accountProcessingState'; -import {Amount} from './amount'; -import {BankAccountDetail} from './bankAccountDetail'; -import {BusinessDetails} from './businessDetails'; -import {CloseAccountHolderRequest} from './closeAccountHolderRequest'; -import {CloseAccountHolderResponse} from './closeAccountHolderResponse'; -import {CloseAccountRequest} from './closeAccountRequest'; -import {CloseAccountResponse} from './closeAccountResponse'; -import {CreateAccountHolderRequest} from './createAccountHolderRequest'; -import {CreateAccountHolderResponse} from './createAccountHolderResponse'; -import {CreateAccountRequest} from './createAccountRequest'; -import {CreateAccountResponse} from './createAccountResponse'; -import {DeleteBankAccountRequest} from './deleteBankAccountRequest'; -import {DeletePayoutMethodRequest} from './deletePayoutMethodRequest'; -import {DeleteShareholderRequest} from './deleteShareholderRequest'; -import {DeleteSignatoriesRequest} from './deleteSignatoriesRequest'; -import {DocumentDetail} from './documentDetail'; -import {ErrorFieldType} from './errorFieldType'; -import {FieldType} from './fieldType'; -import {GenericResponse} from './genericResponse'; -import {GetAccountHolderRequest} from './getAccountHolderRequest'; -import {GetAccountHolderResponse} from './getAccountHolderResponse'; -import {GetAccountHolderStatusResponse} from './getAccountHolderStatusResponse'; -import {GetTaxFormRequest} from './getTaxFormRequest'; -import {GetTaxFormResponse} from './getTaxFormResponse'; -import {GetUploadedDocumentsRequest} from './getUploadedDocumentsRequest'; -import {GetUploadedDocumentsResponse} from './getUploadedDocumentsResponse'; -import {IndividualDetails} from './individualDetails'; -import {KYCCheckResult2} from './kYCCheckResult2'; -import {KYCCheckStatusData} from './kYCCheckStatusData'; -import {KYCCheckSummary} from './kYCCheckSummary'; -import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult'; -import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult'; -import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult'; -import {KYCShareholderCheckResult} from './kYCShareholderCheckResult'; -import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; -import {LegalArrangementDetail} from './legalArrangementDetail'; -import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail'; -import {PayoutMethod} from './payoutMethod'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; -import {PerformVerificationRequest} from './performVerificationRequest'; -import {PersonalDocumentData} from './personalDocumentData'; -import {ServiceError} from './serviceError'; -import {ShareholderContact} from './shareholderContact'; -import {SignatoryContact} from './signatoryContact'; -import {StoreDetail} from './storeDetail'; -import {SuspendAccountHolderRequest} from './suspendAccountHolderRequest'; -import {SuspendAccountHolderResponse} from './suspendAccountHolderResponse'; -import {UnSuspendAccountHolderRequest} from './unSuspendAccountHolderRequest'; -import {UnSuspendAccountHolderResponse} from './unSuspendAccountHolderResponse'; -import {UpdateAccountHolderRequest} from './updateAccountHolderRequest'; -import {UpdateAccountHolderResponse} from './updateAccountHolderResponse'; -import {UpdateAccountHolderStateRequest} from './updateAccountHolderStateRequest'; -import {UpdateAccountRequest} from './updateAccountRequest'; -import {UpdateAccountResponse} from './updateAccountResponse'; -import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest'; -import {UploadDocumentRequest} from './uploadDocumentRequest'; -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; - -export interface RequestDetailedFile { - value: Buffer; - options?: { - filename?: string; - contentType?: string; - } -} - -export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile; +import { Account } from './account'; +import { AccountEvent } from './accountEvent'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { AccountPayoutState } from './accountPayoutState'; +import { AccountProcessingState } from './accountProcessingState'; +import { Amount } from './amount'; +import { BankAccountDetail } from './bankAccountDetail'; +import { BusinessDetails } from './businessDetails'; +import { CloseAccountHolderRequest } from './closeAccountHolderRequest'; +import { CloseAccountHolderResponse } from './closeAccountHolderResponse'; +import { CloseAccountRequest } from './closeAccountRequest'; +import { CloseAccountResponse } from './closeAccountResponse'; +import { CloseStoresRequest } from './closeStoresRequest'; +import { CreateAccountHolderRequest } from './createAccountHolderRequest'; +import { CreateAccountHolderResponse } from './createAccountHolderResponse'; +import { CreateAccountRequest } from './createAccountRequest'; +import { CreateAccountResponse } from './createAccountResponse'; +import { DeleteBankAccountRequest } from './deleteBankAccountRequest'; +import { DeletePayoutMethodRequest } from './deletePayoutMethodRequest'; +import { DeleteShareholderRequest } from './deleteShareholderRequest'; +import { DeleteSignatoriesRequest } from './deleteSignatoriesRequest'; +import { DocumentDetail } from './documentDetail'; +import { ErrorFieldType } from './errorFieldType'; +import { FieldType } from './fieldType'; +import { GenericResponse } from './genericResponse'; +import { GetAccountHolderRequest } from './getAccountHolderRequest'; +import { GetAccountHolderResponse } from './getAccountHolderResponse'; +import { GetAccountHolderStatusResponse } from './getAccountHolderStatusResponse'; +import { GetTaxFormRequest } from './getTaxFormRequest'; +import { GetTaxFormResponse } from './getTaxFormResponse'; +import { GetUploadedDocumentsRequest } from './getUploadedDocumentsRequest'; +import { GetUploadedDocumentsResponse } from './getUploadedDocumentsResponse'; +import { IndividualDetails } from './individualDetails'; +import { KYCCheckResult } from './kYCCheckResult'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; +import { KYCCheckSummary } from './kYCCheckSummary'; +import { KYCLegalArrangementCheckResult } from './kYCLegalArrangementCheckResult'; +import { KYCLegalArrangementEntityCheckResult } from './kYCLegalArrangementEntityCheckResult'; +import { KYCPayoutMethodCheckResult } from './kYCPayoutMethodCheckResult'; +import { KYCShareholderCheckResult } from './kYCShareholderCheckResult'; +import { KYCSignatoryCheckResult } from './kYCSignatoryCheckResult'; +import { KYCUltimateParentCompanyCheckResult } from './kYCUltimateParentCompanyCheckResult'; +import { KYCVerificationResult } from './kYCVerificationResult'; +import { LegalArrangementDetail } from './legalArrangementDetail'; +import { LegalArrangementEntityDetail } from './legalArrangementEntityDetail'; +import { PayoutMethod } from './payoutMethod'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; +import { PerformVerificationRequest } from './performVerificationRequest'; +import { PersonalDocumentData } from './personalDocumentData'; +import { ServiceError } from './serviceError'; +import { ShareholderContact } from './shareholderContact'; +import { SignatoryContact } from './signatoryContact'; +import { StoreDetail } from './storeDetail'; +import { SuspendAccountHolderRequest } from './suspendAccountHolderRequest'; +import { SuspendAccountHolderResponse } from './suspendAccountHolderResponse'; +import { UltimateParentCompany } from './ultimateParentCompany'; +import { UltimateParentCompanyBusinessDetails } from './ultimateParentCompanyBusinessDetails'; +import { UnSuspendAccountHolderRequest } from './unSuspendAccountHolderRequest'; +import { UnSuspendAccountHolderResponse } from './unSuspendAccountHolderResponse'; +import { UpdateAccountHolderRequest } from './updateAccountHolderRequest'; +import { UpdateAccountHolderResponse } from './updateAccountHolderResponse'; +import { UpdateAccountHolderStateRequest } from './updateAccountHolderStateRequest'; +import { UpdateAccountRequest } from './updateAccountRequest'; +import { UpdateAccountResponse } from './updateAccountResponse'; +import { UpdatePayoutScheduleRequest } from './updatePayoutScheduleRequest'; +import { UploadDocumentRequest } from './uploadDocumentRequest'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -195,9 +183,8 @@ let enumsMap: {[index: string]: any} = { "KYCCheckStatusData.TypeEnum": KYCCheckStatusData.TypeEnum, "LegalArrangementDetail.LegalFormEnum": LegalArrangementDetail.LegalFormEnum, "LegalArrangementDetail.TypeEnum": LegalArrangementDetail.TypeEnum, - "LegalArrangementEntityDetail.LegalArrangementMemberEnum": LegalArrangementEntityDetail.LegalArrangementMemberEnum, + "LegalArrangementEntityDetail.LegalArrangementMembersEnum": LegalArrangementEntityDetail.LegalArrangementMembersEnum, "LegalArrangementEntityDetail.LegalEntityTypeEnum": LegalArrangementEntityDetail.LegalEntityTypeEnum, - "PayoutMethod.PayoutMethodTypeEnum": PayoutMethod.PayoutMethodTypeEnum, "PayoutScheduleResponse.ScheduleEnum": PayoutScheduleResponse.ScheduleEnum, "PerformVerificationRequest.AccountStateTypeEnum": PerformVerificationRequest.AccountStateTypeEnum, "PersonalDocumentData.TypeEnum": PersonalDocumentData.TypeEnum, @@ -229,6 +216,7 @@ let typeMap: {[index: string]: any} = { "CloseAccountHolderResponse": CloseAccountHolderResponse, "CloseAccountRequest": CloseAccountRequest, "CloseAccountResponse": CloseAccountResponse, + "CloseStoresRequest": CloseStoresRequest, "CreateAccountHolderRequest": CreateAccountHolderRequest, "CreateAccountHolderResponse": CreateAccountHolderResponse, "CreateAccountRequest": CreateAccountRequest, @@ -249,7 +237,7 @@ let typeMap: {[index: string]: any} = { "GetUploadedDocumentsRequest": GetUploadedDocumentsRequest, "GetUploadedDocumentsResponse": GetUploadedDocumentsResponse, "IndividualDetails": IndividualDetails, - "KYCCheckResult2": KYCCheckResult2, + "KYCCheckResult": KYCCheckResult, "KYCCheckStatusData": KYCCheckStatusData, "KYCCheckSummary": KYCCheckSummary, "KYCLegalArrangementCheckResult": KYCLegalArrangementCheckResult, @@ -257,7 +245,8 @@ let typeMap: {[index: string]: any} = { "KYCPayoutMethodCheckResult": KYCPayoutMethodCheckResult, "KYCShareholderCheckResult": KYCShareholderCheckResult, "KYCSignatoryCheckResult": KYCSignatoryCheckResult, - "KYCVerificationResult2": KYCVerificationResult2, + "KYCUltimateParentCompanyCheckResult": KYCUltimateParentCompanyCheckResult, + "KYCVerificationResult": KYCVerificationResult, "LegalArrangementDetail": LegalArrangementDetail, "LegalArrangementEntityDetail": LegalArrangementEntityDetail, "PayoutMethod": PayoutMethod, @@ -270,6 +259,8 @@ let typeMap: {[index: string]: any} = { "StoreDetail": StoreDetail, "SuspendAccountHolderRequest": SuspendAccountHolderRequest, "SuspendAccountHolderResponse": SuspendAccountHolderResponse, + "UltimateParentCompany": UltimateParentCompany, + "UltimateParentCompanyBusinessDetails": UltimateParentCompanyBusinessDetails, "UnSuspendAccountHolderRequest": UnSuspendAccountHolderRequest, "UnSuspendAccountHolderResponse": UnSuspendAccountHolderResponse, "UpdateAccountHolderRequest": UpdateAccountHolderRequest, @@ -337,6 +328,9 @@ export class ObjectSerializer { return transformedData; } else if (type === "Date") { return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); } else { if (enumsMap[type]) { return data; @@ -394,4 +388,4 @@ export class ObjectSerializer { return instance; } } -} \ No newline at end of file +} diff --git a/src/typings/platformsAccount/payoutMethod.ts b/src/typings/platformsAccount/payoutMethod.ts index 8a7c5f0..84daa65 100644 --- a/src/typings/platformsAccount/payoutMethod.ts +++ b/src/typings/platformsAccount/payoutMethod.ts @@ -1,20 +1,33 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayoutMethod { + /** + * The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'merchantAccount': string; + /** + * Adyen-generated unique alphanumeric identifier (UUID) for the payout method, returned in the response when you create a payout method. Required when updating an existing payout method in an `/updateAccountHolder` request. + */ 'payoutMethodCode'?: string; - 'payoutMethodType'?: PayoutMethod.PayoutMethodTypeEnum; + /** + * Your reference for the payout method. + */ + 'payoutMethodReference'?: string; + /** + * The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference) returned in the `/payments` response when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'recurringDetailReference': string; + /** + * The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'shopperReference': string; static discriminator: string | undefined = undefined; @@ -31,9 +44,9 @@ export class PayoutMethod { "type": "string" }, { - "name": "payoutMethodType", - "baseName": "payoutMethodType", - "type": "PayoutMethod.PayoutMethodTypeEnum" + "name": "payoutMethodReference", + "baseName": "payoutMethodReference", + "type": "string" }, { "name": "recurringDetailReference", @@ -51,8 +64,3 @@ export class PayoutMethod { } } -export namespace PayoutMethod { - export enum PayoutMethodTypeEnum { - CardToken = 'CardToken' - } -} diff --git a/src/typings/platformsAccount/payoutScheduleResponse.ts b/src/typings/platformsAccount/payoutScheduleResponse.ts index 1c77a76..350ad64 100644 --- a/src/typings/platformsAccount/payoutScheduleResponse.ts +++ b/src/typings/platformsAccount/payoutScheduleResponse.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayoutScheduleResponse { /** * The date of the next scheduled payout. @@ -43,6 +41,9 @@ export namespace PayoutScheduleResponse { export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -55,7 +56,12 @@ export namespace PayoutScheduleResponse { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } } diff --git a/src/typings/platformsAccount/performVerificationRequest.ts b/src/typings/platformsAccount/performVerificationRequest.ts index a968894..033a96a 100644 --- a/src/typings/platformsAccount/performVerificationRequest.ts +++ b/src/typings/platformsAccount/performVerificationRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PerformVerificationRequest { /** * The code of the account holder to verify. diff --git a/src/typings/platformsAccount/personalDocumentData.ts b/src/typings/platformsAccount/personalDocumentData.ts index 79e54db..82a057d 100644 --- a/src/typings/platformsAccount/personalDocumentData.ts +++ b/src/typings/platformsAccount/personalDocumentData.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PersonalDocumentData { /** * The expiry date of the document, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**. diff --git a/src/typings/platformsAccount/serviceError.ts b/src/typings/platformsAccount/serviceError.ts index 853a98d..48534a5 100644 --- a/src/typings/platformsAccount/serviceError.ts +++ b/src/typings/platformsAccount/serviceError.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError { /** * The error code mapped to the error message. diff --git a/src/typings/platformsAccount/shareholderContact.ts b/src/typings/platformsAccount/shareholderContact.ts index 8efffe2..db07a05 100644 --- a/src/typings/platformsAccount/shareholderContact.ts +++ b/src/typings/platformsAccount/shareholderContact.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class ShareholderContact { 'address'?: ViasAddress; diff --git a/src/typings/platformsAccount/signatoryContact.ts b/src/typings/platformsAccount/signatoryContact.ts index dad0cd0..6cc2629 100644 --- a/src/typings/platformsAccount/signatoryContact.ts +++ b/src/typings/platformsAccount/signatoryContact.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class SignatoryContact { 'address'?: ViasAddress; @@ -33,11 +30,11 @@ export class SignatoryContact { 'personalData'?: ViasPersonalData; 'phoneNumber'?: ViasPhoneNumber; /** - * The unique identifier (UUID) of the Signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** + * The unique identifier (UUID) of the signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** */ 'signatoryCode'?: string; /** - * Your reference for the Signatory. + * Your reference for the signatory. */ 'signatoryReference'?: string; /** diff --git a/src/typings/platformsAccount/storeDetail.ts b/src/typings/platformsAccount/storeDetail.ts index d5a1403..9c6e9c9 100644 --- a/src/typings/platformsAccount/storeDetail.ts +++ b/src/typings/platformsAccount/storeDetail.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class StoreDetail { 'address': ViasAddress; @@ -45,11 +42,11 @@ export class StoreDetail { */ 'store'?: string; /** - * The name of the account holder\'s store, between 3 to 22 characters in length. This value will be shown in shopper statements. + * The name of the account holder\'s store. This value is shown in shopper statements. * Length: Between 3 to 22 characters * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\** */ 'storeName'?: string; /** - * Your unique identifier for the store, between 3 to 128 characters in length. This value will be shown as the store description in your Customer Area. + * Your unique identifier for the store. The Customer Area also uses this value for the store description. * Length: Between 3 to 128 characters * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\** */ 'storeReference': string; /** diff --git a/src/typings/platformsAccount/suspendAccountHolderRequest.ts b/src/typings/platformsAccount/suspendAccountHolderRequest.ts index 977eaaf..0906a0e 100644 --- a/src/typings/platformsAccount/suspendAccountHolderRequest.ts +++ b/src/typings/platformsAccount/suspendAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SuspendAccountHolderRequest { /** * The code of the account holder to be suspended. diff --git a/src/typings/platformsAccount/suspendAccountHolderResponse.ts b/src/typings/platformsAccount/suspendAccountHolderResponse.ts index ed1cd15..905bca5 100644 --- a/src/typings/platformsAccount/suspendAccountHolderResponse.ts +++ b/src/typings/platformsAccount/suspendAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class SuspendAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/ultimateParentCompany.ts b/src/typings/platformsAccount/ultimateParentCompany.ts new file mode 100644 index 0000000..207d895 --- /dev/null +++ b/src/typings/platformsAccount/ultimateParentCompany.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { UltimateParentCompanyBusinessDetails } from './ultimateParentCompanyBusinessDetails'; +import { ViasAddress } from './viasAddress'; + +export class UltimateParentCompany { + 'address'?: ViasAddress; + 'businessDetails'?: UltimateParentCompanyBusinessDetails; + /** + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create an ultimate parent company. Required when updating an existing entry in an `/updateAccountHolder` request. + */ + 'ultimateParentCompanyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "ViasAddress" + }, + { + "name": "businessDetails", + "baseName": "businessDetails", + "type": "UltimateParentCompanyBusinessDetails" + }, + { + "name": "ultimateParentCompanyCode", + "baseName": "ultimateParentCompanyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UltimateParentCompany.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts b/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts new file mode 100644 index 0000000..ecc0588 --- /dev/null +++ b/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UltimateParentCompanyBusinessDetails { + /** + * The legal name of the company. + */ + 'legalBusinessName'?: string; + /** + * The registration number of the company. + */ + 'registrationNumber'?: string; + /** + * Market Identifier Code (MIC). + */ + 'stockExchange'?: string; + /** + * International Securities Identification Number (ISIN). + */ + 'stockNumber'?: string; + /** + * Stock Ticker symbol. + */ + 'stockTicker'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "legalBusinessName", + "baseName": "legalBusinessName", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "stockExchange", + "baseName": "stockExchange", + "type": "string" + }, + { + "name": "stockNumber", + "baseName": "stockNumber", + "type": "string" + }, + { + "name": "stockTicker", + "baseName": "stockTicker", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UltimateParentCompanyBusinessDetails.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts b/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts index f92edc0..c91cfae 100644 --- a/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts +++ b/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UnSuspendAccountHolderRequest { /** * The code of the account holder to be reinstated. diff --git a/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts b/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts index 8bb5977..abc2719 100644 --- a/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts +++ b/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class UnSuspendAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/updateAccountHolderRequest.ts b/src/typings/platformsAccount/updateAccountHolderRequest.ts index cd64878..58757e5 100644 --- a/src/typings/platformsAccount/updateAccountHolderRequest.ts +++ b/src/typings/platformsAccount/updateAccountHolderRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; +import { AccountHolderDetails } from './accountHolderDetails'; export class UpdateAccountHolderRequest { /** diff --git a/src/typings/platformsAccount/updateAccountHolderResponse.ts b/src/typings/platformsAccount/updateAccountHolderResponse.ts index 081cd2c..65c0ebf 100644 --- a/src/typings/platformsAccount/updateAccountHolderResponse.ts +++ b/src/typings/platformsAccount/updateAccountHolderResponse.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class UpdateAccountHolderResponse { /** @@ -46,7 +43,7 @@ export class UpdateAccountHolderResponse { * The result code. */ 'resultCode'?: string; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -103,7 +100,7 @@ export class UpdateAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/updateAccountHolderStateRequest.ts b/src/typings/platformsAccount/updateAccountHolderStateRequest.ts index 977e79d..3259932 100644 --- a/src/typings/platformsAccount/updateAccountHolderStateRequest.ts +++ b/src/typings/platformsAccount/updateAccountHolderStateRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdateAccountHolderStateRequest { /** * The code of the Account Holder on which to update the state. diff --git a/src/typings/platformsAccount/updateAccountRequest.ts b/src/typings/platformsAccount/updateAccountRequest.ts index c4737c4..f9bd7c5 100644 --- a/src/typings/platformsAccount/updateAccountRequest.ts +++ b/src/typings/platformsAccount/updateAccountRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest'; +import { UpdatePayoutScheduleRequest } from './updatePayoutScheduleRequest'; export class UpdateAccountRequest { /** diff --git a/src/typings/platformsAccount/updateAccountResponse.ts b/src/typings/platformsAccount/updateAccountResponse.ts index 07f81cd..8f5e0a0 100644 --- a/src/typings/platformsAccount/updateAccountResponse.ts +++ b/src/typings/platformsAccount/updateAccountResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { ErrorFieldType } from './errorFieldType'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class UpdateAccountResponse { /** diff --git a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts index c7b5c27..adbb1a8 100644 --- a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts +++ b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdatePayoutScheduleRequest { /** * Direction on how to handle any payouts that have already been scheduled. Permitted values: * `CLOSE` will close the existing batch of payouts. * `UPDATE` will reschedule the existing batch to the new schedule. * `NOTHING` (**default**) will allow the payout to proceed. @@ -20,7 +18,7 @@ export class UpdatePayoutScheduleRequest { */ 'reason'?: string; /** - * The payout schedule to which the account is to be updated. Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur. + * The payout schedule to which the account is to be updated. Permitted values: `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur. */ 'schedule': UpdatePayoutScheduleRequest.ScheduleEnum; @@ -57,6 +55,9 @@ export namespace UpdatePayoutScheduleRequest { export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -69,7 +70,12 @@ export namespace UpdatePayoutScheduleRequest { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } } diff --git a/src/typings/platformsAccount/uploadDocumentRequest.ts b/src/typings/platformsAccount/uploadDocumentRequest.ts index 483ccd5..61f5bb0 100644 --- a/src/typings/platformsAccount/uploadDocumentRequest.ts +++ b/src/typings/platformsAccount/uploadDocumentRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {DocumentDetail} from './documentDetail'; +import { DocumentDetail } from './documentDetail'; export class UploadDocumentRequest { /** diff --git a/src/typings/platformsAccount/viasAddress.ts b/src/typings/platformsAccount/viasAddress.ts index 880cc56..0533d6c 100644 --- a/src/typings/platformsAccount/viasAddress.ts +++ b/src/typings/platformsAccount/viasAddress.ts @@ -1,22 +1,20 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasAddress { /** - * The name of the city. >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. + * The name of the city. Required if the `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. */ 'city'?: string; /** - * The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character country code of the address in ISO-3166-1 alpha-2 format. For example, **NL**. */ 'country': string; /** @@ -24,15 +22,15 @@ export class ViasAddress { */ 'houseNumberOrName'?: string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. >Required if either `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. + * The postal code. Required if the `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ 'postalCode'?: string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. + * The abbreviation of the state or province. Required if the `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. Maximum length: * 2 characters for addresses in the US or Canada. * 3 characters for all other countries. */ 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided. + * The name of the street. Required if the `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided. */ 'street'?: string; diff --git a/src/typings/platformsAccount/viasName.ts b/src/typings/platformsAccount/viasName.ts index 9d8a0e6..39ec41e 100644 --- a/src/typings/platformsAccount/viasName.ts +++ b/src/typings/platformsAccount/viasName.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasName { /** * The first name. diff --git a/src/typings/platformsAccount/viasPersonalData.ts b/src/typings/platformsAccount/viasPersonalData.ts index 2e9728c..199efb6 100644 --- a/src/typings/platformsAccount/viasPersonalData.ts +++ b/src/typings/platformsAccount/viasPersonalData.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {PersonalDocumentData} from './personalDocumentData'; +import { PersonalDocumentData } from './personalDocumentData'; export class ViasPersonalData { /** diff --git a/src/typings/platformsAccount/viasPhoneNumber.ts b/src/typings/platformsAccount/viasPhoneNumber.ts index 207586f..3387378 100644 --- a/src/typings/platformsAccount/viasPhoneNumber.ts +++ b/src/typings/platformsAccount/viasPhoneNumber.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasPhoneNumber { /** * The two-character country code of the phone number. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). diff --git a/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts new file mode 100644 index 0000000..e33b25e --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class CreateNotificationConfigurationRequest { + 'configurationDetails': NotificationConfigurationDetails; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + } ]; + + static getAttributeTypeMap() { + return CreateNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts new file mode 100644 index 0000000..48b4bad --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DeleteNotificationConfigurationRequest { + /** + * A list of IDs of the notification subscription configurations to be deleted. + */ + 'notificationIds': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notificationIds", + "baseName": "notificationIds", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeleteNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/errorFieldType.ts b/src/typings/platformsNotificationConfiguration/errorFieldType.ts new file mode 100644 index 0000000..6ad0e7c --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/errorFieldType.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FieldType } from './fieldType'; + +export class ErrorFieldType { + /** + * The validation error code. + */ + 'errorCode'?: number; + /** + * A description of the validation error. + */ + 'errorDescription'?: string; + 'fieldType'?: FieldType; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "number" + }, + { + "name": "errorDescription", + "baseName": "errorDescription", + "type": "string" + }, + { + "name": "fieldType", + "baseName": "fieldType", + "type": "FieldType" + } ]; + + static getAttributeTypeMap() { + return ErrorFieldType.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/exchangeMessage.ts b/src/typings/platformsNotificationConfiguration/exchangeMessage.ts new file mode 100644 index 0000000..984b535 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/exchangeMessage.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ExchangeMessage { + 'messageCode'?: string; + 'messageDescription'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "messageCode", + "baseName": "messageCode", + "type": "string" + }, + { + "name": "messageDescription", + "baseName": "messageDescription", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExchangeMessage.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/fieldType.ts b/src/typings/platformsNotificationConfiguration/fieldType.ts new file mode 100644 index 0000000..487bf1b --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/fieldType.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FieldType { + /** + * The full name of the property. + */ + 'field'?: string; + /** + * The type of the field. + */ + 'fieldName'?: FieldType.FieldNameEnum; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + 'shareholderCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "field", + "baseName": "field", + "type": "string" + }, + { + "name": "fieldName", + "baseName": "fieldName", + "type": "FieldType.FieldNameEnum" + }, + { + "name": "shareholderCode", + "baseName": "shareholderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FieldType.attributeTypeMap; + } +} + +export namespace FieldType { + export enum FieldNameEnum { + AccountCode = 'accountCode', + AccountHolderCode = 'accountHolderCode', + AccountHolderDetails = 'accountHolderDetails', + AccountNumber = 'accountNumber', + AccountStateType = 'accountStateType', + AccountStatus = 'accountStatus', + AccountType = 'accountType', + Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', + BankAccount = 'bankAccount', + BankAccountCode = 'bankAccountCode', + BankAccountName = 'bankAccountName', + BankAccountUuid = 'bankAccountUUID', + BankBicSwift = 'bankBicSwift', + BankCity = 'bankCity', + BankCode = 'bankCode', + BankName = 'bankName', + BankStatement = 'bankStatement', + BranchCode = 'branchCode', + BusinessContact = 'businessContact', + CardToken = 'cardToken', + CheckCode = 'checkCode', + City = 'city', + CompanyRegistration = 'companyRegistration', + ConstitutionalDocument = 'constitutionalDocument', + Country = 'country', + CountryCode = 'countryCode', + Currency = 'currency', + CurrencyCode = 'currencyCode', + DateOfBirth = 'dateOfBirth', + Description = 'description', + DestinationAccountCode = 'destinationAccountCode', + Document = 'document', + DocumentContent = 'documentContent', + DocumentExpirationDate = 'documentExpirationDate', + DocumentIssuerCountry = 'documentIssuerCountry', + DocumentIssuerState = 'documentIssuerState', + DocumentName = 'documentName', + DocumentNumber = 'documentNumber', + DocumentType = 'documentType', + DoingBusinessAs = 'doingBusinessAs', + DrivingLicence = 'drivingLicence', + DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicense = 'drivingLicense', + Email = 'email', + FirstName = 'firstName', + FormType = 'formType', + FullPhoneNumber = 'fullPhoneNumber', + Gender = 'gender', + HopWebserviceUser = 'hopWebserviceUser', + HouseNumberOrName = 'houseNumberOrName', + Iban = 'iban', + IdCard = 'idCard', + IdCardBack = 'idCardBack', + IdCardFront = 'idCardFront', + IdNumber = 'idNumber', + IdentityDocument = 'identityDocument', + IndividualDetails = 'individualDetails', + Infix = 'infix', + JobTitle = 'jobTitle', + LastName = 'lastName', + LastReviewDate = 'lastReviewDate', + LegalArrangement = 'legalArrangement', + LegalArrangementCode = 'legalArrangementCode', + LegalArrangementEntity = 'legalArrangementEntity', + LegalArrangementEntityCode = 'legalArrangementEntityCode', + LegalArrangementLegalForm = 'legalArrangementLegalForm', + LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', + LegalArrangementName = 'legalArrangementName', + LegalArrangementReference = 'legalArrangementReference', + LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', + LegalArrangementTaxNumber = 'legalArrangementTaxNumber', + LegalArrangementType = 'legalArrangementType', + LegalBusinessName = 'legalBusinessName', + LegalEntity = 'legalEntity', + LegalEntityType = 'legalEntityType', + MerchantAccount = 'merchantAccount', + MerchantCategoryCode = 'merchantCategoryCode', + MerchantReference = 'merchantReference', + MicroDeposit = 'microDeposit', + Name = 'name', + Nationality = 'nationality', + OriginalReference = 'originalReference', + OwnerCity = 'ownerCity', + OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', + OwnerHouseNumberOrName = 'ownerHouseNumberOrName', + OwnerName = 'ownerName', + OwnerPostalCode = 'ownerPostalCode', + OwnerState = 'ownerState', + OwnerStreet = 'ownerStreet', + Passport = 'passport', + PassportNumber = 'passportNumber', + PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', + PersonalData = 'personalData', + PhoneCountryCode = 'phoneCountryCode', + PhoneNumber = 'phoneNumber', + PostalCode = 'postalCode', + PrimaryCurrency = 'primaryCurrency', + Reason = 'reason', + RegistrationNumber = 'registrationNumber', + ReturnUrl = 'returnUrl', + Schedule = 'schedule', + Shareholder = 'shareholder', + ShareholderCode = 'shareholderCode', + ShareholderCodeAndSignatoryCode = 'shareholderCodeAndSignatoryCode', + ShareholderCodeOrSignatoryCode = 'shareholderCodeOrSignatoryCode', + ShareholderType = 'shareholderType', + ShopperInteraction = 'shopperInteraction', + Signatory = 'signatory', + SignatoryCode = 'signatoryCode', + SocialSecurityNumber = 'socialSecurityNumber', + SourceAccountCode = 'sourceAccountCode', + SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', + SplitCurrency = 'splitCurrency', + SplitValue = 'splitValue', + Splits = 'splits', + StateOrProvince = 'stateOrProvince', + Status = 'status', + StockExchange = 'stockExchange', + StockNumber = 'stockNumber', + StockTicker = 'stockTicker', + Store = 'store', + StoreDetail = 'storeDetail', + StoreName = 'storeName', + StoreReference = 'storeReference', + Street = 'street', + TaxId = 'taxId', + Tier = 'tier', + TierNumber = 'tierNumber', + TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', + Unknown = 'unknown', + Value = 'value', + VerificationType = 'verificationType', + VirtualAccount = 'virtualAccount', + VisaNumber = 'visaNumber', + WebAddress = 'webAddress', + Year = 'year' + } +} diff --git a/src/typings/platformsNotificationConfiguration/genericResponse.ts b/src/typings/platformsNotificationConfiguration/genericResponse.ts new file mode 100644 index 0000000..796ccac --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/genericResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class GenericResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GenericResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts new file mode 100644 index 0000000..07d8018 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts @@ -0,0 +1,59 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class GetNotificationConfigurationListResponse { + /** + * Details of the notification subscription configurations. + */ + 'configurations': Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurations", + "baseName": "configurations", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationListResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts new file mode 100644 index 0000000..2df287d --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetNotificationConfigurationRequest { + /** + * The ID of the notification subscription configuration whose details are to be retrieved. + */ + 'notificationId': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts new file mode 100644 index 0000000..f7b973c --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class GetNotificationConfigurationResponse { + 'configurationDetails': NotificationConfigurationDetails; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/models.ts b/src/typings/platformsNotificationConfiguration/models.ts new file mode 100644 index 0000000..e1cb71f --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/models.ts @@ -0,0 +1,195 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './createNotificationConfigurationRequest'; +export * from './deleteNotificationConfigurationRequest'; +export * from './errorFieldType'; +export * from './exchangeMessage'; +export * from './fieldType'; +export * from './genericResponse'; +export * from './getNotificationConfigurationListResponse'; +export * from './getNotificationConfigurationRequest'; +export * from './getNotificationConfigurationResponse'; +export * from './notificationConfigurationDetails'; +export * from './notificationEventConfiguration'; +export * from './serviceError'; +export * from './testNotificationConfigurationRequest'; +export * from './testNotificationConfigurationResponse'; +export * from './updateNotificationConfigurationRequest'; + + +import { CreateNotificationConfigurationRequest } from './createNotificationConfigurationRequest'; +import { DeleteNotificationConfigurationRequest } from './deleteNotificationConfigurationRequest'; +import { ErrorFieldType } from './errorFieldType'; +import { ExchangeMessage } from './exchangeMessage'; +import { FieldType } from './fieldType'; +import { GenericResponse } from './genericResponse'; +import { GetNotificationConfigurationListResponse } from './getNotificationConfigurationListResponse'; +import { GetNotificationConfigurationRequest } from './getNotificationConfigurationRequest'; +import { GetNotificationConfigurationResponse } from './getNotificationConfigurationResponse'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; +import { NotificationEventConfiguration } from './notificationEventConfiguration'; +import { ServiceError } from './serviceError'; +import { TestNotificationConfigurationRequest } from './testNotificationConfigurationRequest'; +import { TestNotificationConfigurationResponse } from './testNotificationConfigurationResponse'; +import { UpdateNotificationConfigurationRequest } from './updateNotificationConfigurationRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "FieldType.FieldNameEnum": FieldType.FieldNameEnum, + "NotificationConfigurationDetails.SslProtocolEnum": NotificationConfigurationDetails.SslProtocolEnum, + "NotificationEventConfiguration.EventTypeEnum": NotificationEventConfiguration.EventTypeEnum, + "NotificationEventConfiguration.IncludeModeEnum": NotificationEventConfiguration.IncludeModeEnum, + "TestNotificationConfigurationRequest.EventTypesEnum": TestNotificationConfigurationRequest.EventTypesEnum, + "TestNotificationConfigurationResponse.EventTypesEnum": TestNotificationConfigurationResponse.EventTypesEnum, +} + +let typeMap: {[index: string]: any} = { + "CreateNotificationConfigurationRequest": CreateNotificationConfigurationRequest, + "DeleteNotificationConfigurationRequest": DeleteNotificationConfigurationRequest, + "ErrorFieldType": ErrorFieldType, + "ExchangeMessage": ExchangeMessage, + "FieldType": FieldType, + "GenericResponse": GenericResponse, + "GetNotificationConfigurationListResponse": GetNotificationConfigurationListResponse, + "GetNotificationConfigurationRequest": GetNotificationConfigurationRequest, + "GetNotificationConfigurationResponse": GetNotificationConfigurationResponse, + "NotificationConfigurationDetails": NotificationConfigurationDetails, + "NotificationEventConfiguration": NotificationEventConfiguration, + "ServiceError": ServiceError, + "TestNotificationConfigurationRequest": TestNotificationConfigurationRequest, + "TestNotificationConfigurationResponse": TestNotificationConfigurationResponse, + "UpdateNotificationConfigurationRequest": UpdateNotificationConfigurationRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts new file mode 100644 index 0000000..ac846ce --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts @@ -0,0 +1,123 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationEventConfiguration } from './notificationEventConfiguration'; + +export class NotificationConfigurationDetails { + /** + * Indicates whether the notification subscription is active. + */ + 'active'?: boolean; + /** + * The version of the notification to which you are subscribing. To make sure that your integration can properly process the notification, subscribe to the same version as the API that you\'re using. + */ + 'apiVersion'?: number; + /** + * A description of the notification subscription configuration. + */ + 'description'?: string; + /** + * Contains objects that define event types and their subscription settings. + */ + 'eventConfigs': Array; + /** + * A string with which to salt the notification(s) before hashing. If this field is provided, a hash value will be included under the notification header `HmacSignature` and the hash protocol will be included under the notification header `Protocol`. A notification body along with its `hmacSignatureKey` and `Protocol` can be used to calculate a hash value; matching this hash value with the `HmacSignature` will ensure that the notification body has not been tampered with or corrupted. >Must be a 32-byte hex-encoded string (i.e. a string containing 64 hexadecimal characters; e.g. \"b0ea55c2fe60d4d1d605e9c385e0e7f7e6cafbb939ce07010f31a327a0871f27\"). The omission of this field will preclude the provision of the `HmacSignature` and `Protocol` headers in notification(s). + */ + 'hmacSignatureKey'?: string; + /** + * Adyen-generated ID for the entry, returned in the response when you create a notification configuration. Required when updating an existing configuration using [`/updateNotificationConfiguration`](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/latest/post/updateNotificationConfiguration). + */ + 'notificationId'?: number; + /** + * The password to use when accessing the notifyURL with the specified username. + */ + 'notifyPassword'?: string; + /** + * The URL to which the notifications are to be sent. + */ + 'notifyURL': string; + /** + * The username to use when accessing the notifyURL. + */ + 'notifyUsername'?: string; + /** + * The SSL protocol employed by the endpoint. >Permitted values: `SSL`, `SSLInsecureCiphers`, `TLS`, `TLSv10`, `TLSv10InsecureCiphers`, `TLSv11`, `TLSv12`. + */ + 'sslProtocol'?: NotificationConfigurationDetails.SslProtocolEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "eventConfigs", + "baseName": "eventConfigs", + "type": "Array" + }, + { + "name": "hmacSignatureKey", + "baseName": "hmacSignatureKey", + "type": "string" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + }, + { + "name": "notifyPassword", + "baseName": "notifyPassword", + "type": "string" + }, + { + "name": "notifyURL", + "baseName": "notifyURL", + "type": "string" + }, + { + "name": "notifyUsername", + "baseName": "notifyUsername", + "type": "string" + }, + { + "name": "sslProtocol", + "baseName": "sslProtocol", + "type": "NotificationConfigurationDetails.SslProtocolEnum" + } ]; + + static getAttributeTypeMap() { + return NotificationConfigurationDetails.attributeTypeMap; + } +} + +export namespace NotificationConfigurationDetails { + export enum SslProtocolEnum { + Ssl = 'SSL', + SslInsecureCiphers = 'SSLInsecureCiphers', + Tls = 'TLS', + Tlsv10 = 'TLSv10', + Tlsv10InsecureCiphers = 'TLSv10InsecureCiphers', + Tlsv11 = 'TLSv11', + Tlsv12 = 'TLSv12' + } +} diff --git a/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts new file mode 100644 index 0000000..d37641f --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts @@ -0,0 +1,70 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class NotificationEventConfiguration { + /** + * The type of event. Possible values: **ACCOUNT_CLOSED**, **ACCOUNT_CREATED**, **ACCOUNT_FUNDS_BELOW_THRESHOLD**, **ACCOUNT_HOLDER_CREATED**, **ACCOUNT_HOLDER_LIMIT_REACHED**, **ACCOUNT_HOLDER_PAYOUT**, **ACCOUNT_HOLDER_STATUS_CHANGE**, **ACCOUNT_HOLDER_STORE_STATUS_CHANGE**, **ACCOUNT_HOLDER_UPCOMING_DEADLINE**, **ACCOUNT_HOLDER_UPDATED**, **ACCOUNT_HOLDER_VERIFICATION**, **ACCOUNT_UPDATED**, **BENEFICIARY_SETUP**, **COMPENSATE_NEGATIVE_BALANCE**, **DIRECT_DEBIT_INITIATED**, **PAYMENT_FAILURE**, **REFUND_FUNDS_TRANSFER**, **REPORT_AVAILABLE**, **SCHEDULED_REFUNDS**, **TRANSFER_FUNDS**. + */ + 'eventType': NotificationEventConfiguration.EventTypeEnum; + /** + * Indicates whether the specified `eventType` is sent to your webhook endpoint. Possible values: * **INCLUDE**: Send the specified `eventType`. * **EXCLUDE**: Send all event types except the specified `eventType` and other event types with the `includeMode` set to **EXCLUDE**. + */ + 'includeMode': NotificationEventConfiguration.IncludeModeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventType", + "baseName": "eventType", + "type": "NotificationEventConfiguration.EventTypeEnum" + }, + { + "name": "includeMode", + "baseName": "includeMode", + "type": "NotificationEventConfiguration.IncludeModeEnum" + } ]; + + static getAttributeTypeMap() { + return NotificationEventConfiguration.attributeTypeMap; + } +} + +export namespace NotificationEventConfiguration { + export enum EventTypeEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } + export enum IncludeModeEnum { + Exclude = 'EXCLUDE', + Include = 'INCLUDE' + } +} diff --git a/src/typings/platformsNotificationConfiguration/serviceError.ts b/src/typings/platformsNotificationConfiguration/serviceError.ts new file mode 100644 index 0000000..48534a5 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts new file mode 100644 index 0000000..05c14da --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TestNotificationConfigurationRequest { + /** + * The event types to test. If left blank, then all of the configured event types will be tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + 'eventTypes'?: Array; + /** + * The ID of the notification subscription configuration to be tested. + */ + 'notificationId': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventTypes", + "baseName": "eventTypes", + "type": "Array" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return TestNotificationConfigurationRequest.attributeTypeMap; + } +} + +export namespace TestNotificationConfigurationRequest { + export enum EventTypesEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } +} diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts new file mode 100644 index 0000000..b082bd5 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts @@ -0,0 +1,122 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { ExchangeMessage } from './exchangeMessage'; + +export class TestNotificationConfigurationResponse { + /** + * Any error messages encountered. + */ + 'errorMessages'?: Array; + /** + * The event types that were tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + 'eventTypes': Array; + /** + * The notification message and related response messages. + */ + 'exchangeMessages': Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The ID of the notification subscription configuration. + */ + 'notificationId': number; + /** + * A list of messages describing the testing steps. + */ + 'okMessages': Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorMessages", + "baseName": "errorMessages", + "type": "Array" + }, + { + "name": "eventTypes", + "baseName": "eventTypes", + "type": "Array" + }, + { + "name": "exchangeMessages", + "baseName": "exchangeMessages", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + }, + { + "name": "okMessages", + "baseName": "okMessages", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TestNotificationConfigurationResponse.attributeTypeMap; + } +} + +export namespace TestNotificationConfigurationResponse { + export enum EventTypesEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } +} diff --git a/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts new file mode 100644 index 0000000..13fe250 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class UpdateNotificationConfigurationRequest { + 'configurationDetails': NotificationConfigurationDetails; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + } ]; + + static getAttributeTypeMap() { + return UpdateNotificationConfigurationRequest.attributeTypeMap; + } +} + From 86d64e8343c595f2a91bf2abd6e6adb50915f17c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Aug 2022 08:41:23 +0200 Subject: [PATCH 3/3] Bump @typescript-eslint/eslint-plugin from 5.33.0 to 5.33.1 (#961) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.33.0 to 5.33.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.33.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 72 ++++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 54 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 1fe4aeb..005b6b7 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "5.33.0", + "@typescript-eslint/eslint-plugin": "5.33.1", "@typescript-eslint/parser": "5.33.0", "acorn": "^8.0.1", "coveralls": "3.1.1", diff --git a/yarn.lock b/yarn.lock index af9cc04..5197fe6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -892,14 +892,14 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@5.33.0": - version "5.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.0.tgz#059798888720ec52ffa96c5f868e31a8f70fa3ec" - integrity sha512-jHvZNSW2WZ31OPJ3enhLrEKvAZNyAFWZ6rx9tUwaessTc4sx9KmgMNhVcqVAl1ETnT5rU5fpXTLmY9YvC1DCNg== +"@typescript-eslint/eslint-plugin@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.33.1.tgz#c0a480d05211660221eda963cc844732fe9b1714" + integrity sha512-S1iZIxrTvKkU3+m63YUOxYPKaP+yWDQrdhxTglVDVEVBf+aCSw85+BmJnyUaQQsk5TXFG/LpBu9fa+LrAQ91fQ== dependencies: - "@typescript-eslint/scope-manager" "5.33.0" - "@typescript-eslint/type-utils" "5.33.0" - "@typescript-eslint/utils" "5.33.0" + "@typescript-eslint/scope-manager" "5.33.1" + "@typescript-eslint/type-utils" "5.33.1" + "@typescript-eslint/utils" "5.33.1" debug "^4.3.4" functional-red-black-tree "^1.0.1" ignore "^5.2.0" @@ -925,12 +925,20 @@ "@typescript-eslint/types" "5.33.0" "@typescript-eslint/visitor-keys" "5.33.0" -"@typescript-eslint/type-utils@5.33.0": - version "5.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.33.0.tgz#92ad1fba973c078d23767ce2d8d5a601baaa9338" - integrity sha512-2zB8uEn7hEH2pBeyk3NpzX1p3lF9dKrEbnXq1F7YkpZ6hlyqb2yZujqgRGqXgRBTHWIUG3NGx/WeZk224UKlIA== +"@typescript-eslint/scope-manager@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.33.1.tgz#8d31553e1b874210018ca069b3d192c6d23bc493" + integrity sha512-8ibcZSqy4c5m69QpzJn8XQq9NnqAToC8OdH/W6IXPXv83vRyEDPYLdjAlUx8h/rbusq6MkW4YdQzURGOqsn3CA== dependencies: - "@typescript-eslint/utils" "5.33.0" + "@typescript-eslint/types" "5.33.1" + "@typescript-eslint/visitor-keys" "5.33.1" + +"@typescript-eslint/type-utils@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.33.1.tgz#1a14e94650a0ae39f6e3b77478baff002cec4367" + integrity sha512-X3pGsJsD8OiqhNa5fim41YtlnyiWMF/eKsEZGsHID2HcDqeSC5yr/uLOeph8rNF2/utwuI0IQoAK3fpoxcLl2g== + dependencies: + "@typescript-eslint/utils" "5.33.1" debug "^4.3.4" tsutils "^3.21.0" @@ -939,6 +947,11 @@ resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.33.0.tgz#d41c584831805554b063791338b0220b613a275b" integrity sha512-nIMt96JngB4MYFYXpZ/3ZNU4GWPNdBbcB5w2rDOCpXOVUkhtNlG2mmm8uXhubhidRZdwMaMBap7Uk8SZMU/ppw== +"@typescript-eslint/types@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.33.1.tgz#3faef41793d527a519e19ab2747c12d6f3741ff7" + integrity sha512-7K6MoQPQh6WVEkMrMW5QOA5FO+BOwzHSNd0j3+BlBwd6vtzfZceJ8xJ7Um2XDi/O3umS8/qDX6jdy2i7CijkwQ== + "@typescript-eslint/typescript-estree@5.33.0": version "5.33.0" resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.0.tgz#02d9c9ade6f4897c09e3508c27de53ad6bfa54cf" @@ -952,15 +965,28 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.33.0": - version "5.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.33.0.tgz#46797461ce3146e21c095d79518cc0f8ec574038" - integrity sha512-JxOAnXt9oZjXLIiXb5ZIcZXiwVHCkqZgof0O8KPgz7C7y0HS42gi75PdPlqh1Tf109M0fyUw45Ao6JLo7S5AHw== +"@typescript-eslint/typescript-estree@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.33.1.tgz#a573bd360790afdcba80844e962d8b2031984f34" + integrity sha512-JOAzJ4pJ+tHzA2pgsWQi4804XisPHOtbvwUyqsuuq8+y5B5GMZs7lI1xDWs6V2d7gE/Ez5bTGojSK12+IIPtXA== + dependencies: + "@typescript-eslint/types" "5.33.1" + "@typescript-eslint/visitor-keys" "5.33.1" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.33.1.tgz#171725f924fe1fe82bb776522bb85bc034e88575" + integrity sha512-uphZjkMaZ4fE8CR4dU7BquOV6u0doeQAr8n6cQenl/poMaIyJtBu8eys5uk6u5HiDH01Mj5lzbJ5SfeDz7oqMQ== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.33.0" - "@typescript-eslint/types" "5.33.0" - "@typescript-eslint/typescript-estree" "5.33.0" + "@typescript-eslint/scope-manager" "5.33.1" + "@typescript-eslint/types" "5.33.1" + "@typescript-eslint/typescript-estree" "5.33.1" eslint-scope "^5.1.1" eslint-utils "^3.0.0" @@ -972,6 +998,14 @@ "@typescript-eslint/types" "5.33.0" eslint-visitor-keys "^3.3.0" +"@typescript-eslint/visitor-keys@5.33.1": + version "5.33.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.33.1.tgz#0155c7571c8cd08956580b880aea327d5c34a18b" + integrity sha512-nwIxOK8Z2MPWltLKMLOEZwmfBZReqUdbEoHQXeCpa+sRVARe5twpJGHCB4dk9903Yaf0nMAlGbQfaAH92F60eg== + dependencies: + "@typescript-eslint/types" "5.33.1" + eslint-visitor-keys "^3.3.0" + abab@^2.0.3, abab@^2.0.5: version "2.0.6" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291"