From 61fcdeb4e8b7533d7fd2d7721c99d7b5f4bbde3c Mon Sep 17 00:00:00 2001 From: jillingk <93914435+jillingk@users.noreply.github.com> Date: Wed, 23 Aug 2023 16:09:07 +0200 Subject: [PATCH] Checkout Automation PR and fix Classic Payments (#1239) * [create-pull-request] automated change * checkout automation branch and fix the classic platforms --------- Co-authored-by: Adyen Automation --- src/__tests__/classicIntegration.spec.ts | 73 +-- src/notification/bankingWebhookHandler.ts | 2 + .../legalEntityManagement/documentsApi.ts | 1 + .../legalEntityManagement/legalEntitiesApi.ts | 1 + .../transferInstrumentsApi.ts | 1 + .../accountHolderCapability.ts | 5 +- .../balancePlatform/capabilityProblem.ts | 38 ++ .../capabilityProblemEntity.ts | 62 ++ .../capabilityProblemEntityRecursive.ts | 55 ++ src/typings/balancePlatform/models.ts | 24 + .../remediatingAction.ts} | 24 +- .../balancePlatform/transactionRule.ts | 1 + .../balancePlatform/transactionRuleInfo.ts | 1 + .../balancePlatform/verificationError.ts | 136 +++++ .../verificationErrorRecursive.ts | 126 ++++ src/typings/checkout/achDetails.ts | 18 + src/typings/checkout/additionalDataAirline.ts | 26 +- .../checkout/additionalDataCarRental.ts | 20 +- src/typings/checkout/additionalDataLevel23.ts | 34 +- src/typings/checkout/additionalDataLodging.ts | 6 +- .../additionalDataTemporaryServices.ts | 4 +- src/typings/checkout/amazonPayDetails.ts | 11 +- src/typings/checkout/klarnaDetails.ts | 9 + src/typings/checkout/models.ts | 1 + src/typings/checkout/split.ts | 1 + src/typings/index.ts | 2 +- .../legalEntityManagement/bankAccountInfo.ts | 5 +- .../hKLocalAccountIdentification.ts | 53 ++ src/typings/legalEntityManagement/models.ts | 4 + .../onboardingLinkInfo.ts | 2 +- .../verificationDeadline.ts | 9 + src/typings/payments/accountInfo.ts | 232 -------- src/typings/payments/acctInfo.ts | 208 ------- .../payments/additionalData3DSecure.ts | 84 --- src/typings/payments/additionalDataAirline.ts | 273 --------- .../payments/additionalDataCarRental.ts | 228 ------- src/typings/payments/additionalDataCommon.ts | 171 ------ src/typings/payments/additionalDataLevel23.ts | 174 ------ src/typings/payments/additionalDataLodging.ts | 174 ------ .../payments/additionalDataModifications.ts | 30 - .../payments/additionalDataOpenInvoice.ts | 183 ------ src/typings/payments/additionalDataOpi.ts | 30 - src/typings/payments/additionalDataRatepay.ts | 93 --- src/typings/payments/additionalDataRetry.ts | 48 -- src/typings/payments/additionalDataRisk.ts | 210 ------- .../payments/additionalDataRiskStandalone.ts | 156 ----- .../payments/additionalDataSubMerchant.ts | 111 ---- .../additionalDataTemporaryServices.ts | 102 ---- src/typings/payments/additionalDataWallets.ts | 75 --- src/typings/payments/address.ts | 75 --- .../payments/adjustAuthorisationRequest.ts | 115 ---- src/typings/payments/amount.ts | 39 -- src/typings/payments/applicationInfo.ts | 61 -- .../payments/authenticationResultRequest.ts | 39 -- .../payments/authenticationResultResponse.ts | 35 -- src/typings/payments/bankAccount.ts | 102 ---- src/typings/payments/browserInfo.ts | 102 ---- src/typings/payments/cancelOrRefundRequest.ts | 98 --- src/typings/payments/cancelRequest.ts | 108 ---- src/typings/payments/captureRequest.ts | 115 ---- src/typings/payments/card.ts | 93 --- src/typings/payments/commonField.ts | 39 -- src/typings/payments/deviceRenderOptions.ts | 53 -- src/typings/payments/donationRequest.ts | 71 --- src/typings/payments/externalPlatform.ts | 48 -- src/typings/payments/forexQuote.ts | 118 ---- src/typings/payments/fraudCheckResult.ts | 48 -- .../payments/fraudCheckResultWrapper.ts | 28 - src/typings/payments/fraudResult.ts | 40 -- src/typings/payments/fundDestination.ts | 94 --- src/typings/payments/fundSource.ts | 69 --- src/typings/payments/installments.ts | 45 -- src/typings/payments/mandate.ts | 114 ---- src/typings/payments/merchantDevice.ts | 48 -- src/typings/payments/merchantRiskIndicator.ts | 162 ----- src/typings/payments/models.ts | 431 -------------- src/typings/payments/modificationResult.ts | 60 -- src/typings/payments/paymentRequest.ts | 477 --------------- src/typings/payments/paymentRequest3d.ts | 412 ------------- src/typings/payments/paymentRequest3ds2.ts | 410 ------------- src/typings/payments/paymentResult.ts | 133 ----- src/typings/payments/phone.ts | 39 -- .../payments/platformChargebackLogic.ts | 46 -- src/typings/payments/recurring.ts | 77 --- src/typings/payments/refundRequest.ts | 115 ---- .../responseAdditionalData3DSecure.ts | 66 -- .../responseAdditionalDataBillingAddress.ts | 75 --- .../payments/responseAdditionalDataCard.ts | 93 --- .../payments/responseAdditionalDataCommon.ts | 563 ------------------ .../responseAdditionalDataInstallments.ts | 129 ---- .../responseAdditionalDataNetworkTokens.ts | 48 -- .../payments/responseAdditionalDataOpi.ts | 30 - .../payments/responseAdditionalDataSepa.ts | 48 -- src/typings/payments/sDKEphemPubKey.ts | 57 -- src/typings/payments/serviceError.ts | 75 --- .../payments/shopperInteractionDevice.ts | 48 -- src/typings/payments/split.ts | 78 --- src/typings/payments/splitAmount.ts | 39 -- src/typings/payments/subMerchant.ts | 66 -- .../payments/technicalCancelRequest.ts | 106 ---- src/typings/payments/threeDS1Result.ts | 75 --- src/typings/payments/threeDS2RequestData.ts | 393 ------------ src/typings/payments/threeDS2Result.ts | 170 ------ src/typings/payments/threeDS2ResultRequest.ts | 39 -- .../payments/threeDS2ResultResponse.ts | 28 - .../threeDSRequestorAuthenticationInfo.ts | 58 -- ...threeDSRequestorPriorAuthenticationInfo.ts | 65 -- src/typings/payments/threeDSecureData.ts | 156 ----- .../payments/voidPendingRefundRequest.ts | 115 ---- 109 files changed, 655 insertions(+), 9461 deletions(-) create mode 100644 src/typings/balancePlatform/capabilityProblem.ts create mode 100644 src/typings/balancePlatform/capabilityProblemEntity.ts create mode 100644 src/typings/balancePlatform/capabilityProblemEntityRecursive.ts rename src/typings/{payments/name.ts => balancePlatform/remediatingAction.ts} (55%) create mode 100644 src/typings/balancePlatform/verificationError.ts create mode 100644 src/typings/balancePlatform/verificationErrorRecursive.ts create mode 100644 src/typings/legalEntityManagement/hKLocalAccountIdentification.ts delete mode 100644 src/typings/payments/accountInfo.ts delete mode 100644 src/typings/payments/acctInfo.ts delete mode 100644 src/typings/payments/additionalData3DSecure.ts delete mode 100644 src/typings/payments/additionalDataAirline.ts delete mode 100644 src/typings/payments/additionalDataCarRental.ts delete mode 100644 src/typings/payments/additionalDataCommon.ts delete mode 100644 src/typings/payments/additionalDataLevel23.ts delete mode 100644 src/typings/payments/additionalDataLodging.ts delete mode 100644 src/typings/payments/additionalDataModifications.ts delete mode 100644 src/typings/payments/additionalDataOpenInvoice.ts delete mode 100644 src/typings/payments/additionalDataOpi.ts delete mode 100644 src/typings/payments/additionalDataRatepay.ts delete mode 100644 src/typings/payments/additionalDataRetry.ts delete mode 100644 src/typings/payments/additionalDataRisk.ts delete mode 100644 src/typings/payments/additionalDataRiskStandalone.ts delete mode 100644 src/typings/payments/additionalDataSubMerchant.ts delete mode 100644 src/typings/payments/additionalDataTemporaryServices.ts delete mode 100644 src/typings/payments/additionalDataWallets.ts delete mode 100644 src/typings/payments/address.ts delete mode 100644 src/typings/payments/adjustAuthorisationRequest.ts delete mode 100644 src/typings/payments/amount.ts delete mode 100644 src/typings/payments/applicationInfo.ts delete mode 100644 src/typings/payments/authenticationResultRequest.ts delete mode 100644 src/typings/payments/authenticationResultResponse.ts delete mode 100644 src/typings/payments/bankAccount.ts delete mode 100644 src/typings/payments/browserInfo.ts delete mode 100644 src/typings/payments/cancelOrRefundRequest.ts delete mode 100644 src/typings/payments/cancelRequest.ts delete mode 100644 src/typings/payments/captureRequest.ts delete mode 100644 src/typings/payments/card.ts delete mode 100644 src/typings/payments/commonField.ts delete mode 100644 src/typings/payments/deviceRenderOptions.ts delete mode 100644 src/typings/payments/donationRequest.ts delete mode 100644 src/typings/payments/externalPlatform.ts delete mode 100644 src/typings/payments/forexQuote.ts delete mode 100644 src/typings/payments/fraudCheckResult.ts delete mode 100644 src/typings/payments/fraudCheckResultWrapper.ts delete mode 100644 src/typings/payments/fraudResult.ts delete mode 100644 src/typings/payments/fundDestination.ts delete mode 100644 src/typings/payments/fundSource.ts delete mode 100644 src/typings/payments/installments.ts delete mode 100644 src/typings/payments/mandate.ts delete mode 100644 src/typings/payments/merchantDevice.ts delete mode 100644 src/typings/payments/merchantRiskIndicator.ts delete mode 100644 src/typings/payments/models.ts delete mode 100644 src/typings/payments/modificationResult.ts delete mode 100644 src/typings/payments/paymentRequest.ts delete mode 100644 src/typings/payments/paymentRequest3d.ts delete mode 100644 src/typings/payments/paymentRequest3ds2.ts delete mode 100644 src/typings/payments/paymentResult.ts delete mode 100644 src/typings/payments/phone.ts delete mode 100644 src/typings/payments/platformChargebackLogic.ts delete mode 100644 src/typings/payments/recurring.ts delete mode 100644 src/typings/payments/refundRequest.ts delete mode 100644 src/typings/payments/responseAdditionalData3DSecure.ts delete mode 100644 src/typings/payments/responseAdditionalDataBillingAddress.ts delete mode 100644 src/typings/payments/responseAdditionalDataCard.ts delete mode 100644 src/typings/payments/responseAdditionalDataCommon.ts delete mode 100644 src/typings/payments/responseAdditionalDataInstallments.ts delete mode 100644 src/typings/payments/responseAdditionalDataNetworkTokens.ts delete mode 100644 src/typings/payments/responseAdditionalDataOpi.ts delete mode 100644 src/typings/payments/responseAdditionalDataSepa.ts delete mode 100644 src/typings/payments/sDKEphemPubKey.ts delete mode 100644 src/typings/payments/serviceError.ts delete mode 100644 src/typings/payments/shopperInteractionDevice.ts delete mode 100644 src/typings/payments/split.ts delete mode 100644 src/typings/payments/splitAmount.ts delete mode 100644 src/typings/payments/subMerchant.ts delete mode 100644 src/typings/payments/technicalCancelRequest.ts delete mode 100644 src/typings/payments/threeDS1Result.ts delete mode 100644 src/typings/payments/threeDS2RequestData.ts delete mode 100644 src/typings/payments/threeDS2Result.ts delete mode 100644 src/typings/payments/threeDS2ResultRequest.ts delete mode 100644 src/typings/payments/threeDS2ResultResponse.ts delete mode 100644 src/typings/payments/threeDSRequestorAuthenticationInfo.ts delete mode 100644 src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts delete mode 100644 src/typings/payments/threeDSecureData.ts delete mode 100644 src/typings/payments/voidPendingRefundRequest.ts diff --git a/src/__tests__/classicIntegration.spec.ts b/src/__tests__/classicIntegration.spec.ts index 2854714a1..a0df73bdf 100644 --- a/src/__tests__/classicIntegration.spec.ts +++ b/src/__tests__/classicIntegration.spec.ts @@ -2,8 +2,9 @@ import nock from "nock"; import {createClient} from "../__mocks__/base"; import Client from "../client"; import ClassicIntegration from "../services/paymentApi"; -import { payments } from "../typings"; +import { payment } from "../typings"; import HttpClientException from "../httpClient/httpClientException"; +import {PaymentResult} from "../typings/payment/paymentResult"; let client: Client; let classicIntegration: ClassicIntegration; @@ -35,7 +36,7 @@ describe("Classic Integration", (): void => { "authCode": "011381" } ); - const paymentRequest: payments.PaymentRequest = { + const paymentRequest: payment.PaymentRequest = { "card": { "number": "4111111111111111", "expiryMonth": "03", @@ -51,7 +52,7 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const paymentResult: payments.PaymentResult = await classicIntegration.authorise(paymentRequest); + const paymentResult: PaymentResult = await classicIntegration.authorise(paymentRequest); expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); }); @@ -65,7 +66,7 @@ describe("Classic Integration", (): void => { "errorType": "security" } ); - const paymentRequest: payments.PaymentRequest = { + const paymentRequest: payment.PaymentRequest = { "card": { "number": "4111111111111111", "expiryMonth": "03", @@ -104,14 +105,14 @@ describe("Classic Integration", (): void => { "authCode": "011381" } ); - const paymentRequest: payments.PaymentRequest3d = { + const paymentRequest: payment.PaymentRequest3d = { "md": "31h..........vOXek7w", "paResponse": "eNqtmF........wGVA4Ch", "shopperIP": "61.294.12.12", "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const paymentResult: payments.PaymentResult = await classicIntegration.authorise3d(paymentRequest); + const paymentResult: payment.PaymentResult = await classicIntegration.authorise3d(paymentRequest); expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); }); @@ -127,7 +128,7 @@ describe("Classic Integration", (): void => { "authCode": "011381" } ); - const paymentRequest: payments.PaymentRequest3ds2 = { + const paymentRequest: payment.PaymentRequest3ds2 = { "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "amount": { "value": 1500, @@ -141,7 +142,7 @@ describe("Classic Integration", (): void => { "threeDS2Token": "— - BINARY DATA - -" }; - const paymentResult: payments.PaymentResult = await classicIntegration.authorise3ds2(paymentRequest); + const paymentResult: payment.PaymentResult = await classicIntegration.authorise3ds2(paymentRequest); expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); }); @@ -150,12 +151,12 @@ describe("Classic Integration", (): void => { "threeDS2Result": { "authenticationValue": "THREEDS2RESULT"} }); - const getAuthenticationResultrequest: payments.AuthenticationResultRequest = { + const getAuthenticationResultrequest: payment.AuthenticationResultRequest = { "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "pspReference": "9935272408535455" }; - const getAuthenticationResultResponse: payments.AuthenticationResultResponse = await classicIntegration.getAuthenticationResult(getAuthenticationResultrequest); + const getAuthenticationResultResponse: payment.AuthenticationResultResponse = await classicIntegration.getAuthenticationResult(getAuthenticationResultrequest); expect(getAuthenticationResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT"); }); @@ -163,12 +164,12 @@ describe("Classic Integration", (): void => { scope.post("/retrieve3ds2Result").reply(200, { "threeDS2Result": { "authenticationValue": "THREEDS2RESULT"} }); - const retrieve3ds2ResultRequest: payments.ThreeDS2ResultRequest = { + const retrieve3ds2ResultRequest: payment.ThreeDS2ResultRequest = { "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "pspReference": "9935272408535455" }; - const retrieve3ds2ResultResponse: payments.ThreeDS2ResultResponse = await classicIntegration.retrieve3ds2Result(retrieve3ds2ResultRequest); + const retrieve3ds2ResultResponse: payment.ThreeDS2ResultResponse = await classicIntegration.retrieve3ds2Result(retrieve3ds2ResultRequest); expect(retrieve3ds2ResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT"); }); @@ -179,7 +180,7 @@ describe("Classic Integration", (): void => { "response": "[capture-received]" }); - const modificationRequest: payments.CaptureRequest = { + const modificationRequest: payment.CaptureRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "modificationAmount": { "value": 500, @@ -189,8 +190,8 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.capture(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CaptureReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.capture(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.CaptureReceived); }); test("Should successfully send Cancel request", async (): Promise => { @@ -200,14 +201,14 @@ describe("Classic Integration", (): void => { "response": "[cancel-received]" }); - const modificationRequest: payments.CancelRequest = { + const modificationRequest: payment.CancelRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "reference": "YourModificationReference", "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.cancel(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CancelReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.cancel(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.CancelReceived); }); test("Should successfully send Refund request", async (): Promise => { @@ -217,7 +218,7 @@ describe("Classic Integration", (): void => { "response": "[refund-received]" }); - const modificationRequest: payments.RefundRequest = { + const modificationRequest: payment.RefundRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "modificationAmount": { "value": 500, @@ -227,8 +228,8 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.refund(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.RefundReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.refund(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.RefundReceived); }); test("Should successfully send CancelOrRefund request", async (): Promise => { @@ -238,14 +239,14 @@ describe("Classic Integration", (): void => { "response": "[cancelOrRefund-received]" }); - const modificationRequest: payments.CancelOrRefundRequest = { + const modificationRequest: payment.CancelOrRefundRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "reference": "YourModificationReference", "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.cancelOrRefund(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.CancelOrRefundReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.cancelOrRefund(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.CancelOrRefundReceived); }); test("Should successfully send TechnicalCancel request", async (): Promise => { @@ -255,7 +256,7 @@ describe("Classic Integration", (): void => { "response": "[technical-cancel-received]" }); - const modificationRequest: payments.TechnicalCancelRequest = { + const modificationRequest: payment.TechnicalCancelRequest = { "originalMerchantReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "modificationAmount": { "value": 500, @@ -265,8 +266,8 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.technicalCancel(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.TechnicalCancelReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.technicalCancel(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.TechnicalCancelReceived); }); test("Should successfully send AdjustAuthorisation request", async (): Promise => { @@ -276,7 +277,7 @@ describe("Classic Integration", (): void => { "response": "[adjustAuthorisation-received]" }); - const modificationRequest: payments.AdjustAuthorisationRequest = { + const modificationRequest: payment.AdjustAuthorisationRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "modificationAmount": { "value": 500, @@ -286,8 +287,8 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.adjustAuthorisation(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.AdjustAuthorisationReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.adjustAuthorisation(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.AdjustAuthorisationReceived); }); test("Should successfully send Donate request", async (): Promise => { @@ -297,7 +298,7 @@ describe("Classic Integration", (): void => { "response": "[donation-received]" }); - const modificationRequest: payments.DonationRequest = { + const modificationRequest: payment.DonationRequest = { "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", "modificationAmount": { "value": 500, @@ -308,8 +309,8 @@ describe("Classic Integration", (): void => { "merchantAccount": "YOUR_MERCHANT_ACCOUNT" }; - const modificationResult: payments.ModificationResult = await classicIntegration.donate(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.DonationReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.donate(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.DonationReceived); }); test("Should successfully send VoidPendingRefund request", async (): Promise => { @@ -319,13 +320,13 @@ describe("Classic Integration", (): void => { "response": "[voidPendingRefund-received]" }); - const modificationRequest: payments.VoidPendingRefundRequest = { + const modificationRequest: payment.VoidPendingRefundRequest = { "merchantAccount": "YOUR_MERCHANT_ACCOUNT", "tenderReference": "5Iw8001176969533005", "uniqueTerminalId": "VX820-123456789" }; - const modificationResult: payments.ModificationResult = await classicIntegration.voidPendingRefund(modificationRequest); - expect(modificationResult.response).toEqual(payments.ModificationResult.ResponseEnum.VoidPendingRefundReceived); + const modificationResult: payment.ModificationResult = await classicIntegration.voidPendingRefund(modificationRequest); + expect(modificationResult.response).toEqual(payment.ModificationResult.ResponseEnum.VoidPendingRefundReceived); }); }); \ No newline at end of file diff --git a/src/notification/bankingWebhookHandler.ts b/src/notification/bankingWebhookHandler.ts index a4f53fb99..a8b0eab49 100644 --- a/src/notification/bankingWebhookHandler.ts +++ b/src/notification/bankingWebhookHandler.ts @@ -8,6 +8,7 @@ import {configurationWebhooks} from "../typings"; import {reportWebhooks} from "../typings"; import {transferWebhooks} from "../typings"; import {TransferNotificationRequest} from "../typings/transferWebhooks/transferNotificationRequest"; +import {CardOrderNotificationRequest} from "../typings/configurationWebhooks/cardOrderNotificationRequest"; class BankingWebhookHandler { private readonly payload: string; @@ -23,6 +24,7 @@ class BankingWebhookHandler { | configurationWebhooks.SweepConfigurationNotificationRequest | reportWebhooks.ReportNotificationRequest | TransferNotificationRequest + | CardOrderNotificationRequest | void { const type = this.payload['type']; if(Object.values(configurationWebhooks.AccountHolderNotificationRequest.TypeEnum).includes(type)){ diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 6484c09b8..894b76434 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -81,6 +81,7 @@ export class DocumentsApi extends Service { /** * @summary Upload a document for verification checks + * @param xRequestedVerificationCode {@link string } Use a suberror code as your requested verification code. You can include one code at a time in your request header. Requested verification codes can only be used in your test environment. * @param document {@link Document } * @param requestOptions {@link IRequest.Options} * @return {@link Document } diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 7a54f152f..13fa5e3db 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -87,6 +87,7 @@ export class LegalEntitiesApi extends Service { /** * @summary Create a legal entity + * @param xRequestedVerificationCode {@link string } Use a suberror code as your requested verification code. You can include one code at a time in your request header. Requested verification codes can only be used in your test environment. * @param legalEntityInfoRequiredType {@link LegalEntityInfoRequiredType } * @param requestOptions {@link IRequest.Options} * @return {@link LegalEntity } diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index 1937c43da..b6a43887c 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -82,6 +82,7 @@ export class TransferInstrumentsApi extends Service { /** * @summary Create a transfer instrument + * @param xRequestedVerificationCode {@link string } Use a suberror code as your requested verification code. You can include one code at a time in your request header. Requested verification codes can only be used in your test environment. * @param transferInstrumentInfo {@link TransferInstrumentInfo } * @param requestOptions {@link IRequest.Options} * @return {@link TransferInstrument } diff --git a/src/typings/balancePlatform/accountHolderCapability.ts b/src/typings/balancePlatform/accountHolderCapability.ts index dbc9cf4b6..9da4d41af 100644 --- a/src/typings/balancePlatform/accountHolderCapability.ts +++ b/src/typings/balancePlatform/accountHolderCapability.ts @@ -8,6 +8,7 @@ */ import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; +import { CapabilityProblem } from './capabilityProblem'; import { CapabilitySettings } from './capabilitySettings'; export class AccountHolderCapability { @@ -27,7 +28,7 @@ export class AccountHolderCapability { /** * Contains verification errors and the actions that you can take to resolve them. */ - 'problems'?: Array; + 'problems'?: Array; /** * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. */ @@ -72,7 +73,7 @@ export class AccountHolderCapability { { "name": "problems", "baseName": "problems", - "type": "Array" + "type": "Array" }, { "name": "requested", diff --git a/src/typings/balancePlatform/capabilityProblem.ts b/src/typings/balancePlatform/capabilityProblem.ts new file mode 100644 index 000000000..539cda4dc --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblem.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; + +export class CapabilityProblem { + 'entity'?: CapabilityProblemEntity; + /** + * Contains information about the verification error. + */ + 'verificationErrors'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entity", + "baseName": "entity", + "type": "CapabilityProblemEntity" + }, + { + "name": "verificationErrors", + "baseName": "verificationErrors", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblem.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/capabilityProblemEntity.ts b/src/typings/balancePlatform/capabilityProblemEntity.ts new file mode 100644 index 000000000..9b4f1e324 --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblemEntity.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; + +export class CapabilityProblemEntity { + /** + * List of document IDs to which the verification errors related to the capabilities correspond to. + */ + 'documents'?: Array; + /** + * The ID of the entity. + */ + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive; + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ + 'type'?: CapabilityProblemEntity.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "documents", + "baseName": "documents", + "type": "Array" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "owner", + "baseName": "owner", + "type": "CapabilityProblemEntityRecursive" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntity.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntity.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntity { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts new file mode 100644 index 000000000..6280b7e7b --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts @@ -0,0 +1,55 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * 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 CapabilityProblemEntityRecursive { + /** + * List of document IDs to which the verification errors related to the capabilities correspond to. + */ + 'documents'?: Array; + /** + * The ID of the entity. + */ + 'id'?: string; + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "documents", + "baseName": "documents", + "type": "Array" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntityRecursive.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntityRecursive.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntityRecursive { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index 7b4e6cc63..30d6301b3 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -32,6 +32,9 @@ export * from './brandVariantsRestriction'; export * from './bulkAddress'; export * from './cALocalAccountIdentification'; export * from './cZLocalAccountIdentification'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; export * from './capabilitySettings'; export * from './capitalBalance'; export * from './capitalGrantAccount'; @@ -86,6 +89,7 @@ export * from './phone'; export * from './phoneNumber'; export * from './platformPaymentConfiguration'; export * from './processingTypesRestriction'; +export * from './remediatingAction'; export * from './repayment'; export * from './repaymentTerm'; export * from './restServiceError'; @@ -112,6 +116,8 @@ export * from './updateNetworkTokenRequest'; export * from './updatePaymentInstrument'; export * from './updateSweepConfigurationV2'; export * from './verificationDeadline'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; import { AULocalAccountIdentification } from './aULocalAccountIdentification'; @@ -138,6 +144,9 @@ import { BrandVariantsRestriction } from './brandVariantsRestriction'; import { BulkAddress } from './bulkAddress'; import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; import { CapabilitySettings } from './capabilitySettings'; import { CapitalBalance } from './capitalBalance'; import { CapitalGrantAccount } from './capitalGrantAccount'; @@ -192,6 +201,7 @@ import { Phone } from './phone'; import { PhoneNumber } from './phoneNumber'; import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; import { ProcessingTypesRestriction } from './processingTypesRestriction'; +import { RemediatingAction } from './remediatingAction'; import { Repayment } from './repayment'; import { RepaymentTerm } from './repaymentTerm'; import { RestServiceError } from './restServiceError'; @@ -218,6 +228,8 @@ import { UpdateNetworkTokenRequest } from './updateNetworkTokenRequest'; import { UpdatePaymentInstrument } from './updatePaymentInstrument'; import { UpdateSweepConfigurationV2 } from './updateSweepConfigurationV2'; import { VerificationDeadline } from './verificationDeadline'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -249,6 +261,8 @@ let enumsMap: {[index: string]: any} = { "CALocalAccountIdentification.AccountTypeEnum": CALocalAccountIdentification.AccountTypeEnum, "CALocalAccountIdentification.TypeEnum": CALocalAccountIdentification.TypeEnum, "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, "CapabilitySettings.FundingSourceEnum": CapabilitySettings.FundingSourceEnum, "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, "Card.FormFactorEnum": Card.FormFactorEnum, @@ -309,6 +323,10 @@ let enumsMap: {[index: string]: any} = { "UpdateSweepConfigurationV2.StatusEnum": UpdateSweepConfigurationV2.StatusEnum, "UpdateSweepConfigurationV2.TypeEnum": UpdateSweepConfigurationV2.TypeEnum, "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, + "VerificationError.CapabilitiesEnum": VerificationError.CapabilitiesEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.CapabilitiesEnum": VerificationErrorRecursive.CapabilitiesEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, } let typeMap: {[index: string]: any} = { @@ -336,6 +354,9 @@ let typeMap: {[index: string]: any} = { "BulkAddress": BulkAddress, "CALocalAccountIdentification": CALocalAccountIdentification, "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, "CapabilitySettings": CapabilitySettings, "CapitalBalance": CapitalBalance, "CapitalGrantAccount": CapitalGrantAccount, @@ -390,6 +411,7 @@ let typeMap: {[index: string]: any} = { "PhoneNumber": PhoneNumber, "PlatformPaymentConfiguration": PlatformPaymentConfiguration, "ProcessingTypesRestriction": ProcessingTypesRestriction, + "RemediatingAction": RemediatingAction, "Repayment": Repayment, "RepaymentTerm": RepaymentTerm, "RestServiceError": RestServiceError, @@ -416,6 +438,8 @@ let typeMap: {[index: string]: any} = { "UpdatePaymentInstrument": UpdatePaymentInstrument, "UpdateSweepConfigurationV2": UpdateSweepConfigurationV2, "VerificationDeadline": VerificationDeadline, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, } export class ObjectSerializer { diff --git a/src/typings/payments/name.ts b/src/typings/balancePlatform/remediatingAction.ts similarity index 55% rename from src/typings/payments/name.ts rename to src/typings/balancePlatform/remediatingAction.ts index e0ca4971f..61360ba1d 100644 --- a/src/typings/payments/name.ts +++ b/src/typings/balancePlatform/remediatingAction.ts @@ -1,6 +1,6 @@ /* - * The version of the OpenAPI document: v68 - * Contact: developer-experience@adyen.com + * The version of the OpenAPI document: v2 + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -8,32 +8,32 @@ */ -export class Name { +export class RemediatingAction { /** - * The first name. + * The remediating action code. */ - 'firstName': string; + 'code'?: string; /** - * The last name. + * A description of how you can resolve the verification error. */ - 'lastName': string; + 'message'?: string; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { - "name": "firstName", - "baseName": "firstName", + "name": "code", + "baseName": "code", "type": "string" }, { - "name": "lastName", - "baseName": "lastName", + "name": "message", + "baseName": "message", "type": "string" } ]; static getAttributeTypeMap() { - return Name.attributeTypeMap; + return RemediatingAction.attributeTypeMap; } } diff --git a/src/typings/balancePlatform/transactionRule.ts b/src/typings/balancePlatform/transactionRule.ts index 6653ae64c..19637c0de 100644 --- a/src/typings/balancePlatform/transactionRule.ts +++ b/src/typings/balancePlatform/transactionRule.ts @@ -141,6 +141,7 @@ export class TransactionRule { export namespace TransactionRule { export enum OutcomeTypeEnum { + EnforceSca = 'enforceSCA', HardBlock = 'hardBlock', ScoreBased = 'scoreBased' } diff --git a/src/typings/balancePlatform/transactionRuleInfo.ts b/src/typings/balancePlatform/transactionRuleInfo.ts index f5837d43a..8df8d49ce 100644 --- a/src/typings/balancePlatform/transactionRuleInfo.ts +++ b/src/typings/balancePlatform/transactionRuleInfo.ts @@ -132,6 +132,7 @@ export class TransactionRuleInfo { export namespace TransactionRuleInfo { export enum OutcomeTypeEnum { + EnforceSca = 'enforceSCA', HardBlock = 'hardBlock', ScoreBased = 'scoreBased' } diff --git a/src/typings/balancePlatform/verificationError.ts b/src/typings/balancePlatform/verificationError.ts new file mode 100644 index 000000000..f2667a0d1 --- /dev/null +++ b/src/typings/balancePlatform/verificationError.ts @@ -0,0 +1,136 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; + +export class VerificationError { + /** + * Contains the capabilities that the verification error applies to. + */ + 'capabilities'?: Array; + /** + * The verification error code. + */ + 'code'?: string; + /** + * A description of the error. + */ + 'message'?: string; + /** + * Contains the actions that you can take to resolve the verification error. + */ + 'remediatingActions'?: Array; + /** + * Contains more granular information about the verification error. + */ + 'subErrors'?: Array; + /** + * The type of error. Possible values: **invalidInput**, **dataMissing**. + */ + 'type'?: VerificationError.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "Array" + }, + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + }, + { + "name": "subErrors", + "baseName": "subErrors", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationError.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return VerificationError.attributeTypeMap; + } +} + +export namespace VerificationError { + export enum CapabilitiesEnum { + AcceptExternalFunding = 'acceptExternalFunding', + AcceptPspFunding = 'acceptPspFunding', + AcceptTransactionInRestrictedCountries = 'acceptTransactionInRestrictedCountries', + AcceptTransactionInRestrictedCountriesCommercial = 'acceptTransactionInRestrictedCountriesCommercial', + AcceptTransactionInRestrictedCountriesConsumer = 'acceptTransactionInRestrictedCountriesConsumer', + AcceptTransactionInRestrictedIndustries = 'acceptTransactionInRestrictedIndustries', + AcceptTransactionInRestrictedIndustriesCommercial = 'acceptTransactionInRestrictedIndustriesCommercial', + AcceptTransactionInRestrictedIndustriesConsumer = 'acceptTransactionInRestrictedIndustriesConsumer', + Acquiring = 'acquiring', + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalCommercial = 'atmWithdrawalCommercial', + AtmWithdrawalConsumer = 'atmWithdrawalConsumer', + AtmWithdrawalInRestrictedCountries = 'atmWithdrawalInRestrictedCountries', + AtmWithdrawalInRestrictedCountriesCommercial = 'atmWithdrawalInRestrictedCountriesCommercial', + AtmWithdrawalInRestrictedCountriesConsumer = 'atmWithdrawalInRestrictedCountriesConsumer', + AuthorisedPaymentInstrumentUser = 'authorisedPaymentInstrumentUser', + GetGrantOffers = 'getGrantOffers', + IssueBankAccount = 'issueBankAccount', + IssueCard = 'issueCard', + IssueCardCommercial = 'issueCardCommercial', + IssueCardConsumer = 'issueCardConsumer', + LocalAcceptance = 'localAcceptance', + Payout = 'payout', + PayoutToTransferInstrument = 'payoutToTransferInstrument', + Processing = 'processing', + ReceiveFromBalanceAccount = 'receiveFromBalanceAccount', + ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', + ReceiveFromThirdParty = 'receiveFromThirdParty', + ReceiveFromTransferInstrument = 'receiveFromTransferInstrument', + ReceiveGrants = 'receiveGrants', + ReceivePayments = 'receivePayments', + SendToBalanceAccount = 'sendToBalanceAccount', + SendToThirdParty = 'sendToThirdParty', + SendToTransferInstrument = 'sendToTransferInstrument', + ThirdPartyFunding = 'thirdPartyFunding', + UseCard = 'useCard', + UseCardCommercial = 'useCardCommercial', + UseCardConsumer = 'useCardConsumer', + UseCardInRestrictedCountries = 'useCardInRestrictedCountries', + UseCardInRestrictedCountriesCommercial = 'useCardInRestrictedCountriesCommercial', + UseCardInRestrictedCountriesConsumer = 'useCardInRestrictedCountriesConsumer', + UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries', + UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial', + UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer', + WithdrawFromAtm = 'withdrawFromAtm', + WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial', + WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer', + WithdrawFromAtmInRestrictedCountries = 'withdrawFromAtmInRestrictedCountries', + WithdrawFromAtmInRestrictedCountriesCommercial = 'withdrawFromAtmInRestrictedCountriesCommercial', + WithdrawFromAtmInRestrictedCountriesConsumer = 'withdrawFromAtmInRestrictedCountriesConsumer' + } + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/balancePlatform/verificationErrorRecursive.ts b/src/typings/balancePlatform/verificationErrorRecursive.ts new file mode 100644 index 000000000..5588de4be --- /dev/null +++ b/src/typings/balancePlatform/verificationErrorRecursive.ts @@ -0,0 +1,126 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RemediatingAction } from './remediatingAction'; + +export class VerificationErrorRecursive { + /** + * Contains the capabilities that the verification error applies to. + */ + 'capabilities'?: Array; + /** + * The verification error code. + */ + 'code'?: string; + /** + * A description of the error. + */ + 'message'?: string; + /** + * The type of error. Possible values: **invalidInput**, **dataMissing**. + */ + 'type'?: VerificationErrorRecursive.TypeEnum; + /** + * Contains the actions that you can take to resolve the verification error. + */ + 'remediatingActions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "capabilities", + "baseName": "capabilities", + "type": "Array" + }, + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationErrorRecursive.TypeEnum" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return VerificationErrorRecursive.attributeTypeMap; + } +} + +export namespace VerificationErrorRecursive { + export enum CapabilitiesEnum { + AcceptExternalFunding = 'acceptExternalFunding', + AcceptPspFunding = 'acceptPspFunding', + AcceptTransactionInRestrictedCountries = 'acceptTransactionInRestrictedCountries', + AcceptTransactionInRestrictedCountriesCommercial = 'acceptTransactionInRestrictedCountriesCommercial', + AcceptTransactionInRestrictedCountriesConsumer = 'acceptTransactionInRestrictedCountriesConsumer', + AcceptTransactionInRestrictedIndustries = 'acceptTransactionInRestrictedIndustries', + AcceptTransactionInRestrictedIndustriesCommercial = 'acceptTransactionInRestrictedIndustriesCommercial', + AcceptTransactionInRestrictedIndustriesConsumer = 'acceptTransactionInRestrictedIndustriesConsumer', + Acquiring = 'acquiring', + AtmWithdrawal = 'atmWithdrawal', + AtmWithdrawalCommercial = 'atmWithdrawalCommercial', + AtmWithdrawalConsumer = 'atmWithdrawalConsumer', + AtmWithdrawalInRestrictedCountries = 'atmWithdrawalInRestrictedCountries', + AtmWithdrawalInRestrictedCountriesCommercial = 'atmWithdrawalInRestrictedCountriesCommercial', + AtmWithdrawalInRestrictedCountriesConsumer = 'atmWithdrawalInRestrictedCountriesConsumer', + AuthorisedPaymentInstrumentUser = 'authorisedPaymentInstrumentUser', + GetGrantOffers = 'getGrantOffers', + IssueBankAccount = 'issueBankAccount', + IssueCard = 'issueCard', + IssueCardCommercial = 'issueCardCommercial', + IssueCardConsumer = 'issueCardConsumer', + LocalAcceptance = 'localAcceptance', + Payout = 'payout', + PayoutToTransferInstrument = 'payoutToTransferInstrument', + Processing = 'processing', + ReceiveFromBalanceAccount = 'receiveFromBalanceAccount', + ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', + ReceiveFromThirdParty = 'receiveFromThirdParty', + ReceiveFromTransferInstrument = 'receiveFromTransferInstrument', + ReceiveGrants = 'receiveGrants', + ReceivePayments = 'receivePayments', + SendToBalanceAccount = 'sendToBalanceAccount', + SendToThirdParty = 'sendToThirdParty', + SendToTransferInstrument = 'sendToTransferInstrument', + ThirdPartyFunding = 'thirdPartyFunding', + UseCard = 'useCard', + UseCardCommercial = 'useCardCommercial', + UseCardConsumer = 'useCardConsumer', + UseCardInRestrictedCountries = 'useCardInRestrictedCountries', + UseCardInRestrictedCountriesCommercial = 'useCardInRestrictedCountriesCommercial', + UseCardInRestrictedCountriesConsumer = 'useCardInRestrictedCountriesConsumer', + UseCardInRestrictedIndustries = 'useCardInRestrictedIndustries', + UseCardInRestrictedIndustriesCommercial = 'useCardInRestrictedIndustriesCommercial', + UseCardInRestrictedIndustriesConsumer = 'useCardInRestrictedIndustriesConsumer', + WithdrawFromAtm = 'withdrawFromAtm', + WithdrawFromAtmCommercial = 'withdrawFromAtmCommercial', + WithdrawFromAtmConsumer = 'withdrawFromAtmConsumer', + WithdrawFromAtmInRestrictedCountries = 'withdrawFromAtmInRestrictedCountries', + WithdrawFromAtmInRestrictedCountriesCommercial = 'withdrawFromAtmInRestrictedCountriesCommercial', + WithdrawFromAtmInRestrictedCountriesConsumer = 'withdrawFromAtmInRestrictedCountriesConsumer' + } + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 9ab632721..20f86cdc6 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -14,6 +14,10 @@ export class AchDetails { */ 'bankAccountNumber': string; /** + * The bank account type (checking, savings...). + */ + 'bankAccountType'?: AchDetails.BankAccountTypeEnum; + /** * The bank routing number of the account. The field value is `nil` in most cases. */ 'bankLocationId'?: string; @@ -54,6 +58,11 @@ export class AchDetails { "baseName": "bankAccountNumber", "type": "string" }, + { + "name": "bankAccountType", + "baseName": "bankAccountType", + "type": "AchDetails.BankAccountTypeEnum" + }, { "name": "bankLocationId", "baseName": "bankLocationId", @@ -101,6 +110,15 @@ export class AchDetails { } export namespace AchDetails { + export enum BankAccountTypeEnum { + Balance = 'balance', + Checking = 'checking', + Deposit = 'deposit', + General = 'general', + Other = 'other', + Payment = 'payment', + Savings = 'savings' + } export enum TypeEnum { Ach = 'ach', AchPlaid = 'ach_plaid' diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index 20f467ae8..cc26b283e 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -18,11 +18,11 @@ export class AdditionalDataAirline { */ 'airline_agency_plan_name'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. */ 'airline_airline_code'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros. */ 'airline_airline_designator_code'?: string; /** @@ -46,11 +46,11 @@ export class AdditionalDataAirline { */ 'airline_flight_date'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces * Must not be all zeros + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros. */ 'airline_leg_carrier_code'?: string; /** - * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces * Must not be all zeros + * A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not be all spaces *Must not be all zeros. */ 'airline_leg_class_of_travel'?: string; /** @@ -58,23 +58,23 @@ export class AdditionalDataAirline { */ 'airline_leg_date_of_travel'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros + * The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. */ 'airline_leg_depart_airport'?: string; /** - * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 * Must not be all zeros + * The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 12 *Must not be all zeros. */ 'airline_leg_depart_tax'?: string; /** - * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces * Must not be all zeros + * The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not be all spaces *Must not be all zeros. */ 'airline_leg_destination_code'?: string; /** - * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros + * The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not be all spaces *Must not be all zeros. */ 'airline_leg_fare_base_code'?: string; /** - * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces * Must not be all zeros + * The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not be all spaces *Must not be all zeros. */ 'airline_leg_flight_number'?: string; /** @@ -102,7 +102,7 @@ export class AdditionalDataAirline { */ 'airline_passenger_traveller_type'?: string; /** - * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces * Must not be all zeros + * The passenger\'s name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not be all spaces *Must not be all zeros. */ 'airline_passenger_name': string; /** @@ -110,15 +110,15 @@ export class AdditionalDataAirline { */ 'airline_ticket_issue_address'?: string; /** - * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros + * The ticket\'s unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not be all spaces *Must not be all zeros. */ 'airline_ticket_number'?: string; /** - * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces * Must not be all zeros + * The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not be all spaces *Must not be all zeros. */ 'airline_travel_agency_code'?: string; /** - * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces * Must not be all zeros + * The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not be all spaces *Must not be all zeros. */ 'airline_travel_agency_name'?: string; diff --git a/src/typings/checkout/additionalDataCarRental.ts b/src/typings/checkout/additionalDataCarRental.ts index 1efa7bdea..facfafd0d 100644 --- a/src/typings/checkout/additionalDataCarRental.ts +++ b/src/typings/checkout/additionalDataCarRental.ts @@ -14,7 +14,7 @@ export class AdditionalDataCarRental { */ 'carRental_checkOutDate'?: string; /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ 'carRental_customerServiceTollFreeNumber'?: string; /** @@ -26,11 +26,11 @@ export class AdditionalDataCarRental { */ 'carRental_fuelCharges'?: string; /** - * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces * Must not be all zeros + * Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Format: Numeric * maxLength: 12 * Must not be all spaces *Must not be all zeros. */ 'carRental_insuranceCharges'?: string; /** - * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces * Must not be all zeros + * The city where the car is rented. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_locationCity'?: string; /** @@ -38,7 +38,7 @@ export class AdditionalDataCarRental { */ 'carRental_locationCountry'?: string; /** - * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces * Must not be all zeros + * The state or province where the car is rented. * Format: Alphanumeric * maxLength: 2 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_locationStateProvince'?: string; /** @@ -58,19 +58,19 @@ export class AdditionalDataCarRental { */ 'carRental_rateIndicator'?: string; /** - * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces * Must not be all zeros + * The rental agreement number for the car rental. * Format: Alphanumeric * maxLength: 9 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_rentalAgreementNumber'?: string; /** - * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces * Must not be all zeros + * The classification of the rental car. * Format: Alphanumeric * maxLength: 4 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_rentalClassId'?: string; /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces * Must not be all zeros + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 * If you send more than 26 characters, the name is truncated * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_renterName'?: string; /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces * Must not be all zeros + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_returnCity'?: string; /** @@ -82,11 +82,11 @@ export class AdditionalDataCarRental { */ 'carRental_returnDate'?: string; /** - * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces * Must not be all zeros + * The agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_returnLocationId'?: string; /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces * Must not be all zeros + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 * Must not start with a space or be all spaces *Must not be all zeros. */ 'carRental_returnStateProvince'?: string; /** diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index 2b77708bc..205ea367e 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -10,71 +10,71 @@ export class AdditionalDataLevel23 { /** - * The customer code. Encoding: ASCII Max length: 25 characters Must not start with a space or be all spaces Must not be all zeros + * The customer code. * Encoding: ASCII * Max length: 25 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_customerReference'?: string; /** - * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. Encoding: ASCII Fixed length: 3 characters + * The three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Fixed length: 3 characters */ 'enhancedSchemeData_destinationCountryCode'?: string; /** - * The postal code of the destination address. Encoding: ASCII Max length: 10 characters Must not start with a space + * The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space */ 'enhancedSchemeData_destinationPostalCode'?: string; /** - * Destination state or province code. Encoding: ASCII Max length: 3 characters Must not start with a space + * Destination state or province code. * Encoding: ASCII * Max length: 3 characters * Must not start with a space */ 'enhancedSchemeData_destinationStateProvinceCode'?: string; /** - * The duty amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters + * The duty amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ 'enhancedSchemeData_dutyAmount'?: string; /** - * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters + * The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric *Max length: 12 characters */ 'enhancedSchemeData_freightAmount'?: string; /** - * The [UNSPC commodity code](https://www.unspsc.org/) of the item. Encoding: ASCII Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros + * The [UNSPC commodity code](https://www.unspsc.org/) of the item. * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_commodityCode'?: string; /** - * A description of the item. Encoding: ASCII Max length: 26 characters Must not start with a space or be all spaces Must not be all zeros + * A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_description'?: string; /** - * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters + * The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters */ 'enhancedSchemeData_itemDetailLine_itemNr_discountAmount'?: string; /** - * The product code. Encoding: ASCII. Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros + * The product code. * Encoding: ASCII. * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_productCode'?: string; /** - * The number of items. Must be an integer greater than zero. Encoding: Numeric Max length: 12 characters Must not start with a space or be all spaces + * The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max length: 12 characters * Must not start with a space or be all spaces */ 'enhancedSchemeData_itemDetailLine_itemNr_quantity'?: string; /** - * The total amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Max length: 12 characters Must not start with a space or be all spaces Must not be all zeros + * The total amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Max length: 12 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_totalAmount'?: string; /** - * The unit of measurement for an item. Encoding: ASCII Max length: 3 characters Must not start with a space or be all spaces Must not be all zeros + * The unit of measurement for an item. * Encoding: ASCII Max length: 3 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure'?: string; /** - * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters + * The unit price in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros. */ 'enhancedSchemeData_itemDetailLine_itemNr_unitPrice'?: string; /** - * The order date. * Format: `ddMMyy` Encoding: ASCII Max length: 6 characters + * The order date. * Format: `ddMMyy` * Encoding: ASCII * Max length: 6 characters */ 'enhancedSchemeData_orderDate'?: string; /** - * The postal code of the address the item is shipped from. Encoding: ASCII Max length: 10 characters Must not start with a space or be all spaces Must not be all zeros + * The postal code of the address the item is shipped from. * Encoding: ASCII * Max length: 10 characters * Must not start with a space or be all spaces * Must not be all zeros. */ 'enhancedSchemeData_shipFromPostalCode'?: string; /** - * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). For example, 2000 means USD 20.00. Encoding: Numeric Max length: 12 characters + * The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. *Encoding: Numeric *Max length: 12 characters * Must not be all zeros. */ 'enhancedSchemeData_totalTaxAmount'?: string; diff --git a/src/typings/checkout/additionalDataLodging.ts b/src/typings/checkout/additionalDataLodging.ts index e8f3422d2..13ae265f5 100644 --- a/src/typings/checkout/additionalDataLodging.ts +++ b/src/typings/checkout/additionalDataLodging.ts @@ -18,7 +18,7 @@ export class AdditionalDataLodging { */ 'lodging_checkOutDate'?: string; /** - * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - + * The toll-free phone number for the lodging. * Format: numeric * Max length: 17 characters. * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ 'lodging_customerServiceTollFreeNumber'?: string; /** @@ -30,7 +30,7 @@ export class AdditionalDataLodging { */ 'lodging_folioCashAdvances'?: string; /** - * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space * Must not be all zeros + * The card acceptor’s internal invoice or billing ID reference number. * Max length: 25 characters. * Must not start with a space *Must not be all zeros. */ 'lodging_folioNumber'?: string; /** @@ -46,7 +46,7 @@ export class AdditionalDataLodging { */ 'lodging_prepaidExpenses'?: string; /** - * The lodging property location\'s phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not be all zeros * Must not contain any special characters such as + or - + * The lodging property location\'s phone number. * Format: numeric. * Min length: 10 characters * Max length: 17 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - *Must not be all zeros. */ 'lodging_propertyPhoneNumber'?: string; /** diff --git a/src/typings/checkout/additionalDataTemporaryServices.ts b/src/typings/checkout/additionalDataTemporaryServices.ts index f8ee56fac..fe2bb6592 100644 --- a/src/typings/checkout/additionalDataTemporaryServices.ts +++ b/src/typings/checkout/additionalDataTemporaryServices.ts @@ -14,11 +14,11 @@ export class AdditionalDataTemporaryServices { */ 'enhancedSchemeData_customerReference'?: string; /** - * The name or ID of the person working in a temporary capacity. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The name or ID of the person working in a temporary capacity. * maxLength: 40. * Must not be all spaces. *Must not be all zeros. */ 'enhancedSchemeData_employeeName'?: string; /** - * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all zeros * Must not be all spaces + * The job description of the person working in a temporary capacity. * maxLength: 40 * Must not be all spaces. *Must not be all zeros. */ 'enhancedSchemeData_jobDescription'?: string; /** diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index fc04ff2ef..7dc698fd5 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -10,7 +10,7 @@ export class AmazonPayDetails { /** - * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. + * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. This token is used for API only integration specifically. */ 'amazonPayToken'?: string; /** @@ -18,6 +18,10 @@ export class AmazonPayDetails { */ 'checkoutAttemptId'?: string; /** + * The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken. + */ + 'checkoutSessionId'?: string; + /** * **amazonpay** */ 'type'?: AmazonPayDetails.TypeEnum; @@ -35,6 +39,11 @@ export class AmazonPayDetails { "baseName": "checkoutAttemptId", "type": "string" }, + { + "name": "checkoutSessionId", + "baseName": "checkoutSessionId", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index cab2cc20a..ec7f4dab9 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -34,6 +34,10 @@ export class KlarnaDetails { */ 'storedPaymentMethodId'?: string; /** + * The type of flow to initiate. + */ + 'subtype'?: string; + /** * **klarna** */ 'type': KlarnaDetails.TypeEnum; @@ -71,6 +75,11 @@ export class KlarnaDetails { "baseName": "storedPaymentMethodId", "type": "string" }, + { + "name": "subtype", + "baseName": "subtype", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 3b2b03f77..ff76d1f13 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -395,6 +395,7 @@ let enumsMap: {[index: string]: any} = { "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AchDetails.BankAccountTypeEnum": AchDetails.BankAccountTypeEnum, "AchDetails.TypeEnum": AchDetails.TypeEnum, "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index c05067d97..179cf1e0e 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -78,6 +78,7 @@ export namespace Split { Remainder = 'Remainder', Surcharge = 'Surcharge', Tip = 'Tip', + TopUp = 'TopUp', Vat = 'VAT', Verification = 'Verification' } diff --git a/src/typings/index.ts b/src/typings/index.ts index 6a277a40c..1586f02b3 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -13,7 +13,7 @@ export * as balancePlatform from './balancePlatform/models'; export * as binlookup from './binLookup/models'; export * as checkout from './checkout/models'; export * as notification from './notification/models'; -export * as payments from './payments/models'; +export * as payment from './payment/models'; export * as payout from './payout/models'; export * as platformsNotifications from './platformsNotifications/models'; export * as platformsAccount from './platformsAccount/models'; diff --git a/src/typings/legalEntityManagement/bankAccountInfo.ts b/src/typings/legalEntityManagement/bankAccountInfo.ts index 6d678c733..1def86db6 100644 --- a/src/typings/legalEntityManagement/bankAccountInfo.ts +++ b/src/typings/legalEntityManagement/bankAccountInfo.ts @@ -11,6 +11,7 @@ import { AULocalAccountIdentification } from './aULocalAccountIdentification'; import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; @@ -25,7 +26,7 @@ export class BankAccountInfo { /** * Identification of the bank account. */ - 'accountIdentification'?: AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; + 'accountIdentification'?: AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; /** * The type of bank account. */ @@ -45,7 +46,7 @@ export class BankAccountInfo { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" + "type": "AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" }, { "name": "accountType", diff --git a/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts new file mode 100644 index 000000000..d6a0826a7 --- /dev/null +++ b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * 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 HKLocalAccountIdentification { + /** + * The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. + */ + 'bankCode': string; + /** + * **hkLocal** + */ + 'type': HKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "HKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return HKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace HKLocalAccountIdentification { + export enum TypeEnum { + HkLocal = 'hkLocal' + } +} diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts index 98fac5d0b..2c9cde13a 100644 --- a/src/typings/legalEntityManagement/models.ts +++ b/src/typings/legalEntityManagement/models.ts @@ -40,6 +40,7 @@ export * from './getPciQuestionnaireResponse'; export * from './getTermsOfServiceAcceptanceInfosResponse'; export * from './getTermsOfServiceDocumentRequest'; export * from './getTermsOfServiceDocumentResponse'; +export * from './hKLocalAccountIdentification'; export * from './hULocalAccountIdentification'; export * from './ibanAccountIdentification'; export * from './identificationData'; @@ -119,6 +120,7 @@ import { GetPciQuestionnaireResponse } from './getPciQuestionnaireResponse'; import { GetTermsOfServiceAcceptanceInfosResponse } from './getTermsOfServiceAcceptanceInfosResponse'; import { GetTermsOfServiceDocumentRequest } from './getTermsOfServiceDocumentRequest'; import { GetTermsOfServiceDocumentResponse } from './getTermsOfServiceDocumentResponse'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { IdentificationData } from './identificationData'; @@ -200,6 +202,7 @@ let enumsMap: {[index: string]: any} = { "DocumentPage.TypeEnum": DocumentPage.TypeEnum, "GetTermsOfServiceDocumentRequest.TypeEnum": GetTermsOfServiceDocumentRequest.TypeEnum, "GetTermsOfServiceDocumentResponse.TypeEnum": GetTermsOfServiceDocumentResponse.TypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, "IdentificationData.TypeEnum": IdentificationData.TypeEnum, @@ -268,6 +271,7 @@ let typeMap: {[index: string]: any} = { "GetTermsOfServiceAcceptanceInfosResponse": GetTermsOfServiceAcceptanceInfosResponse, "GetTermsOfServiceDocumentRequest": GetTermsOfServiceDocumentRequest, "GetTermsOfServiceDocumentResponse": GetTermsOfServiceDocumentResponse, + "HKLocalAccountIdentification": HKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, "IdentificationData": IdentificationData, diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts index beb2bf6fc..50588ec88 100644 --- a/src/typings/legalEntityManagement/onboardingLinkInfo.ts +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -18,7 +18,7 @@ export class OnboardingLinkInfo { */ 'redirectUrl'?: string; /** - * Boolean key-value pairs indicating the settings for the hosted onboarding page. The keys are the settings. Possible keys: By default, these values are set to **true**. Set to **false** to not allow the action. - **changeLegalEntityType**: The user can change their legal entity type. - **editPrefilledCountry**: The user can change the country of their legal entity\'s address, for example the registered address of an organization. By default, this value is set to **false**. Set to **true** to allow the action. - **allowIntraRegionCrossBorderPayout**: The user can select a payout account in a different EU/EEA country than the country of their legal entity. + * Boolean key-value pairs indicating the settings for the hosted onboarding page. The keys are the settings. Possible keys: By default, these values are set to **true**. Set to **false** to not allow the action. - **changeLegalEntityType**: The user can change their legal entity type. - **editPrefilledCountry**: The user can change the country of their legal entity\'s address, for example the registered address of an organization. By default, this value is set to **false**. Set to **true** to allow the action. - **allowBankAccountFormatSelection**: The user can select the format for their payout account if applicable. - **allowIntraRegionCrossBorderPayout**: The user can select a payout account in a different EU/EEA country than the country of their legal entity. */ 'settings'?: { [key: string]: boolean; }; /** diff --git a/src/typings/legalEntityManagement/verificationDeadline.ts b/src/typings/legalEntityManagement/verificationDeadline.ts index ace41466b..93360fb42 100644 --- a/src/typings/legalEntityManagement/verificationDeadline.ts +++ b/src/typings/legalEntityManagement/verificationDeadline.ts @@ -14,6 +14,10 @@ export class VerificationDeadline { */ 'capabilities': Array; /** + * The unique identifiers of the bank account(s) that the deadline applies to + */ + 'entityIds'?: Array; + /** * The date that verification is due by before capabilities are disallowed. */ 'expiresAt': Date; @@ -26,6 +30,11 @@ export class VerificationDeadline { "baseName": "capabilities", "type": "Array" }, + { + "name": "entityIds", + "baseName": "entityIds", + "type": "Array" + }, { "name": "expiresAt", "baseName": "expiresAt", diff --git a/src/typings/payments/accountInfo.ts b/src/typings/payments/accountInfo.ts deleted file mode 100644 index 4ec0f6c10..000000000 --- a/src/typings/payments/accountInfo.ts +++ /dev/null @@ -1,232 +0,0 @@ -/* - * 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/payments/acctInfo.ts b/src/typings/payments/acctInfo.ts deleted file mode 100644 index c07f6151e..000000000 --- a/src/typings/payments/acctInfo.ts +++ /dev/null @@ -1,208 +0,0 @@ -/* - * 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/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts deleted file mode 100644 index 0de1cd41c..000000000 --- a/src/typings/payments/additionalData3DSecure.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * 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; - /** - * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen - */ - 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; - /** - * 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": "challengeWindowSize", - "baseName": "challengeWindowSize", - "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" - }, - { - "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; - } -} - -export namespace AdditionalData3DSecure { - export enum ChallengeWindowSizeEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05' - } -} diff --git a/src/typings/payments/additionalDataAirline.ts b/src/typings/payments/additionalDataAirline.ts deleted file mode 100644 index 145f8d8e7..000000000 --- a/src/typings/payments/additionalDataAirline.ts +++ /dev/null @@ -1,273 +0,0 @@ -/* - * 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 - */ - 'airline_agency_invoice_number'?: string; - /** - * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 - */ - 'airline_agency_plan_name'?: 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 - */ - 'airline_airline_code'?: 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 - */ - 'airline_airline_designator_code'?: 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 - */ - 'airline_boarding_fee'?: 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 - */ - 'airline_computerized_reservation_system'?: string; - /** - * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 - */ - 'airline_customer_reference_number'?: 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 - */ - 'airline_document_type'?: 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 - */ - 'airline_flight_date'?: 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 - */ - 'airline_leg_carrier_code'?: 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 - */ - 'airline_leg_class_of_travel'?: 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 - */ - 'airline_leg_date_of_travel'?: 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 - */ - 'airline_leg_depart_airport'?: 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 - */ - 'airline_leg_depart_tax'?: 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 - */ - 'airline_leg_destination_code'?: string; - /** - * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 - */ - 'airline_leg_fare_base_code'?: string; - /** - * The flight identifier. * minLength: 1 * maxLength: 5 - */ - 'airline_leg_flight_number'?: 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 - */ - 'airline_leg_stop_over_code'?: string; - /** - * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 - */ - 'airline_passenger_date_of_birth'?: string; - /** - * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - 'airline_passenger_first_name'?: string; - /** - * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - 'airline_passenger_last_name'?: string; - /** - * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 - */ - 'airline_passenger_telephone_number'?: 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 - */ - 'airline_passenger_traveller_type'?: string; - /** - * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 - */ - 'airline_passenger_name': string; - /** - * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 - */ - 'airline_ticket_issue_address'?: string; - /** - * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 - */ - 'airline_ticket_number'?: string; - /** - * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 - */ - 'airline_travel_agency_code'?: string; - /** - * The name of the travel agency. * minLength: 1 * maxLength: 25 - */ - 'airline_travel_agency_name'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "airline_agency_invoice_number", - "baseName": "airline.agency_invoice_number", - "type": "string" - }, - { - "name": "airline_agency_plan_name", - "baseName": "airline.agency_plan_name", - "type": "string" - }, - { - "name": "airline_airline_code", - "baseName": "airline.airline_code", - "type": "string" - }, - { - "name": "airline_airline_designator_code", - "baseName": "airline.airline_designator_code", - "type": "string" - }, - { - "name": "airline_boarding_fee", - "baseName": "airline.boarding_fee", - "type": "string" - }, - { - "name": "airline_computerized_reservation_system", - "baseName": "airline.computerized_reservation_system", - "type": "string" - }, - { - "name": "airline_customer_reference_number", - "baseName": "airline.customer_reference_number", - "type": "string" - }, - { - "name": "airline_document_type", - "baseName": "airline.document_type", - "type": "string" - }, - { - "name": "airline_flight_date", - "baseName": "airline.flight_date", - "type": "string" - }, - { - "name": "airline_leg_carrier_code", - "baseName": "airline.leg.carrier_code", - "type": "string" - }, - { - "name": "airline_leg_class_of_travel", - "baseName": "airline.leg.class_of_travel", - "type": "string" - }, - { - "name": "airline_leg_date_of_travel", - "baseName": "airline.leg.date_of_travel", - "type": "string" - }, - { - "name": "airline_leg_depart_airport", - "baseName": "airline.leg.depart_airport", - "type": "string" - }, - { - "name": "airline_leg_depart_tax", - "baseName": "airline.leg.depart_tax", - "type": "string" - }, - { - "name": "airline_leg_destination_code", - "baseName": "airline.leg.destination_code", - "type": "string" - }, - { - "name": "airline_leg_fare_base_code", - "baseName": "airline.leg.fare_base_code", - "type": "string" - }, - { - "name": "airline_leg_flight_number", - "baseName": "airline.leg.flight_number", - "type": "string" - }, - { - "name": "airline_leg_stop_over_code", - "baseName": "airline.leg.stop_over_code", - "type": "string" - }, - { - "name": "airline_passenger_date_of_birth", - "baseName": "airline.passenger.date_of_birth", - "type": "string" - }, - { - "name": "airline_passenger_first_name", - "baseName": "airline.passenger.first_name", - "type": "string" - }, - { - "name": "airline_passenger_last_name", - "baseName": "airline.passenger.last_name", - "type": "string" - }, - { - "name": "airline_passenger_telephone_number", - "baseName": "airline.passenger.telephone_number", - "type": "string" - }, - { - "name": "airline_passenger_traveller_type", - "baseName": "airline.passenger.traveller_type", - "type": "string" - }, - { - "name": "airline_passenger_name", - "baseName": "airline.passenger_name", - "type": "string" - }, - { - "name": "airline_ticket_issue_address", - "baseName": "airline.ticket_issue_address", - "type": "string" - }, - { - "name": "airline_ticket_number", - "baseName": "airline.ticket_number", - "type": "string" - }, - { - "name": "airline_travel_agency_code", - "baseName": "airline.travel_agency_code", - "type": "string" - }, - { - "name": "airline_travel_agency_name", - "baseName": "airline.travel_agency_name", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataAirline.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataCarRental.ts b/src/typings/payments/additionalDataCarRental.ts deleted file mode 100644 index a6bbac337..000000000 --- a/src/typings/payments/additionalDataCarRental.ts +++ /dev/null @@ -1,228 +0,0 @@ -/* - * 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` - */ - 'carRental_checkOutDate'?: string; - /** - * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 - */ - 'carRental_customerServiceTollFreeNumber'?: string; - /** - * Number of days for which the car is being rented. * Format: Numeric * maxLength: 19 - */ - 'carRental_daysRented'?: string; - /** - * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 - */ - 'carRental_fuelCharges'?: string; - /** - * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 - */ - 'carRental_insuranceCharges'?: string; - /** - * The city from which the car is rented. * Format: Alphanumeric * maxLength: 18 - */ - 'carRental_locationCity'?: string; - /** - * The country from which the car is rented. * Format: Alphanumeric * maxLength: 2 - */ - 'carRental_locationCountry'?: string; - /** - * The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3 - */ - 'carRental_locationStateProvince'?: string; - /** - * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable. - */ - 'carRental_noShowIndicator'?: string; - /** - * Charge associated with not returning a vehicle to the original rental location. - */ - 'carRental_oneWayDropOffCharges'?: string; - /** - * Daily rental rate. * Format: Alphanumeric * maxLength: 12 - */ - 'carRental_rate'?: string; - /** - * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. - */ - 'carRental_rateIndicator'?: string; - /** - * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9 - */ - 'carRental_rentalAgreementNumber'?: string; - /** - * Daily rental rate. * Format: Alphanumeric * maxLength: 12 - */ - 'carRental_rentalClassId'?: string; - /** - * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 - */ - 'carRental_renterName'?: string; - /** - * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 - */ - 'carRental_returnCity'?: string; - /** - * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 - */ - 'carRental_returnCountry'?: string; - /** - * The last date to return the car by. * Date format: `yyyyMMdd` - */ - 'carRental_returnDate'?: string; - /** - * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 - */ - 'carRental_returnLocationId'?: string; - /** - * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 - */ - 'carRental_returnStateProvince'?: 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 - */ - 'carRental_taxExemptIndicator'?: string; - /** - * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 - */ - 'travelEntertainmentAuthData_duration'?: 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 - */ - 'travelEntertainmentAuthData_market'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "carRental_checkOutDate", - "baseName": "carRental.checkOutDate", - "type": "string" - }, - { - "name": "carRental_customerServiceTollFreeNumber", - "baseName": "carRental.customerServiceTollFreeNumber", - "type": "string" - }, - { - "name": "carRental_daysRented", - "baseName": "carRental.daysRented", - "type": "string" - }, - { - "name": "carRental_fuelCharges", - "baseName": "carRental.fuelCharges", - "type": "string" - }, - { - "name": "carRental_insuranceCharges", - "baseName": "carRental.insuranceCharges", - "type": "string" - }, - { - "name": "carRental_locationCity", - "baseName": "carRental.locationCity", - "type": "string" - }, - { - "name": "carRental_locationCountry", - "baseName": "carRental.locationCountry", - "type": "string" - }, - { - "name": "carRental_locationStateProvince", - "baseName": "carRental.locationStateProvince", - "type": "string" - }, - { - "name": "carRental_noShowIndicator", - "baseName": "carRental.noShowIndicator", - "type": "string" - }, - { - "name": "carRental_oneWayDropOffCharges", - "baseName": "carRental.oneWayDropOffCharges", - "type": "string" - }, - { - "name": "carRental_rate", - "baseName": "carRental.rate", - "type": "string" - }, - { - "name": "carRental_rateIndicator", - "baseName": "carRental.rateIndicator", - "type": "string" - }, - { - "name": "carRental_rentalAgreementNumber", - "baseName": "carRental.rentalAgreementNumber", - "type": "string" - }, - { - "name": "carRental_rentalClassId", - "baseName": "carRental.rentalClassId", - "type": "string" - }, - { - "name": "carRental_renterName", - "baseName": "carRental.renterName", - "type": "string" - }, - { - "name": "carRental_returnCity", - "baseName": "carRental.returnCity", - "type": "string" - }, - { - "name": "carRental_returnCountry", - "baseName": "carRental.returnCountry", - "type": "string" - }, - { - "name": "carRental_returnDate", - "baseName": "carRental.returnDate", - "type": "string" - }, - { - "name": "carRental_returnLocationId", - "baseName": "carRental.returnLocationId", - "type": "string" - }, - { - "name": "carRental_returnStateProvince", - "baseName": "carRental.returnStateProvince", - "type": "string" - }, - { - "name": "carRental_taxExemptIndicator", - "baseName": "carRental.taxExemptIndicator", - "type": "string" - }, - { - "name": "travelEntertainmentAuthData_duration", - "baseName": "travelEntertainmentAuthData.duration", - "type": "string" - }, - { - "name": "travelEntertainmentAuthData_market", - "baseName": "travelEntertainmentAuthData.market", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataCarRental.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataCommon.ts b/src/typings/payments/additionalDataCommon.ts deleted file mode 100644 index cdb9f16aa..000000000 --- a/src/typings/payments/additionalDataCommon.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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; - /** - * Set to true to authorise a part of the requested amount in case the cardholder does not have enough funds on their account. If a payment was partially authorised, the response includes resultCode: PartiallyAuthorised and the authorised amount in additionalData.authorisedAmountValue. To enable this functionality, contact our Support Team. - */ - 'allowPartialAuth'?: 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://www.adyen.help/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; - /** - * Set to **true** to require [manual capture](https://docs.adyen.com/online-payments/capture) for the transaction. - */ - 'manualCapture'?: string; - /** - * 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": "allowPartialAuth", - "baseName": "allowPartialAuth", - "type": "string" - }, - { - "name": "authorisationType", - "baseName": "authorisationType", - "type": "string" - }, - { - "name": "customRoutingFlag", - "baseName": "customRoutingFlag", - "type": "string" - }, - { - "name": "industryUsage", - "baseName": "industryUsage", - "type": "AdditionalDataCommon.IndustryUsageEnum" - }, - { - "name": "manualCapture", - "baseName": "manualCapture", - "type": "string" - }, - { - "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/payments/additionalDataLevel23.ts b/src/typings/payments/additionalDataLevel23.ts deleted file mode 100644 index 2f614a59d..000000000 --- a/src/typings/payments/additionalDataLevel23.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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. - */ - 'enhancedSchemeData_customerReference'?: string; - /** - * Destination country code. Encoding: ASCII. Max length: 3 characters. - */ - 'enhancedSchemeData_destinationCountryCode'?: string; - /** - * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. - */ - 'enhancedSchemeData_destinationPostalCode'?: string; - /** - * Destination state or province code. Encoding: ASCII.Max length: 3 characters. - */ - 'enhancedSchemeData_destinationStateProvinceCode'?: string; - /** - * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeData_dutyAmount'?: string; - /** - * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeData_freightAmount'?: string; - /** - * Item commodity code. Encoding: ASCII. Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_commodityCode'?: string; - /** - * Item description. Encoding: ASCII. Max length: 26 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_description'?: string; - /** - * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_discountAmount'?: string; - /** - * Product code. Encoding: ASCII. Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_productCode'?: string; - /** - * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_quantity'?: string; - /** - * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_totalAmount'?: string; - /** - * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure'?: string; - /** - * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. - */ - 'enhancedSchemeData_itemDetailLine_itemNr_unitPrice'?: string; - /** - * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. - */ - 'enhancedSchemeData_orderDate'?: string; - /** - * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. - */ - 'enhancedSchemeData_shipFromPostalCode'?: 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. - */ - 'enhancedSchemeData_totalTaxAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "enhancedSchemeData_customerReference", - "baseName": "enhancedSchemeData.customerReference", - "type": "string" - }, - { - "name": "enhancedSchemeData_destinationCountryCode", - "baseName": "enhancedSchemeData.destinationCountryCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_destinationPostalCode", - "baseName": "enhancedSchemeData.destinationPostalCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_destinationStateProvinceCode", - "baseName": "enhancedSchemeData.destinationStateProvinceCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_dutyAmount", - "baseName": "enhancedSchemeData.dutyAmount", - "type": "string" - }, - { - "name": "enhancedSchemeData_freightAmount", - "baseName": "enhancedSchemeData.freightAmount", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_commodityCode", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_description", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_discountAmount", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_productCode", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_quantity", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_totalAmount", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_unitOfMeasure", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", - "type": "string" - }, - { - "name": "enhancedSchemeData_itemDetailLine_itemNr_unitPrice", - "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", - "type": "string" - }, - { - "name": "enhancedSchemeData_orderDate", - "baseName": "enhancedSchemeData.orderDate", - "type": "string" - }, - { - "name": "enhancedSchemeData_shipFromPostalCode", - "baseName": "enhancedSchemeData.shipFromPostalCode", - "type": "string" - }, - { - "name": "enhancedSchemeData_totalTaxAmount", - "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataLevel23.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataLodging.ts b/src/typings/payments/additionalDataLodging.ts deleted file mode 100644 index 01c6a9260..000000000 --- a/src/typings/payments/additionalDataLodging.ts +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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**. For example, for 2023 April 22, **20230422**. - */ - 'lodging_checkInDate'?: string; - /** - * The departure date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**. - */ - 'lodging_checkOutDate'?: string; - /** - * The toll-free phone number for the lodging. * Format: alphanumeric. * Max length: 17 characters. * For US numbers: must start with 3 digits and be at least 10 characters in length. Otherwise, the capture can fail. - */ - 'lodging_customerServiceTollFreeNumber'?: string; - /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: alphabetic. * Max length: 1 character. - */ - 'lodging_fireSafetyActIndicator'?: string; - /** - * The folio cash advances. * Format: numeric. * Max length: 12 characters. - */ - 'lodging_folioCashAdvances'?: string; - /** - * The card acceptor’s internal invoice or billing ID reference number. * Format: alphanumeric. * Max length: 25 characters. - */ - 'lodging_folioNumber'?: string; - /** - * The additional charges for food and beverages associated with the booking. * Format: numeric. * Max length: 12 characters. - */ - 'lodging_foodBeverageCharges'?: string; - /** - * Indicates if the customer didn\'t check in for their booking. Possible values: * **Y**: the customer didn\'t check in. **N**: the customer checked in. - */ - 'lodging_noShowIndicator'?: string; - /** - * The prepaid expenses for the booking. * Format: numeric. * Max length: 12 characters. - */ - 'lodging_prepaidExpenses'?: string; - /** - * Identifies the location of the lodging by its local phone number. * Format: alphanumeric. * Max length: 17 characters. * For US numbers: must start with 3 digits and be at least 10 characters in length. Otherwise, the capture can fail. - */ - 'lodging_propertyPhoneNumber'?: string; - /** - * The total number of nights the room is booked for. * Format: numeric. * Max length: 4 characters. - */ - 'lodging_room1_numberOfNights'?: string; - /** - * The rate of the room. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'lodging_room1_rate'?: string; - /** - * The total amount of tax to be paid. * Format: numeric. * Max length: 12 chracters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'lodging_room1_tax'?: string; - /** - * The total room tax amount. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'lodging_totalRoomTax'?: string; - /** - * The total tax amount. * Format: numeric. * Max length: 12 characters. * Must be in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'lodging_totalTax'?: string; - /** - * The number of nights. This should be included in the auth message. * Format: numeric. * Max length: 2 characters. - */ - 'travelEntertainmentAuthData_duration'?: 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. * Max length: 1 character. - */ - 'travelEntertainmentAuthData_market'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "lodging_checkInDate", - "baseName": "lodging.checkInDate", - "type": "string" - }, - { - "name": "lodging_checkOutDate", - "baseName": "lodging.checkOutDate", - "type": "string" - }, - { - "name": "lodging_customerServiceTollFreeNumber", - "baseName": "lodging.customerServiceTollFreeNumber", - "type": "string" - }, - { - "name": "lodging_fireSafetyActIndicator", - "baseName": "lodging.fireSafetyActIndicator", - "type": "string" - }, - { - "name": "lodging_folioCashAdvances", - "baseName": "lodging.folioCashAdvances", - "type": "string" - }, - { - "name": "lodging_folioNumber", - "baseName": "lodging.folioNumber", - "type": "string" - }, - { - "name": "lodging_foodBeverageCharges", - "baseName": "lodging.foodBeverageCharges", - "type": "string" - }, - { - "name": "lodging_noShowIndicator", - "baseName": "lodging.noShowIndicator", - "type": "string" - }, - { - "name": "lodging_prepaidExpenses", - "baseName": "lodging.prepaidExpenses", - "type": "string" - }, - { - "name": "lodging_propertyPhoneNumber", - "baseName": "lodging.propertyPhoneNumber", - "type": "string" - }, - { - "name": "lodging_room1_numberOfNights", - "baseName": "lodging.room1.numberOfNights", - "type": "string" - }, - { - "name": "lodging_room1_rate", - "baseName": "lodging.room1.rate", - "type": "string" - }, - { - "name": "lodging_room1_tax", - "baseName": "lodging.room1.tax", - "type": "string" - }, - { - "name": "lodging_totalRoomTax", - "baseName": "lodging.totalRoomTax", - "type": "string" - }, - { - "name": "lodging_totalTax", - "baseName": "lodging.totalTax", - "type": "string" - }, - { - "name": "travelEntertainmentAuthData_duration", - "baseName": "travelEntertainmentAuthData.duration", - "type": "string" - }, - { - "name": "travelEntertainmentAuthData_market", - "baseName": "travelEntertainmentAuthData.market", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataLodging.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataModifications.ts b/src/typings/payments/additionalDataModifications.ts deleted file mode 100644 index 0d4f0cc37..000000000 --- a/src/typings/payments/additionalDataModifications.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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 AdditionalDataModifications { - /** - * This is the installment option selected by the shopper. It is required only if specified by the user. - */ - 'installmentPaymentData_selectedInstallmentOption'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "installmentPaymentData_selectedInstallmentOption", - "baseName": "installmentPaymentData.selectedInstallmentOption", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataModifications.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts deleted file mode 100644 index c371298a7..000000000 --- a/src/typings/payments/additionalDataOpenInvoice.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* - * 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. - */ - 'openinvoicedata_merchantData'?: 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. - */ - 'openinvoicedata_numberOfLines'?: string; - /** - * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - */ - 'openinvoicedata_recipientFirstName'?: string; - /** - * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. - */ - 'openinvoicedata_recipientLastName'?: string; - /** - * The three-character ISO currency code. - */ - 'openinvoicedataLine_itemNr_currencyCode'?: string; - /** - * A text description of the product the invoice line refers to. - */ - 'openinvoicedataLine_itemNr_description'?: string; - /** - * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. - */ - 'openinvoicedataLine_itemNr_itemAmount'?: string; - /** - * A unique id for this item. Required for RatePay if the description of each item is not unique. - */ - 'openinvoicedataLine_itemNr_itemId'?: string; - /** - * The VAT due for one item in the invoice line, represented in minor units. - */ - 'openinvoicedataLine_itemNr_itemVatAmount'?: string; - /** - * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. - */ - 'openinvoicedataLine_itemNr_itemVatPercentage'?: string; - /** - * The number of units purchased of a specific product. - */ - 'openinvoicedataLine_itemNr_numberOfItems'?: string; - /** - * Name of the shipping company handling the the return shipment. - */ - 'openinvoicedataLine_itemNr_returnShippingCompany'?: string; - /** - * The tracking number for the return of the shipment. - */ - 'openinvoicedataLine_itemNr_returnTrackingNumber'?: string; - /** - * URI where the customer can track the return of their shipment. - */ - 'openinvoicedataLine_itemNr_returnTrackingUri'?: string; - /** - * Name of the shipping company handling the delivery. - */ - 'openinvoicedataLine_itemNr_shippingCompany'?: string; - /** - * Shipping method. - */ - 'openinvoicedataLine_itemNr_shippingMethod'?: string; - /** - * The tracking number for the shipment. - */ - 'openinvoicedataLine_itemNr_trackingNumber'?: string; - /** - * URI where the customer can track their shipment. - */ - 'openinvoicedataLine_itemNr_trackingUri'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "openinvoicedata_merchantData", - "baseName": "openinvoicedata.merchantData", - "type": "string" - }, - { - "name": "openinvoicedata_numberOfLines", - "baseName": "openinvoicedata.numberOfLines", - "type": "string" - }, - { - "name": "openinvoicedata_recipientFirstName", - "baseName": "openinvoicedata.recipientFirstName", - "type": "string" - }, - { - "name": "openinvoicedata_recipientLastName", - "baseName": "openinvoicedata.recipientLastName", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_currencyCode", - "baseName": "openinvoicedataLine[itemNr].currencyCode", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_description", - "baseName": "openinvoicedataLine[itemNr].description", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_itemAmount", - "baseName": "openinvoicedataLine[itemNr].itemAmount", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_itemId", - "baseName": "openinvoicedataLine[itemNr].itemId", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_itemVatAmount", - "baseName": "openinvoicedataLine[itemNr].itemVatAmount", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_itemVatPercentage", - "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_numberOfItems", - "baseName": "openinvoicedataLine[itemNr].numberOfItems", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_returnShippingCompany", - "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_returnTrackingNumber", - "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_returnTrackingUri", - "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_shippingCompany", - "baseName": "openinvoicedataLine[itemNr].shippingCompany", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_shippingMethod", - "baseName": "openinvoicedataLine[itemNr].shippingMethod", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_trackingNumber", - "baseName": "openinvoicedataLine[itemNr].trackingNumber", - "type": "string" - }, - { - "name": "openinvoicedataLine_itemNr_trackingUri", - "baseName": "openinvoicedataLine[itemNr].trackingUri", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataOpenInvoice.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataOpi.ts b/src/typings/payments/additionalDataOpi.ts deleted file mode 100644 index fb8d25eea..000000000 --- a/src/typings/payments/additionalDataOpi.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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). - */ - 'opi_includeTransToken'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "opi_includeTransToken", - "baseName": "opi.includeTransToken", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataOpi.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataRatepay.ts b/src/typings/payments/additionalDataRatepay.ts deleted file mode 100644 index 9aba46a1e..000000000 --- a/src/typings/payments/additionalDataRatepay.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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. - */ - 'ratepay_installmentAmount'?: string; - /** - * Interest rate of this installment. - */ - 'ratepay_interestRate'?: string; - /** - * Amount of the last installment. - */ - 'ratepay_lastInstallmentAmount'?: string; - /** - * Calendar day of the first payment. - */ - 'ratepay_paymentFirstday'?: string; - /** - * Date the merchant delivered the goods to the customer. - */ - 'ratepaydata_deliveryDate'?: string; - /** - * Date by which the customer must settle the payment. - */ - 'ratepaydata_dueDate'?: string; - /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. - */ - 'ratepaydata_invoiceDate'?: string; - /** - * Identification name or number for the invoice, defined by the merchant. - */ - 'ratepaydata_invoiceId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "ratepay_installmentAmount", - "baseName": "ratepay.installmentAmount", - "type": "string" - }, - { - "name": "ratepay_interestRate", - "baseName": "ratepay.interestRate", - "type": "string" - }, - { - "name": "ratepay_lastInstallmentAmount", - "baseName": "ratepay.lastInstallmentAmount", - "type": "string" - }, - { - "name": "ratepay_paymentFirstday", - "baseName": "ratepay.paymentFirstday", - "type": "string" - }, - { - "name": "ratepaydata_deliveryDate", - "baseName": "ratepaydata.deliveryDate", - "type": "string" - }, - { - "name": "ratepaydata_dueDate", - "baseName": "ratepaydata.dueDate", - "type": "string" - }, - { - "name": "ratepaydata_invoiceDate", - "baseName": "ratepaydata.invoiceDate", - "type": "string" - }, - { - "name": "ratepaydata_invoiceId", - "baseName": "ratepaydata.invoiceId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataRatepay.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataRetry.ts b/src/typings/payments/additionalDataRetry.ts deleted file mode 100644 index 55d93bed9..000000000 --- a/src/typings/payments/additionalDataRetry.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - 'retry_chainAttemptNumber'?: 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. - */ - 'retry_orderAttemptNumber'?: 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. - */ - 'retry_skipRetry'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "retry_chainAttemptNumber", - "baseName": "retry.chainAttemptNumber", - "type": "string" - }, - { - "name": "retry_orderAttemptNumber", - "baseName": "retry.orderAttemptNumber", - "type": "string" - }, - { - "name": "retry_skipRetry", - "baseName": "retry.skipRetry", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataRetry.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataRisk.ts b/src/typings/payments/additionalDataRisk.ts deleted file mode 100644 index 3d24ffd8c..000000000 --- a/src/typings/payments/additionalDataRisk.ts +++ /dev/null @@ -1,210 +0,0 @@ -/* - * 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). - */ - 'riskdata__customFieldName'?: string; - /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'riskdata_basket_item_itemNr_amountPerItem'?: string; - /** - * Brand of the item. - */ - 'riskdata_basket_item_itemNr_brand'?: string; - /** - * Category of the item. - */ - 'riskdata_basket_item_itemNr_category'?: string; - /** - * Color of the item. - */ - 'riskdata_basket_item_itemNr_color'?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - 'riskdata_basket_item_itemNr_currency'?: string; - /** - * ID of the item. - */ - 'riskdata_basket_item_itemNr_itemID'?: string; - /** - * Manufacturer of the item. - */ - 'riskdata_basket_item_itemNr_manufacturer'?: string; - /** - * A text description of the product the invoice line refers to. - */ - 'riskdata_basket_item_itemNr_productTitle'?: string; - /** - * Quantity of the item purchased. - */ - 'riskdata_basket_item_itemNr_quantity'?: string; - /** - * Email associated with the given product in the basket (usually in electronic gift cards). - */ - 'riskdata_basket_item_itemNr_receiverEmail'?: string; - /** - * Size of the item. - */ - 'riskdata_basket_item_itemNr_size'?: string; - /** - * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - */ - 'riskdata_basket_item_itemNr_sku'?: string; - /** - * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - */ - 'riskdata_basket_item_itemNr_upc'?: string; - /** - * Code of the promotion. - */ - 'riskdata_promotions_promotion_itemNr_promotionCode'?: string; - /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - 'riskdata_promotions_promotion_itemNr_promotionDiscountAmount'?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - 'riskdata_promotions_promotion_itemNr_promotionDiscountCurrency'?: 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. - */ - 'riskdata_promotions_promotion_itemNr_promotionDiscountPercentage'?: string; - /** - * Name of the promotion. - */ - 'riskdata_promotions_promotion_itemNr_promotionName'?: 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). - */ - 'riskdata_riskProfileReference'?: 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. - */ - 'riskdata_skipRisk'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "riskdata__customFieldName", - "baseName": "riskdata.[customFieldName]", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_amountPerItem", - "baseName": "riskdata.basket.item[itemNr].amountPerItem", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_brand", - "baseName": "riskdata.basket.item[itemNr].brand", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_category", - "baseName": "riskdata.basket.item[itemNr].category", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_color", - "baseName": "riskdata.basket.item[itemNr].color", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_currency", - "baseName": "riskdata.basket.item[itemNr].currency", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_itemID", - "baseName": "riskdata.basket.item[itemNr].itemID", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_manufacturer", - "baseName": "riskdata.basket.item[itemNr].manufacturer", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_productTitle", - "baseName": "riskdata.basket.item[itemNr].productTitle", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_quantity", - "baseName": "riskdata.basket.item[itemNr].quantity", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_receiverEmail", - "baseName": "riskdata.basket.item[itemNr].receiverEmail", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_size", - "baseName": "riskdata.basket.item[itemNr].size", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_sku", - "baseName": "riskdata.basket.item[itemNr].sku", - "type": "string" - }, - { - "name": "riskdata_basket_item_itemNr_upc", - "baseName": "riskdata.basket.item[itemNr].upc", - "type": "string" - }, - { - "name": "riskdata_promotions_promotion_itemNr_promotionCode", - "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", - "type": "string" - }, - { - "name": "riskdata_promotions_promotion_itemNr_promotionDiscountAmount", - "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", - "type": "string" - }, - { - "name": "riskdata_promotions_promotion_itemNr_promotionDiscountCurrency", - "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", - "type": "string" - }, - { - "name": "riskdata_promotions_promotion_itemNr_promotionDiscountPercentage", - "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", - "type": "string" - }, - { - "name": "riskdata_promotions_promotion_itemNr_promotionName", - "baseName": "riskdata.promotions.promotion[itemNr].promotionName", - "type": "string" - }, - { - "name": "riskdata_riskProfileReference", - "baseName": "riskdata.riskProfileReference", - "type": "string" - }, - { - "name": "riskdata_skipRisk", - "baseName": "riskdata.skipRisk", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataRisk.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataRiskStandalone.ts b/src/typings/payments/additionalDataRiskStandalone.ts deleted file mode 100644 index d61e26ce0..000000000 --- a/src/typings/payments/additionalDataRiskStandalone.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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. - */ - 'PayPal_CountryCode'?: string; - /** - * Shopper\'s email. - */ - 'PayPal_EmailId'?: string; - /** - * Shopper\'s first name. - */ - 'PayPal_FirstName'?: string; - /** - * Shopper\'s last name. - */ - 'PayPal_LastName'?: string; - /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. - */ - 'PayPal_PayerId'?: string; - /** - * Shopper\'s phone number. - */ - 'PayPal_Phone'?: 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. - */ - 'PayPal_ProtectionEligibility'?: string; - /** - * Unique transaction ID of the payment. - */ - 'PayPal_TransactionId'?: 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": "PayPal_CountryCode", - "baseName": "PayPal.CountryCode", - "type": "string" - }, - { - "name": "PayPal_EmailId", - "baseName": "PayPal.EmailId", - "type": "string" - }, - { - "name": "PayPal_FirstName", - "baseName": "PayPal.FirstName", - "type": "string" - }, - { - "name": "PayPal_LastName", - "baseName": "PayPal.LastName", - "type": "string" - }, - { - "name": "PayPal_PayerId", - "baseName": "PayPal.PayerId", - "type": "string" - }, - { - "name": "PayPal_Phone", - "baseName": "PayPal.Phone", - "type": "string" - }, - { - "name": "PayPal_ProtectionEligibility", - "baseName": "PayPal.ProtectionEligibility", - "type": "string" - }, - { - "name": "PayPal_TransactionId", - "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/payments/additionalDataSubMerchant.ts b/src/typings/payments/additionalDataSubMerchant.ts deleted file mode 100644 index 26a0449c4..000000000 --- a/src/typings/payments/additionalDataSubMerchant.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * 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**. - */ - 'subMerchant_numberOfSubSellers'?: string; - /** - * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters - */ - 'subMerchant_subSeller_subSellerNr_city'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_country'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_id'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_mcc'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_name'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_postalCode'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_state'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_street'?: 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 - */ - 'subMerchant_subSeller_subSellerNr_taxId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "subMerchant_numberOfSubSellers", - "baseName": "subMerchant.numberOfSubSellers", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_city", - "baseName": "subMerchant.subSeller[subSellerNr].city", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_country", - "baseName": "subMerchant.subSeller[subSellerNr].country", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_id", - "baseName": "subMerchant.subSeller[subSellerNr].id", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_mcc", - "baseName": "subMerchant.subSeller[subSellerNr].mcc", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_name", - "baseName": "subMerchant.subSeller[subSellerNr].name", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_postalCode", - "baseName": "subMerchant.subSeller[subSellerNr].postalCode", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_state", - "baseName": "subMerchant.subSeller[subSellerNr].state", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_street", - "baseName": "subMerchant.subSeller[subSellerNr].street", - "type": "string" - }, - { - "name": "subMerchant_subSeller_subSellerNr_taxId", - "baseName": "subMerchant.subSeller[subSellerNr].taxId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataSubMerchant.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataTemporaryServices.ts b/src/typings/payments/additionalDataTemporaryServices.ts deleted file mode 100644 index b2653095c..000000000 --- a/src/typings/payments/additionalDataTemporaryServices.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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 - */ - 'enhancedSchemeData_customerReference'?: string; - /** - * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 - */ - 'enhancedSchemeData_employeeName'?: string; - /** - * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 - */ - 'enhancedSchemeData_jobDescription'?: string; - /** - * Amount paid per regular hours worked, minor units. * maxLength: 7 - */ - 'enhancedSchemeData_regularHoursRate'?: string; - /** - * Amount of time worked during a normal operation for the task or job. * maxLength: 7 - */ - 'enhancedSchemeData_regularHoursWorked'?: string; - /** - * Name of the individual requesting temporary services. * maxLength: 40 - */ - 'enhancedSchemeData_requestName'?: string; - /** - * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 - */ - 'enhancedSchemeData_tempStartDate'?: string; - /** - * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 - */ - 'enhancedSchemeData_tempWeekEnding'?: string; - /** - * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 - */ - 'enhancedSchemeData_totalTaxAmount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "enhancedSchemeData_customerReference", - "baseName": "enhancedSchemeData.customerReference", - "type": "string" - }, - { - "name": "enhancedSchemeData_employeeName", - "baseName": "enhancedSchemeData.employeeName", - "type": "string" - }, - { - "name": "enhancedSchemeData_jobDescription", - "baseName": "enhancedSchemeData.jobDescription", - "type": "string" - }, - { - "name": "enhancedSchemeData_regularHoursRate", - "baseName": "enhancedSchemeData.regularHoursRate", - "type": "string" - }, - { - "name": "enhancedSchemeData_regularHoursWorked", - "baseName": "enhancedSchemeData.regularHoursWorked", - "type": "string" - }, - { - "name": "enhancedSchemeData_requestName", - "baseName": "enhancedSchemeData.requestName", - "type": "string" - }, - { - "name": "enhancedSchemeData_tempStartDate", - "baseName": "enhancedSchemeData.tempStartDate", - "type": "string" - }, - { - "name": "enhancedSchemeData_tempWeekEnding", - "baseName": "enhancedSchemeData.tempWeekEnding", - "type": "string" - }, - { - "name": "enhancedSchemeData_totalTaxAmount", - "baseName": "enhancedSchemeData.totalTaxAmount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataTemporaryServices.attributeTypeMap; - } -} - diff --git a/src/typings/payments/additionalDataWallets.ts b/src/typings/payments/additionalDataWallets.ts deleted file mode 100644 index 3c4eb5b4b..000000000 --- a/src/typings/payments/additionalDataWallets.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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. - */ - 'androidpay_token'?: string; - /** - * The Mastercard Masterpass Transaction ID retrieved from the SDK. - */ - 'masterpass_transactionId'?: string; - /** - * The Apple Pay token retrieved from the SDK. - */ - 'payment_token'?: string; - /** - * The Google Pay token retrieved from the SDK. - */ - 'paywithgoogle_token'?: string; - /** - * The Samsung Pay token retrieved from the SDK. - */ - 'samsungpay_token'?: string; - /** - * The Visa Checkout Call ID retrieved from the SDK. - */ - 'visacheckout_callId'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "androidpay_token", - "baseName": "androidpay.token", - "type": "string" - }, - { - "name": "masterpass_transactionId", - "baseName": "masterpass.transactionId", - "type": "string" - }, - { - "name": "payment_token", - "baseName": "payment.token", - "type": "string" - }, - { - "name": "paywithgoogle_token", - "baseName": "paywithgoogle.token", - "type": "string" - }, - { - "name": "samsungpay_token", - "baseName": "samsungpay.token", - "type": "string" - }, - { - "name": "visacheckout_callId", - "baseName": "visacheckout.callId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdditionalDataWallets.attributeTypeMap; - } -} - diff --git a/src/typings/payments/address.ts b/src/typings/payments/address.ts deleted file mode 100644 index 41b5bf010..000000000 --- a/src/typings/payments/address.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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/payments/adjustAuthorisationRequest.ts b/src/typings/payments/adjustAuthorisationRequest.ts deleted file mode 100644 index 7da3f19e1..000000000 --- a/src/typings/payments/adjustAuthorisationRequest.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class AdjustAuthorisationRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AdjustAuthorisationRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/amount.ts b/src/typings/payments/amount.ts deleted file mode 100644 index 4ef042f34..000000000 --- a/src/typings/payments/amount.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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/payments/applicationInfo.ts b/src/typings/payments/applicationInfo.ts deleted file mode 100644 index 11bb365f0..000000000 --- a/src/typings/payments/applicationInfo.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* - * 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/payments/authenticationResultRequest.ts b/src/typings/payments/authenticationResultRequest.ts deleted file mode 100644 index 0a2a23951..000000000 --- a/src/typings/payments/authenticationResultRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 AuthenticationResultRequest { - /** - * The merchant account identifier, with which the authentication was processed. - */ - 'merchantAccount': string; - /** - * The pspReference identifier for the transaction. - */ - 'pspReference': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "pspReference", - "baseName": "pspReference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AuthenticationResultRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/authenticationResultResponse.ts b/src/typings/payments/authenticationResultResponse.ts deleted file mode 100644 index 009d251ae..000000000 --- a/src/typings/payments/authenticationResultResponse.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 { ThreeDS1Result } from './threeDS1Result'; -import { ThreeDS2Result } from './threeDS2Result'; - -export class AuthenticationResultResponse { - 'threeDS1Result'?: ThreeDS1Result; - 'threeDS2Result'?: ThreeDS2Result; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "threeDS1Result", - "baseName": "threeDS1Result", - "type": "ThreeDS1Result" - }, - { - "name": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - } ]; - - static getAttributeTypeMap() { - return AuthenticationResultResponse.attributeTypeMap; - } -} - diff --git a/src/typings/payments/bankAccount.ts b/src/typings/payments/bankAccount.ts deleted file mode 100644 index e9f6e283f..000000000 --- a/src/typings/payments/bankAccount.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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/payments/browserInfo.ts b/src/typings/payments/browserInfo.ts deleted file mode 100644 index a21b855cc..000000000 --- a/src/typings/payments/browserInfo.ts +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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/payments/cancelOrRefundRequest.ts b/src/typings/payments/cancelOrRefundRequest.ts deleted file mode 100644 index e28aafcba..000000000 --- a/src/typings/payments/cancelOrRefundRequest.ts +++ /dev/null @@ -1,98 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class CancelOrRefundRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CancelOrRefundRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/cancelRequest.ts b/src/typings/payments/cancelRequest.ts deleted file mode 100644 index d16a95157..000000000 --- a/src/typings/payments/cancelRequest.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class CancelRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CancelRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/captureRequest.ts b/src/typings/payments/captureRequest.ts deleted file mode 100644 index 3b5a6bc2b..000000000 --- a/src/typings/payments/captureRequest.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class CaptureRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CaptureRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/card.ts b/src/typings/payments/card.ts deleted file mode 100644 index 39c036cf2..000000000 --- a/src/typings/payments/card.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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/payments/commonField.ts b/src/typings/payments/commonField.ts deleted file mode 100644 index 618f18efe..000000000 --- a/src/typings/payments/commonField.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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/payments/deviceRenderOptions.ts b/src/typings/payments/deviceRenderOptions.ts deleted file mode 100644 index 7c2336721..000000000 --- a/src/typings/payments/deviceRenderOptions.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/payments/donationRequest.ts b/src/typings/payments/donationRequest.ts deleted file mode 100644 index 158f656a1..000000000 --- a/src/typings/payments/donationRequest.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; - -export class DonationRequest { - /** - * The Adyen account name of the charity. - */ - 'donationAccount': string; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount': Amount; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "donationAccount", - "baseName": "donationAccount", - "type": "string" - }, - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return DonationRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/externalPlatform.ts b/src/typings/payments/externalPlatform.ts deleted file mode 100644 index f877b6df4..000000000 --- a/src/typings/payments/externalPlatform.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/payments/forexQuote.ts b/src/typings/payments/forexQuote.ts deleted file mode 100644 index 4a6646b87..000000000 --- a/src/typings/payments/forexQuote.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * 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/payments/fraudCheckResult.ts b/src/typings/payments/fraudCheckResult.ts deleted file mode 100644 index 756b1f340..000000000 --- a/src/typings/payments/fraudCheckResult.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/payments/fraudCheckResultWrapper.ts b/src/typings/payments/fraudCheckResultWrapper.ts deleted file mode 100644 index 570595d40..000000000 --- a/src/typings/payments/fraudCheckResultWrapper.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 FraudCheckResultWrapper { - 'FraudCheckResult'?: FraudCheckResult; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "FraudCheckResult", - "baseName": "FraudCheckResult", - "type": "FraudCheckResult" - } ]; - - static getAttributeTypeMap() { - return FraudCheckResultWrapper.attributeTypeMap; - } -} - diff --git a/src/typings/payments/fraudResult.ts b/src/typings/payments/fraudResult.ts deleted file mode 100644 index f790c5b46..000000000 --- a/src/typings/payments/fraudResult.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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 { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; - -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/payments/fundDestination.ts b/src/typings/payments/fundDestination.ts deleted file mode 100644 index b16dbc2bf..000000000 --- a/src/typings/payments/fundDestination.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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'; -import { SubMerchant } from './subMerchant'; - -export class FundDestination { - /** - * a map of name/value pairs for passing in additional/industry-specific data - */ - 'additionalData'?: { [key: string]: string; }; - 'billingAddress'?: Address; - 'card'?: Card; - /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - */ - 'selectedRecurringDetailReference'?: string; - /** - * the email address of the person - */ - 'shopperEmail'?: string; - '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; - 'subMerchant'?: SubMerchant; - /** - * the telephone 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": "selectedRecurringDetailReference", - "baseName": "selectedRecurringDetailReference", - "type": "string" - }, - { - "name": "shopperEmail", - "baseName": "shopperEmail", - "type": "string" - }, - { - "name": "shopperName", - "baseName": "shopperName", - "type": "Name" - }, - { - "name": "shopperReference", - "baseName": "shopperReference", - "type": "string" - }, - { - "name": "subMerchant", - "baseName": "subMerchant", - "type": "SubMerchant" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return FundDestination.attributeTypeMap; - } -} - diff --git a/src/typings/payments/fundSource.ts b/src/typings/payments/fundSource.ts deleted file mode 100644 index 0612f0b4b..000000000 --- a/src/typings/payments/fundSource.ts +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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/payments/installments.ts b/src/typings/payments/installments.ts deleted file mode 100644 index 07b4b2943..000000000 --- a/src/typings/payments/installments.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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/payments/mandate.ts b/src/typings/payments/mandate.ts deleted file mode 100644 index b73f80c42..000000000 --- a/src/typings/payments/mandate.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * 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/payments/merchantDevice.ts b/src/typings/payments/merchantDevice.ts deleted file mode 100644 index 704a668a9..000000000 --- a/src/typings/payments/merchantDevice.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/payments/merchantRiskIndicator.ts b/src/typings/payments/merchantRiskIndicator.ts deleted file mode 100644 index bffd59c5b..000000000 --- a/src/typings/payments/merchantRiskIndicator.ts +++ /dev/null @@ -1,162 +0,0 @@ -/* - * 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/payments/models.ts b/src/typings/payments/models.ts deleted file mode 100644 index f8b829804..000000000 --- a/src/typings/payments/models.ts +++ /dev/null @@ -1,431 +0,0 @@ -/* - * 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 './additionalDataModifications'; -export * from './additionalDataOpenInvoice'; -export * from './additionalDataOpi'; -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 './adjustAuthorisationRequest'; -export * from './amount'; -export * from './applicationInfo'; -export * from './authenticationResultRequest'; -export * from './authenticationResultResponse'; -export * from './bankAccount'; -export * from './browserInfo'; -export * from './cancelOrRefundRequest'; -export * from './cancelRequest'; -export * from './captureRequest'; -export * from './card'; -export * from './commonField'; -export * from './deviceRenderOptions'; -export * from './donationRequest'; -export * from './externalPlatform'; -export * from './forexQuote'; -export * from './fraudCheckResult'; -export * from './fraudCheckResultWrapper'; -export * from './fraudResult'; -export * from './fundDestination'; -export * from './fundSource'; -export * from './installments'; -export * from './mandate'; -export * from './merchantDevice'; -export * from './merchantRiskIndicator'; -export * from './modificationResult'; -export * from './name'; -export * from './paymentRequest'; -export * from './paymentRequest3d'; -export * from './paymentRequest3ds2'; -export * from './paymentResult'; -export * from './phone'; -export * from './platformChargebackLogic'; -export * from './recurring'; -export * from './refundRequest'; -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 './subMerchant'; -export * from './technicalCancelRequest'; -export * from './threeDS1Result'; -export * from './threeDS2RequestData'; -export * from './threeDS2Result'; -export * from './threeDS2ResultRequest'; -export * from './threeDS2ResultResponse'; -export * from './threeDSRequestorAuthenticationInfo'; -export * from './threeDSRequestorPriorAuthenticationInfo'; -export * from './threeDSecureData'; -export * from './voidPendingRefundRequest'; - - -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 { AdditionalDataModifications } from './additionalDataModifications'; -import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; -import { AdditionalDataOpi } from './additionalDataOpi'; -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 { AdjustAuthorisationRequest } from './adjustAuthorisationRequest'; -import { Amount } from './amount'; -import { ApplicationInfo } from './applicationInfo'; -import { AuthenticationResultRequest } from './authenticationResultRequest'; -import { AuthenticationResultResponse } from './authenticationResultResponse'; -import { BankAccount } from './bankAccount'; -import { BrowserInfo } from './browserInfo'; -import { CancelOrRefundRequest } from './cancelOrRefundRequest'; -import { CancelRequest } from './cancelRequest'; -import { CaptureRequest } from './captureRequest'; -import { Card } from './card'; -import { CommonField } from './commonField'; -import { DeviceRenderOptions } from './deviceRenderOptions'; -import { DonationRequest } from './donationRequest'; -import { ExternalPlatform } from './externalPlatform'; -import { ForexQuote } from './forexQuote'; -import { FraudCheckResult } from './fraudCheckResult'; -import { FraudCheckResultWrapper } from './fraudCheckResultWrapper'; -import { FraudResult } from './fraudResult'; -import { FundDestination } from './fundDestination'; -import { FundSource } from './fundSource'; -import { Installments } from './installments'; -import { Mandate } from './mandate'; -import { MerchantDevice } from './merchantDevice'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; -import { ModificationResult } from './modificationResult'; -import { Name } from './name'; -import { PaymentRequest } from './paymentRequest'; -import { PaymentRequest3d } from './paymentRequest3d'; -import { PaymentRequest3ds2 } from './paymentRequest3ds2'; -import { PaymentResult } from './paymentResult'; -import { Phone } from './phone'; -import { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Recurring } from './recurring'; -import { RefundRequest } from './refundRequest'; -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 { SubMerchant } from './subMerchant'; -import { TechnicalCancelRequest } from './technicalCancelRequest'; -import { ThreeDS1Result } from './threeDS1Result'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; -import { ThreeDS2Result } from './threeDS2Result'; -import { ThreeDS2ResultRequest } from './threeDS2ResultRequest'; -import { ThreeDS2ResultResponse } from './threeDS2ResultResponse'; -import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; -import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; -import { ThreeDSecureData } from './threeDSecureData'; -import { VoidPendingRefundRequest } from './voidPendingRefundRequest'; - -/* 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, - "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, - "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, - "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, - "ModificationResult.ResponseEnum": ModificationResult.ResponseEnum, - "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, - "PaymentRequest.FundingSourceEnum": PaymentRequest.FundingSourceEnum, - "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, - "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, - "PaymentRequest3d.RecurringProcessingModelEnum": PaymentRequest3d.RecurringProcessingModelEnum, - "PaymentRequest3d.ShopperInteractionEnum": PaymentRequest3d.ShopperInteractionEnum, - "PaymentRequest3ds2.RecurringProcessingModelEnum": PaymentRequest3ds2.RecurringProcessingModelEnum, - "PaymentRequest3ds2.ShopperInteractionEnum": PaymentRequest3ds2.ShopperInteractionEnum, - "PaymentResult.ResultCodeEnum": PaymentResult.ResultCodeEnum, - "PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum, - "Recurring.ContractEnum": Recurring.ContractEnum, - "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, - "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, - "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, - "Split.TypeEnum": Split.TypeEnum, - "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, - "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, - "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, - "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, - "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, - "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, - "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, - "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, - "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, - "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, - "AdditionalDataModifications": AdditionalDataModifications, - "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, - "AdditionalDataOpi": AdditionalDataOpi, - "AdditionalDataRatepay": AdditionalDataRatepay, - "AdditionalDataRetry": AdditionalDataRetry, - "AdditionalDataRisk": AdditionalDataRisk, - "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, - "AdditionalDataSubMerchant": AdditionalDataSubMerchant, - "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, - "AdditionalDataWallets": AdditionalDataWallets, - "Address": Address, - "AdjustAuthorisationRequest": AdjustAuthorisationRequest, - "Amount": Amount, - "ApplicationInfo": ApplicationInfo, - "AuthenticationResultRequest": AuthenticationResultRequest, - "AuthenticationResultResponse": AuthenticationResultResponse, - "BankAccount": BankAccount, - "BrowserInfo": BrowserInfo, - "CancelOrRefundRequest": CancelOrRefundRequest, - "CancelRequest": CancelRequest, - "CaptureRequest": CaptureRequest, - "Card": Card, - "CommonField": CommonField, - "DeviceRenderOptions": DeviceRenderOptions, - "DonationRequest": DonationRequest, - "ExternalPlatform": ExternalPlatform, - "ForexQuote": ForexQuote, - "FraudCheckResult": FraudCheckResult, - "FraudCheckResultWrapper": FraudCheckResultWrapper, - "FraudResult": FraudResult, - "FundDestination": FundDestination, - "FundSource": FundSource, - "Installments": Installments, - "Mandate": Mandate, - "MerchantDevice": MerchantDevice, - "MerchantRiskIndicator": MerchantRiskIndicator, - "ModificationResult": ModificationResult, - "Name": Name, - "PaymentRequest": PaymentRequest, - "PaymentRequest3d": PaymentRequest3d, - "PaymentRequest3ds2": PaymentRequest3ds2, - "PaymentResult": PaymentResult, - "Phone": Phone, - "PlatformChargebackLogic": PlatformChargebackLogic, - "Recurring": Recurring, - "RefundRequest": RefundRequest, - "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, - "SubMerchant": SubMerchant, - "TechnicalCancelRequest": TechnicalCancelRequest, - "ThreeDS1Result": ThreeDS1Result, - "ThreeDS2RequestData": ThreeDS2RequestData, - "ThreeDS2Result": ThreeDS2Result, - "ThreeDS2ResultRequest": ThreeDS2ResultRequest, - "ThreeDS2ResultResponse": ThreeDS2ResultResponse, - "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, - "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, - "ThreeDSecureData": ThreeDSecureData, - "VoidPendingRefundRequest": VoidPendingRefundRequest, -} - -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/payments/modificationResult.ts b/src/typings/payments/modificationResult.ts deleted file mode 100644 index e07bcc4ed..000000000 --- a/src/typings/payments/modificationResult.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 ModificationResult { - /** - * This field contains additional data, which may be returned in a particular modification response. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - */ - 'pspReference': string; - /** - * Indicates if the modification request has been received for processing. - */ - 'response': ModificationResult.ResponseEnum; - - 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": "ModificationResult.ResponseEnum" - } ]; - - static getAttributeTypeMap() { - return ModificationResult.attributeTypeMap; - } -} - -export namespace ModificationResult { - export enum ResponseEnum { - CaptureReceived = '[capture-received]', - CancelReceived = '[cancel-received]', - RefundReceived = '[refund-received]', - CancelOrRefundReceived = '[cancelOrRefund-received]', - AdjustAuthorisationReceived = '[adjustAuthorisation-received]', - DonationReceived = '[donation-received]', - TechnicalCancelReceived = '[technical-cancel-received]', - VoidPendingRefundReceived = '[voidPendingRefund-received]' - } -} diff --git a/src/typings/payments/paymentRequest.ts b/src/typings/payments/paymentRequest.ts deleted file mode 100644 index 0b71b46f1..000000000 --- a/src/typings/payments/paymentRequest.ts +++ /dev/null @@ -1,477 +0,0 @@ -/* - * 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 { AccountInfo } from './accountInfo'; -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 { ForexQuote } from './forexQuote'; -import { FundDestination } from './fundDestination'; -import { FundSource } from './fundSource'; -import { Installments } from './installments'; -import { Mandate } from './mandate'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; -import { Name } from './name'; -import { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Recurring } from './recurring'; -import { Split } from './split'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class PaymentRequest { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'bankAccount'?: BankAccount; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - 'captureDelayHours'?: number; - 'card'?: Card; - /** - * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - 'deliveryDate'?: Date; - /** - * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - 'deviceFingerprint'?: string; - /** - * The type of the entity the payment is processed for. - */ - 'entityType'?: PaymentRequest.EntityTypeEnum; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - 'fraudOffset'?: number; - 'fundDestination'?: FundDestination; - 'fundSource'?: FundSource; - /** - * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. - */ - 'fundingSource'?: PaymentRequest.FundingSourceEnum; - 'installments'?: Installments; - /** - * This field allows merchants to use dynamic shopper statement in local character sets. The local shopper statement field can be supplied in markets where localized merchant descriptors are used. Currently, Adyen only supports this in the Japanese market .The available character sets at the moment are: * Processing in Japan: **ja-Kana** The character set **ja-Kana** supports UTF-8 based Katakana and alphanumeric and special characters. Merchants can use half-width or full-width characters. An example request would be: > { \"shopperStatement\" : \"ADYEN - SELLER-A\", \"localizedShopperStatement\" : { \"ja-Kana\" : \"ADYEN - セラーA\" } } We recommend merchants to always supply the field localizedShopperStatement in addition to the field shopperStatement.It is issuer dependent whether the localized shopper statement field is supported. In the case of non-domestic transactions (e.g. US-issued cards processed in JP) the field `shopperStatement` is used to modify the statement of the shopper. Adyen handles the complexity of ensuring the correct descriptors are assigned. Please note, this field can be used for only Visa and Mastercard transactions. - */ - 'localizedShopperStatement'?: { [key: string]: string; }; - 'mandate'?: Mandate; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - 'mcc'?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - 'merchantAccount': string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - */ - 'metadata'?: { [key: string]: string; }; - 'mpiData'?: ThreeDSecureData; - /** - * The two-character country code of the shopper\'s nationality. - */ - 'nationality'?: string; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - 'orderReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - 'recurring'?: Recurring; - /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. - */ - 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; 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; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - */ - 'selectedBrand'?: 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; - /** - * A session ID used to identify a payment session. - */ - 'sessionId'?: 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; - /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - */ - 'shopperIP'?: 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'?: PaymentRequest.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - 'shopperLocale'?: string; - '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 text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. - */ - 'shopperStatement'?: string; - /** - * The shopper\'s social security number. - */ - 'socialSecurityNumber'?: string; - /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - */ - 'splits'?: Array; - /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. - */ - 'store'?: string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; - /** - * 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. - */ - 'threeDSAuthenticationOnly'?: boolean; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - 'totalsGroup'?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - 'trustedShopper'?: boolean; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountInfo", - "baseName": "accountInfo", - "type": "AccountInfo" - }, - { - "name": "additionalAmount", - "baseName": "additionalAmount", - "type": "Amount" - }, - { - "name": "additionalData", - "baseName": "additionalData", - "type": "{ [key: string]: string; }" - }, - { - "name": "amount", - "baseName": "amount", - "type": "Amount" - }, - { - "name": "applicationInfo", - "baseName": "applicationInfo", - "type": "ApplicationInfo" - }, - { - "name": "bankAccount", - "baseName": "bankAccount", - "type": "BankAccount" - }, - { - "name": "billingAddress", - "baseName": "billingAddress", - "type": "Address" - }, - { - "name": "browserInfo", - "baseName": "browserInfo", - "type": "BrowserInfo" - }, - { - "name": "captureDelayHours", - "baseName": "captureDelayHours", - "type": "number" - }, - { - "name": "card", - "baseName": "card", - "type": "Card" - }, - { - "name": "dateOfBirth", - "baseName": "dateOfBirth", - "type": "string" - }, - { - "name": "dccQuote", - "baseName": "dccQuote", - "type": "ForexQuote" - }, - { - "name": "deliveryAddress", - "baseName": "deliveryAddress", - "type": "Address" - }, - { - "name": "deliveryDate", - "baseName": "deliveryDate", - "type": "Date" - }, - { - "name": "deviceFingerprint", - "baseName": "deviceFingerprint", - "type": "string" - }, - { - "name": "entityType", - "baseName": "entityType", - "type": "PaymentRequest.EntityTypeEnum" - }, - { - "name": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "name": "fundDestination", - "baseName": "fundDestination", - "type": "FundDestination" - }, - { - "name": "fundSource", - "baseName": "fundSource", - "type": "FundSource" - }, - { - "name": "fundingSource", - "baseName": "fundingSource", - "type": "PaymentRequest.FundingSourceEnum" - }, - { - "name": "installments", - "baseName": "installments", - "type": "Installments" - }, - { - "name": "localizedShopperStatement", - "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }" - }, - { - "name": "mandate", - "baseName": "mandate", - "type": "Mandate" - }, - { - "name": "mcc", - "baseName": "mcc", - "type": "string" - }, - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "merchantOrderReference", - "baseName": "merchantOrderReference", - "type": "string" - }, - { - "name": "merchantRiskIndicator", - "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" - }, - { - "name": "metadata", - "baseName": "metadata", - "type": "{ [key: string]: string; }" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "nationality", - "baseName": "nationality", - "type": "string" - }, - { - "name": "orderReference", - "baseName": "orderReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "recurring", - "baseName": "recurring", - "type": "Recurring" - }, - { - "name": "recurringProcessingModel", - "baseName": "recurringProcessingModel", - "type": "PaymentRequest.RecurringProcessingModelEnum" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "selectedBrand", - "baseName": "selectedBrand", - "type": "string" - }, - { - "name": "selectedRecurringDetailReference", - "baseName": "selectedRecurringDetailReference", - "type": "string" - }, - { - "name": "sessionId", - "baseName": "sessionId", - "type": "string" - }, - { - "name": "shopperEmail", - "baseName": "shopperEmail", - "type": "string" - }, - { - "name": "shopperIP", - "baseName": "shopperIP", - "type": "string" - }, - { - "name": "shopperInteraction", - "baseName": "shopperInteraction", - "type": "PaymentRequest.ShopperInteractionEnum" - }, - { - "name": "shopperLocale", - "baseName": "shopperLocale", - "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": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "store", - "baseName": "store", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - }, - { - "name": "threeDS2RequestData", - "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" - }, - { - "name": "threeDSAuthenticationOnly", - "baseName": "threeDSAuthenticationOnly", - "type": "boolean" - }, - { - "name": "totalsGroup", - "baseName": "totalsGroup", - "type": "string" - }, - { - "name": "trustedShopper", - "baseName": "trustedShopper", - "type": "boolean" - } ]; - - static getAttributeTypeMap() { - return PaymentRequest.attributeTypeMap; - } -} - -export namespace PaymentRequest { - export enum EntityTypeEnum { - NaturalPerson = 'NaturalPerson', - CompanyName = 'CompanyName' - } - export enum FundingSourceEnum { - Debit = 'debit' - } - export enum RecurringProcessingModelEnum { - CardOnFile = 'CardOnFile', - Subscription = 'Subscription', - UnscheduledCardOnFile = 'UnscheduledCardOnFile' - } - export enum ShopperInteractionEnum { - Ecommerce = 'Ecommerce', - ContAuth = 'ContAuth', - Moto = 'Moto', - Pos = 'POS' - } -} diff --git a/src/typings/payments/paymentRequest3d.ts b/src/typings/payments/paymentRequest3d.ts deleted file mode 100644 index 85ba5fa2c..000000000 --- a/src/typings/payments/paymentRequest3d.ts +++ /dev/null @@ -1,412 +0,0 @@ -/* - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { ApplicationInfo } from './applicationInfo'; -import { BrowserInfo } from './browserInfo'; -import { ForexQuote } from './forexQuote'; -import { Installments } from './installments'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; -import { Name } from './name'; -import { Recurring } from './recurring'; -import { Split } from './split'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; - -export class PaymentRequest3d { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - 'amount'?: Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - 'captureDelayHours'?: number; - /** - * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - 'deliveryDate'?: Date; - /** - * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - 'deviceFingerprint'?: string; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - 'fraudOffset'?: number; - 'installments'?: Installments; - /** - * This field allows merchants to use dynamic shopper statement in local character sets. The local shopper statement field can be supplied in markets where localized merchant descriptors are used. Currently, Adyen only supports this in the Japanese market .The available character sets at the moment are: * Processing in Japan: **ja-Kana** The character set **ja-Kana** supports UTF-8 based Katakana and alphanumeric and special characters. Merchants can use half-width or full-width characters. An example request would be: > { \"shopperStatement\" : \"ADYEN - SELLER-A\", \"localizedShopperStatement\" : { \"ja-Kana\" : \"ADYEN - セラーA\" } } We recommend merchants to always supply the field localizedShopperStatement in addition to the field shopperStatement.It is issuer dependent whether the localized shopper statement field is supported. In the case of non-domestic transactions (e.g. US-issued cards processed in JP) the field `shopperStatement` is used to modify the statement of the shopper. Adyen handles the complexity of ensuring the correct descriptors are assigned. Please note, this field can be used for only Visa and Mastercard transactions. - */ - 'localizedShopperStatement'?: { [key: string]: string; }; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - 'mcc'?: string; - /** - * The payment session identifier returned by the card issuer. - */ - 'md': string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - 'merchantAccount': string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - */ - 'metadata'?: { [key: string]: string; }; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - 'orderReference'?: string; - /** - * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. - */ - 'paResponse': string; - 'recurring'?: Recurring; - /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. - */ - 'recurringProcessingModel'?: PaymentRequest3d.RecurringProcessingModelEnum; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; 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; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - */ - 'selectedBrand'?: 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; - /** - * A session ID used to identify a payment session. - */ - 'sessionId'?: 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; - /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - */ - 'shopperIP'?: 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'?: PaymentRequest3d.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - 'shopperLocale'?: string; - '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 text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. - */ - 'shopperStatement'?: string; - /** - * The shopper\'s social security number. - */ - 'socialSecurityNumber'?: string; - /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - */ - 'splits'?: Array; - /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. - */ - 'store'?: string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; - /** - * 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. - */ - 'threeDSAuthenticationOnly'?: boolean; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - 'totalsGroup'?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - 'trustedShopper'?: boolean; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountInfo", - "baseName": "accountInfo", - "type": "AccountInfo" - }, - { - "name": "additionalAmount", - "baseName": "additionalAmount", - "type": "Amount" - }, - { - "name": "additionalData", - "baseName": "additionalData", - "type": "{ [key: string]: string; }" - }, - { - "name": "amount", - "baseName": "amount", - "type": "Amount" - }, - { - "name": "applicationInfo", - "baseName": "applicationInfo", - "type": "ApplicationInfo" - }, - { - "name": "billingAddress", - "baseName": "billingAddress", - "type": "Address" - }, - { - "name": "browserInfo", - "baseName": "browserInfo", - "type": "BrowserInfo" - }, - { - "name": "captureDelayHours", - "baseName": "captureDelayHours", - "type": "number" - }, - { - "name": "dateOfBirth", - "baseName": "dateOfBirth", - "type": "string" - }, - { - "name": "dccQuote", - "baseName": "dccQuote", - "type": "ForexQuote" - }, - { - "name": "deliveryAddress", - "baseName": "deliveryAddress", - "type": "Address" - }, - { - "name": "deliveryDate", - "baseName": "deliveryDate", - "type": "Date" - }, - { - "name": "deviceFingerprint", - "baseName": "deviceFingerprint", - "type": "string" - }, - { - "name": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "name": "installments", - "baseName": "installments", - "type": "Installments" - }, - { - "name": "localizedShopperStatement", - "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }" - }, - { - "name": "mcc", - "baseName": "mcc", - "type": "string" - }, - { - "name": "md", - "baseName": "md", - "type": "string" - }, - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "merchantOrderReference", - "baseName": "merchantOrderReference", - "type": "string" - }, - { - "name": "merchantRiskIndicator", - "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" - }, - { - "name": "metadata", - "baseName": "metadata", - "type": "{ [key: string]: string; }" - }, - { - "name": "orderReference", - "baseName": "orderReference", - "type": "string" - }, - { - "name": "paResponse", - "baseName": "paResponse", - "type": "string" - }, - { - "name": "recurring", - "baseName": "recurring", - "type": "Recurring" - }, - { - "name": "recurringProcessingModel", - "baseName": "recurringProcessingModel", - "type": "PaymentRequest3d.RecurringProcessingModelEnum" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "selectedBrand", - "baseName": "selectedBrand", - "type": "string" - }, - { - "name": "selectedRecurringDetailReference", - "baseName": "selectedRecurringDetailReference", - "type": "string" - }, - { - "name": "sessionId", - "baseName": "sessionId", - "type": "string" - }, - { - "name": "shopperEmail", - "baseName": "shopperEmail", - "type": "string" - }, - { - "name": "shopperIP", - "baseName": "shopperIP", - "type": "string" - }, - { - "name": "shopperInteraction", - "baseName": "shopperInteraction", - "type": "PaymentRequest3d.ShopperInteractionEnum" - }, - { - "name": "shopperLocale", - "baseName": "shopperLocale", - "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": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "store", - "baseName": "store", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - }, - { - "name": "threeDS2RequestData", - "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" - }, - { - "name": "threeDSAuthenticationOnly", - "baseName": "threeDSAuthenticationOnly", - "type": "boolean" - }, - { - "name": "totalsGroup", - "baseName": "totalsGroup", - "type": "string" - }, - { - "name": "trustedShopper", - "baseName": "trustedShopper", - "type": "boolean" - } ]; - - static getAttributeTypeMap() { - return PaymentRequest3d.attributeTypeMap; - } -} - -export namespace PaymentRequest3d { - export enum RecurringProcessingModelEnum { - CardOnFile = 'CardOnFile', - Subscription = 'Subscription', - UnscheduledCardOnFile = 'UnscheduledCardOnFile' - } - export enum ShopperInteractionEnum { - Ecommerce = 'Ecommerce', - ContAuth = 'ContAuth', - Moto = 'Moto', - Pos = 'POS' - } -} diff --git a/src/typings/payments/paymentRequest3ds2.ts b/src/typings/payments/paymentRequest3ds2.ts deleted file mode 100644 index d173157b8..000000000 --- a/src/typings/payments/paymentRequest3ds2.ts +++ /dev/null @@ -1,410 +0,0 @@ -/* - * 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 { AccountInfo } from './accountInfo'; -import { Address } from './address'; -import { Amount } from './amount'; -import { ApplicationInfo } from './applicationInfo'; -import { BrowserInfo } from './browserInfo'; -import { ForexQuote } from './forexQuote'; -import { Installments } from './installments'; -import { MerchantRiskIndicator } from './merchantRiskIndicator'; -import { Name } from './name'; -import { Recurring } from './recurring'; -import { Split } from './split'; -import { ThreeDS2RequestData } from './threeDS2RequestData'; -import { ThreeDS2Result } from './threeDS2Result'; - -export class PaymentRequest3ds2 { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - 'captureDelayHours'?: number; - /** - * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; - /** - * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - */ - 'deliveryDate'?: Date; - /** - * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - 'deviceFingerprint'?: string; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - 'fraudOffset'?: number; - 'installments'?: Installments; - /** - * This field allows merchants to use dynamic shopper statement in local character sets. The local shopper statement field can be supplied in markets where localized merchant descriptors are used. Currently, Adyen only supports this in the Japanese market .The available character sets at the moment are: * Processing in Japan: **ja-Kana** The character set **ja-Kana** supports UTF-8 based Katakana and alphanumeric and special characters. Merchants can use half-width or full-width characters. An example request would be: > { \"shopperStatement\" : \"ADYEN - SELLER-A\", \"localizedShopperStatement\" : { \"ja-Kana\" : \"ADYEN - セラーA\" } } We recommend merchants to always supply the field localizedShopperStatement in addition to the field shopperStatement.It is issuer dependent whether the localized shopper statement field is supported. In the case of non-domestic transactions (e.g. US-issued cards processed in JP) the field `shopperStatement` is used to modify the statement of the shopper. Adyen handles the complexity of ensuring the correct descriptors are assigned. Please note, this field can be used for only Visa and Mastercard transactions. - */ - 'localizedShopperStatement'?: { [key: string]: string; }; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - 'mcc'?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - 'merchantAccount': string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. - */ - 'metadata'?: { [key: string]: string; }; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - 'orderReference'?: string; - 'recurring'?: Recurring; - /** - * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. - */ - 'recurringProcessingModel'?: PaymentRequest3ds2.RecurringProcessingModelEnum; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; 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; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. - */ - 'selectedBrand'?: 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; - /** - * A session ID used to identify a payment session. - */ - 'sessionId'?: 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; - /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). - */ - 'shopperIP'?: 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'?: PaymentRequest3ds2.ShopperInteractionEnum; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - 'shopperLocale'?: string; - '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 text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. - */ - 'shopperStatement'?: string; - /** - * The shopper\'s social security number. - */ - 'socialSecurityNumber'?: string; - /** - * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split). - */ - 'splits'?: Array; - /** - * The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms. - */ - 'store'?: string; - /** - * The shopper\'s telephone number. - */ - 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; - 'threeDS2Result'?: ThreeDS2Result; - /** - * The ThreeDS2Token that was returned in the /authorise call. - */ - 'threeDS2Token'?: string; - /** - * 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. - */ - 'threeDSAuthenticationOnly'?: boolean; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - 'totalsGroup'?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - 'trustedShopper'?: boolean; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountInfo", - "baseName": "accountInfo", - "type": "AccountInfo" - }, - { - "name": "additionalAmount", - "baseName": "additionalAmount", - "type": "Amount" - }, - { - "name": "additionalData", - "baseName": "additionalData", - "type": "{ [key: string]: string; }" - }, - { - "name": "amount", - "baseName": "amount", - "type": "Amount" - }, - { - "name": "applicationInfo", - "baseName": "applicationInfo", - "type": "ApplicationInfo" - }, - { - "name": "billingAddress", - "baseName": "billingAddress", - "type": "Address" - }, - { - "name": "browserInfo", - "baseName": "browserInfo", - "type": "BrowserInfo" - }, - { - "name": "captureDelayHours", - "baseName": "captureDelayHours", - "type": "number" - }, - { - "name": "dateOfBirth", - "baseName": "dateOfBirth", - "type": "string" - }, - { - "name": "dccQuote", - "baseName": "dccQuote", - "type": "ForexQuote" - }, - { - "name": "deliveryAddress", - "baseName": "deliveryAddress", - "type": "Address" - }, - { - "name": "deliveryDate", - "baseName": "deliveryDate", - "type": "Date" - }, - { - "name": "deviceFingerprint", - "baseName": "deviceFingerprint", - "type": "string" - }, - { - "name": "fraudOffset", - "baseName": "fraudOffset", - "type": "number" - }, - { - "name": "installments", - "baseName": "installments", - "type": "Installments" - }, - { - "name": "localizedShopperStatement", - "baseName": "localizedShopperStatement", - "type": "{ [key: string]: string; }" - }, - { - "name": "mcc", - "baseName": "mcc", - "type": "string" - }, - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "merchantOrderReference", - "baseName": "merchantOrderReference", - "type": "string" - }, - { - "name": "merchantRiskIndicator", - "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" - }, - { - "name": "metadata", - "baseName": "metadata", - "type": "{ [key: string]: string; }" - }, - { - "name": "orderReference", - "baseName": "orderReference", - "type": "string" - }, - { - "name": "recurring", - "baseName": "recurring", - "type": "Recurring" - }, - { - "name": "recurringProcessingModel", - "baseName": "recurringProcessingModel", - "type": "PaymentRequest3ds2.RecurringProcessingModelEnum" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "selectedBrand", - "baseName": "selectedBrand", - "type": "string" - }, - { - "name": "selectedRecurringDetailReference", - "baseName": "selectedRecurringDetailReference", - "type": "string" - }, - { - "name": "sessionId", - "baseName": "sessionId", - "type": "string" - }, - { - "name": "shopperEmail", - "baseName": "shopperEmail", - "type": "string" - }, - { - "name": "shopperIP", - "baseName": "shopperIP", - "type": "string" - }, - { - "name": "shopperInteraction", - "baseName": "shopperInteraction", - "type": "PaymentRequest3ds2.ShopperInteractionEnum" - }, - { - "name": "shopperLocale", - "baseName": "shopperLocale", - "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": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "store", - "baseName": "store", - "type": "string" - }, - { - "name": "telephoneNumber", - "baseName": "telephoneNumber", - "type": "string" - }, - { - "name": "threeDS2RequestData", - "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" - }, - { - "name": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - }, - { - "name": "threeDS2Token", - "baseName": "threeDS2Token", - "type": "string" - }, - { - "name": "threeDSAuthenticationOnly", - "baseName": "threeDSAuthenticationOnly", - "type": "boolean" - }, - { - "name": "totalsGroup", - "baseName": "totalsGroup", - "type": "string" - }, - { - "name": "trustedShopper", - "baseName": "trustedShopper", - "type": "boolean" - } ]; - - static getAttributeTypeMap() { - return PaymentRequest3ds2.attributeTypeMap; - } -} - -export namespace PaymentRequest3ds2 { - export enum RecurringProcessingModelEnum { - CardOnFile = 'CardOnFile', - Subscription = 'Subscription', - UnscheduledCardOnFile = 'UnscheduledCardOnFile' - } - export enum ShopperInteractionEnum { - Ecommerce = 'Ecommerce', - ContAuth = 'ContAuth', - Moto = 'Moto', - Pos = 'POS' - } -} diff --git a/src/typings/payments/paymentResult.ts b/src/typings/payments/paymentResult.ts deleted file mode 100644 index 0da17db2d..000000000 --- a/src/typings/payments/paymentResult.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* - * 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 PaymentResult { - /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. - */ - '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://www.adyen.help/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'?: PaymentResult.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": "PaymentResult.ResultCodeEnum" - } ]; - - static getAttributeTypeMap() { - return PaymentResult.attributeTypeMap; - } -} - -export namespace PaymentResult { - export enum ResultCodeEnum { - AuthenticationFinished = 'AuthenticationFinished', - AuthenticationNotRequired = 'AuthenticationNotRequired', - 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/payments/phone.ts b/src/typings/payments/phone.ts deleted file mode 100644 index aab0bae90..000000000 --- a/src/typings/payments/phone.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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/payments/platformChargebackLogic.ts b/src/typings/payments/platformChargebackLogic.ts deleted file mode 100644 index ae6a69c9e..000000000 --- a/src/typings/payments/platformChargebackLogic.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 PlatformChargebackLogic { - 'behavior'?: PlatformChargebackLogic.BehaviorEnum; - 'costAllocationAccount'?: string; - 'targetAccount'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "behavior", - "baseName": "behavior", - "type": "PlatformChargebackLogic.BehaviorEnum" - }, - { - "name": "costAllocationAccount", - "baseName": "costAllocationAccount", - "type": "string" - }, - { - "name": "targetAccount", - "baseName": "targetAccount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return PlatformChargebackLogic.attributeTypeMap; - } -} - -export namespace PlatformChargebackLogic { - export enum BehaviorEnum { - DeductAccordingToSplitRatio = 'deductAccordingToSplitRatio', - DeductFromLiableAccount = 'deductFromLiableAccount', - DeductFromOneBalanceAccount = 'deductFromOneBalanceAccount' - } -} diff --git a/src/typings/payments/recurring.ts b/src/typings/payments/recurring.ts deleted file mode 100644 index 4fdf48be6..000000000 --- a/src/typings/payments/recurring.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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/payments/refundRequest.ts b/src/typings/payments/refundRequest.ts deleted file mode 100644 index 9282443a8..000000000 --- a/src/typings/payments/refundRequest.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class RefundRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return RefundRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalData3DSecure.ts b/src/typings/payments/responseAdditionalData3DSecure.ts deleted file mode 100644 index 36de8cb63..000000000 --- a/src/typings/payments/responseAdditionalData3DSecure.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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. - */ - 'threeds2_cardEnrolled'?: 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": "threeds2_cardEnrolled", - "baseName": "threeds2.cardEnrolled", - "type": "boolean" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalData3DSecure.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataBillingAddress.ts b/src/typings/payments/responseAdditionalDataBillingAddress.ts deleted file mode 100644 index bb0b2c8c8..000000000 --- a/src/typings/payments/responseAdditionalDataBillingAddress.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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. - */ - 'billingAddress_city'?: string; - /** - * The billing address country passed in the payment request. Example: NL - */ - 'billingAddress_country'?: string; - /** - * The billing address house number or name passed in the payment request. - */ - 'billingAddress_houseNumberOrName'?: string; - /** - * The billing address postal code passed in the payment request. Example: 1011 DJ - */ - 'billingAddress_postalCode'?: string; - /** - * The billing address state or province passed in the payment request. Example: NH - */ - 'billingAddress_stateOrProvince'?: string; - /** - * The billing address street passed in the payment request. - */ - 'billingAddress_street'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "billingAddress_city", - "baseName": "billingAddress.city", - "type": "string" - }, - { - "name": "billingAddress_country", - "baseName": "billingAddress.country", - "type": "string" - }, - { - "name": "billingAddress_houseNumberOrName", - "baseName": "billingAddress.houseNumberOrName", - "type": "string" - }, - { - "name": "billingAddress_postalCode", - "baseName": "billingAddress.postalCode", - "type": "string" - }, - { - "name": "billingAddress_stateOrProvince", - "baseName": "billingAddress.stateOrProvince", - "type": "string" - }, - { - "name": "billingAddress_street", - "baseName": "billingAddress.street", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataBillingAddress.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataCard.ts b/src/typings/payments/responseAdditionalDataCard.ts deleted file mode 100644 index b61f91ecd..000000000 --- a/src/typings/payments/responseAdditionalDataCard.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * 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/payments/responseAdditionalDataCommon.ts b/src/typings/payments/responseAdditionalDataCommon.ts deleted file mode 100644 index 602abfa5a..000000000 --- a/src/typings/payments/responseAdditionalDataCommon.ts +++ /dev/null @@ -1,563 +0,0 @@ -/* - * 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. - */ - 'fraudCheck__itemNr__FraudCheckname'?: 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; - /** - * The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes). - */ - 'merchantAdviceCode'?: string; - /** - * 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. - */ - 'recurring_contractTypes'?: 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. - */ - 'recurring_firstPspReference'?: string; - /** - * The reference that uniquely identifies the recurring transaction. - */ - 'recurring_recurringDetailReference'?: string; - /** - * The provided reference of the shopper for a recurring transaction. - */ - 'recurring_shopperReference'?: 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": "fraudCheck__itemNr__FraudCheckname", - "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": "string" - }, - { - "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": "recurring_contractTypes", - "baseName": "recurring.contractTypes", - "type": "string" - }, - { - "name": "recurring_firstPspReference", - "baseName": "recurring.firstPspReference", - "type": "string" - }, - { - "name": "recurring_recurringDetailReference", - "baseName": "recurring.recurringDetailReference", - "type": "string" - }, - { - "name": "recurring_shopperReference", - "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 RecurringProcessingModelEnum { - CardOnFile = 'CardOnFile', - Subscription = 'Subscription', - UnscheduledCardOnFile = 'UnscheduledCardOnFile' - } -} diff --git a/src/typings/payments/responseAdditionalDataInstallments.ts b/src/typings/payments/responseAdditionalDataInstallments.ts deleted file mode 100644 index 013cd759e..000000000 --- a/src/typings/payments/responseAdditionalDataInstallments.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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**. - */ - 'installmentPaymentData_installmentType'?: string; - /** - * Annual interest rate. - */ - 'installmentPaymentData_option_itemNr_annualPercentageRate'?: string; - /** - * First Installment Amount in minor units. - */ - 'installmentPaymentData_option_itemNr_firstInstallmentAmount'?: string; - /** - * Installment fee amount in minor units. - */ - 'installmentPaymentData_option_itemNr_installmentFee'?: string; - /** - * Interest rate for the installment period. - */ - 'installmentPaymentData_option_itemNr_interestRate'?: string; - /** - * Maximum number of installments possible for this payment. - */ - 'installmentPaymentData_option_itemNr_maximumNumberOfInstallments'?: string; - /** - * Minimum number of installments possible for this payment. - */ - 'installmentPaymentData_option_itemNr_minimumNumberOfInstallments'?: string; - /** - * Total number of installments possible for this payment. - */ - 'installmentPaymentData_option_itemNr_numberOfInstallments'?: string; - /** - * Subsequent Installment Amount in minor units. - */ - 'installmentPaymentData_option_itemNr_subsequentInstallmentAmount'?: string; - /** - * Total amount in minor units. - */ - 'installmentPaymentData_option_itemNr_totalAmountDue'?: string; - /** - * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments - */ - 'installmentPaymentData_paymentOptions'?: 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. - */ - 'installments_value'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "installmentPaymentData_installmentType", - "baseName": "installmentPaymentData.installmentType", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_annualPercentageRate", - "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_firstInstallmentAmount", - "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_installmentFee", - "baseName": "installmentPaymentData.option[itemNr].installmentFee", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_interestRate", - "baseName": "installmentPaymentData.option[itemNr].interestRate", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_maximumNumberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_minimumNumberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_numberOfInstallments", - "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_subsequentInstallmentAmount", - "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", - "type": "string" - }, - { - "name": "installmentPaymentData_option_itemNr_totalAmountDue", - "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", - "type": "string" - }, - { - "name": "installmentPaymentData_paymentOptions", - "baseName": "installmentPaymentData.paymentOptions", - "type": "string" - }, - { - "name": "installments_value", - "baseName": "installments.value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataInstallments.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataNetworkTokens.ts b/src/typings/payments/responseAdditionalDataNetworkTokens.ts deleted file mode 100644 index 565570146..000000000 --- a/src/typings/payments/responseAdditionalDataNetworkTokens.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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. - */ - 'networkToken_available'?: string; - /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - */ - 'networkToken_bin'?: string; - /** - * The last four digits of a network token. - */ - 'networkToken_tokenSummary'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "networkToken_available", - "baseName": "networkToken.available", - "type": "string" - }, - { - "name": "networkToken_bin", - "baseName": "networkToken.bin", - "type": "string" - }, - { - "name": "networkToken_tokenSummary", - "baseName": "networkToken.tokenSummary", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataNetworkTokens.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataOpi.ts b/src/typings/payments/responseAdditionalDataOpi.ts deleted file mode 100644 index dbf4f3d26..000000000 --- a/src/typings/payments/responseAdditionalDataOpi.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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). - */ - 'opi_transToken'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "opi_transToken", - "baseName": "opi.transToken", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataOpi.attributeTypeMap; - } -} - diff --git a/src/typings/payments/responseAdditionalDataSepa.ts b/src/typings/payments/responseAdditionalDataSepa.ts deleted file mode 100644 index cf5704a07..000000000 --- a/src/typings/payments/responseAdditionalDataSepa.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 - */ - 'sepadirectdebit_dateOfSignature'?: string; - /** - * Its value corresponds to the pspReference value of the transaction. - */ - 'sepadirectdebit_mandateId'?: 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 - */ - 'sepadirectdebit_sequenceType'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "sepadirectdebit_dateOfSignature", - "baseName": "sepadirectdebit.dateOfSignature", - "type": "string" - }, - { - "name": "sepadirectdebit_mandateId", - "baseName": "sepadirectdebit.mandateId", - "type": "string" - }, - { - "name": "sepadirectdebit_sequenceType", - "baseName": "sepadirectdebit.sequenceType", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ResponseAdditionalDataSepa.attributeTypeMap; - } -} - diff --git a/src/typings/payments/sDKEphemPubKey.ts b/src/typings/payments/sDKEphemPubKey.ts deleted file mode 100644 index ffe46b837..000000000 --- a/src/typings/payments/sDKEphemPubKey.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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/payments/serviceError.ts b/src/typings/payments/serviceError.ts deleted file mode 100644 index c89df8314..000000000 --- a/src/typings/payments/serviceError.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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** > **Developers** > **Additional data**. - */ - '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/payments/shopperInteractionDevice.ts b/src/typings/payments/shopperInteractionDevice.ts deleted file mode 100644 index ce8e982f2..000000000 --- a/src/typings/payments/shopperInteractionDevice.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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/payments/split.ts b/src/typings/payments/split.ts deleted file mode 100644 index 77e70b39e..000000000 --- a/src/typings/payments/split.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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**, **Surcharge**, **Tip**. - */ - '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', - Surcharge = 'Surcharge', - Tip = 'Tip', - Vat = 'VAT', - Verification = 'Verification' - } -} diff --git a/src/typings/payments/splitAmount.ts b/src/typings/payments/splitAmount.ts deleted file mode 100644 index c1ababdb4..000000000 --- a/src/typings/payments/splitAmount.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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/payments/subMerchant.ts b/src/typings/payments/subMerchant.ts deleted file mode 100644 index 65c2ebbb1..000000000 --- a/src/typings/payments/subMerchant.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 SubMerchant { - /** - * The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters - */ - 'city'?: string; - /** - * 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 - */ - 'country'?: string; - /** - * The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits - */ - 'mcc'?: string; - /** - * 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 - */ - 'name'?: string; - /** - * The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ - */ - 'taxId'?: 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": "mcc", - "baseName": "mcc", - "type": "string" - }, - { - "name": "name", - "baseName": "name", - "type": "string" - }, - { - "name": "taxId", - "baseName": "taxId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return SubMerchant.attributeTypeMap; - } -} - diff --git a/src/typings/payments/technicalCancelRequest.ts b/src/typings/payments/technicalCancelRequest.ts deleted file mode 100644 index d0965eeab..000000000 --- a/src/typings/payments/technicalCancelRequest.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class TechnicalCancelRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount'?: Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TechnicalCancelRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS1Result.ts b/src/typings/payments/threeDS1Result.ts deleted file mode 100644 index a14c1e88f..000000000 --- a/src/typings/payments/threeDS1Result.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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 ThreeDS1Result { - /** - * The cardholder authentication value (base64 encoded). - */ - 'cavv'?: string; - /** - * The CAVV algorithm used. - */ - 'cavvAlgorithm'?: string; - /** - * 3D Secure Electronic Commerce Indicator (ECI). - */ - 'eci'?: string; - /** - * The authentication response from the ACS. - */ - 'threeDAuthenticatedResponse'?: string; - /** - * Whether 3D Secure was offered or not. - */ - 'threeDOfferedResponse'?: string; - /** - * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. - */ - 'xid'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "cavv", - "baseName": "cavv", - "type": "string" - }, - { - "name": "cavvAlgorithm", - "baseName": "cavvAlgorithm", - "type": "string" - }, - { - "name": "eci", - "baseName": "eci", - "type": "string" - }, - { - "name": "threeDAuthenticatedResponse", - "baseName": "threeDAuthenticatedResponse", - "type": "string" - }, - { - "name": "threeDOfferedResponse", - "baseName": "threeDOfferedResponse", - "type": "string" - }, - { - "name": "xid", - "baseName": "xid", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS1Result.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts deleted file mode 100644 index 61fb79503..000000000 --- a/src/typings/payments/threeDS2RequestData.ts +++ /dev/null @@ -1,393 +0,0 @@ -/* - * 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) * **06** — Data Only - */ - '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', - _06 = '06' - } - 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/payments/threeDS2Result.ts b/src/typings/payments/threeDS2Result.ts deleted file mode 100644 index 74f05b0a1..000000000 --- a/src/typings/payments/threeDS2Result.ts +++ /dev/null @@ -1,170 +0,0 @@ -/* - * 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 ThreeDS2Result { - /** - * The `authenticationValue` value as defined in the 3D Secure 2 specification. - */ - 'authenticationValue'?: string; - /** - * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. - */ - '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'?: ThreeDS2Result.ChallengeCancelEnum; - /** - * Specifies a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` - */ - 'challengeIndicator'?: ThreeDS2Result.ChallengeIndicatorEnum; - /** - * The `dsTransID` value as defined in the 3D Secure 2 specification. - */ - 'dsTransID'?: string; - /** - * The `eci` value as defined in the 3D Secure 2 specification. - */ - 'eci'?: string; - /** - * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` - */ - 'exemptionIndicator'?: ThreeDS2Result.ExemptionIndicatorEnum; - /** - * The `messageVersion` value as defined in the 3D Secure 2 specification. - */ - 'messageVersion'?: string; - /** - * Risk score calculated by Cartes Bancaires Directory Server (DS). - */ - 'riskScore'?: string; - /** - * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. - */ - 'threeDSServerTransID'?: string; - /** - * The `timestamp` value of the 3D Secure 2 authentication. - */ - 'timestamp'?: string; - /** - * The `transStatus` value as defined in the 3D Secure 2 specification. - */ - 'transStatus'?: 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; - /** - * The `whiteListStatus` value as defined in the 3D Secure 2 specification. - */ - 'whiteListStatus'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "authenticationValue", - "baseName": "authenticationValue", - "type": "string" - }, - { - "name": "cavvAlgorithm", - "baseName": "cavvAlgorithm", - "type": "string" - }, - { - "name": "challengeCancel", - "baseName": "challengeCancel", - "type": "ThreeDS2Result.ChallengeCancelEnum" - }, - { - "name": "challengeIndicator", - "baseName": "challengeIndicator", - "type": "ThreeDS2Result.ChallengeIndicatorEnum" - }, - { - "name": "dsTransID", - "baseName": "dsTransID", - "type": "string" - }, - { - "name": "eci", - "baseName": "eci", - "type": "string" - }, - { - "name": "exemptionIndicator", - "baseName": "exemptionIndicator", - "type": "ThreeDS2Result.ExemptionIndicatorEnum" - }, - { - "name": "messageVersion", - "baseName": "messageVersion", - "type": "string" - }, - { - "name": "riskScore", - "baseName": "riskScore", - "type": "string" - }, - { - "name": "threeDSServerTransID", - "baseName": "threeDSServerTransID", - "type": "string" - }, - { - "name": "timestamp", - "baseName": "timestamp", - "type": "string" - }, - { - "name": "transStatus", - "baseName": "transStatus", - "type": "string" - }, - { - "name": "transStatusReason", - "baseName": "transStatusReason", - "type": "string" - }, - { - "name": "whiteListStatus", - "baseName": "whiteListStatus", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2Result.attributeTypeMap; - } -} - -export namespace ThreeDS2Result { - export enum ChallengeCancelEnum { - _01 = '01', - _02 = '02', - _03 = '03', - _04 = '04', - _05 = '05', - _06 = '06', - _07 = '07' - } - export enum ChallengeIndicatorEnum { - NoPreference = 'noPreference', - RequestNoChallenge = 'requestNoChallenge', - RequestChallenge = 'requestChallenge', - RequestChallengeAsMandate = 'requestChallengeAsMandate' - } - export enum ExemptionIndicatorEnum { - LowValue = 'lowValue', - SecureCorporate = 'secureCorporate', - TrustedBeneficiary = 'trustedBeneficiary', - TransactionRiskAnalysis = 'transactionRiskAnalysis' - } -} diff --git a/src/typings/payments/threeDS2ResultRequest.ts b/src/typings/payments/threeDS2ResultRequest.ts deleted file mode 100644 index 12d90e478..000000000 --- a/src/typings/payments/threeDS2ResultRequest.ts +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 ThreeDS2ResultRequest { - /** - * The merchant account identifier, with which you want to process the transaction. - */ - 'merchantAccount': string; - /** - * The pspReference returned in the /authorise call. - */ - 'pspReference': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merchantAccount", - "baseName": "merchantAccount", - "type": "string" - }, - { - "name": "pspReference", - "baseName": "pspReference", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2ResultRequest.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDS2ResultResponse.ts b/src/typings/payments/threeDS2ResultResponse.ts deleted file mode 100644 index 61f5c3694..000000000 --- a/src/typings/payments/threeDS2ResultResponse.ts +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 { ThreeDS2Result } from './threeDS2Result'; - -export class ThreeDS2ResultResponse { - 'threeDS2Result'?: ThreeDS2Result; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "threeDS2Result", - "baseName": "threeDS2Result", - "type": "ThreeDS2Result" - } ]; - - static getAttributeTypeMap() { - return ThreeDS2ResultResponse.attributeTypeMap; - } -} - diff --git a/src/typings/payments/threeDSRequestorAuthenticationInfo.ts b/src/typings/payments/threeDSRequestorAuthenticationInfo.ts deleted file mode 100644 index b6ef43d4d..000000000 --- a/src/typings/payments/threeDSRequestorAuthenticationInfo.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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/payments/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts deleted file mode 100644 index 93d2fd53c..000000000 --- a/src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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/payments/threeDSecureData.ts b/src/typings/payments/threeDSecureData.ts deleted file mode 100644 index d2308c413..000000000 --- a/src/typings/payments/threeDSecureData.ts +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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/payments/voidPendingRefundRequest.ts b/src/typings/payments/voidPendingRefundRequest.ts deleted file mode 100644 index d8a03a4d6..000000000 --- a/src/typings/payments/voidPendingRefundRequest.ts +++ /dev/null @@ -1,115 +0,0 @@ -/* - * 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 { PlatformChargebackLogic } from './platformChargebackLogic'; -import { Split } from './split'; -import { ThreeDSecureData } from './threeDSecureData'; - -export class VoidPendingRefundRequest { - /** - * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. - */ - 'additionalData'?: { [key: string]: string; }; - /** - * The merchant account that is used to process the payment. - */ - 'merchantAccount': string; - 'modificationAmount'?: Amount; - 'mpiData'?: ThreeDSecureData; - /** - * The original merchant reference to cancel. - */ - 'originalMerchantReference'?: string; - /** - * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification - */ - 'originalReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - /** - * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. - */ - 'reference'?: string; - /** - * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information). - */ - 'splits'?: Array; - /** - * The transaction reference provided by the PED. For point-of-sale integrations only. - */ - 'tenderReference'?: string; - /** - * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. - */ - 'uniqueTerminalId'?: 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": "modificationAmount", - "baseName": "modificationAmount", - "type": "Amount" - }, - { - "name": "mpiData", - "baseName": "mpiData", - "type": "ThreeDSecureData" - }, - { - "name": "originalMerchantReference", - "baseName": "originalMerchantReference", - "type": "string" - }, - { - "name": "originalReference", - "baseName": "originalReference", - "type": "string" - }, - { - "name": "platformChargebackLogic", - "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" - }, - { - "name": "reference", - "baseName": "reference", - "type": "string" - }, - { - "name": "splits", - "baseName": "splits", - "type": "Array" - }, - { - "name": "tenderReference", - "baseName": "tenderReference", - "type": "string" - }, - { - "name": "uniqueTerminalId", - "baseName": "uniqueTerminalId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return VoidPendingRefundRequest.attributeTypeMap; - } -} -