├── VERSION ├── .eslintignore ├── .github ├── ISSUE_TEMPLATE │ └── config.yml ├── CODEOWNERS ├── PULL_REQUEST_TEMPLATE.md ├── release.yml └── workflows │ ├── label_new_issues.yml │ ├── npm-debug.yml │ └── format.yml ├── renovate.json ├── src ├── typings │ ├── posMobile │ │ └── models.ts │ ├── balanceControl │ │ └── models.ts │ ├── dataProtection │ │ └── models.ts │ ├── disputeWebhooks │ │ └── models.ts │ ├── balanceWebhooks │ │ └── models.ts │ ├── reportWebhooks │ │ └── models.ts │ ├── balancePlatform │ │ ├── settingType.ts │ │ ├── transferType.ts │ │ ├── scope.ts │ │ ├── limitStatus.ts │ │ ├── scaStatus.ts │ │ ├── href.ts │ │ ├── fee.ts │ │ ├── paymentInstrumentAdditionalBankAccountIdentificationsInner.ts │ │ ├── grantLimit.ts │ │ ├── thresholdRepayment.ts │ │ ├── getNetworkTokenResponse.ts │ │ ├── registerSCAFinalResponse.ts │ │ ├── grantOffers.ts │ │ ├── paymentInstrumentRevealResponse.ts │ │ ├── transactionRuleResponse.ts │ │ ├── scaExemption.ts │ │ ├── associationInitiateResponse.ts │ │ ├── authorisedCardUsers.ts │ │ ├── bankAccount.ts │ │ ├── webhookSettings.ts │ │ ├── listNetworkTokensResponse.ts │ │ ├── approveTransferLimitRequest.ts │ │ ├── delegatedAuthenticationData.ts │ │ ├── transferLimitListResponse.ts │ │ ├── transactionRulesResponse.ts │ │ └── associationDelegatedAuthenticationData.ts │ ├── paymentsApp │ │ ├── models.ts │ │ ├── boardingTokenRequest.ts │ │ └── paymentsAppResponse.ts │ ├── negativeBalanceWarningWebhooks │ │ └── models.ts │ ├── checkout │ │ ├── result.ts │ │ ├── taxTotal.ts │ │ ├── enhancedSchemeData.ts │ │ ├── utilityRequest.ts │ │ ├── responseAdditionalDataSwish.ts │ │ ├── shopperIdPaymentMethod.ts │ │ ├── utilityResponse.ts │ │ ├── payToPaymentMethod.ts │ │ ├── uPIPaymentMethod.ts │ │ ├── donationCampaignsResponse.ts │ │ └── applePaySessionResponse.ts │ ├── sessionAuthentication │ │ ├── productType.ts │ │ ├── resourceType.ts │ │ └── models.ts │ ├── openBanking │ │ ├── partyRole.ts │ │ ├── accountType.ts │ │ ├── accountVerificationCountry.ts │ │ ├── models.ts │ │ └── accountVerificationRoutesResponse.ts │ ├── tokenizationWebhooks │ │ └── models.ts │ ├── binLookup │ │ ├── models.ts │ │ └── binDetail.ts │ ├── acsWebhooks │ │ ├── models.ts │ │ └── relayedAuthenticationResponse.ts │ ├── disputes │ │ ├── models.ts │ │ ├── acceptDisputeResponse.ts │ │ ├── defendDisputeResponse.ts │ │ ├── deleteDefenseDocumentResponse.ts │ │ └── supplyDefenseDocumentResponse.ts │ ├── storedValue │ │ └── models.ts │ ├── transactionWebhooks │ │ ├── models.ts │ │ ├── threeDSecure.ts │ │ └── transferViewCategoryData.ts │ ├── platformsAccount │ │ ├── closeAccountRequest.ts │ │ ├── closeAccountHolderRequest.ts │ │ ├── suspendAccountHolderRequest.ts │ │ ├── unSuspendAccountHolderRequest.ts │ │ ├── kYCCheckResult.ts │ │ ├── individualDetails.ts │ │ └── closeStoresRequest.ts │ ├── transfers │ │ ├── transferEventEventsDataInner.ts │ │ ├── fee.ts │ │ ├── link.ts │ │ ├── thresholdRepayment.ts │ │ ├── threeDSecure.ts │ │ ├── capitalGrants.ts │ │ ├── cancelTransfersRequest.ts │ │ ├── approveTransfersRequest.ts │ │ ├── transferDataTracking.ts │ │ ├── transferCategoryData.ts │ │ ├── transferEventTrackingData.ts │ │ └── links.ts │ ├── transferWebhooks │ │ ├── transferEventEventsDataInner.ts │ │ ├── threeDSecure.ts │ │ ├── transferEventTrackingData.ts │ │ └── transferDataCategoryData.ts │ ├── terminalManagement │ │ ├── findTerminalRequest.ts │ │ ├── getTerminalDetailsRequest.ts │ │ └── getStoresUnderAccountResponse.ts │ ├── management │ │ ├── linksElement.ts │ │ ├── links.ts │ │ ├── clearpayInfo.ts │ │ ├── ticketInfo.ts │ │ ├── twintInfo.ts │ │ ├── affirmInfo.ts │ │ ├── generateApiKeyResponse.ts │ │ ├── sodexoInfo.ts │ │ ├── generateClientKeyResponse.ts │ │ ├── logo.ts │ │ ├── generateHmacKeyResponse.ts │ │ ├── reprocessAndroidAppResponse.ts │ │ ├── uploadAndroidAppResponse.ts │ │ ├── swishInfo.ts │ │ ├── tapToPay.ts │ │ ├── alipayPlusInfo.ts │ │ ├── uploadAndroidCertificateResponse.ts │ │ ├── updateSplitConfigurationRequest.ts │ │ ├── referenced.ts │ │ ├── timeouts.ts │ │ ├── unreferenced.ts │ │ ├── allowedOriginsResponse.ts │ │ ├── androidAppsResponse.ts │ │ ├── bcmcInfo.ts │ │ ├── terminalModelsResponse.ts │ │ ├── payoutSettingsResponse.ts │ │ ├── terminalInstructions.ts │ │ ├── terminalOrdersResponse.ts │ │ ├── terminalProductsResponse.ts │ │ ├── genericPmWithTdiInfo.ts │ │ ├── testWebhookResponse.ts │ │ ├── billingEntitiesResponse.ts │ │ ├── shippingLocationsResponse.ts │ │ ├── androidCertificatesResponse.ts │ │ ├── splitConfigurationList.ts │ │ ├── listExternalTerminalActionsResponse.ts │ │ ├── updatePayoutSettingsRequest.ts │ │ └── applePayInfo.ts │ ├── platformsFund │ │ ├── accountHolderBalanceRequest.ts │ │ └── accountDetailBalance.ts │ ├── configurationWebhooks │ │ └── paymentInstrumentAdditionalBankAccountIdentificationsInner.ts │ ├── platformsNotificationConfiguration │ │ ├── getNotificationConfigurationRequest.ts │ │ ├── deleteNotificationConfigurationRequest.ts │ │ ├── exchangeMessage.ts │ │ ├── createNotificationConfigurationRequest.ts │ │ └── updateNotificationConfigurationRequest.ts │ ├── legalEntityManagement │ │ ├── entityReference.ts │ │ ├── birthData.ts │ │ ├── dataReviewConfirmationResponse.ts │ │ ├── businessLines.ts │ │ ├── setTaxElectronicDeliveryConsentRequest.ts │ │ ├── checkTaxElectronicDeliveryConsentResponse.ts │ │ ├── verificationErrors.ts │ │ ├── remediatingAction.ts │ │ ├── calculatePciStatusResponse.ts │ │ └── getPciQuestionnaireInfosResponse.ts │ ├── recurring │ │ ├── models.ts │ │ ├── recurringDetailWrapper.ts │ │ ├── disableResult.ts │ │ └── tokenDetails.ts │ ├── amount.ts │ ├── enums │ │ ├── vatCategory.ts │ │ └── environment.ts │ ├── payment │ │ ├── threeDS2ResultResponse.ts │ │ ├── responseAdditionalDataSwish.ts │ │ └── fraudCheckResultWrapper.ts │ ├── payout │ │ ├── responseAdditionalDataSwish.ts │ │ └── fraudCheckResultWrapper.ts │ └── managementWebhooks │ │ └── accountNotificationResponse.ts ├── __mocks__ │ ├── management │ │ ├── unauthorized401.ts │ │ ├── forbidden403.ts │ │ └── invalidUserCreated422.ts │ ├── notification │ │ ├── captureTrue.json │ │ ├── refundTrue.json │ │ ├── captureFalse.json │ │ └── refundFalse.json │ ├── recurring │ │ └── disableSuccess.ts │ └── checkout │ │ ├── paymentsResultSucess.ts │ │ ├── paymentmethodsErrorForbidden403.ts │ │ ├── paymentsDetailsErrorInvalidData422.ts │ │ └── paymentsErrorInvalidData422.ts ├── constants │ ├── libraryConstants.ts │ └── nexoConstants.ts ├── __tests__ │ └── httpClientException.spec.ts ├── services │ ├── resource │ │ └── platforms │ │ │ └── hop.ts │ ├── disputes │ │ └── index.ts │ ├── binLookup │ │ └── index.ts │ ├── posMobile │ │ └── index.ts │ ├── recurring │ │ └── index.ts │ ├── paymentsApp │ │ └── index.ts │ ├── storedValue │ │ └── index.ts │ ├── balanceControl │ │ └── index.ts │ ├── dataProtection │ │ └── index.ts │ ├── openBanking │ │ └── index.ts │ ├── sessionAuthentication │ │ └── index.ts │ ├── payment │ │ └── index.ts │ ├── transfers │ │ └── index.ts │ └── payout │ │ └── index.ts ├── utils │ └── index.ts └── webhooks.ts ├── .gitignore ├── .npmignore ├── templates-v7 └── typescript │ ├── model │ └── models_all.mustache │ ├── licenseInfo.mustache │ ├── index.mustache │ └── api_summary.mustache ├── tools └── hmac │ ├── package.json │ └── calculateKcv.js ├── sonar-project.properties ├── tsconfig.json ├── CONTRIBUTING.md ├── config.ts └── LICENSE /VERSION: -------------------------------------------------------------------------------- 1 | 30.0.1 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | /examples -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @Adyen/developer-relations @Adyen/api-library-maintainers 2 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ], 6 | "minimumReleaseAge": "21 days" 7 | } 8 | -------------------------------------------------------------------------------- /src/typings/posMobile/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./createSessionRequest" 2 | export * from "./createSessionResponse" 3 | 4 | // serializing and deserializing typed objects 5 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .src/main/test 2 | .vagrant 3 | Vagrantfile 4 | node_modules 5 | .idea 6 | .DS_Store 7 | .bash_history 8 | .config/ 9 | .docker/ 10 | .npm/ 11 | .ssh/ 12 | .viminfo 13 | coverage/ 14 | .env 15 | lib/ 16 | build/ -------------------------------------------------------------------------------- /src/__mocks__/management/unauthorized401.ts: -------------------------------------------------------------------------------- 1 | export const unauthorizedError = { 2 | "type": "https://docs.adyen.com/errors/unauthorized", 3 | "title": "Unauthorized", 4 | "status": 401, 5 | "errorCode": "00_401" 6 | }; 7 | -------------------------------------------------------------------------------- /src/typings/balanceControl/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./balanceTransferRequest" 3 | export * from "./balanceTransferResponse" 4 | 5 | // serializing and deserializing typed objects 6 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/__mocks__/management/forbidden403.ts: -------------------------------------------------------------------------------- 1 | export const forbiddenError = { 2 | "type": "https://docs.adyen.com/errors/forbidden", 3 | "title": "Forbidden", 4 | "status": 403, 5 | "detail": "Not allowed", 6 | "errorCode": "00_403" 7 | }; 8 | -------------------------------------------------------------------------------- /src/typings/dataProtection/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./serviceError" 2 | export * from "./subjectErasureByPspReferenceRequest" 3 | export * from "./subjectErasureResponse" 4 | 5 | // serializing and deserializing typed objects 6 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Description** 2 | 3 | 4 | **Tested scenarios** 5 | 6 | 7 | **Fixed issue**: 8 | -------------------------------------------------------------------------------- /src/constants/libraryConstants.ts: -------------------------------------------------------------------------------- 1 | import { version } from "../../package.json"; 2 | 3 | class LibraryConstants { 4 | public static LIB_NAME = "adyen-node-api-library"; 5 | public static LIB_VERSION: string = version; 6 | } 7 | 8 | export default LibraryConstants; -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | src/ 2 | .eslintignore 3 | .eslintrc.js 4 | .gitignore 5 | CODE_OF_CONDUCT.md 6 | CONTRIBUTING.md 7 | Makefile 8 | config.ts 9 | renovate.json 10 | tsconfig.json 11 | jest.config.js 12 | tslint.json 13 | .github 14 | /**/__mocks__/ 15 | /**/__tests__/ 16 | -------------------------------------------------------------------------------- /templates-v7/typescript/model/models_all.mustache: -------------------------------------------------------------------------------- 1 | {{#models}} 2 | {{#model}} 3 | export * from "./{{#lambda.camelcase}}{{ classname }}{{/lambda.camelcase}}{{importFileExtension}}" 4 | {{/model}} 5 | {{/models}} 6 | 7 | // serializing and deserializing typed objects 8 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/disputeWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./balancePlatformNotificationResponse" 3 | export * from "./disputeEventNotification" 4 | export * from "./disputeNotificationRequest" 5 | 6 | // serializing and deserializing typed objects 7 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/balanceWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./balanceAccountBalanceNotificationRequest" 2 | export * from "./balanceNotificationData" 3 | export * from "./balancePlatformNotificationResponse" 4 | export * from "./balances" 5 | 6 | // serializing and deserializing typed objects 7 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/reportWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./balancePlatformNotificationResponse" 2 | export * from "./reportNotificationData" 3 | export * from "./reportNotificationRequest" 4 | export * from "./resource" 5 | export * from "./resourceReference" 6 | 7 | // serializing and deserializing typed objects 8 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /templates-v7/typescript/licenseInfo.mustache: -------------------------------------------------------------------------------- 1 | /* 2 | * {{#version}}The version of the OpenAPI document: v{{{.}}}{{/version}} 3 | * {{#infoEmail}}Contact: {{{.}}}{{/infoEmail}} 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/settingType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum SettingType { 11 | Balance = 'balance' 12 | } 13 | -------------------------------------------------------------------------------- /src/typings/paymentsApp/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./boardingTokenRequest" 2 | export * from "./boardingTokenResponse" 3 | export * from "./defaultErrorResponseEntity" 4 | export * from "./invalidField" 5 | export * from "./paymentsAppDto" 6 | export * from "./paymentsAppResponse" 7 | 8 | // serializing and deserializing typed objects 9 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/negativeBalanceWarningWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./negativeBalanceCompensationWarningNotificationData" 3 | export * from "./negativeBalanceCompensationWarningNotificationRequest" 4 | export * from "./resource" 5 | export * from "./resourceReference" 6 | 7 | // serializing and deserializing typed objects 8 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/checkout/result.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum Result { 11 | Valid = 'VALID', 12 | Invalid = 'INVALID', 13 | Unknown = 'UNKNOWN' 14 | } 15 | -------------------------------------------------------------------------------- /.github/release.yml: -------------------------------------------------------------------------------- 1 | changelog: 2 | exclude: 3 | authors: 4 | - renovate[bot] 5 | - dependabot[bot] 6 | categories: 7 | - title: Breaking Changes 🛠 8 | labels: 9 | - Breaking change 10 | - title: New Features 💎 11 | labels: 12 | - Feature 13 | - title: Fixes ⛑️ 14 | labels: 15 | - Fix 16 | - title: Other Changes 🖇️ 17 | labels: 18 | - "*" 19 | -------------------------------------------------------------------------------- /src/typings/sessionAuthentication/productType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum ProductType { 11 | Onboarding = 'onboarding', 12 | Platform = 'platform', 13 | Bank = 'bank' 14 | } 15 | -------------------------------------------------------------------------------- /tools/hmac/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hmac-troubleshooting", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "scripts": { 6 | "test": "echo \"Error: no test specified\" && exit 1" 7 | }, 8 | "keywords": [], 9 | "author": "", 10 | "license": "ISC", 11 | "description": "Scripts to troubleshooting HMAC signature calculation", 12 | "dependencies": { 13 | "@adyen/api-library": "^25.0.0" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /src/typings/openBanking/partyRole.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum PartyRole { 11 | Holder = 'HOLDER', 12 | AuthorizedUser = 'AUTHORIZED_USER', 13 | Other = 'OTHER', 14 | Unknown = 'UNKNOWN' 15 | } 16 | -------------------------------------------------------------------------------- /.github/workflows/label_new_issues.yml: -------------------------------------------------------------------------------- 1 | name: Label New Issues 2 | on: 3 | issues: 4 | types: [opened] 5 | 6 | permissions: 7 | issues: write 8 | 9 | jobs: 10 | add-label: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Add 'needs response' label to new issues 14 | uses: actions-ecosystem/action-add-labels@18f1af5e3544586314bbe15c0273249c770b2daf # v1 15 | with: 16 | github_token: ${{ secrets.GITHUB_TOKEN }} 17 | labels: 'needs response' 18 | -------------------------------------------------------------------------------- /src/typings/openBanking/accountType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum AccountType { 11 | Current = 'CURRENT', 12 | Savings = 'SAVINGS', 13 | Business = 'BUSINESS', 14 | CreditCard = 'CREDIT_CARD', 15 | Loan = 'LOAN', 16 | Unknown = 'UNKNOWN' 17 | } 18 | -------------------------------------------------------------------------------- /src/__mocks__/management/invalidUserCreated422.ts: -------------------------------------------------------------------------------- 1 | export const invalidUserCreated422 = { 2 | "type": "https://docs.adyen.com/errors/validation", 3 | "title": "Invalid user information provided.", 4 | "status": 422, 5 | "requestId": "HC9MZL5D4AAASD82", 6 | "invalidFields": [ 7 | { 8 | "InvalidField": { 9 | "name": "email", 10 | "message": "The 'email' 'invalidEmail' is invalid." 11 | } 12 | } 13 | ], 14 | "errorCode": "31_007" 15 | }; -------------------------------------------------------------------------------- /src/typings/tokenizationWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./recurringToken" 2 | export * from "./recurringTokenStoreOperation" 3 | export * from "./tokenizationAlreadyExistingDetailsNotificationRequest" 4 | export * from "./tokenizationCreatedDetailsNotificationRequest" 5 | export * from "./tokenizationDisabledDetailsNotificationRequest" 6 | export * from "./tokenizationNotificationResponse" 7 | export * from "./tokenizationUpdatedDetailsNotificationRequest" 8 | 9 | // serializing and deserializing typed objects 10 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/sessionAuthentication/resourceType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum ResourceType { 11 | LegalEntity = 'legalEntity', 12 | BalanceAccount = 'balanceAccount', 13 | AccountHolder = 'accountHolder', 14 | MerchantAccount = 'merchantAccount', 15 | PaymentInstrument = 'paymentInstrument' 16 | } 17 | -------------------------------------------------------------------------------- /src/__tests__/httpClientException.spec.ts: -------------------------------------------------------------------------------- 1 | import { HttpClientException } from "../"; 2 | 3 | describe("HttpClientException", () => { 4 | it("should export HttpClientException as a class", () => { 5 | expect(typeof HttpClientException).toBe("function"); 6 | 7 | const error = new HttpClientException({ 8 | message: "Test error", 9 | statusCode: 422, 10 | responseBody: JSON.stringify({ status: 422, message: "Test error" }), 11 | }); 12 | 13 | expect(error).toBeInstanceOf(HttpClientException); 14 | expect(error.statusCode).toBe(422); 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: Apache-2.0 2 | # Copyright Contributors to the ODPi Egeria project. 3 | 4 | # General settings 5 | sonar.organization=adyen 6 | sonar.projectKey=Adyen_adyen-node-api-library 7 | 8 | # Path to sources 9 | #sonar.sources=. 10 | sonar.exclusions=src/__mocks__/**/* , src/typings/**/* , src/__tests__/**/* 11 | #sonar.inclusions= 12 | 13 | # Path to tests 14 | #sonar.tests= 15 | #sonar.test.exclusions= 16 | #sonar.test.inclusions= 17 | 18 | # Source encoding 19 | #sonar.sourceEncoding=UTF-8 20 | 21 | # Exclusions for copy-paste detection 22 | #sonar.cpd.exclusions= 23 | -------------------------------------------------------------------------------- /src/services/resource/platforms/hop.ts: -------------------------------------------------------------------------------- 1 | import Client from "../../../client"; 2 | import Service from "../../../service"; 3 | import Resource from "../../resource"; 4 | 5 | type Endpoints = "/getOnboardingUrl" | "/getPciQuestionnaireUrl"; 6 | 7 | class PlatformsHostedOnboardingPage extends Resource { 8 | public constructor(service: Service, endpoint: Endpoints) { 9 | super( 10 | service, 11 | `${service.client.config.marketPayEndpoint}/Hop/${Client.MARKETPAY_HOP_API_VERSION}${endpoint}`, 12 | ); 13 | } 14 | } 15 | 16 | export default PlatformsHostedOnboardingPage; 17 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/transferType.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | /** 11 | * The type of transfer to which the limit applies. Possible values: * **instant**: the limit applies to transfers with an **instant** priority. * **all**: the limit applies to all transfers, regardless of priority. 12 | */ 13 | 14 | export enum TransferType { 15 | Instant = 'instant', 16 | All = 'all' 17 | } 18 | -------------------------------------------------------------------------------- /src/typings/binLookup/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./binDetail" 3 | export * from "./cardBin" 4 | export * from "./costEstimateAssumptions" 5 | export * from "./costEstimateRequest" 6 | export * from "./costEstimateResponse" 7 | export * from "./dSPublicKeyDetail" 8 | export * from "./merchantDetails" 9 | export * from "./recurring" 10 | export * from "./serviceError" 11 | export * from "./threeDS2CardRangeDetail" 12 | export * from "./threeDSAvailabilityRequest" 13 | export * from "./threeDSAvailabilityResponse" 14 | 15 | // serializing and deserializing typed objects 16 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/acsWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./authenticationDecision" 3 | export * from "./authenticationInfo" 4 | export * from "./authenticationNotificationData" 5 | export * from "./authenticationNotificationRequest" 6 | export * from "./balancePlatformNotificationResponse" 7 | export * from "./challengeInfo" 8 | export * from "./purchase" 9 | export * from "./purchaseInfo" 10 | export * from "./relayedAuthenticationRequest" 11 | export * from "./relayedAuthenticationResponse" 12 | export * from "./resource" 13 | export * from "./serviceError" 14 | 15 | // serializing and deserializing typed objects 16 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/sessionAuthentication/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./accountHolderResource" 2 | export * from "./authenticationSessionRequest" 3 | export * from "./authenticationSessionResponse" 4 | export * from "./balanceAccountResource" 5 | export * from "./defaultErrorResponseEntity" 6 | export * from "./invalidField" 7 | export * from "./legalEntityResource" 8 | export * from "./merchantAccountResource" 9 | export * from "./paymentInstrumentResource" 10 | export * from "./policy" 11 | export * from "./productType" 12 | export * from "./resource" 13 | export * from "./resourceType" 14 | 15 | // serializing and deserializing typed objects 16 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/services/disputes/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v30 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DisputesApi } from "./disputesApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class DisputesAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get DisputesApi() { 22 | return new DisputesApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/binLookup/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v54 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BinLookupApi } from "./binLookupApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class BinLookupAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get BinLookupApi() { 22 | return new BinLookupApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/posMobile/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { PosMobileApi } from "./posMobileApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class PosMobileAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get PosMobileApi() { 22 | return new PosMobileApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/recurring/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { RecurringApi } from "./recurringApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class RecurringAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get RecurringApi() { 22 | return new RecurringApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/paymentsApp/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { PaymentsAppApi } from "./paymentsAppApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class PaymentsAppAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get PaymentsAppApi() { 22 | return new PaymentsAppApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/storedValue/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v46 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { StoredValueApi } from "./storedValueApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class StoredValueAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get StoredValueApi() { 22 | return new StoredValueApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/balanceControl/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BalanceControlApi } from "./balanceControlApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class BalanceControlAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get BalanceControlApi() { 22 | return new BalanceControlApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/services/dataProtection/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DataProtectionApi } from "./dataProtectionApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class DataProtectionAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get DataProtectionApi() { 22 | return new DataProtectionApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/scope.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | /** 11 | * The scope to which the transfer limit applies. Possible values: * **perTransaction**: you set a maximum amount for each transfer made from the balance account or balance platform. * **perDay**: you set a maximum total amount for all transfers made from the balance account or balance platform in a day. 12 | */ 13 | 14 | export enum Scope { 15 | PerDay = 'perDay', 16 | PerTransaction = 'perTransaction' 17 | } 18 | -------------------------------------------------------------------------------- /src/services/openBanking/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { AccountVerificationApi } from "./accountVerificationApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class OpenBankingAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get AccountVerificationApi() { 22 | return new AccountVerificationApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /.github/workflows/npm-debug.yml: -------------------------------------------------------------------------------- 1 | # Workflow to verify we can access (publish) to NPM 2 | name: NPM debug 3 | 4 | on: 5 | workflow_dispatch: 6 | release: 7 | types: [published] 8 | 9 | permissions: 10 | contents: read 11 | 12 | jobs: 13 | publish-npm: 14 | runs-on: ubuntu-latest 15 | environment: release 16 | steps: 17 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 18 | - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 19 | with: 20 | node-version: '18.x' 21 | registry-url: 'https://registry.npmjs.org' 22 | - run: npm whoami 23 | env: 24 | NODE_AUTH_TOKEN: ${{ secrets.NPM_ADYEN_NODE_API_LIBRARY_TOKEN }} 25 | -------------------------------------------------------------------------------- /src/services/sessionAuthentication/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { SessionAuthenticationApi } from "./sessionAuthenticationApi"; 11 | 12 | import Service from "../../service"; 13 | import Client from "../../client"; 14 | 15 | export default class SessionAuthenticationAPI extends Service { 16 | 17 | public constructor(client: Client) { 18 | super(client); 19 | } 20 | 21 | public get SessionAuthenticationApi() { 22 | return new SessionAuthenticationApi(this.client); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/typings/openBanking/accountVerificationCountry.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | export enum AccountVerificationCountry { 11 | Se = 'SE', 12 | Fi = 'FI', 13 | No = 'NO', 14 | Dk = 'DK', 15 | Nl = 'NL', 16 | It = 'IT', 17 | De = 'DE', 18 | At = 'AT', 19 | Es = 'ES', 20 | Pt = 'PT', 21 | Fr = 'FR', 22 | Gb = 'GB', 23 | Be = 'BE', 24 | Lv = 'LV', 25 | Lt = 'LT', 26 | Pl = 'PL', 27 | Ee = 'EE', 28 | Ie = 'IE', 29 | Us = 'US', 30 | Ca = 'CA', 31 | Au = 'AU' 32 | } 33 | -------------------------------------------------------------------------------- /templates-v7/typescript/index.mustache: -------------------------------------------------------------------------------- 1 | {{>licenseInfo}} 2 | {{#apiInfo}} 3 | {{#apis}} 4 | {{#operations}} 5 | import { {{ classname }} } from "./{{#lambda.camelcase}}{{ classFilename }}{{/lambda.camelcase}}"; 6 | {{/operations}} 7 | {{/apis}} 8 | {{/apiInfo}} 9 | 10 | import Service from "../../service"; 11 | import Client from "../../client"; 12 | 13 | export default class {{#lambda.pascalcase}}{{ serviceName }}{{/lambda.pascalcase}}API extends Service { 14 | 15 | public constructor(client: Client) { 16 | super(client); 17 | } 18 | {{#apiInfo}} 19 | {{#apis}} 20 | {{#operations}} 21 | 22 | public get {{classname}}() { 23 | return new {{classname}}(this.client); 24 | } 25 | {{/operations}} 26 | {{/apis}} 27 | {{/apiInfo}} 28 | } 29 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/limitStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | /** 11 | * The status of the transfer limit. Possible values: * **active**: the limit is currently active. * **inactive**: the limit is currently inactive. * **pendingSCA**: the limit is pending until your user performs SCA. * **scheduled**: the limit is scheduled to become active at a future date. 12 | */ 13 | 14 | export enum LimitStatus { 15 | Active = 'active', 16 | Inactive = 'inactive', 17 | PendingSca = 'pendingSCA', 18 | Scheduled = 'scheduled' 19 | } 20 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/scaStatus.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | /** 11 | * The status of Strong Customer Authentication (SCA). Possible values: * **notPerformed**: the requester was unable to successfully authenticate the request using SCA, or has an SCA exemption. * **pending**: the request is pending SCA authentication. * **performed**: the request is successfully authenticated using SCA. 12 | */ 13 | 14 | export enum ScaStatus { 15 | NotPerformed = 'notPerformed', 16 | Pending = 'pending', 17 | Performed = 'performed' 18 | } 19 | -------------------------------------------------------------------------------- /src/typings/disputes/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./acceptDisputeRequest" 2 | export * from "./acceptDisputeResponse" 3 | export * from "./defendDisputeRequest" 4 | export * from "./defendDisputeResponse" 5 | export * from "./defenseDocument" 6 | export * from "./defenseDocumentType" 7 | export * from "./defenseReason" 8 | export * from "./defenseReasonsRequest" 9 | export * from "./defenseReasonsResponse" 10 | export * from "./deleteDefenseDocumentRequest" 11 | export * from "./deleteDefenseDocumentResponse" 12 | export * from "./disputeServiceResult" 13 | export * from "./serviceError" 14 | export * from "./supplyDefenseDocumentRequest" 15 | export * from "./supplyDefenseDocumentResponse" 16 | 17 | // serializing and deserializing typed objects 18 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/storedValue/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./serviceError" 3 | export * from "./storedValueBalanceCheckRequest" 4 | export * from "./storedValueBalanceCheckResponse" 5 | export * from "./storedValueBalanceMergeRequest" 6 | export * from "./storedValueBalanceMergeResponse" 7 | export * from "./storedValueIssueRequest" 8 | export * from "./storedValueIssueResponse" 9 | export * from "./storedValueLoadRequest" 10 | export * from "./storedValueLoadResponse" 11 | export * from "./storedValueStatusChangeRequest" 12 | export * from "./storedValueStatusChangeResponse" 13 | export * from "./storedValueVoidRequest" 14 | export * from "./storedValueVoidResponse" 15 | 16 | // serializing and deserializing typed objects 17 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/__mocks__/notification/captureTrue.json: -------------------------------------------------------------------------------- 1 | { 2 | "live": "false", 3 | "notificationItems": [ 4 | { 5 | "NotificationRequestItem": { 6 | "additionalData": { 7 | "hmacSignature": "qvS6I3Gdi1jx+jSh7IopAgcHtMoxvXlNL7DYQ+j1hd0=" 8 | }, 9 | "amount": { 10 | "currency": "USD", 11 | "value": 23623 12 | }, 13 | "eventCode": "CAPTURE", 14 | "eventDate": "2017-01-25T18:08:19+01:00", 15 | "merchantAccountCode": "MagentoMerchantTest2", 16 | "merchantReference": "00000001", 17 | "originalReference": "ORIGINAL_PSP", 18 | "paymentMethod": "visa", 19 | "pspReference": "PSP_REFERENCE", 20 | "reason": "", 21 | "success": "true" 22 | } 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /src/typings/transactionWebhooks/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./amount" 2 | export * from "./balancePlatformNotificationResponse" 3 | export * from "./bankCategoryData" 4 | export * from "./internalCategoryData" 5 | export * from "./issuedCard" 6 | export * from "./paymentInstrument" 7 | export * from "./platformPayment" 8 | export * from "./relayedAuthorisationData" 9 | export * from "./resource" 10 | export * from "./resourceReference" 11 | export * from "./threeDSecure" 12 | export * from "./transaction" 13 | export * from "./transactionNotificationRequestV4" 14 | export * from "./transferNotificationValidationFact" 15 | export * from "./transferView" 16 | export * from "./transferViewCategoryData" 17 | 18 | // serializing and deserializing typed objects 19 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/__mocks__/notification/refundTrue.json: -------------------------------------------------------------------------------- 1 | { 2 | "live": "false", 3 | "notificationItems": [ 4 | { 5 | "NotificationRequestItem": { 6 | "additionalData": { 7 | "hmacSignature": "KJFhURWP8Pv9m8k+7NGHNJAupBj6X6J\/VWAikFxeWhA=" 8 | }, 9 | "amount": { 10 | "currency": "EUR", 11 | "value": 1500 12 | }, 13 | "eventCode": "REFUND", 14 | "eventDate": "2017-02-17T11:11:44+01:00", 15 | "merchantAccountCode": "MagentoMerchantTest2", 16 | "merchantReference": "payment-2017-1-17-11-refund", 17 | "originalReference": "ORIGINAL_PSP", 18 | "paymentMethod": "visa", 19 | "pspReference": "PSP_REFERENCE", 20 | "reason": "", 21 | "success": "true" 22 | } 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /src/__mocks__/notification/captureFalse.json: -------------------------------------------------------------------------------- 1 | { 2 | "live": "false", 3 | "notificationItems": [ 4 | { 5 | "NotificationRequestItem": { 6 | "additionalData": { 7 | "hmacSignature": "KujHNqpyCAMdGefj7lfQ8AeD0Jke9Zs2bVAqScQDWi4=" 8 | }, 9 | "amount": { 10 | "currency": "USD", 11 | "value": 23623 12 | }, 13 | "eventCode": "CAPTURE", 14 | "eventDate": "2017-01-25T18:08:19+01:00", 15 | "merchantAccountCode": "MagentoMerchantTest2", 16 | "merchantReference": "00000001", 17 | "originalReference": "ORIGINAL_PSP", 18 | "paymentMethod": "visa", 19 | "pspReference": "PSP_REFERENCE", 20 | "reason": "Insufficient balance on payment", 21 | "success": "false" 22 | } 23 | } 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /src/__mocks__/notification/refundFalse.json: -------------------------------------------------------------------------------- 1 | { 2 | "live": "false", 3 | "notificationItems": [ 4 | { 5 | "NotificationRequestItem": { 6 | "additionalData": { 7 | "hmacSignature": "HZXziBYopfDIzDhk49iC\/\/yCfxmy\/z0xWuvvTxFNUSA=" 8 | }, 9 | "amount": { 10 | "currency": "EUR", 11 | "value": 1500 12 | }, 13 | "eventCode": "REFUND", 14 | "eventDate": "2017-02-17T11:04:07+01:00", 15 | "merchantAccountCode": "MagentoMerchantTest2", 16 | "merchantReference": "payment-2017-1-17-11-refund", 17 | "originalReference": "ORIGINAL_PSP", 18 | "paymentMethod": "visa", 19 | "pspReference": "PSP_REFERENCE", 20 | "reason": "Insufficient balance on payment", 21 | "success": "false" 22 | } 23 | } 24 | ] 25 | } -------------------------------------------------------------------------------- /src/services/payment/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ModificationsApi } from "./modificationsApi"; 11 | import { PaymentsApi } from "./paymentsApi"; 12 | 13 | import Service from "../../service"; 14 | import Client from "../../client"; 15 | 16 | export default class PaymentAPI extends Service { 17 | 18 | public constructor(client: Client) { 19 | super(client); 20 | } 21 | 22 | public get ModificationsApi() { 23 | return new ModificationsApi(this.client); 24 | } 25 | 26 | public get PaymentsApi() { 27 | return new PaymentsApi(this.client); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/closeAccountRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CloseAccountRequest { 12 | /** 13 | * The code of account to be closed. 14 | */ 15 | 'accountCode': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "accountCode", 22 | "baseName": "accountCode", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return CloseAccountRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "./lib", 4 | "module": "commonjs", 5 | "target": "ES2018", 6 | "lib": [ 7 | "es6" 8 | ], 9 | "sourceMap": true, 10 | "declaration": true, 11 | "moduleResolution": "node", 12 | "rootDir": ".", 13 | "noImplicitReturns": true, 14 | "noImplicitThis": true, 15 | "noImplicitAny": true, 16 | "alwaysStrict": true, 17 | "esModuleInterop": true, 18 | "skipLibCheck": true, 19 | "resolveJsonModule": true, 20 | "forceConsistentCasingInFileNames": true, 21 | "strict": true, 22 | "noUnusedLocals": true, 23 | "suppressImplicitAnyIndexErrors": true, 24 | "plugins": [ 25 | { 26 | "transform": "ts-auto-mock/transformer", 27 | "cacheBetweenTests": false 28 | } 29 | ] 30 | }, 31 | "include": [ 32 | "src" 33 | ], 34 | "exclude": [ 35 | "node_modules" 36 | ] 37 | } -------------------------------------------------------------------------------- /src/typings/transfers/transferEventEventsDataInner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { IssuingTransactionData } from "./issuingTransactionData"; 11 | import { MerchantPurchaseData } from "./merchantPurchaseData"; 12 | 13 | 14 | /** 15 | * @type TransferEventEventsDataInner 16 | * Type 17 | * @export 18 | */ 19 | export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData; 20 | 21 | /** 22 | * @type TransferEventEventsDataInnerClass 23 | * @export 24 | */ 25 | export class TransferEventEventsDataInnerClass { 26 | 27 | static readonly discriminator: string = "type"; 28 | 29 | static readonly mapping: {[index: string]: string} | undefined = undefined; 30 | } 31 | -------------------------------------------------------------------------------- /src/typings/transferWebhooks/transferEventEventsDataInner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { IssuingTransactionData } from "./issuingTransactionData"; 11 | import { MerchantPurchaseData } from "./merchantPurchaseData"; 12 | 13 | 14 | /** 15 | * @type TransferEventEventsDataInner 16 | * Type 17 | * @export 18 | */ 19 | export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData; 20 | 21 | /** 22 | * @type TransferEventEventsDataInnerClass 23 | * @export 24 | */ 25 | export class TransferEventEventsDataInnerClass { 26 | 27 | static readonly discriminator: string = "type"; 28 | 29 | static readonly mapping: {[index: string]: string} | undefined = undefined; 30 | } 31 | -------------------------------------------------------------------------------- /src/typings/openBanking/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./aCHAccountIdentifier" 2 | export * from "./accountIdentifiers" 3 | export * from "./accountParty" 4 | export * from "./accountType" 5 | export * from "./accountVerificationCountry" 6 | export * from "./accountVerificationReportResponse" 7 | export * from "./accountVerificationRoutesRequest" 8 | export * from "./accountVerificationRoutesResponse" 9 | export * from "./bACSAccountIdentifier" 10 | export * from "./bSBAccountIdentifier" 11 | export * from "./defaultErrorResponseEntity" 12 | export * from "./eFTAccountIdentifier" 13 | export * from "./iBANAccountIdentifier" 14 | export * from "./identity" 15 | export * from "./invalidField" 16 | export * from "./partyRole" 17 | export * from "./provider" 18 | export * from "./rIXAccountIdentifier" 19 | export * from "./route" 20 | export * from "./verifiedAccount" 21 | 22 | // serializing and deserializing typed objects 23 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/terminalManagement/findTerminalRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class FindTerminalRequest { 12 | /** 13 | * The unique terminal ID in the format `[Device model]-[Serial number]`. For example, **V400m-324689776**. 14 | */ 15 | 'terminal': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "terminal", 22 | "baseName": "terminal", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return FindTerminalRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/href.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Href { 12 | "href"?: string; 13 | 14 | static readonly discriminator: string | undefined = undefined; 15 | 16 | static readonly mapping: {[index: string]: string} | undefined = undefined; 17 | 18 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 19 | { 20 | "name": "href", 21 | "baseName": "href", 22 | "type": "string", 23 | "format": "" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return Href.attributeTypeMap; 28 | } 29 | 30 | public constructor() { 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution guidelines 2 | 3 | ## How to contribute step-by-step 4 | 5 | 1. Fork the `Adyen/adyen-node-api-library` repository. 6 | 2. Create a new branch from `main` in your fork. This makes it easier for you to keep track of your changes. 7 | 3. Make the desired changes to the code. 8 | * If you are adding new functionality or fixing a bug, we recommend you add unit tests that cover it. 9 | 4. Push the changes to your fork. 10 | 5. Create a pull request to the `Adyen/adyen-node-api-library` repository. 11 | 6. In your pull request, please describe in detail: 12 | * What problem you’re solving 13 | * Your approach to fixing the problem 14 | * Any tests you wrote 15 | 7. Check Allow edits from maintainers. 16 | 8. Create the pull request. 17 | 9. Ensure that all checks have passed. 18 | 19 | After you create your pull request, one of the code owners will review your code. 20 | We aim to review your request within 2-3 business days. 21 | -------------------------------------------------------------------------------- /src/typings/management/linksElement.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class LinksElement { 12 | "href"?: string; 13 | 14 | static readonly discriminator: string | undefined = undefined; 15 | 16 | static readonly mapping: {[index: string]: string} | undefined = undefined; 17 | 18 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 19 | { 20 | "name": "href", 21 | "baseName": "href", 22 | "type": "string", 23 | "format": "" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return LinksElement.attributeTypeMap; 28 | } 29 | 30 | public constructor() { 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/closeAccountHolderRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CloseAccountHolderRequest { 12 | /** 13 | * The code of the Account Holder to be closed. 14 | */ 15 | 'accountHolderCode': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "accountHolderCode", 22 | "baseName": "accountHolderCode", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return CloseAccountHolderRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/terminalManagement/getTerminalDetailsRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class GetTerminalDetailsRequest { 12 | /** 13 | * The unique terminal ID in the format `[Device model]-[Serial number]`. For example, **V400m-324689776**. 14 | */ 15 | 'terminal': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "terminal", 22 | "baseName": "terminal", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return GetTerminalDetailsRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/suspendAccountHolderRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class SuspendAccountHolderRequest { 12 | /** 13 | * The code of the account holder to be suspended. 14 | */ 15 | 'accountHolderCode': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "accountHolderCode", 22 | "baseName": "accountHolderCode", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return SuspendAccountHolderRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/unSuspendAccountHolderRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UnSuspendAccountHolderRequest { 12 | /** 13 | * The code of the account holder to be reinstated. 14 | */ 15 | 'accountHolderCode': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "accountHolderCode", 22 | "baseName": "accountHolderCode", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return UnSuspendAccountHolderRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/services/transfers/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { CapitalApi } from "./capitalApi"; 11 | import { TransactionsApi } from "./transactionsApi"; 12 | import { TransfersApi } from "./transfersApi"; 13 | 14 | import Service from "../../service"; 15 | import Client from "../../client"; 16 | 17 | export default class TransfersAPI extends Service { 18 | 19 | public constructor(client: Client) { 20 | super(client); 21 | } 22 | 23 | public get CapitalApi() { 24 | return new CapitalApi(this.client); 25 | } 26 | 27 | public get TransactionsApi() { 28 | return new TransactionsApi(this.client); 29 | } 30 | 31 | public get TransfersApi() { 32 | return new TransfersApi(this.client); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/typings/platformsFund/accountHolderBalanceRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AccountHolderBalanceRequest { 12 | /** 13 | * The code of the Account Holder of which to retrieve the balance. 14 | */ 15 | 'accountHolderCode': string; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "accountHolderCode", 22 | "baseName": "accountHolderCode", 23 | "type": "string" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return AccountHolderBalanceRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/transfers/fee.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class Fee { 14 | "amount": Amount; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return Fee.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/fee.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class Fee { 14 | "amount": Amount; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return Fee.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { IbanAccountIdentification } from "./ibanAccountIdentification"; 11 | 12 | 13 | /** 14 | * @type PaymentInstrumentAdditionalBankAccountIdentificationsInner 15 | * Type 16 | * @export 17 | */ 18 | export type PaymentInstrumentAdditionalBankAccountIdentificationsInner = IbanAccountIdentification; 19 | 20 | /** 21 | * @type PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass 22 | * @export 23 | */ 24 | export class PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass { 25 | 26 | static readonly discriminator: string = "type"; 27 | 28 | static readonly mapping: {[index: string]: string} | undefined = undefined; 29 | } 30 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/kYCCheckResult.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { KYCCheckStatusData } from './kYCCheckStatusData'; 11 | 12 | export class KYCCheckResult { 13 | /** 14 | * A list of the checks and their statuses. 15 | */ 16 | 'checks'?: Array; 17 | 18 | static discriminator: string | undefined = undefined; 19 | 20 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 21 | { 22 | "name": "checks", 23 | "baseName": "checks", 24 | "type": "Array" 25 | } ]; 26 | 27 | static getAttributeTypeMap() { 28 | return KYCCheckResult.attributeTypeMap; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/typings/configurationWebhooks/paymentInstrumentAdditionalBankAccountIdentificationsInner.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { IbanAccountIdentification } from "./ibanAccountIdentification"; 11 | 12 | 13 | /** 14 | * @type PaymentInstrumentAdditionalBankAccountIdentificationsInner 15 | * Type 16 | * @export 17 | */ 18 | export type PaymentInstrumentAdditionalBankAccountIdentificationsInner = IbanAccountIdentification; 19 | 20 | /** 21 | * @type PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass 22 | * @export 23 | */ 24 | export class PaymentInstrumentAdditionalBankAccountIdentificationsInnerClass { 25 | 26 | static readonly discriminator: string = "type"; 27 | 28 | static readonly mapping: {[index: string]: string} | undefined = undefined; 29 | } 30 | -------------------------------------------------------------------------------- /src/typings/transfers/link.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Link { 12 | /** 13 | * The link to the resource. 14 | */ 15 | "href"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "href", 24 | "baseName": "href", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Link.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /config.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | import "jest-ts-auto-mock" -------------------------------------------------------------------------------- /src/typings/management/links.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { LinksElement } from "./linksElement"; 11 | 12 | 13 | export class Links { 14 | "self": LinksElement; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "self", 23 | "baseName": "self", 24 | "type": "LinksElement", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return Links.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/services/payout/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { InitializationApi } from "./initializationApi"; 11 | import { InstantPayoutsApi } from "./instantPayoutsApi"; 12 | import { ReviewingApi } from "./reviewingApi"; 13 | 14 | import Service from "../../service"; 15 | import Client from "../../client"; 16 | 17 | export default class PayoutAPI extends Service { 18 | 19 | public constructor(client: Client) { 20 | super(client); 21 | } 22 | 23 | public get InitializationApi() { 24 | return new InitializationApi(this.client); 25 | } 26 | 27 | public get InstantPayoutsApi() { 28 | return new InstantPayoutsApi(this.client); 29 | } 30 | 31 | public get ReviewingApi() { 32 | return new ReviewingApi(this.client); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/typings/checkout/taxTotal.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class TaxTotal { 14 | "amount"?: Amount | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return TaxTotal.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /tools/hmac/calculateKcv.js: -------------------------------------------------------------------------------- 1 | // script to calculate the KVC of the HMAC key 2 | // 3 | // Run with: `node calculateKcv.js {hmacKey} 4 | // 5 | // cd tools/hmac 6 | // node calculateKcv.js 00727DB817A85C8503AD29EAD1523DB869AF0E536893BB3046C92DE7CB045CB1 should return 9540DA 7 | const crypto = require('crypto'); 8 | 9 | // Ensure correct arguments 10 | if (process.argv.length !== 3) { 11 | console.error("Usage: node calculateKcv.js "); 12 | process.exit(1); 13 | } 14 | 15 | console.log(`Calculating KCV...`); 16 | 17 | const hmacKey = process.argv[2]; 18 | // Convert the hex stringc 19 | const keyBuffer = Buffer.from(hmacKey, 'hex'); 20 | 21 | const algorithm = 'sha256'; 22 | 23 | const hmacSignature = crypto.createHmac(algorithm, keyBuffer).update("00000000").digest(); 24 | 25 | // Take the last 3 bytes (6 hex characters) for the KCV 26 | const kcv = Buffer.from(hmacSignature.subarray(hmacSignature.length - 3)).toString('hex').toUpperCase(); 27 | 28 | console.log('********'); 29 | console.log(`KCV: ${kcv}`); 30 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/grantLimit.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class GrantLimit { 14 | "amount"?: Amount | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return GrantLimit.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/management/clearpayInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ClearpayInfo { 12 | /** 13 | * Support Url 14 | */ 15 | "supportUrl": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "supportUrl", 24 | "baseName": "supportUrl", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ClearpayInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/ticketInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class TicketInfo { 12 | /** 13 | * Ticket requestorId 14 | */ 15 | "requestorId"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "requestorId", 24 | "baseName": "requestorId", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TicketInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/twintInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class TwintInfo { 12 | /** 13 | * Twint logo. Format: Base64-encoded string. 14 | */ 15 | "logo": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "logo", 24 | "baseName": "logo", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TwintInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transfers/thresholdRepayment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class ThresholdRepayment { 14 | "amount": Amount; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return ThresholdRepayment.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/thresholdRepayment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Amount } from "./amount"; 11 | 12 | 13 | export class ThresholdRepayment { 14 | "amount": Amount; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "amount", 23 | "baseName": "amount", 24 | "type": "Amount", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return ThresholdRepayment.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /.github/workflows/format.yml: -------------------------------------------------------------------------------- 1 | name: Node.js Format 2 | 3 | on: 4 | push: 5 | branches: 6 | - 'sdk-automation/models' 7 | 8 | jobs: 9 | format: 10 | if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }} 11 | permissions: 12 | contents: write 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 16 | with: 17 | token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} 18 | - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 19 | with: 20 | node-version: 20.x 21 | - run: | 22 | npm ci --legacy-peer-deps 23 | npm run lint:fix 24 | - run: | 25 | git config user.name AdyenAutomationBot 26 | git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}" 27 | git add . 28 | git commit -m "style(fmt): code formatted" || echo "No changes to commit" 29 | git push 30 | -------------------------------------------------------------------------------- /src/typings/management/affirmInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AffirmInfo { 12 | /** 13 | * Merchant support email 14 | */ 15 | "supportEmail": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "supportEmail", 24 | "baseName": "supportEmail", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AffirmInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/terminalManagement/getStoresUnderAccountResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Store } from './store'; 11 | 12 | export class GetStoresUnderAccountResponse { 13 | /** 14 | * Array that returns a list of all stores for the specified merchant account, or for all merchant accounts under the company account. 15 | */ 16 | 'stores'?: Array; 17 | 18 | static discriminator: string | undefined = undefined; 19 | 20 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 21 | { 22 | "name": "stores", 23 | "baseName": "stores", 24 | "type": "Array" 25 | } ]; 26 | 27 | static getAttributeTypeMap() { 28 | return GetStoresUnderAccountResponse.attributeTypeMap; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class GetNotificationConfigurationRequest { 12 | /** 13 | * The ID of the notification subscription configuration whose details are to be retrieved. 14 | */ 15 | 'notificationId': number; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "notificationId", 22 | "baseName": "notificationId", 23 | "type": "number" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return GetNotificationConfigurationRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | export { default as hmacValidator } from "./hmacValidator"; -------------------------------------------------------------------------------- /src/typings/checkout/enhancedSchemeData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Airline } from "./airline"; 11 | 12 | 13 | export class EnhancedSchemeData { 14 | "airline"?: Airline | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "airline", 23 | "baseName": "airline", 24 | "type": "Airline | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return EnhancedSchemeData.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/entityReference.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class EntityReference { 12 | /** 13 | * The unique identifier of the resource. 14 | */ 15 | "id"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "id", 24 | "baseName": "id", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return EntityReference.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/binLookup/binDetail.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v54 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class BinDetail { 12 | /** 13 | * The country where the card was issued. 14 | */ 15 | "issuerCountry"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "issuerCountry", 24 | "baseName": "issuerCountry", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return BinDetail.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/generateApiKeyResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class GenerateApiKeyResponse { 12 | /** 13 | * The generated API key. 14 | */ 15 | "apiKey": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "apiKey", 24 | "baseName": "apiKey", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return GenerateApiKeyResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class DeleteNotificationConfigurationRequest { 12 | /** 13 | * A list of IDs of the notification subscription configurations to be deleted. 14 | */ 15 | 'notificationIds': Array; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "notificationIds", 22 | "baseName": "notificationIds", 23 | "type": "Array" 24 | } ]; 25 | 26 | static getAttributeTypeMap() { 27 | return DeleteNotificationConfigurationRequest.attributeTypeMap; 28 | } 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/typings/platformsNotificationConfiguration/exchangeMessage.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ExchangeMessage { 12 | 'messageCode'?: string; 13 | 'messageDescription'?: string; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "messageCode", 20 | "baseName": "messageCode", 21 | "type": "string" 22 | }, 23 | { 24 | "name": "messageDescription", 25 | "baseName": "messageDescription", 26 | "type": "string" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ExchangeMessage.attributeTypeMap; 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /src/typings/management/sodexoInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class SodexoInfo { 12 | /** 13 | * Sodexo merchantContactPhone 14 | */ 15 | "merchantContactPhone": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "merchantContactPhone", 24 | "baseName": "merchantContactPhone", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SodexoInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/recurring/models.ts: -------------------------------------------------------------------------------- 1 | export * from "./address" 2 | export * from "./amount" 3 | export * from "./bankAccount" 4 | export * from "./card" 5 | export * from "./createPermitRequest" 6 | export * from "./createPermitResult" 7 | export * from "./disablePermitRequest" 8 | export * from "./disablePermitResult" 9 | export * from "./disableRequest" 10 | export * from "./disableResult" 11 | export * from "./name" 12 | export * from "./notifyShopperRequest" 13 | export * from "./notifyShopperResult" 14 | export * from "./permit" 15 | export * from "./permitRestriction" 16 | export * from "./permitResult" 17 | export * from "./recurring" 18 | export * from "./recurringDetail" 19 | export * from "./recurringDetailWrapper" 20 | export * from "./recurringDetailsRequest" 21 | export * from "./recurringDetailsResult" 22 | export * from "./scheduleAccountUpdaterRequest" 23 | export * from "./scheduleAccountUpdaterResult" 24 | export * from "./serviceError" 25 | export * from "./tokenDetails" 26 | 27 | // serializing and deserializing typed objects 28 | export * from "./objectSerializer" -------------------------------------------------------------------------------- /src/typings/balancePlatform/getNetworkTokenResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { NetworkToken } from "./networkToken"; 11 | 12 | 13 | export class GetNetworkTokenResponse { 14 | "token": NetworkToken; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "token", 23 | "baseName": "token", 24 | "type": "NetworkToken", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return GetNetworkTokenResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/management/generateClientKeyResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class GenerateClientKeyResponse { 12 | /** 13 | * Generated client key 14 | */ 15 | "clientKey": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "clientKey", 24 | "baseName": "clientKey", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return GenerateClientKeyResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/logo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Logo { 12 | /** 13 | * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. 14 | */ 15 | "data"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "data", 24 | "baseName": "data", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Logo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/amount.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | export interface Amount { 21 | currency: string; 22 | value: number; 23 | } -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/birthData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class BirthData { 12 | /** 13 | * The individual\'s date of birth, in YYYY-MM-DD format. 14 | */ 15 | "dateOfBirth"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "dateOfBirth", 24 | "baseName": "dateOfBirth", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return BirthData.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/generateHmacKeyResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class GenerateHmacKeyResponse { 12 | /** 13 | * The HMAC key generated for this webhook. 14 | */ 15 | "hmacKey": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "hmacKey", 24 | "baseName": "hmacKey", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return GenerateHmacKeyResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/reprocessAndroidAppResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ReprocessAndroidAppResponse { 12 | /** 13 | * The result of the reprocess. 14 | */ 15 | "Message"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "Message", 24 | "baseName": "Message", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ReprocessAndroidAppResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/uploadAndroidAppResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UploadAndroidAppResponse { 12 | /** 13 | * The unique identifier of the uploaded Android app. 14 | */ 15 | "id"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "id", 24 | "baseName": "id", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UploadAndroidAppResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/swishInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class SwishInfo { 12 | /** 13 | * Swish number. Format: 10 digits without spaces. For example, **1231111111**. 14 | */ 15 | "swishNumber": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "swishNumber", 24 | "baseName": "swishNumber", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SwishInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; 11 | 12 | export class CreateNotificationConfigurationRequest { 13 | 'configurationDetails': NotificationConfigurationDetails; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "configurationDetails", 20 | "baseName": "configurationDetails", 21 | "type": "NotificationConfigurationDetails" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return CreateNotificationConfigurationRequest.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; 11 | 12 | export class UpdateNotificationConfigurationRequest { 13 | 'configurationDetails': NotificationConfigurationDetails; 14 | 15 | static discriminator: string | undefined = undefined; 16 | 17 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 18 | { 19 | "name": "configurationDetails", 20 | "baseName": "configurationDetails", 21 | "type": "NotificationConfigurationDetails" 22 | } ]; 23 | 24 | static getAttributeTypeMap() { 25 | return UpdateNotificationConfigurationRequest.attributeTypeMap; 26 | } 27 | } 28 | 29 | -------------------------------------------------------------------------------- /src/typings/transfers/threeDSecure.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ThreeDSecure { 12 | /** 13 | * The transaction identifier for the Access Control Server 14 | */ 15 | "acsTransactionId"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "acsTransactionId", 24 | "baseName": "acsTransactionId", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ThreeDSecure.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/tapToPay.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class TapToPay { 12 | /** 13 | * The text shown on the screen during the Tap to Pay transaction. 14 | */ 15 | "merchantDisplayName"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "merchantDisplayName", 24 | "baseName": "merchantDisplayName", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TapToPay.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transferWebhooks/threeDSecure.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ThreeDSecure { 12 | /** 13 | * The transaction identifier for the Access Control Server 14 | */ 15 | "acsTransactionId"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "acsTransactionId", 24 | "baseName": "acsTransactionId", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ThreeDSecure.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transactionWebhooks/threeDSecure.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ThreeDSecure { 12 | /** 13 | * The transaction identifier for the Access Control Server 14 | */ 15 | "acsTransactionId"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "acsTransactionId", 24 | "baseName": "acsTransactionId", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ThreeDSecure.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/enums/vatCategory.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | declare enum VatCategory { 20 | HIGH = "High", 21 | LOW = "Low", 22 | NONE = "None", 23 | } 24 | -------------------------------------------------------------------------------- /src/typings/paymentsApp/boardingTokenRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class BoardingTokenRequest { 12 | /** 13 | * The boardingToken request token. 14 | */ 15 | "boardingRequestToken": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "boardingRequestToken", 24 | "baseName": "boardingRequestToken", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return BoardingTokenRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/__mocks__/recurring/disableSuccess.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | export const disableSuccess = { 21 | response: "[detail-successfully-disabled]", 22 | }; 23 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/registerSCAFinalResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class RegisterSCAFinalResponse { 12 | /** 13 | * Specifies if the registration was initiated successfully. 14 | */ 15 | "success"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "success", 24 | "baseName": "success", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return RegisterSCAFinalResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/checkout/utilityRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UtilityRequest { 12 | /** 13 | * The list of origin domains, for which origin keys are requested. 14 | */ 15 | "originDomains": Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "originDomains", 24 | "baseName": "originDomains", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UtilityRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/alipayPlusInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AlipayPlusInfo { 12 | /** 13 | * The currency used for settlement. Defaults to USD. 14 | */ 15 | "settlementCurrencyCode"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "settlementCurrencyCode", 24 | "baseName": "settlementCurrencyCode", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AlipayPlusInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/uploadAndroidCertificateResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UploadAndroidCertificateResponse { 12 | /** 13 | * The unique identifier of the uploaded Android certificate. 14 | */ 15 | "id"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "id", 24 | "baseName": "id", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UploadAndroidCertificateResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/payment/threeDS2ResultResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ThreeDS2Result } from "./threeDS2Result"; 11 | 12 | 13 | export class ThreeDS2ResultResponse { 14 | "threeDS2Result"?: ThreeDS2Result | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "threeDS2Result", 23 | "baseName": "threeDS2Result", 24 | "type": "ThreeDS2Result | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return ThreeDS2ResultResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/checkout/responseAdditionalDataSwish.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ResponseAdditionalDataSwish { 12 | /** 13 | * A Swish shopper\'s telephone number. 14 | */ 15 | "swish_payerAlias"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "swish_payerAlias", 24 | "baseName": "swish.payerAlias", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ResponseAdditionalDataSwish.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/payment/responseAdditionalDataSwish.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ResponseAdditionalDataSwish { 12 | /** 13 | * A Swish shopper\'s telephone number. 14 | */ 15 | "swish_payerAlias"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "swish_payerAlias", 24 | "baseName": "swish.payerAlias", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ResponseAdditionalDataSwish.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/payout/responseAdditionalDataSwish.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ResponseAdditionalDataSwish { 12 | /** 13 | * A Swish shopper\'s telephone number. 14 | */ 15 | "swish_payerAlias"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "swish_payerAlias", 24 | "baseName": "swish.payerAlias", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ResponseAdditionalDataSwish.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /templates-v7/typescript/api_summary.mustache: -------------------------------------------------------------------------------- 1 | /** 2 | {{#summary}} 3 | * @summary {{&summary}} 4 | {{/summary}} 5 | {{#pathParams}} 6 | * @param {{paramName}} {@link {{dataType}} } {{description}} 7 | {{/pathParams}} 8 | {{#bodyParams}} 9 | * @param {{paramName}} {@link {{dataType}} } {{description}} 10 | {{/bodyParams}} 11 | * @param requestOptions {@link IRequest.Options }{{#queryParams}}{{#required}} 12 | * @param {{paramName}} {@link {{dataType}} } (Required) {{description}}{{/required}}{{/queryParams}}{{#queryParams}}{{^required}} 13 | * @param {{paramName}} {@link {{dataType}} } {{description}}{{/required}}{{/queryParams}} 14 | {{#hasProduces}} 15 | * @return {@link {{#returnProperty}}{{openApiType}}{{/returnProperty}}{{^returnProperty}}void{{/returnProperty}} } 16 | {{/hasProduces}} 17 | {{#isDeprecated}} 18 | * 19 | * @deprecated {{#vendorExtensions.x-deprecatedInVersion}}since {{#appName}}{{{.}}}{{/appName}} v{{.}}{{/vendorExtensions.x-deprecatedInVersion}}{{#vendorExtensions.x-deprecatedMessage}} 20 | * {{{.}}}{{/vendorExtensions.x-deprecatedMessage}} 21 | {{/isDeprecated}} 22 | */ -------------------------------------------------------------------------------- /src/typings/management/updateSplitConfigurationRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UpdateSplitConfigurationRequest { 12 | /** 13 | * Your description for the split configuration. 14 | */ 15 | "description": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "description", 24 | "baseName": "description", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UpdateSplitConfigurationRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/recurring/recurringDetailWrapper.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { RecurringDetail } from "./recurringDetail"; 11 | 12 | 13 | export class RecurringDetailWrapper { 14 | "RecurringDetail"?: RecurringDetail | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "RecurringDetail", 23 | "baseName": "RecurringDetail", 24 | "type": "RecurringDetail | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return RecurringDetailWrapper.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/constants/nexoConstants.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | export enum NexoEnum { 21 | HMAC_KEY_LENGTH = 32, 22 | CIPHER_KEY_LENGTH = 32, 23 | IV_LENGTH = 16 24 | } 25 | -------------------------------------------------------------------------------- /src/typings/enums/environment.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | /** 21 | * @deprecated Use `EnvironmentEnum` instead. 22 | */ 23 | declare type Environment = "LIVE" | "TEST"; 24 | 25 | -------------------------------------------------------------------------------- /src/typings/transfers/capitalGrants.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { CapitalGrant } from "./capitalGrant"; 11 | 12 | 13 | export class CapitalGrants { 14 | /** 15 | * The unique identifier of the grant. 16 | */ 17 | "grants": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "grants", 26 | "baseName": "grants", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return CapitalGrants.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/grantOffers.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { GrantOffer } from "./grantOffer"; 11 | 12 | 13 | export class GrantOffers { 14 | /** 15 | * A list of available grant offers. 16 | */ 17 | "grantOffers": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "grantOffers", 26 | "baseName": "grantOffers", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return GrantOffers.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/paymentInstrumentRevealResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class PaymentInstrumentRevealResponse { 12 | /** 13 | * The data encrypted using the `encryptedKey`. 14 | */ 15 | "encryptedData": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "encryptedData", 24 | "baseName": "encryptedData", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return PaymentInstrumentRevealResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/transactionRuleResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TransactionRule } from "./transactionRule"; 11 | 12 | 13 | export class TransactionRuleResponse { 14 | "transactionRule"?: TransactionRule | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "transactionRule", 23 | "baseName": "transactionRule", 24 | "type": "TransactionRule | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return TransactionRuleResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class DataReviewConfirmationResponse { 12 | /** 13 | * Date when data review was confirmed. 14 | */ 15 | "dataReviewedAt"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "dataReviewedAt", 24 | "baseName": "dataReviewedAt", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return DataReviewConfirmationResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/referenced.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Referenced { 12 | /** 13 | * Indicates whether referenced refunds are enabled on the standalone terminal. 14 | */ 15 | "enableStandaloneRefunds"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "enableStandaloneRefunds", 24 | "baseName": "enableStandaloneRefunds", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Referenced.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/timeouts.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Timeouts { 12 | /** 13 | * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. 14 | */ 15 | "fromActiveToSleep"?: number; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "fromActiveToSleep", 24 | "baseName": "fromActiveToSleep", 25 | "type": "number", 26 | "format": "int32" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Timeouts.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/unreferenced.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class Unreferenced { 12 | /** 13 | * Indicates whether unreferenced refunds are enabled on the terminal. 14 | */ 15 | "enableUnreferencedRefunds"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "enableUnreferencedRefunds", 24 | "baseName": "enableUnreferencedRefunds", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return Unreferenced.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/payment/fraudCheckResultWrapper.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { FraudCheckResult } from "./fraudCheckResult"; 11 | 12 | 13 | export class FraudCheckResultWrapper { 14 | "FraudCheckResult"?: FraudCheckResult | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "FraudCheckResult", 23 | "baseName": "FraudCheckResult", 24 | "type": "FraudCheckResult | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return FraudCheckResultWrapper.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/payout/fraudCheckResultWrapper.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { FraudCheckResult } from "./fraudCheckResult"; 11 | 12 | 13 | export class FraudCheckResultWrapper { 14 | "FraudCheckResult"?: FraudCheckResult | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "FraudCheckResult", 23 | "baseName": "FraudCheckResult", 24 | "type": "FraudCheckResult | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return FraudCheckResultWrapper.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/individualDetails.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ViasName } from './viasName'; 11 | import { ViasPersonalData } from './viasPersonalData'; 12 | 13 | export class IndividualDetails { 14 | 'name'?: ViasName; 15 | 'personalData'?: ViasPersonalData; 16 | 17 | static discriminator: string | undefined = undefined; 18 | 19 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 20 | { 21 | "name": "name", 22 | "baseName": "name", 23 | "type": "ViasName" 24 | }, 25 | { 26 | "name": "personalData", 27 | "baseName": "personalData", 28 | "type": "ViasPersonalData" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return IndividualDetails.attributeTypeMap; 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Adyen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /src/typings/checkout/shopperIdPaymentMethod.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ShopperIdPaymentMethod { 12 | "type": string; 13 | 14 | static readonly discriminator: string | undefined = "type"; 15 | 16 | static readonly mapping: {[index: string]: string} | undefined = { 17 | "payTo": "PayToPaymentMethod", 18 | "upi_collect": "UPIPaymentMethod", 19 | }; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "type", 24 | "baseName": "type", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ShopperIdPaymentMethod.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | //this.type = "ShopperIdPaymentMethod"; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/typings/disputes/acceptDisputeResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v30 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DisputeServiceResult } from "./disputeServiceResult"; 11 | 12 | 13 | export class AcceptDisputeResponse { 14 | "disputeServiceResult": DisputeServiceResult; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "disputeServiceResult", 23 | "baseName": "disputeServiceResult", 24 | "type": "DisputeServiceResult", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return AcceptDisputeResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/disputes/defendDisputeResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v30 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DisputeServiceResult } from "./disputeServiceResult"; 11 | 12 | 13 | export class DefendDisputeResponse { 14 | "disputeServiceResult": DisputeServiceResult; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "disputeServiceResult", 23 | "baseName": "disputeServiceResult", 24 | "type": "DisputeServiceResult", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return DefendDisputeResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/transfers/cancelTransfersRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CancelTransfersRequest { 12 | /** 13 | * Contains the unique identifiers of the transfers that you want to cancel. 14 | */ 15 | "transferIds"?: Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "transferIds", 24 | "baseName": "transferIds", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return CancelTransfersRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/allowedOriginsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { AllowedOrigin } from "./allowedOrigin"; 11 | 12 | 13 | export class AllowedOriginsResponse { 14 | /** 15 | * List of allowed origins. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return AllowedOriginsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/androidAppsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { AndroidApp } from "./androidApp"; 11 | 12 | 13 | export class AndroidAppsResponse { 14 | /** 15 | * Apps uploaded for Android payment terminals. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return AndroidAppsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/bcmcInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class BcmcInfo { 12 | /** 13 | * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. 14 | */ 15 | "enableBcmcMobile"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "enableBcmcMobile", 24 | "baseName": "enableBcmcMobile", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return BcmcInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transfers/approveTransfersRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ApproveTransfersRequest { 12 | /** 13 | * Contains the unique identifiers of the transfers that you want to approve. 14 | */ 15 | "transferIds"?: Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "transferIds", 24 | "baseName": "transferIds", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ApproveTransfersRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transfers/transferDataTracking.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ConfirmationTrackingData } from "./confirmationTrackingData"; 11 | import { EstimationTrackingData } from "./estimationTrackingData"; 12 | import { InternalReviewTrackingData } from "./internalReviewTrackingData"; 13 | 14 | /** 15 | * The latest tracking information of the transfer. 16 | */ 17 | 18 | 19 | /** 20 | * @type TransferDataTracking 21 | * Type 22 | * @export 23 | */ 24 | export type TransferDataTracking = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; 25 | 26 | /** 27 | * @type TransferDataTrackingClass 28 | * The latest tracking information of the transfer. 29 | * @export 30 | */ 31 | export class TransferDataTrackingClass { 32 | 33 | static readonly discriminator: string = "type"; 34 | 35 | static readonly mapping: {[index: string]: string} | undefined = undefined; 36 | } 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/scaExemption.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | /** 11 | * The type of exemption for Strong Customer Authentication (SCA). Possible values: * **lowerLimit**: the newly created limit is lower than the existing limit. * **notRegulated**: the limit is created in a country, region, or industry where it is not mandated by law to use SCA. * **setByPlatform**: you set a limit for one of your user\'s balance accounts, or for your balance platform. * **initialLimit**: there are no existing transfer limits set on the balance account or balance platform. * **alreadyPerformed**: you are confident about your user\'s identity and do not need to verify this using SCA. 12 | */ 13 | 14 | export enum ScaExemption { 15 | SetByPlatform = 'setByPlatform', 16 | InitialLimit = 'initialLimit', 17 | LowerLimit = 'lowerLimit', 18 | NotRegulated = 'notRegulated', 19 | AlreadyPerformed = 'alreadyPerformed' 20 | } 21 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/businessLines.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BusinessLine } from "./businessLine"; 11 | 12 | 13 | export class BusinessLines { 14 | /** 15 | * List of business lines. 16 | */ 17 | "businessLines": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "businessLines", 26 | "baseName": "businessLines", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return BusinessLines.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/terminalModelsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { IdName } from "./idName"; 11 | 12 | 13 | export class TerminalModelsResponse { 14 | /** 15 | * The terminal models that the API credential has access to. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TerminalModelsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class SetTaxElectronicDeliveryConsentRequest { 12 | /** 13 | * Consent to electronically deliver tax form US1099-K. 14 | */ 15 | "US1099k"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "US1099k", 24 | "baseName": "US1099k", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return SetTaxElectronicDeliveryConsentRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/payoutSettingsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { PayoutSettings } from "./payoutSettings"; 11 | 12 | 13 | export class PayoutSettingsResponse { 14 | /** 15 | * The list of payout accounts. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return PayoutSettingsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/transfers/transferCategoryData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BankCategoryData } from "./bankCategoryData"; 11 | import { InternalCategoryData } from "./internalCategoryData"; 12 | import { IssuedCard } from "./issuedCard"; 13 | import { PlatformPayment } from "./platformPayment"; 14 | 15 | /** 16 | * The relevant data according to the transfer category. 17 | */ 18 | 19 | 20 | /** 21 | * @type TransferCategoryData 22 | * Type 23 | * @export 24 | */ 25 | export type TransferCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; 26 | 27 | /** 28 | * @type TransferCategoryDataClass 29 | * The relevant data according to the transfer category. 30 | * @export 31 | */ 32 | export class TransferCategoryDataClass { 33 | 34 | static readonly discriminator: string = "type"; 35 | 36 | static readonly mapping: {[index: string]: string} | undefined = undefined; 37 | } 38 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/associationInitiateResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AssociationInitiateResponse { 12 | /** 13 | * A string that you must pass to the authentication SDK to continue with the association process. 14 | */ 15 | "sdkInput"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "sdkInput", 24 | "baseName": "sdkInput", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AssociationInitiateResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/authorisedCardUsers.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AuthorisedCardUsers { 12 | /** 13 | * The legal entity IDs of the authorized card users linked to the specified payment instrument. 14 | */ 15 | "legalEntityIds"?: Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "legalEntityIds", 24 | "baseName": "legalEntityIds", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AuthorisedCardUsers.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/disputes/deleteDefenseDocumentResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v30 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DisputeServiceResult } from "./disputeServiceResult"; 11 | 12 | 13 | export class DeleteDefenseDocumentResponse { 14 | "disputeServiceResult": DisputeServiceResult; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "disputeServiceResult", 23 | "baseName": "disputeServiceResult", 24 | "type": "DisputeServiceResult", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return DeleteDefenseDocumentResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/disputes/supplyDefenseDocumentResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v30 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DisputeServiceResult } from "./disputeServiceResult"; 11 | 12 | 13 | export class SupplyDefenseDocumentResponse { 14 | "disputeServiceResult": DisputeServiceResult; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "disputeServiceResult", 23 | "baseName": "disputeServiceResult", 24 | "type": "DisputeServiceResult", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return SupplyDefenseDocumentResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CheckTaxElectronicDeliveryConsentResponse { 12 | /** 13 | * Consent to electronically deliver tax form US1099-K. 14 | */ 15 | "US1099k"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "US1099k", 24 | "baseName": "US1099k", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return CheckTaxElectronicDeliveryConsentResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/paymentsApp/paymentsAppResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { PaymentsAppDto } from "./paymentsAppDto"; 11 | 12 | 13 | export class PaymentsAppResponse { 14 | /** 15 | * List of Payments Apps. 16 | */ 17 | "paymentsApps": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "paymentsApps", 26 | "baseName": "paymentsApps", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return PaymentsAppResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/transfers/transferEventTrackingData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ConfirmationTrackingData } from "./confirmationTrackingData"; 11 | import { EstimationTrackingData } from "./estimationTrackingData"; 12 | import { InternalReviewTrackingData } from "./internalReviewTrackingData"; 13 | 14 | /** 15 | * Additional information for the tracking event. 16 | */ 17 | 18 | 19 | /** 20 | * @type TransferEventTrackingData 21 | * Type 22 | * @export 23 | */ 24 | export type TransferEventTrackingData = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; 25 | 26 | /** 27 | * @type TransferEventTrackingDataClass 28 | * Additional information for the tracking event. 29 | * @export 30 | */ 31 | export class TransferEventTrackingDataClass { 32 | 33 | static readonly discriminator: string = "type"; 34 | 35 | static readonly mapping: {[index: string]: string} | undefined = undefined; 36 | } 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/bankAccount.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BankAccountAccountIdentification } from "./bankAccountAccountIdentification"; 11 | 12 | 13 | export class BankAccount { 14 | "accountIdentification": BankAccountAccountIdentification; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "accountIdentification", 23 | "baseName": "accountIdentification", 24 | "type": "BankAccountAccountIdentification", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return BankAccount.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/webhookSettings.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { WebhookSetting } from "./webhookSetting"; 11 | 12 | 13 | export class WebhookSettings { 14 | /** 15 | * The list of webhook settings. 16 | */ 17 | "webhookSettings"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "webhookSettings", 26 | "baseName": "webhookSettings", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return WebhookSettings.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/webhooks.ts: -------------------------------------------------------------------------------- 1 | // barrel file to (re)export webhook handlers from the root 2 | // this file is not autogenerated (add/remove handlers manually) 3 | 4 | export { AcsWebhooksHandler } from "./typings/acsWebhooks/acsWebhooksHandler"; 5 | export { BalanceWebhooksHandler } from "./typings/balanceWebhooks/balanceWebhooksHandler"; 6 | export { ConfigurationWebhooksHandler } from "./typings/configurationWebhooks/configurationWebhooksHandler"; 7 | export { DisputeWebhooksHandler } from "./typings/disputeWebhooks/disputeWebhooksHandler"; 8 | export { ManagementWebhooksHandler } from "./typings/managementWebhooks/managementWebhooksHandler"; 9 | export { NegativeBalanceWarningWebhooksHandler } from "./typings/negativeBalanceWarningWebhooks/negativeBalanceWarningWebhooksHandler"; 10 | export { ReportWebhooksHandler } from "./typings/reportWebhooks/reportWebhooksHandler"; 11 | export { TokenizationWebhooksHandler } from "./typings/tokenizationWebhooks/tokenizationWebhooksHandler"; 12 | export { TransactionWebhooksHandler } from "./typings/transactionWebhooks/transactionWebhooksHandler"; 13 | export { TransferWebhooksHandler } from "./typings/transferWebhooks/transferWebhooksHandler"; 14 | -------------------------------------------------------------------------------- /src/typings/management/terminalInstructions.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class TerminalInstructions { 12 | /** 13 | * Indicates whether the Adyen app on the payment terminal restarts automatically when the configuration is updated. 14 | */ 15 | "adyenAppRestart"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "adyenAppRestart", 24 | "baseName": "adyenAppRestart", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return TerminalInstructions.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/terminalOrdersResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TerminalOrder } from "./terminalOrder"; 11 | 12 | 13 | export class TerminalOrdersResponse { 14 | /** 15 | * List of orders for payment terminal packages and parts. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TerminalOrdersResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/terminalProductsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TerminalProduct } from "./terminalProduct"; 11 | 12 | 13 | export class TerminalProductsResponse { 14 | /** 15 | * Terminal products that can be ordered. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TerminalProductsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/platformsAccount/closeStoresRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CloseStoresRequest { 12 | /** 13 | * The code of the account holder. 14 | */ 15 | 'accountHolderCode': string; 16 | /** 17 | * List of stores to be closed. 18 | */ 19 | 'stores': Array; 20 | 21 | static discriminator: string | undefined = undefined; 22 | 23 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 24 | { 25 | "name": "accountHolderCode", 26 | "baseName": "accountHolderCode", 27 | "type": "string" 28 | }, 29 | { 30 | "name": "stores", 31 | "baseName": "stores", 32 | "type": "Array" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return CloseStoresRequest.attributeTypeMap; 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /src/typings/recurring/disableResult.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class DisableResult { 12 | /** 13 | * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. 14 | */ 15 | "response"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "response", 24 | "baseName": "response", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return DisableResult.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/transferWebhooks/transferEventTrackingData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ConfirmationTrackingData } from "./confirmationTrackingData"; 11 | import { EstimationTrackingData } from "./estimationTrackingData"; 12 | import { InternalReviewTrackingData } from "./internalReviewTrackingData"; 13 | 14 | /** 15 | * Additional information for the tracking event. 16 | */ 17 | 18 | 19 | /** 20 | * @type TransferEventTrackingData 21 | * Type 22 | * @export 23 | */ 24 | export type TransferEventTrackingData = ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData; 25 | 26 | /** 27 | * @type TransferEventTrackingDataClass 28 | * Additional information for the tracking event. 29 | * @export 30 | */ 31 | export class TransferEventTrackingDataClass { 32 | 33 | static readonly discriminator: string = "type"; 34 | 35 | static readonly mapping: {[index: string]: string} | undefined = undefined; 36 | } 37 | -------------------------------------------------------------------------------- /src/typings/acsWebhooks/relayedAuthenticationResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { AuthenticationDecision } from "./authenticationDecision"; 11 | 12 | 13 | export class RelayedAuthenticationResponse { 14 | "authenticationDecision": AuthenticationDecision; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "authenticationDecision", 23 | "baseName": "authenticationDecision", 24 | "type": "AuthenticationDecision", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return RelayedAuthenticationResponse.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/listNetworkTokensResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { NetworkToken } from "./networkToken"; 11 | 12 | 13 | export class ListNetworkTokensResponse { 14 | /** 15 | * List of network tokens. 16 | */ 17 | "networkTokens"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "networkTokens", 26 | "baseName": "networkTokens", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return ListNetworkTokensResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/verificationErrors.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { CapabilityProblem } from "./capabilityProblem"; 11 | 12 | 13 | export class VerificationErrors { 14 | /** 15 | * List of the verification errors. 16 | */ 17 | "problems"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "problems", 26 | "baseName": "problems", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return VerificationErrors.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/transferWebhooks/transferDataCategoryData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BankCategoryData } from "./bankCategoryData"; 11 | import { InternalCategoryData } from "./internalCategoryData"; 12 | import { IssuedCard } from "./issuedCard"; 13 | import { PlatformPayment } from "./platformPayment"; 14 | 15 | /** 16 | * The relevant data according to the transfer category. 17 | */ 18 | 19 | 20 | /** 21 | * @type TransferDataCategoryData 22 | * Type 23 | * @export 24 | */ 25 | export type TransferDataCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; 26 | 27 | /** 28 | * @type TransferDataCategoryDataClass 29 | * The relevant data according to the transfer category. 30 | * @export 31 | */ 32 | export class TransferDataCategoryDataClass { 33 | 34 | static readonly discriminator: string = "type"; 35 | 36 | static readonly mapping: {[index: string]: string} | undefined = undefined; 37 | } 38 | -------------------------------------------------------------------------------- /src/__mocks__/checkout/paymentsResultSucess.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | /* tslint:disable */ 21 | export const paymentsResultSuccess = JSON.stringify({ 22 | pspReference: "8535253563623704", 23 | resultCode: "Authorised", 24 | }); -------------------------------------------------------------------------------- /src/typings/management/genericPmWithTdiInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TransactionDescriptionInfo } from "./transactionDescriptionInfo"; 11 | 12 | 13 | export class GenericPmWithTdiInfo { 14 | "transactionDescription"?: TransactionDescriptionInfo | null; 15 | 16 | static readonly discriminator: string | undefined = undefined; 17 | 18 | static readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "transactionDescription", 23 | "baseName": "transactionDescription", 24 | "type": "TransactionDescriptionInfo | null", 25 | "format": "" 26 | } ]; 27 | 28 | static getAttributeTypeMap() { 29 | return GenericPmWithTdiInfo.attributeTypeMap; 30 | } 31 | 32 | public constructor() { 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /src/typings/management/testWebhookResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TestOutput } from "./testOutput"; 11 | 12 | 13 | export class TestWebhookResponse { 14 | /** 15 | * List with test results. Each test webhook we send has a list element with the result. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TestWebhookResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/transactionWebhooks/transferViewCategoryData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BankCategoryData } from "./bankCategoryData"; 11 | import { InternalCategoryData } from "./internalCategoryData"; 12 | import { IssuedCard } from "./issuedCard"; 13 | import { PlatformPayment } from "./platformPayment"; 14 | 15 | /** 16 | * The relevant data according to the transfer category. 17 | */ 18 | 19 | 20 | /** 21 | * @type TransferViewCategoryData 22 | * Type 23 | * @export 24 | */ 25 | export type TransferViewCategoryData = BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment; 26 | 27 | /** 28 | * @type TransferViewCategoryDataClass 29 | * The relevant data according to the transfer category. 30 | * @export 31 | */ 32 | export class TransferViewCategoryDataClass { 33 | 34 | static readonly discriminator: string = "type"; 35 | 36 | static readonly mapping: {[index: string]: string} | undefined = undefined; 37 | } 38 | -------------------------------------------------------------------------------- /src/typings/management/billingEntitiesResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { BillingEntity } from "./billingEntity"; 11 | 12 | 13 | export class BillingEntitiesResponse { 14 | /** 15 | * List of legal entities that can be used for the billing of orders. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return BillingEntitiesResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/platformsFund/accountDetailBalance.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v6 3 | * Contact: developer-experience@adyen.com 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DetailBalance } from './detailBalance'; 11 | 12 | export class AccountDetailBalance { 13 | /** 14 | * The code of the account that holds the balance. 15 | */ 16 | 'accountCode'?: string; 17 | 'detailBalance'?: DetailBalance; 18 | 19 | static discriminator: string | undefined = undefined; 20 | 21 | static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ 22 | { 23 | "name": "accountCode", 24 | "baseName": "accountCode", 25 | "type": "string" 26 | }, 27 | { 28 | "name": "detailBalance", 29 | "baseName": "detailBalance", 30 | "type": "DetailBalance" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return AccountDetailBalance.attributeTypeMap; 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /src/typings/checkout/utilityResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UtilityResponse { 12 | /** 13 | * The list of origin keys for all requested domains. For each list item, the key is the domain and the value is the origin key. 14 | */ 15 | "originKeys"?: { [key: string]: string; }; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "originKeys", 24 | "baseName": "originKeys", 25 | "type": "{ [key: string]: string; }", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UtilityResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/remediatingAction.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class RemediatingAction { 12 | "code"?: string; 13 | "message"?: string; 14 | 15 | static readonly discriminator: string | undefined = undefined; 16 | 17 | static readonly mapping: {[index: string]: string} | undefined = undefined; 18 | 19 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 20 | { 21 | "name": "code", 22 | "baseName": "code", 23 | "type": "string", 24 | "format": "" 25 | }, 26 | { 27 | "name": "message", 28 | "baseName": "message", 29 | "type": "string", 30 | "format": "" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return RemediatingAction.attributeTypeMap; 35 | } 36 | 37 | public constructor() { 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /src/typings/management/shippingLocationsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ShippingLocation } from "./shippingLocation"; 11 | 12 | 13 | export class ShippingLocationsResponse { 14 | /** 15 | * Physical locations where orders can be shipped to. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return ShippingLocationsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/approveTransferLimitRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ApproveTransferLimitRequest { 12 | /** 13 | * A list that includes the `transferLimitId` of all the pending transfer limits you want to approve. 14 | */ 15 | "transferLimitIds": Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "transferLimitIds", 24 | "baseName": "transferLimitIds", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ApproveTransferLimitRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/delegatedAuthenticationData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class DelegatedAuthenticationData { 12 | /** 13 | * A base64-encoded block with the data required to register the SCA device. You obtain this information by using our authentication SDK. 14 | */ 15 | "sdkOutput": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "sdkOutput", 24 | "baseName": "sdkOutput", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return DelegatedAuthenticationData.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/transferLimitListResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TransferLimit } from "./transferLimit"; 11 | 12 | 13 | export class TransferLimitListResponse { 14 | /** 15 | * List of available transfer limits. 16 | */ 17 | "transferLimits": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "transferLimits", 26 | "baseName": "transferLimits", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TransferLimitListResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/transfers/links.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Link } from "./link"; 11 | 12 | 13 | export class Links { 14 | "next"?: Link | null; 15 | "prev"?: Link | null; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "next", 24 | "baseName": "next", 25 | "type": "Link | null", 26 | "format": "" 27 | }, 28 | { 29 | "name": "prev", 30 | "baseName": "prev", 31 | "type": "Link | null", 32 | "format": "" 33 | } ]; 34 | 35 | static getAttributeTypeMap() { 36 | return Links.attributeTypeMap; 37 | } 38 | 39 | public constructor() { 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /src/typings/balancePlatform/transactionRulesResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { TransactionRule } from "./transactionRule"; 11 | 12 | 13 | export class TransactionRulesResponse { 14 | /** 15 | * List of transaction rules. 16 | */ 17 | "transactionRules"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "transactionRules", 26 | "baseName": "transactionRules", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return TransactionRulesResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/calculatePciStatusResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class CalculatePciStatusResponse { 12 | /** 13 | * Indicates if the user is required to sign PCI questionnaires. If **false**, they do not need to sign any questionnaires. 14 | */ 15 | "signingRequired"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "signingRequired", 24 | "baseName": "signingRequired", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return CalculatePciStatusResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/androidCertificatesResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { AndroidCertificate } from "./androidCertificate"; 11 | 12 | 13 | export class AndroidCertificatesResponse { 14 | /** 15 | * Uploaded Android certificates for Android payment terminals. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return AndroidCertificatesResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/__mocks__/checkout/paymentmethodsErrorForbidden403.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | export const paymentMethodsError = { 21 | errorCode: "901", 22 | errorType: "security", 23 | statusMessage: "Invalid Merchant Account", 24 | statusCode: 403, 25 | }; 26 | -------------------------------------------------------------------------------- /src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v4 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { PciDocumentInfo } from "./pciDocumentInfo"; 11 | 12 | 13 | export class GetPciQuestionnaireInfosResponse { 14 | /** 15 | * Information about the signed PCI questionnaires. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return GetPciQuestionnaireInfosResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/splitConfigurationList.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { SplitConfiguration } from "./splitConfiguration"; 11 | 12 | 13 | export class SplitConfigurationList { 14 | /** 15 | * List of split configurations applied to the stores under the merchant account. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return SplitConfigurationList.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/checkout/payToPaymentMethod.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; 11 | 12 | 13 | export class PayToPaymentMethod extends ShopperIdPaymentMethod { 14 | "shopperReference"?: string; 15 | 16 | static override readonly discriminator: string | undefined = undefined; 17 | 18 | static override readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "shopperReference", 23 | "baseName": "shopperReference", 24 | "type": "string", 25 | "format": "" 26 | } ]; 27 | 28 | static override getAttributeTypeMap() { 29 | return super.getAttributeTypeMap().concat(PayToPaymentMethod.attributeTypeMap); 30 | } 31 | 32 | public constructor() { 33 | super(); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/listExternalTerminalActionsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ExternalTerminalAction } from "./externalTerminalAction"; 11 | 12 | 13 | export class ListExternalTerminalActionsResponse { 14 | /** 15 | * The list of terminal actions. 16 | */ 17 | "data"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "data", 26 | "baseName": "data", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return ListExternalTerminalActionsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/management/updatePayoutSettingsRequest.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class UpdatePayoutSettingsRequest { 12 | /** 13 | * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. 14 | */ 15 | "enabled"?: boolean; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "enabled", 24 | "baseName": "enabled", 25 | "type": "boolean", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return UpdatePayoutSettingsRequest.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/checkout/uPIPaymentMethod.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { ShopperIdPaymentMethod } from "./shopperIdPaymentMethod"; 11 | 12 | 13 | export class UPIPaymentMethod extends ShopperIdPaymentMethod { 14 | "virtualPaymentAddress"?: string; 15 | 16 | static override readonly discriminator: string | undefined = undefined; 17 | 18 | static override readonly mapping: {[index: string]: string} | undefined = undefined; 19 | 20 | static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 21 | { 22 | "name": "virtualPaymentAddress", 23 | "baseName": "virtualPaymentAddress", 24 | "type": "string", 25 | "format": "" 26 | } ]; 27 | 28 | static override getAttributeTypeMap() { 29 | return super.getAttributeTypeMap().concat(UPIPaymentMethod.attributeTypeMap); 30 | } 31 | 32 | public constructor() { 33 | super(); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/openBanking/accountVerificationRoutesResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v1 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { Route } from "./route"; 11 | 12 | 13 | export class AccountVerificationRoutesResponse { 14 | /** 15 | * This array lists available open banking redirection links, each with its associated provider metadata. 16 | */ 17 | "routes": Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "routes", 26 | "baseName": "routes", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return AccountVerificationRoutesResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/__mocks__/checkout/paymentsDetailsErrorInvalidData422.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | /* tslint:disable */ 21 | export const paymentDetailsError = { 22 | statusCode: 422, 23 | errorCode: "101", 24 | message: "Invalid card number", 25 | errorType: "validation", 26 | }; -------------------------------------------------------------------------------- /src/typings/balancePlatform/associationDelegatedAuthenticationData.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v2 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AssociationDelegatedAuthenticationData { 12 | /** 13 | * A base64-encoded block with the data required to authenticate the request. You obtain this information by using our authentication SDK. 14 | */ 15 | "sdkOutput": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "sdkOutput", 24 | "baseName": "sdkOutput", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AssociationDelegatedAuthenticationData.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/__mocks__/checkout/paymentsErrorInvalidData422.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * ###### 3 | * ###### 4 | * ############ ####( ###### #####. ###### ############ ############ 5 | * ############# #####( ###### #####. ###### ############# ############# 6 | * ###### #####( ###### #####. ###### ##### ###### ##### ###### 7 | * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### 8 | * ###### ###### #####( ###### #####. ###### ##### ##### ###### 9 | * ############# ############# ############# ############# ##### ###### 10 | * ############ ############ ############# ############ ##### ###### 11 | * ###### 12 | * ############# 13 | * ############ 14 | * Adyen NodeJS API Library 15 | * Copyright (c) 2020 Adyen B.V. 16 | * This file is open source and available under the MIT license. 17 | * See the LICENSE file for more info. 18 | */ 19 | 20 | /* tslint:disable */ 21 | export const paymentsError = JSON.stringify({ 22 | statusCode: 422, 23 | errorCode: "130", 24 | statusMessage: "Reference Missing", 25 | errorType: "validation", 26 | }); -------------------------------------------------------------------------------- /src/typings/checkout/donationCampaignsResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | import { DonationCampaign } from "./donationCampaign"; 11 | 12 | 13 | export class DonationCampaignsResponse { 14 | /** 15 | * List of active donation campaigns for your merchant account. 16 | */ 17 | "donationCampaigns"?: Array; 18 | 19 | static readonly discriminator: string | undefined = undefined; 20 | 21 | static readonly mapping: {[index: string]: string} | undefined = undefined; 22 | 23 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 24 | { 25 | "name": "donationCampaigns", 26 | "baseName": "donationCampaigns", 27 | "type": "Array", 28 | "format": "" 29 | } ]; 30 | 31 | static getAttributeTypeMap() { 32 | return DonationCampaignsResponse.attributeTypeMap; 33 | } 34 | 35 | public constructor() { 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /src/typings/recurring/tokenDetails.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v68 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class TokenDetails { 12 | "tokenData"?: { [key: string]: string; }; 13 | "tokenDataType"?: string; 14 | 15 | static readonly discriminator: string | undefined = undefined; 16 | 17 | static readonly mapping: {[index: string]: string} | undefined = undefined; 18 | 19 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 20 | { 21 | "name": "tokenData", 22 | "baseName": "tokenData", 23 | "type": "{ [key: string]: string; }", 24 | "format": "" 25 | }, 26 | { 27 | "name": "tokenDataType", 28 | "baseName": "tokenDataType", 29 | "type": "string", 30 | "format": "" 31 | } ]; 32 | 33 | static getAttributeTypeMap() { 34 | return TokenDetails.attributeTypeMap; 35 | } 36 | 37 | public constructor() { 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /src/typings/checkout/applePaySessionResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v71 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ApplePaySessionResponse { 12 | /** 13 | * Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). 14 | */ 15 | "data": string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "data", 24 | "baseName": "data", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ApplePaySessionResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/management/applePayInfo.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class ApplePayInfo { 12 | /** 13 | * The list of merchant domains. Maximum: 99 domains per request. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/web-drop-in?tab=adyen-certificate-live_1#going-live). 14 | */ 15 | "domains": Array; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "domains", 24 | "baseName": "domains", 25 | "type": "Array", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return ApplePayInfo.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /src/typings/managementWebhooks/accountNotificationResponse.ts: -------------------------------------------------------------------------------- 1 | /* 2 | * The version of the OpenAPI document: v3 3 | * 4 | * 5 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). 6 | * https://openapi-generator.tech 7 | * Do not edit this class manually. 8 | */ 9 | 10 | 11 | export class AccountNotificationResponse { 12 | /** 13 | * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks/#accept-webhooks). 14 | */ 15 | "notificationResponse"?: string; 16 | 17 | static readonly discriminator: string | undefined = undefined; 18 | 19 | static readonly mapping: {[index: string]: string} | undefined = undefined; 20 | 21 | static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ 22 | { 23 | "name": "notificationResponse", 24 | "baseName": "notificationResponse", 25 | "type": "string", 26 | "format": "" 27 | } ]; 28 | 29 | static getAttributeTypeMap() { 30 | return AccountNotificationResponse.attributeTypeMap; 31 | } 32 | 33 | public constructor() { 34 | } 35 | } 36 | 37 | --------------------------------------------------------------------------------