diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 094fd1b..e262076 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,9 +7,8 @@ updates: time: "04:00" open-pull-requests-limit: 10 reviewers: - - zaiddreakh - maassenbas - msilvagarcia - AlexandrosMor - peterojo - wboereboom + - "zaiddreakh" + - "maassenbas" + - "AlexandrosMor" + - "peterojo" + - "wboereboom" \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ac78636..871cc82 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -18,10 +18,10 @@ jobs: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. fetch-depth: 2 - + # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 # Override language selection by uncommenting this and choosing your languages # with: # languages: go, javascript, csharp, python, cpp, java @@ -29,7 +29,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -43,4 +43,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index f205237..225f569 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -1,4 +1,4 @@ -on: ["push", "pull_request"] +on: ["pull_request"] name: Coveralls @@ -11,10 +11,10 @@ jobs: - uses: actions/checkout@v2 - - name: Use Node.js 12.x + - name: Use Node.js 16.x uses: actions/setup-node@v1 with: - node-version: 12.x + node-version: 16.x - name: npm install, npm test:coverage run: | diff --git a/.github/workflows/models.yml b/.github/workflows/models.yml new file mode 100644 index 0000000..c1ccdf7 --- /dev/null +++ b/.github/workflows/models.yml @@ -0,0 +1,24 @@ +name: Node.js Models + +on: [ workflow_dispatch ] + +jobs: + generate: + runs-on: ubuntu-latest + name: Generate Models + steps: + - uses: actions/checkout@v3 + - name: Generate models + run: make models + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} + committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }} + author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }} + base: develop + branch: automation/models + title: Update models + body: OpenAPI spec or templates produced new models. + add-paths: | + src/typings diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 73e5532..fa7c536 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,6 +1,6 @@ name: Node.js CI -on: [push, pull_request] +on: [pull_request] jobs: build: diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 3ec4cf8..8e85169 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -1,7 +1,9 @@ name: Node.js Package on: - workflow_dispatch + workflow_dispatch: + release: + types: [published] jobs: publish-npm: diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 85a7bfd..bfa73fd 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,6 +1,6 @@ name: "Sonarcloud Analysis" -on: ["push", "pull_request"] +on: ["pull_request"] jobs: sonarcloud-analysis: diff --git a/.gitignore b/.gitignore index d017a6f..6c05a29 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ node_modules .viminfo coverage/ .env -lib/ \ No newline at end of file +lib/ +build/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..50a0ceb --- /dev/null +++ b/Makefile @@ -0,0 +1,46 @@ +generator:=typescript-node +openapi-generator-cli:=docker run --user $(shell id -u):$(shell id -g) --rm -v ${PWD}:/local -w /local openapitools/openapi-generator-cli:v5.4.0 +services:=binlookup checkout storedValue terminalManagement payments recurring payouts management balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage + +# Generate models (for each service) +models: $(services) + +binlookup: spec=BinLookupService-v52 +checkout: spec=CheckoutService-v69 +storedValue: spec=StoredValueService-v46 +terminalManagement: spec=TfmAPIService-v1 +payments: spec=PaymentService-v68 +recurring: spec=RecurringService-v68 +payouts: spec=PayoutService-v68 +management: spec=ManagementService-v1 +balancePlatform: spec=BalancePlatformService-v2 +platformsAccount: spec=AccountService-v6 +platformsFund: spec=FundService-v6 +platformsNotificationConfiguration: spec=NotificationConfigurationService-v6 +platformsHostedOnboardingPage: spec=HopService-v6 + +$(services): build/spec + rm -rf src/typings/$@ build/model + $(openapi-generator-cli) generate \ + -i build/spec/json/$(spec).json \ + -g $(generator) \ + -t templates/typescript \ + -o build \ + --global-property models,supportingFiles + mv build/model src/typings/$@ + +# Checkout spec (and patch version) +build/spec: + git clone https://github.com/Adyen/adyen-openapi.git build/spec + sed -i 's/"openapi" : "3.[0-9].[0-9]"/"openapi" : "3.0.0"/' build/spec/json/*.json + +# Extract templates (copy them for modifications) +templates: + $(openapi-generator-cli) author template -g $(generator) -o build/templates/typescript + +# Discard generated artifacts and changed models +clean: + git checkout src/typings + git clean -f -d src/typings + +.PHONY: templates models $(services) diff --git a/README.md b/README.md index 9f2aff4..bcb3846 100644 --- a/README.md +++ b/README.md @@ -13,16 +13,21 @@ This is the officially supported NodeJS library for using Adyen's APIs. ## Integration The Library supports all APIs under the following services: +* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v50/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v52** * [Checkout API](https://docs.adyen.com/api-explorer/#/CheckoutService/v69/overview): Our latest integration for accepting online payments. Current supported version: **v69** -* [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v64/overview): Our classic integration for online payments. Current supported version: **v64** -* [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v49/overview): Endpoints for managing saved payment details. Current supported version: **v49** -* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v64/overview): Endpoints for sending funds to your customers. Current supported version: **v64** -* [Platforms APIs](https://docs.adyen.com/platforms/api): Set of APIs when using Adyen for Platforms. +* [Configuration API](https://docs.adyen.com/api-explorer/#/balanceplatform/v2/overview): The Configuration API enables you to create a platform where you can onboard your users as account holders and create balance accounts, cards, and business accounts. Current supported verison: **v2** +* [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference): Our point-of-sale integration. +* [Management API](https://docs.adyen.com/api-explorer/#/ManagementService/v1/overview): Configure and manage your Adyen company and merchant accounts, stores, and payment terminals. Current supported version **v1** +* [Payments API](https://docs.adyen.com/api-explorer/#/Payment/v68/overview): Our classic integration for online payments. Current supported version: **v68** +* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v64/overview): Endpoints for sending funds to your customers. Current supported version: **v68** +* [Platforms APIs](https://docs.adyen.com/platforms/api): Set of APIs when using Adyen for Platforms. This API is used for the classic integration. * [Account API](https://docs.adyen.com/api-explorer/#/Account/v6/overview) Current supported version: **v6** * [Fund API](https://docs.adyen.com/api-explorer/#/Fund/v6/overview) Current supported version: **v6** + * [Hosted onboarding API](https://docs.adyen.com/api-explorer/#/Hop/v6/overview): Current supported version: **v6** * [Notification Configuration API](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/v6/overview) Current supported version: **v6** -* [Local/Cloud-based Terminal API](https://docs.adyen.com/point-of-sale/terminal-api-reference): Our point-of-sale integration. -* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v50/overview): The BIN Lookup API provides endpoints for retrieving information based on a given BIN. Current supported version: **v50** +* [POS Terminal Management API](https://docs.adyen.com/api-explorer/#/postfmapi/v1/overview): Endpoints for managing your point-of-sale payment terminals. Current supported version **v1** +* [Recurring API](https://docs.adyen.com/api-explorer/#/Recurring/v68/overview): Endpoints for managing saved payment details. Current supported version: **v68** +* [Stored Value API](https://docs.adyen.com/payment-methods/gift-cards/stored-value-api): Manage both online and point-of-sale gift cards and other stored-value cards. Current supported version: **v46** In addition it supports the following type collections: diff --git a/package.json b/package.json index ae8e370..b0c652d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/api-library", - "version": "11.0.0", + "version": "12.0.0", "description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.", "main": "lib/src/index.js", "types": "lib/src/index.d.ts", @@ -37,23 +37,23 @@ "devDependencies": { "@types/jest": "27.5.0", "@types/nock": "11.1.0", - "@typescript-eslint/eslint-plugin": "4.33.0", - "@typescript-eslint/parser": "4.33.0", + "@typescript-eslint/eslint-plugin": "5.35.1", + "@typescript-eslint/parser": "5.35.1", "acorn": "^8.0.1", "coveralls": "3.1.1", "dotenv": "^16.0.0", - "eslint": "7.32.0", + "eslint": "8.22.0", "jest": "^27.0.6", "jest-ts-auto-mock": "^2.0.0", "kind-of": "^6.0.3", "minimist": ">=1.2.3", - "nock": "13.2.6", - "release-it": "15.0.0", + "nock": "13.2.9", + "release-it": "15.4.0", "ts-auto-mock": "^3.3.5", "ts-jest": "^27.0.4", "ts-loader": "8.0.10", "ttypescript": "^1.5.10", - "typescript": "4.7.3" + "typescript": "4.7.4" }, "dependencies": { "https-proxy-agent": "5.0.1" diff --git a/src/__mocks__/base.ts b/src/__mocks__/base.ts index b49ce9f..d2e6f48 100644 --- a/src/__mocks__/base.ts +++ b/src/__mocks__/base.ts @@ -44,7 +44,11 @@ export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => { config.checkoutEndpoint = Client.CHECKOUT_ENDPOINT_TEST; config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_TEST; config.apiKey = apiKey; - config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_TEST; + config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_TEST; + config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_TEST; + config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST; + config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; + config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; return new Client({ config }); }; @@ -112,7 +116,8 @@ const getReversalRequest = (poiTransaction: TransactionIdentification): Reversal TimeStamp: poiTransaction.TimeStamp }, }, - ReversalReason: ReversalReasonType.MerchantCancel + ReversalReason: ReversalReasonType.MerchantCancel, + SaleData: saleData }); const getSaleToPOIRequest = (messageHeader: MessageHeader, request: Partial): SaleToPOIRequest => ({ diff --git a/src/__mocks__/management/requests.ts b/src/__mocks__/management/requests.ts new file mode 100644 index 0000000..cb7ce9b --- /dev/null +++ b/src/__mocks__/management/requests.ts @@ -0,0 +1,225 @@ +export const createMerchantRequest = { + "companyId": "YOUR_COMPANY_ACCOUNT", + "legalEntityId": "YOUR_LEGAL_ENTITY_ID", + "businessLineId": "YOUR_BUSINESS_LINE_ID", + "description": "YOUR_DESCRIPTION", + "reference": "YOUR_OWN_REFERENCE" +}; + +export const allowedOrigin = { + "_links": { "self": { "href": "string" } }, + "domain": "string", + "id": "string" +}; + +export const createMerchantApiCredentialRequest = { + "roles": [ + "Checkout webservice role" + ], + "allowedOrigins": [ + "https://www.mystore.com" + ] +}; + +export const updateMerchantApiCredentialRequest = { + "active": false, + "allowedOrigins": ["string"], + "description": "string", + "roles": ["string"] +}; + +export const paymentMethodSetupInfo = { + "type": "visa", + "currencies": [ + "USD" + ], + "countries": [ + "US" + ] +}; + +export const updatePaymentMethodInfo = { + "countries": ["string"], + "currencies": ["string"], + "enabled": false +}; + +export const payoutSettingsRequest = { + "enabled": false, + "enabledFromDate": "string", + "transferInstrumentId": "string" +}; + +export const updatePayoutSettingsRequest = { "enabled": false }; + +export const shippingLocation = { + "name": "YOUR_MERCHANT_ACCOUNT Barcelona depot", + "address": { + "companyName": "YOUR_COMPANY", + "streetAddress": "El quinto pino 42", + "postalCode": "08012", + "city": "Barcelona", + "stateOrProvince": "", + "country": "ES" + }, + "contact": { + "firstName": "Rita", + "lastName": "Perengano", + "phoneNumber": "+34 93 1234567", + "email": "Rita.Perengano@company.com" + } +}; + +export const terminalOrderRequest = { + "shippingLocation": "S2-73536B20665526704F30792642212044452F714622375D477270", + "items": [ + { + "id": "TBOX-V400m-684-EU", + "name": "V400m Package", + "quantity": 1 + }, + { + "id": "PART-287001-EU", + "name": "Bluetooth Charging Base - V400m", + "quantity": 2 + }, + { + "id": "PART-620222-EU", + "name": "Receipt Roll", + "quantity": 20 + } + ] +}; + +export const logo = { + "data": "" +}; + +export const terminalSettings = { + "wifiProfiles": { + "profiles": [ + { + "authType": "wpa-eap", + "autoWifi": false, + "bssType": "infra", + "channel": 0, + "defaultProfile": true, + "eap": "peap", + "eapCaCert": { + "data": "MD1rKS05M2JqRVFNQ...RTtLH1tLWo=", + "name": "eap-peap-ca.pem" + }, + "eapIdentity": "admin", + "eapIntermediateCert": { + "data": "PD3tUS1CRDdJTiGDR...EFoLS0tLQg=", + "name": "eap-peap-client.pem" + }, + "eapPwd": "EAP_PEAP_PASSWORD", + "hiddenSsid": false, + "name": "Profile-eap-peap-1", + "ssid": "your-network", + "wsec": "ccmp" + }, + { + "authType": "wpa-psk", + "autoWifi": false, + "bssType": "infra", + "channel": 0, + "defaultProfile": false, + "hiddenSsid": false, + "name": "Profile-guest-wifi", + "psk": "WIFI_PASSWORD", + "ssid": "your-network", + "wsec": "ccmp" + } + ], + "settings": { + "band": "2.4GHz", + "roaming": true, + "timeout": 5 + } + } +}; + +export const createMerchantUserRequest = { + "name": { + "firstName": "John", + "lastName": "Smith" + }, + "username": "johnsmith", + "email": "john.smith@example.com", + "timeZoneCode": "Europe/Amsterdam", + "roles": [ + "Merchant standard role" + ], + "associatedMerchantAccounts": [ + "YOUR_MERCHANT_ACCOUNT" + ] +}; + +export const updateMerchantUserRequest = { + "accountGroups": ["string"], + "active": false, + "email": "string", + "name": { + "firstName": "string", + "lastName": "string" + }, + "roles": ["string"], + "timeZoneCode": "string" +}; + +export const createMerchantWebhookRequest = { + "acceptsExpiredCertificate": false, + "acceptsSelfSignedCertificate": false, + "acceptsUntrustedRootCertificate": false, + "active": false, + "additionalSettings": { + "includeEventCodes": ["string"], + "properties": { "sample": false } + }, + "communicationFormat": "HTTP", + "description": "string", + "networkType": "LOCAL", + "password": "string", + "populateSoapActionHeader": false, + "sslVersion": "HTTP", + "type": "string", + "url": "string", + "username": "string" +}; + +export const updateMerchantWebhookRequest = { + "acceptsExpiredCertificate": false, + "acceptsSelfSignedCertificate": false, + "acceptsUntrustedRootCertificate": false, + "active": false, + "additionalSettings": { + "includeEventCodes": ["string"], + "properties": { "sample": false } + }, + "communicationFormat": "HTTP", + "description": "string", + "networkType": "LOCAL", + "password": "string", + "populateSoapActionHeader": false, + "sslVersion": "HTTP", + "url": "string", + "username": "string" +}; + +export const testWebhookRequest = { + "notification": { + "amount": { + "currency": "string", + "value": 0 + }, + "eventCode": "string", + "eventDate": "string", + "merchantReference": "string", + "paymentMethod": "string", + "reason": "string", + "success": false + }, + "types": ["string"] +}; diff --git a/src/__mocks__/management/responses.ts b/src/__mocks__/management/responses.ts new file mode 100644 index 0000000..1943783 --- /dev/null +++ b/src/__mocks__/management/responses.ts @@ -0,0 +1,1506 @@ +export const listMerchantResponse = { + "_links": { + "first": { + "href": "https://management-test.adyen.com/v1/merchants?pageNumber=1&pageSize=10" + }, + "last": { + "href": "https://management-test.adyen.com/v1/merchants?pageNumber=3&pageSize=10" + }, + "next": { + "href": "https://management-test.adyen.com/v1/merchants?pageNumber=2&pageSize=10" + }, + "self": { + "href": "https://management-test.adyen.com/v1/merchants?pageNumber=1&pageSize=10" + } + }, + "itemsTotal": 23, + "pagesTotal": 3, + "data": [ + { + "id": "YOUR_MERCHANT_ACCOUNT_1", + "name": "YOUR_MERCHANT_NAME_1", + "captureDelay": "immediate", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_1", + "merchantCity": "Amsterdam", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_1" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_1/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_1/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_1/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_2", + "name": "YOUR_MERCHANT_NAME_2", + "captureDelay": "immediate", + "defaultShopperInteraction": "POS", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_2", + "merchantCity": "", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_2" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_2/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_2/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_2/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_3", + "status": "YOUR_MERCHANT_NAME_3", + "merchantCity": "Amsterdam", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_3" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_3/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_3/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_3/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_4", + "name": "YOUR_MERCHANT_NAME_4", + "captureDelay": "immediate", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_4", + "merchantCity": "Sao Paulo", + "primarySettlementCurrency": "BRL", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_4" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_4/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_4/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_4/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_5", + "name": "YOUR_MERCHANT_NAME_5", + "captureDelay": "3", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_5", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_5" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_5/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_5/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_5/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_6", + "name": "YOUR_MERCHANT_NAME_6", + "captureDelay": "immediate", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_6", + "merchantCity": "Zagreb", + "primarySettlementCurrency": "BRL", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_NAME_6" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_NAME_6/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_NAME_6/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_NAME_6/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_7", + "name": "YOUR_MERCHANT_NAME_7", + "captureDelay": "manual", + "defaultShopperInteraction": "Moto", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_7", + "merchantCity": "Amsterdam", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_7" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_7/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_7/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_7/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_8", + "name": "YOUR_MERCHANT_NAME_8", + "captureDelay": "immediate", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_8", + "merchantCity": "Amsterdam", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_8" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_8/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_8/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_8/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_9", + "name": "YOUR_MERCHANT_NAME_9", + "captureDelay": "3", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_9", + "merchantCity": "", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_9" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_9/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_9/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_9/webhooks" + } + } + }, + { + "id": "YOUR_MERCHANT_ACCOUNT_10", + "name": "YOUR_MERCHANT_NAME_10", + "captureDelay": "manual", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL_10", + "merchantCity": "Paris", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_10" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_10/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_10/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT_10/webhooks" + } + } + } + ] +}; + +export const createMerchantResponse = { + "companyId": "YOUR_COMPANY_ACCOUNT", + "legalEntityId": "YOUR_LEGAL_ENTITY_ID", + "businessLineId": "YOUR_BUSINESS_LINE_ID", + "description": "YOUR_DESCRIPTION", + "reference": "YOUR_OWN_REFERENCE", + "id": "YOUR_OWN_REFERENCE" +}; + +export const merchant = { + "id": "YOUR_MERCHANT_ACCOUNT", + "name": "YOUR_MERCHANT_NAME", + "captureDelay": "manual", + "defaultShopperInteraction": "Ecommerce", + "status": "Active", + "shopWebAddress": "YOUR_SHOP_URL", + "merchantCity": "Amsterdam", + "primarySettlementCurrency": "EUR", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + }, + "apiCredentials": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials" + }, + "users": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/users" + }, + "webhooks": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/webhooks" + } + } +}; + +export const requestActivationResponse = { + "companyId": "string", + "merchantId": "string" +}; + +export const allowedOriginsResponse = { + "data": [{ + "_links": { "self": { "href": "string" } }, + "domain": "string", + "id": "string" + }] +}; + +export const allowedOrigin = { + "_links": { "self": { "href": "string" } }, + "domain": "string", + "id": "string" +}; + +export const listMerchantApiCredentialsResponse = { + "_links": { + "first": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials?pageNumber=1&pageSize=10" + }, + "last": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials?pageNumber=2&pageSize=10" + }, + "next": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials?pageNumber=2&pageSize=10" + }, + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials?pageNumber=1&pageSize=10" + } + }, + "itemsTotal": 11, + "pagesTotal": 2, + "data": [ + { + "id": "YOUR_API_CREDENTIAL_1", + "username": "YOUR_USERNAME_1", + "allowedIpAddresses": [], + "roles": [ + "Merchant Report Download role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_CREDENTIAL_1" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_CREDENTIAL_1/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_CREDENTIAL_1/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_CREDENTIAL_1/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_2", + "username": "YOUR_USERNAME_2", + "allowedIpAddresses": [], + "roles": [ + "Merchant Rss feed role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_2" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_2/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_2/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_2/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_3", + "username": "YOUR_USERNAME_3", + "clientKey": "YOUR_CLIENT_KEY_3", + "allowedIpAddresses": [], + "roles": [ + "Merchant iDeal-API Webservice role", + "Management API - Accounts read", + "Management API - API credentials read and write", + "Management API \u2014 Payment methods read", + "Merchant PAL Donation role", + "Merchant PAL Charity role", + "Checkout encrypted cardholder data", + "Checkout webservice role", + "Store payout detail and submit payout - withdrawal", + "Management API - Accounts read and write", + "Management API - Webhooks read", + "Merchant Payout role", + "API tokenise payment details", + "General API Payments role", + "API Supply MPI data with Payments", + "API Authorise Referred Payments", + "API PCI Payments role", + "CSC Tokenization Webservice role", + "Management API - Stores read", + "API Payment RefundWithData", + "API Clientside Encryption Payments role", + "API to retrieve authentication data", + "Management API - Stores read and write", + "Management API - Webhooks read and write", + "Mastercard inControl service", + "Merchant Recurring role", + "Management API - Payout Account Settings Read", + "API surcharge cost estimation and regulatory information", + "Store payout detail", + "Merchant PAL Webservice role" + ], + "active": true, + "allowedOrigins": [ + { + "id": "YOUR_ALLOWED_ORIGIN_1", + "domain": "YOUR_DOMAIN_1", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3/allowedOrigins/YOUR_ALLOWED_ORIGIN_1" + } + } + }, + { + "id": "YOUR_ALLOWED_ORIGIN_2", + "domain": "YOUR_DOMAIN_2", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3/allowedOrigins/YOUR_ALLOWED_ORIGIN_2" + } + } + } + ], + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_3/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_4", + "username": "YOUR_USERNAME_4", + "clientKey": "YOUR_CLIENT_KEY_4", + "allowedIpAddresses": [], + "roles": [ + "API Clientside Encryption Payments role", + "API tokenise payment details", + "General API Payments role", + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "API PCI Payments role", + "CSC Tokenization Webservice role", + "Checkout webservice role", + "ThreeDSecure WebService Role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_4" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_4/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_4/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_4/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_5", + "username": "YOUR_USERNAME_5", + "clientKey": "YOUR_CLIENT_KEY_5", + "allowedIpAddresses": [], + "roles": [ + "Merchant iDeal-API Webservice role", + "General API Payments role", + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_5" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_5/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_5/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_5/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_6", + "username": "YOUR_USERNAME_6", + "allowedIpAddresses": [], + "roles": [ + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "API PCI Payments role", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_6" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_6/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_6/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_6/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_7", + "username": "YOUR_USERNAME_7", + "allowedIpAddresses": [], + "roles": [ + "Checkout encrypted cardholder data", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_7" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_7/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_7/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_7/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_8", + "username": "YOUR_USERNAME_8", + "clientKey": "YOUR_CLIENT_KEY_8", + "allowedIpAddresses": [], + "roles": [ + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_8" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_8/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_8/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_8/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_9", + "username": "YOUR_USERNAME_9", + "clientKey": "YOUR_CLIENT_KEY_9", + "allowedIpAddresses": [], + "roles": [ + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "API PCI Payments role", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_9" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_9/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_9/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_9/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + }, + { + "id": "YOUR_API_CREDENTIAL_10", + "username": "YOUR_USERNAME_10", + "clientKey": "YOUR_CLIENT_KEY_10", + "allowedIpAddresses": [], + "roles": [ + "Checkout encrypted cardholder data", + "Merchant Recurring role", + "Checkout webservice role", + "Merchant PAL Webservice role" + ], + "active": true, + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_10" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_10/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_10/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL_10/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + } + } + ] +}; + +export const createApiCredentialResponse = { + "id": "YOUR_API_CREDENTIAL", + "username": "YOUR_USERNAME", + "clientKey": "YOUR_CLIENT_KEY", + "allowedIpAddresses": [], + "roles": [ + "Checkout webservice role" + ], + "active": true, + "allowedOrigins": [ + { + "id": "YOUR_ALLOWED_ORIGIN", + "domain": "https://www.mystore.com", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins/YOUR_ALLOWED_ORIGIN" + } + } + } + ], + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/allowedOrigins" + }, + "generateApiKey": { + "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/generateApiKey" + }, + "generateClientKey": { + "href": "https://management-test.adyen.com/v1/companies/YOUR_COMPANY_ACCOUNT/apiCredentials/YOUR_API_CREDENTIAL/generateClientKey" + }, + "merchant": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT" + } + }, + "apiKey": "YOUR_API_KEY", + "password": "YOUR_PASSWORD" +}; + +export const apiCredential = { + "_links": { + "allowedOrigins": { "href": "string" }, + "company": { "href": "string" }, + "generateApiKey": { "href": "string" }, + "generateClientKey": { "href": "string" }, + "merchant": { "href": "string" }, + "self": { "href": "string" } + }, + "active": false, + "allowedIpAddresses": ["string"], + "allowedOrigins": [{ + "_links": { "self": { "href": "string" } }, + "domain": "string", + "id": "string" + }], + "clientKey": "string", + "description": "string", + "id": "string", + "roles": ["string"], + "username": "string" +}; + +export const generateApiKeyResponse = { "apiKey": "string" }; + +export const generateClientKeyResponse = { "clientKey": "string" }; + +export const paymentMethodResponse = { + "_links": { + "first": { "href": "string" }, + "last": { "href": "string" }, + "next": { "href": "string" }, + "prev": { "href": "string" }, + "self": { "href": "string" } + }, + "data": [{ + "applePay": { "domains": ["string"] }, + "bcmc": { "enableBcmcMobile": false }, + "businessLineId": "string", + "cartesBancaires": { "siret": "string" }, + "countries": ["string"], + "currencies": ["string"], + "enabled": false, + "giroPay": { "supportEmail": "string" }, + "id": "string", + "klarna": { + "autoCapture": false, + "disputeEmail": "string", + "region": "NA", + "supportEmail": "string" + }, + "paypal": { + "directCapture": false, + "directSettlement": false, + "payerId": "string", + "subject": "string" + }, + "sofort": { + "currencyCode": "string", + "logo": "string" + }, + "storeId": "string", + "swish": { "swishNumber": "string" }, + "type": "string" + }], + "itemsTotal": 0, + "pagesTotal": 0 +}; + +export const paymentMethod = { + "applePay": { "domains": ["string"] }, + "bcmc": { "enableBcmcMobile": false }, + "businessLineId": "string", + "cartesBancaires": { "siret": "string" }, + "countries": ["string"], + "currencies": ["string"], + "enabled": false, + "giroPay": { "supportEmail": "string" }, + "id": "string", + "klarna": { + "autoCapture": false, + "disputeEmail": "string", + "region": "NA", + "supportEmail": "string" + }, + "paypal": { + "directCapture": false, + "directSettlement": false, + "payerId": "string", + "subject": "string" + }, + "sofort": { + "currencyCode": "string", + "logo": "string" + }, + "storeId": "string", + "swish": { "swishNumber": "string" }, + "type": "string" +}; + +export const payoutSettingsResponse = { + "data": [{ + "allowed": false, + "enabled": false, + "enabledFromDate": "string", + "id": "string", + "priority": "first", + "transferInstrumentId": "string", + "verificationStatus": "invalid" + }] +}; + +export const payoutSettings = { + "allowed": false, + "enabled": false, + "enabledFromDate": "string", + "id": "string", + "priority": "first", + "transferInstrumentId": "string", + "verificationStatus": "invalid" +}; + +export const billingEntitiesResponse = { + "data": [ + { + "id": "MerchantAccount.YOUR_MERCHANT_ACCOUNT", + "name": "YOUR_MERCHANT_ACCOUNT", + "taxId": "ES1234567890", + "email": "Pablo.Mengano@company.com", + "address": { + "streetAddress": "Paseo de la Castellana 43, 7", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + } + ] +}; + +export const shippingLocationsResponse = { + "data": [ + { + "id": "S2-6A6C2E3432747D4F2F2C3455485E3836457D", + "name": "YOUR_COMPANY Spain", + "contact": { + "firstName": "Pablo", + "lastName": "Mengano", + "phoneNumber": "+34911234567", + "email": "Pablo.Mengano@company.com" + }, + "address": { + "streetAddress": "Paseo de la Castellana 43", + "streetAddress2": "7 piso", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + } + ] +}; + +export const shippingLocation = { + "id": "S2-73536B20665526704F30792642212044452F714622375D477270", + "name": "YOUR_MERCHANT_ACCOUNT Barcelona depot", + "contact": { + "firstName": "Rita", + "lastName": "Perengano", + "phoneNumber": "+34931234567", + "email": "Rita.Perengano@company.com" + }, + "address": { + "companyName": "YOUR_COMPANY", + "streetAddress": "El quinto pino 42", + "postalCode": "08012", + "city": "Barcelona", + "stateOrProvince": "" + } +}; + +export const terminalModelsResponse = { + "data": [ + { + "id": "Verifone.e315", + "name": "Verifone e315" + }, + { + "id": "Verifone.e315M", + "name": "Verifone e315M" + }, + { + "id": "Verifone.E355", + "name": "Verifone E355" + }, + { + "id": "Verifone.M400", + "name": "Verifone M400" + }, + { + "id": "Verifone.MX915", + "name": "Verifone MX915" + }, + { + "id": "Verifone.MX925", + "name": "Verifone MX925" + }, + { + "id": "Verifone.P400", + "name": "Verifone P400" + }, + { + "id": "Verifone.P400Plus", + "name": "Verifone P400Plus" + }, + { + "id": "Verifone.P400Eth", + "name": "Verifone P400Eth" + }, + { + "id": "Verifone.V240m", + "name": "Verifone V240m" + }, + { + "id": "Verifone.V240mPlus", + "name": "Verifone V240mPlus" + }, + { + "id": "Verifone.UX300", + "name": "Verifone UX300" + }, + { + "id": "Verifone.V200cPlus", + "name": "Verifone V200cPlus" + }, + { + "id": "Verifone.V400cPlus", + "name": "Verifone V400cPlus" + }, + { + "id": "Verifone.V400m", + "name": "Verifone V400m" + }, + { + "id": "Verifone.V210mPlus", + "name": "Verifone V210mPlus" + }, + { + "id": "Verifone.VX520", + "name": "Verifone VX520" + }, + { + "id": "Verifone.VX6753G", + "name": "Verifone VX6753G" + }, + { + "id": "Verifone.VX675WIFIBT", + "name": "Verifone VX675WIFIBT" + }, + { + "id": "Verifone.VX680", + "name": "Verifone VX680" + }, + { + "id": "Verifone.VX6803G", + "name": "Verifone VX6803G" + }, + { + "id": "Verifone.VX690", + "name": "Verifone VX690" + }, + { + "id": "Verifone.VX700", + "name": "Verifone VX700" + }, + { + "id": "Verifone.VX810", + "name": "Verifone VX810" + }, + { + "id": "Verifone.VX820", + "name": "Verifone VX820" + }, + { + "id": "Verifone.VX825", + "name": "Verifone VX825" + }, + { + "id": "Verifone.e285", + "name": "Verifone e285" + }, + { + "id": "Verifone.E285", + "name": "Verifone E285" + }, + { + "id": "Verifone.e285p", + "name": "Verifone e285p" + }, + { + "id": "Verifone.e280", + "name": "Verifone e280" + }, + { + "id": "Verifone.UX410", + "name": "Verifone UX410" + }, + { + "id": "Castles.S1E", + "name": "Castles S1E" + }, + { + "id": "Castles.S1EL", + "name": "Castles S1EL" + }, + { + "id": "Castles.S1F", + "name": "Castles S1F" + }, + { + "id": "Castles.S1F2", + "name": "Castles S1F2" + }, + { + "id": "Castles.S1F2L", + "name": "Castles S1F2L" + }, + { + "id": "Castles.S1E2", + "name": "Castles S1E2" + }, + { + "id": "Castles.S1E2L", + "name": "Castles S1E2L" + } + ] +}; + +export const terminalOrdersResponse = { + "data": [ + { + "id": "4154567890100682", + "customerOrderReference": "YOUR_REFERENCE_M2", + "status": "Placed", + "shippingLocation": { + "id": "S2-6A6C2E3432747D4F2F2C3455485E3836457D", + "name": "YOUR_COMPANY Spain", + "contact": { + "firstName": "Pablo", + "lastName": "Mengano", + "phoneNumber": "+34911234567", + "email": "Pablo.Mengano@company.com" + }, + "address": { + "streetAddress": "Paseo de la Castellana 43", + "streetAddress2": "7 piso", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "billingEntity": { + "id": "MerchantAccount.YOUR_MERCHANT_ACCOUNT", + "name": "YOUR_MERCHANT_ACCOUNT", + "taxId": "ES1234567890", + "email": "Pablo.Mengano@company.com", + "address": { + "streetAddress": "Paseo de la Castellana 43, 7", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "orderDate": "2022-01-21T16:12:33Z", + "items": [ + { + "id": "PART-287001-EU", + "name": "Bluetooth Charging Base - V400m", + "quantity": 2 + }, + { + "id": "PART-620222-EU", + "name": "Receipt Roll", + "quantity": 20 + } + ] + }, + { + "id": "8315943674501996", + "customerOrderReference": "YOUR_REFERENCE_M1", + "status": "Cancelled", + "shippingLocation": { + "id": "S2-6A6C2E3432747D4F2F2C3455485E3836457D", + "name": "YOUR_COMPANY Spain", + "contact": { + "firstName": "Pablo", + "lastName": "Mengano", + "phoneNumber": "+34911234567", + "email": "Pablo.Mengano@company.com" + }, + "address": { + "streetAddress": "Paseo de la Castellana 43", + "streetAddress2": "7 piso", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "billingEntity": { + "id": "MerchantAccount.YOUR_MERCHANT_ACCOUNT", + "name": "YOUR_MERCHANT_ACCOUNT", + "taxId": "ES1234567890", + "email": "Pablo.Mengano@company.com", + "address": { + "streetAddress": "Paseo de la Castellana 43, 7", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "orderDate": "2022-01-04T09:41:07.000Z", + "items": [ + { + "id": "TBOX-V400m-774-EU", + "name": "V400m Package", + "quantity": 1 + } + ] + } + ] +}; + +export const terminalOrder = { + "id": "4154567890100682", + "customerOrderReference": "YOUR_REFERENCE", + "status": "Cancelled", + "shippingLocation": { + "id": "S2-6A6C2E3432747D4F2F2C3455485E3836457D", + "name": "YOUR_COMPANY Spain", + "contact": { + "firstName": "Pablo", + "lastName": "Mengano", + "phoneNumber": "+34911234567", + "email": "Pablo.Mengano@company.com" + }, + "address": { + "streetAddress": "Paseo de la Castellana 43", + "streetAddress2": "7 piso", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "billingEntity": { + "id": "MerchantAccount.YOUR_MERCHANT_ACCOUNT", + "name": "YOUR_MERCHANT_ACCOUNT", + "taxId": "ES1234567890", + "email": "Pablo.Mengano@company.com", + "address": { + "streetAddress": "Paseo de la Castellana 43, 7", + "postalCode": "28046", + "city": "Madrid", + "country": "ES" + } + }, + "orderDate": "2022-01-21T16:12:33Z", + "items": [ + { + "id": "PART-287001-EU", + "name": "Bluetooth Charging Base - V400m", + "quantity": 2 + }, + { + "id": "PART-620222-EU", + "name": "Receipt Roll", + "quantity": 20 + } + ] +}; + +export const terminalProductsResponse = { + "data": [ + { + "id": "PART-620222-EU", + "name": "Receipt Roll", + "price": { + "currency": "EUR", + "value": 0.0 + } + }, + { + "id": "PART-175746-EU", + "name": "Adyen Test Card", + "price": { + "currency": "EUR", + "value": 0.0 + } + }, + { + "id": "PART-327486-EU", + "name": "Battery - V400m", + "price": { + "currency": "EUR", + "value": 0.0 + } + }, + { + "id": "PART-287001-EU", + "name": "Bluetooth Charging Base - V400m", + "price": { + "currency": "EUR", + "value": 0.0 + } + }, + { + "id": "PART-745984-EU", + "name": "Power Supply EU - V400m", + "price": { + "currency": "EUR", + "value": 0.0 + } + }, + { + "id": "TBOX-V400m-684-EU", + "name": "V400m Package", + "description": "Includes an EU Power Supply, SIM Card and battery", + "price": { + "currency": "EUR", + "value": 0.0 + }, + "itemsIncluded": [ + "Receipt Roll", + "Terminal Device V400m EU/GB" + ] + } + ] +}; + +export const logo = { + "data": "LOGO_INHERITED_FROM_HIGHER_LEVEL_BASE-64_ENCODED_STRING" +}; + +export const terminalSettings = { + "cardholderReceipt": { + "headerForAuthorizedReceipt": "header1,header2,filler" + }, + "gratuities": [ + { + "currency": "EUR", + "usePredefinedTipEntries": true, + "predefinedTipEntries": [ + "100", + "1%", + "5%" + ], + "allowCustomAmount": true + } + ], + "nexo": { + "nexoEventUrls": [ + "https://your-event-notifications-endpoint.com" + ] + }, + "opi": { + "enablePayAtTable": true, + "payAtTableStoreNumber": "1", + "payAtTableURL": "https:/your-pay-at-table-endpoint.com" + }, + "receiptOptions": {}, + "receiptPrinting": { + "shopperApproved": true, + "shopperRefused": true, + "shopperCancelled": true, + "shopperRefundApproved": true, + "shopperRefundRefused": true, + "shopperVoid": true + }, + "signature": { + "askSignatureOnScreen": true, + "skipSignature": false, + "deviceName": "Amsterdam-236203386" + }, + "wifiProfiles": { + "profiles": [ + { + "authType": "wpa-eap", + "autoWifi": false, + "bssType": "infra", + "channel": 0, + "defaultProfile": true, + "eap": "peap", + "eapCaCert": { + "data": "MD1rKS05M2JqRVFNQ...RTtLH1tLWo=", + "name": "eap-peap-ca.pem" + }, + "eapIdentity": "admin", + "eapIntermediateCert": { + "data": "PD3tUS1CRDdJTiGDR...EFoLS0tLQg=", + "name": "eap-peap-client.pem" + }, + "eapPwd": "EAP_PEAP_PASSWORD", + "hiddenSsid": false, + "name": "Profile-eap-peap-1", + "ssid": "your-network", + "wsec": "ccmp" + }, + { + "authType": "wpa-psk", + "autoWifi": false, + "bssType": "infra", + "channel": 0, + "defaultProfile": false, + "hiddenSsid": false, + "name": "Profile-guest-wifi", + "psk": "WIFI_PASSWORD", + "ssid": "your-network", + "wsec": "ccmp" + } + ], + "settings": { + "band": "2.4GHz", + "roaming": true, + "timeout": 5 + } + }, + "timeouts": { + "fromActiveToSleep": 30 + }, + "hardware": { + "displayMaximumBackLight": 75 + } +}; + +export const listMerchantUsersResponse = { + "_links": { + "first": { "href": "string" }, + "last": { "href": "string" }, + "next": { "href": "string" }, + "prev": { "href": "string" }, + "self": { "href": "string" } + }, + "data": [{ + "_links": { "self": { "href": "string" } }, + "accountGroups": ["string"], + "active": false, + "email": "string", + "id": "string", + "name": { + "firstName": "string", + "lastName": "string" + }, + "roles": ["string"], + "timeZoneCode": "string", + "username": "string" + }], + "itemsTotal": 0, + "pagesTotal": 0 +}; + +export const createUserResponse = { + "id": "S2-3B3C3C3B22", + "name": { + "firstName": "John", + "gender": "UNKNOWN", + "lastName": "Smith" + }, + "email": "john.smith@example.com", + "timeZoneCode": "Europe/Amsterdam", + "username": "johnsmith", + "roles": [ + "Merchant standard role" + ], + "active": "true", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/merchants/YOUR_MERCHANT_ACCOUNT/users/S2-3B3C3C3B22" + } + }, + "associatedMerchantAccounts": [ + "YOUR_MERCHANT_ACCOUNT" + ] +}; + +export const user = { + "_links": { "self": { "href": "string" } }, + "accountGroups": ["string"], + "active": false, + "email": "string", + "id": "string", + "name": { + "firstName": "string", + "lastName": "string" + }, + "roles": ["string"], + "timeZoneCode": "string", + "username": "string" +}; + +export const listWebhooksResponse = { + "_links": { + "first": { "href": "string" }, + "last": { "href": "string" }, + "next": { "href": "string" }, + "prev": { "href": "string" }, + "self": { "href": "string" } + }, + "accountReference": "string", + "data": [{ + "_links": { + "company": { "href": "string" }, + "generateHmac": { "href": "string" }, + "merchant": { "href": "string" }, + "self": { "href": "string" }, + "testWebhook": { "href": "string" } + }, + "acceptsExpiredCertificate": false, + "acceptsSelfSignedCertificate": false, + "acceptsUntrustedRootCertificate": false, + "accountReference": "string", + "active": false, + "additionalSettings": { + "excludeEventCodes": ["string"], + "includeEventCodes": ["string"], + "properties": { "sample": false } + }, + "certificateAlias": "string", + "communicationFormat": "HTTP", + "description": "string", + "filterMerchantAccountType": "EXCLUDE_LIST", + "filterMerchantAccounts": ["string"], + "hasError": false, + "hasPassword": false, + "hmacKeyCheckValue": "string", + "id": "string", + "networkType": "LOCAL", + "populateSoapActionHeader": false, + "sslVersion": "HTTP", + "type": "string", + "url": "string", + "username": "string" + }], + "itemsTotal": 0, + "pagesTotal": 0 +}; + +export const webhook = { + "_links": { + "company": { "href": "string" }, + "generateHmac": { "href": "string" }, + "merchant": { "href": "string" }, + "self": { "href": "string" }, + "testWebhook": { "href": "string" } + }, + "acceptsExpiredCertificate": false, + "acceptsSelfSignedCertificate": false, + "acceptsUntrustedRootCertificate": false, + "accountReference": "string", + "active": false, + "additionalSettings": { + "excludeEventCodes": ["string"], + "includeEventCodes": ["string"], + "properties": { "sample": false } + }, + "certificateAlias": "string", + "communicationFormat": "HTTP", + "description": "string", + "filterMerchantAccountType": "EXCLUDE_LIST", + "filterMerchantAccounts": ["string"], + "hasError": false, + "hasPassword": false, + "hmacKeyCheckValue": "string", + "id": "string", + "networkType": "LOCAL", + "populateSoapActionHeader": false, + "sslVersion": "HTTP", + "type": "string", + "url": "string", + "username": "string" +}; + +export const generateHmacKeyResponse = { "hmacKey": "string" }; + +export const testWebhookResponse = { + "data": [{ + "merchantId": "string", + "output": "string", + "requestSent": "string", + "responseCode": "string", + "responseTime": "string", + "status": "string" + }] +}; diff --git a/src/__mocks__/recurring/listRecurringDetailsSuccess.ts b/src/__mocks__/recurring/listRecurringDetailsSuccess.ts index 5d43bee..651a827 100644 --- a/src/__mocks__/recurring/listRecurringDetailsSuccess.ts +++ b/src/__mocks__/recurring/listRecurringDetailsSuccess.ts @@ -21,59 +21,55 @@ export const listRecurringDetailsSuccess = { "creationDate": "2017-03-01T11:53:11+01:00", "details": [ { - "RecurringDetail": { - "acquirer": "TestPmmAcquirer", - "acquirerAccount": "TestPmmAcquirerAccount", - "additionalData": { - "cardBin": "411111" - }, - "alias": "cardAlias", - "aliasType": "Default", - "card": { - "expiryMonth": "8", - "expiryYear": "2018", - "holderName": "Holder", - "number": "1111" - }, - "contractTypes": [ - "ONECLICK" - ], - "creationDate": "2017-03-07T09:43:33+01:00", - "firstPspReference": "8524888762135795", - "paymentMethodVariant": "visa", - "recurringDetailReference": "recurringReference", - "variant": "visa" - } + "acquirer": "TestPmmAcquirer", + "acquirerAccount": "TestPmmAcquirerAccount", + "additionalData": { + "cardBin": "411111" + }, + "alias": "cardAlias", + "aliasType": "Default", + "card": { + "expiryMonth": "8", + "expiryYear": "2018", + "holderName": "Holder", + "number": "1111" + }, + "contractTypes": [ + "ONECLICK" + ], + "creationDate": "2017-03-07T09:43:33+01:00", + "firstPspReference": "8524888762135795", + "paymentMethodVariant": "visa", + "recurringDetailReference": "recurringReference", + "variant": "visa" }, { - "RecurringDetail": { - "acquirer": "PayPalSandbox", - "acquirerAccount": "TestPmmAcquirerAccount", - "billingAddress": { - "city": "City", - "country": "NL", - "houseNumberOrName": "1", - "postalCode": "2312aa", - "stateOrProvince": "NA", - "street": "Street" + "acquirer": "PayPalSandbox", + "acquirerAccount": "TestPmmAcquirerAccount", + "billingAddress": { + "city": "City", + "country": "NL", + "houseNumberOrName": "1", + "postalCode": "2312aa", + "stateOrProvince": "NA", + "street": "Street" + }, + "contractTypes": [ + "RECURRING" + ], + "creationDate": "2017-10-10T08:50:02+02:00", + "firstPspReference": "8515076181707110", + "paymentMethodVariant": "paypal", + "recurringDetailReference": "8315076181982020", + "tokenDetails": { + "tokenData": { + "EmailId": "tedtest@test.nl", + "PayPal.PayerId": "H95EPL8B2KFE6", + "BillingAgreementId": "B-7MA42752FE774625C" }, - "contractTypes": [ - "RECURRING" - ], - "creationDate": "2017-10-10T08:50:02+02:00", - "firstPspReference": "8515076181707110", - "paymentMethodVariant": "paypal", - "recurringDetailReference": "8315076181982020", - "tokenDetails": { - "tokenData": { - "EmailId": "tedtest@test.nl", - "PayPal.PayerId": "H95EPL8B2KFE6", - "BillingAgreementId": "B-7MA42752FE774625C" - }, - "tokenDataType": "PayPal" - }, - "variant": "paypal" - } + "tokenDataType": "PayPal" + }, + "variant": "paypal" } ], "shopperReference": "test-123", diff --git a/src/__tests__/balancePlatform.spec.ts b/src/__tests__/balancePlatform.spec.ts new file mode 100644 index 0000000..e52a70a --- /dev/null +++ b/src/__tests__/balancePlatform.spec.ts @@ -0,0 +1,894 @@ +import nock from "nock"; +import Client from "../client"; +import { createClient } from "../__mocks__/base"; +import BalancePlatform from "../services/balancePlatform"; +import * as models from "../typings/balancePlatform/models"; +import { AccountHolderUpdate } from "../services/balancePlaftform/accountHolders"; +import { SweepConfigurationV2Create, SweepConfigurationV2Update } from "../services/balancePlaftform/balanceAccounts"; +import { TransactionRuleInfoUpdate } from "../services/balancePlaftform/transactionRules"; + +let client: Client; +let balancePlatform: BalancePlatform; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.balancePlatformEndpoint}/${Client.BALANCE_PLATFORM_API_VERSION}`); + balancePlatform = new BalancePlatform(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("Balance Platform", (): void => { + const balanceAccountId = "BA32272223222B59CZ3T52DKZ"; + const sweepId = "SWPC4227C224555B5FTD2NT2JV4WN5"; + const paymentInstrumentId = "PI32272223222B5CMD3MQ3HXX"; + const paymentInstrumentGroupId = "PG3227C223222B5CMD3FJFKGZ"; + const transactionRuleId = "TR3227C223222B5FCB756DV9H"; + + describe("AccountHolders", (): void => { + it("should support POST /accountHolders", async (): Promise => { + scope.post("/accountHolders") + .reply(200, { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "contactDetails": { + "email": "s.hopper@example.com", + "phone": { + "number": "+315551231234", + "type": "Mobile" + }, + "address": { + "city": "Amsterdam", + "country": "NL", + "street": "Brannan Street", + "houseNumberOrName": "274", + "postalCode": "1020CD" + } + }, + "description": "S.Hopper - Staff 123", + "legalEntityId": "LE322KT223222D5FJ7THR293F", + "id": "AH3227C223222B5CMD2SXFKGT", + "status": "active" + }); + const request: models.AccountHolderInfo = { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "description": "S.Hopper - Staff 123", + "legalEntityId": "LE322KT223222D5FJ7THR293F", + "contactDetails": { + "email": "s.hopper@example.com", + "phone": { + "number": "+315551231234", + "type": models.Phone.TypeEnum.Mobile + }, + "address": { + "city": "Amsterdam", + "country": "NL", + "street": "Brannan Street", + "houseNumberOrName": "274", + "postalCode": "1020CD" + } + } + }; + + const response: models.AccountHolder = await balancePlatform.AccountHolders.create(request); + + expect(response.id).toBe("AH3227C223222B5CMD2SXFKGT"); + expect(response.legalEntityId).toBe("LE322KT223222D5FJ7THR293F"); + }); + + it("should support GET /accountHolders/{id}", async (): Promise => { + scope.get("/accountHolders/AH32272223222B5CM4MWJ892H") + .reply(200, { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "contactDetails": { + "address": { + "city": "Amsterdam", + "country": "NL", + "houseNumberOrName": "274", + "postalCode": "1020CD", + "street": "Brannan Street" + }, + "email": "s.hopper@example.com", + "phone": { + "number": "+315551231234", + "type": "Mobile" + } + }, + "description": "S.Hopper - Staff 123", + "id": "AH32272223222B5CM4MWJ892H", + "status": "Active" + }); + + const response: models.AccountHolder = await balancePlatform.AccountHolders.retrieve("AH32272223222B5CM4MWJ892H"); + + expect(response.id).toBe("AH32272223222B5CM4MWJ892H"); + expect(response.balancePlatform).toBe("YOUR_BALANCE_PLATFORM"); + }); + + it("should support PATCH /accountHolders/{id}", async (): Promise => { + scope.patch("/accountHolders/AH32272223222B5CM4MWJ892H") + .reply(200, { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "contactDetails": { + "address": { + "city": "Amsterdam", + "country": "NL", + "houseNumberOrName": "274", + "postalCode": "1020CD", + "street": "Brannan Street" + }, + "email": "s.hopper@example.com", + "phone": { + "number": "+315551231234", + "type": "Mobile" + } + }, + "description": "S.Hopper - Staff 123", + "id": "AH32272223222B5CM4MWJ892H", + "status": "Suspended" + }); + const request: AccountHolderUpdate = { + status: models.AccountHolder.StatusEnum.Suspended, + legalEntityId: "LE322KT223222D5FJ7THR293F", + }; + + const response: models.AccountHolder = await balancePlatform.AccountHolders.update("AH32272223222B5CM4MWJ892H", request); + + expect(response.status).toBe("Suspended"); + }); + + it("should support GET /accountHolders/{id}/balanceAccounts", async (): Promise => { + scope.get("/accountHolders/AH32272223222B5CM4MWJ892H/balanceAccounts?limit=5&offset=10") + .reply(200, { + "balanceAccounts": [ + { + "accountHolderId": "AH32272223222B59K6ZKBBFNQ", + "defaultCurrencyCode": "EUR", + "id": "BA32272223222B59K6ZXHBFN6", + "status": "Active" + }, + { + "accountHolderId": "AH32272223222B59K6ZKBBFNQ", + "defaultCurrencyCode": "EUR", + "id": "BA32272223222B59K72CKBFNJ", + "status": "Active" + }, + { + "accountHolderId": "AH32272223222B59K6ZKBBFNQ", + "defaultCurrencyCode": "EUR", + "id": "BA32272223222B5BRR27B2M7G", + "status": "Active" + } + ], + "hasNext": true, + "hasPrevious": false + }); + + const response: models.PaginatedBalanceAccountsResponse = await balancePlatform.AccountHolders.listBalanceAccounts("AH32272223222B5CM4MWJ892H", { + params: { + "limit": "5", + "offset": "10" + } + }); + + expect(response.balanceAccounts[0].id).toBe("BA32272223222B59K6ZXHBFN6"); + }); + }); + + describe("BalanceAccounts", (): void => { + it("should support POST /balanceAccounts", async (): Promise => { + scope.post("/balanceAccounts") + .reply(200, { + "accountHolderId": "AH32272223222B59K6ZKBBFNQ", + "defaultCurrencyCode": "EUR", + "reference": "S.Hopper - Main balance account", + "balances": [ + { + "available": 0, + "balance": 0, + "currency": "EUR", + "reserved": 0 + } + ], + "id": balanceAccountId, + "status": "active" + }); + const request: models.BalanceAccountInfo = { + "accountHolderId": "AH32272223222B59K6ZKBBFNQ", + "description": "S.Hopper - Main balance account" + }; + + const response: models.BalanceAccount = await balancePlatform.BalanceAccounts.create(request); + + expect(response.id).toBe(balanceAccountId); + }); + + it("should support GET /balanceAccounts/{balanceAccountId}/sweeps", async (): Promise => { + scope.get(`/balanceAccounts/${balanceAccountId}/sweeps?limit=5&offset=10`) + .reply(200, { + "hasNext": false, + "hasPrevious": false, + "sweeps": [ + { + "id": sweepId, + "schedule": { + "type": "daily" + }, + "status": "active", + "targetAmount": { + "currency": "EUR", + "value": 0 + }, + "triggerAmount": { + "currency": "EUR", + "value": 0 + }, + "type": "push", + "counterparty": { + "balanceAccountId": "BA32272223222B5FTD2KR6TJD" + }, + "currency": "EUR" + } + ] + }); + + const response: models.BalanceSweepConfigurationsResponse = await balancePlatform.BalanceAccounts.listSweeps(balanceAccountId, { + params: { + "limit": "5", + "offset": "10" + } + }); + + expect(response.hasNext).toBeFalsy(); + expect(response.sweeps.length).toBe(1); + }); + + it("should support POST /balanceAccounts/{balanceAccountId}/sweeps", async (): Promise => { + scope.post(`/balanceAccounts/${balanceAccountId}/sweeps`) + .reply(200, { + "id": sweepId, + "counterparty": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount": { + "currency": "EUR", + "value": 50000 + }, + "currency": "EUR", + "schedule": { + "type": "balance" + }, + "type": "pull", + "status": "active" + }); + const request: SweepConfigurationV2Create = { + "counterparty": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount": { + "currency": "EUR", + "value": 50000 + }, + "currency": "EUR", + "schedule": { + "type": models.SweepSchedule.TypeEnum.Balance + }, + "type": models.SweepConfigurationV2.TypeEnum.Pull, + "status": models.SweepConfigurationV2.StatusEnum.Active + }; + + const response: models.SweepConfigurationV2 = await balancePlatform.BalanceAccounts.createSweep(balanceAccountId, request); + + expect(response.id).toBe(sweepId); + expect(response.triggerAmount!.value).toBe(50000); + }); + + it("should support DELETE /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise => { + scope.delete(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`).reply(204); + + await balancePlatform.BalanceAccounts.deleteSweep(balanceAccountId, sweepId); + }); + + it("should support GET /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise => { + scope.get(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`) + .reply(200, { + "id": sweepId, + "schedule": { + "type": "daily" + }, + "status": "active", + "targetAmount": { + "currency": "EUR", + "value": 0 + }, + "triggerAmount": { + "currency": "EUR", + "value": 0 + }, + "type": "push", + "counterparty": { + "balanceAccountId": "BA32272223222B5FTD2KR6TJD" + }, + "currency": "EUR" + }); + + const response: models.SweepConfigurationV2 = await balancePlatform.BalanceAccounts.retrieveSweep(balanceAccountId, sweepId); + + expect(response.id).toBe(sweepId); + expect(response.status).toBe("active"); + }); + + it("should support PATCH /balanceAccounts/{balanceAccountId}/sweeps/{sweepId}", async (): Promise => { + scope.patch(`/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`) + .reply(200, { + "id": sweepId, + "counterparty": { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }, + "triggerAmount": { + "currency": "EUR", + "value": 50000 + }, + "currency": "EUR", + "schedule": { + "type": "balance" + }, + "type": "pull", + "status": "inactive" + }); + const request: SweepConfigurationV2Update = { + "status": models.SweepConfigurationV2.StatusEnum.Inactive + }; + + const response: models.SweepConfigurationV2 = await balancePlatform.BalanceAccounts.updateSweep(balanceAccountId, sweepId, request); + + expect(response.status).toBe("inactive"); + }); + + it("should support GET /balanceAccounts/{id}", async (): Promise => { + scope.get(`/balanceAccounts/${balanceAccountId}`) + .reply(200, { + "accountHolderId": "AH32272223222B59K6RTQBFNZ", + "defaultCurrencyCode": "EUR", + "balances": [ + { + "available": 0, + "balance": 0, + "currency": "EUR", + "reserved": 0 + } + ], + "id": balanceAccountId, + "status": "Active" + }); + + const response: models.BalanceAccount = await balancePlatform.BalanceAccounts.retrieve(balanceAccountId); + + expect(response.id).toBe(balanceAccountId); + expect(response.status).toBe("Active"); + }); + + it("should support PATCH /balanceAccounts/{id}", async (): Promise => { + scope.patch(`/balanceAccounts/${balanceAccountId}`) + .reply(200, { + "accountHolderId": "string", + "balances": [ + { + "available": 0, + "balance": 0, + "currency": "string", + "reserved": 0 + } + ], + "defaultCurrencyCode": "string", + "description": "Testing", + "id": "string", + "reference": "string", + "status": "active", + "timeZone": "Europe/Amsterdam" + }); + const request: models.BalanceAccountUpdateRequest = { + "description": "Testing", + "status": models.BalanceAccountUpdateRequest.StatusEnum.Active, + "timeZone": "Europe/Amsterdam" + }; + + const response: models.BalanceAccount = await balancePlatform.BalanceAccounts.update(balanceAccountId, request); + + expect(response.status).toBe("active"); + expect(response.timeZone).toBe("Europe/Amsterdam"); + }); + + it("should support GET /balanceAccounts/{id}/paymentInstruments", async (): Promise => { + scope.get(`/balanceAccounts/${balanceAccountId}/paymentInstruments?limit=3&offset=6`) + .reply(200, { + "hasNext": "true", + "hasPrevious": "false", + "paymentInstruments": [ + { + "balanceAccountId": balanceAccountId, + "issuingCountryCode": "GB", + "status": "Active", + "type": "card", + "card": { + "brandVariant": "mc", + "cardholderName": "name", + "formFactor": "virtual", + "bin": "555544", + "expiration": { + "month": "12", + "year": "2022" + }, + "lastFour": "2357", + "number": "************2357" + }, + "id": "PI32272223222B59M5TM658DT" + }, + { + "balanceAccountId": balanceAccountId, + "issuingCountryCode": "GB", + "status": "Active", + "type": "card", + "card": { + "brandVariant": "mc", + "cardholderName": "name", + "formFactor": "virtual", + "bin": "555544", + "expiration": { + "month": "01", + "year": "2023" + }, + "lastFour": "8331", + "number": "************8331" + }, + "id": "PI32272223222B59PXDGQDLSF" + } + ] + }); + + const response: models.PaginatedPaymentInstrumentsResponse = await balancePlatform.BalanceAccounts.listPaymentInstruments(balanceAccountId, { + params: { + limit: "3", + offset: "6", + } + }); + + expect(response.paymentInstruments.length).toBe(2); + expect(response.paymentInstruments[0].id).toBe("PI32272223222B59M5TM658DT"); + }); + }); + + describe("General", (): void => { + it("should support GET /balancePlatforms/{id}", async (): Promise => { + scope.get(`/balancePlatforms/${balanceAccountId}`) + .reply(200, { + "id": balanceAccountId, + "status": "Active" + }); + + const response: models.BalancePlatform = await balancePlatform.General.retrieve(balanceAccountId); + + expect(response.id).toBe(balanceAccountId); + expect(response.status).toBe("Active"); + }); + + it("should support GET /balancePlatforms/{id}/accountHolders", async (): Promise => { + scope.get(`/balancePlatforms/${balanceAccountId}/accountHolders`) + .reply(200, { + "accountHolders": [ + { + "contactDetails": { + "address": { + "city": "Amsterdam", + "country": "NL", + "houseNumberOrName": "6", + "postalCode": "12336750", + "street": "Simon Carmiggeltstraat" + } + }, + "description": "J. Doe", + "id": "AH32272223222B59DDWSCCMP7", + "status": "Active" + }, + { + "contactDetails": { + "address": { + "city": "Amsterdam", + "country": "NL", + "houseNumberOrName": "11", + "postalCode": "12336750", + "street": "Simon Carmiggeltstraat" + } + }, + "description": "S. Hopper", + "id": "AH32272223222B59DJ7QBCMPN", + "status": "Active" + } + ], + "hasNext": "true", + "hasPrevious": "false" + }); + + const response: models.PaginatedAccountHoldersResponse = await balancePlatform.General.listAccountHolders(balanceAccountId); + + expect(response.accountHolders.length).toBe(2); + expect(response.accountHolders[0].id).toBe("AH32272223222B59DDWSCCMP7"); + }); + }); + + describe("PaymentInstruments", (): void => { + it("should support POST /paymentInstruments", async (): Promise => { + scope.post("/paymentInstruments") + .reply(200, { + "balanceAccountId": balanceAccountId, + "description": "S. Hopper - Main card", + "issuingCountryCode": "GB", + "status": "Active", + "type": "card", + "card": { + "brand": "mc", + "brandVariant": "mcdebit", + "cardholderName": "Simon Hopper", + "formFactor": "virtual", + "bin": "555544", + "cvc": "873", + "expiration": { + "month": "01", + "year": "2024" + }, + "lastFour": "3548" + }, + "id": paymentInstrumentId + }); + const request: models.PaymentInstrumentInfo = { + "type": models.PaymentInstrumentInfo.TypeEnum.Card, + "issuingCountryCode": "NL", + "balanceAccountId": balanceAccountId, + "status": models.PaymentInstrumentInfo.StatusEnum.Inactive, + "card": { + "formFactor": models.CardInfo.FormFactorEnum.Physical, + "brand": "mc", + "brandVariant": "mcdebit", + "cardholderName": "Sam Hopper", + "deliveryContact": { + "address": { + "city": "Amsterdam", + "country": "NL", + "stateOrProvince": "NH", + "line1": "Simon Carmiggeltstraat", + "line2": "6-50", + "postalCode": "1011DJ" + }, + "name": { + "firstName": "Sam", + "lastName": "Hopper" + } + }, + "configuration": { + "configurationProfileId": "YOUR_CONFIGURATION_PROFILE_ID" + }, + }, + "description": "S.Hopper - Main card" + }; + + const response: models.PaymentInstrument = await balancePlatform.PaymentInstruments.create(request); + + expect(response.id).toBe(paymentInstrumentId); + expect(response.balanceAccountId).toBe(balanceAccountId); + }); + + it("should support GET /paymentInstruments/{id}", async (): Promise => { + scope.get(`/paymentInstruments/${paymentInstrumentId}`) + .reply(200, { + "balanceAccountId": balanceAccountId, + "description": "S. Hopper - Main card", + "issuingCountryCode": "GB", + "status": "active", + "type": "card", + "card": { + "brand": "mc", + "brandVariant": "mcdebit", + "cardholderName": "Simon Hopper", + "formFactor": "virtual", + "bin": "555544", + "expiration": { + "month": "01", + "year": "2024" + }, + "lastFour": "3548", + "number": "************3548" + }, + "id": paymentInstrumentId + }); + + const response: models.PaymentInstrument = await balancePlatform.PaymentInstruments.retrieve(paymentInstrumentId); + + expect(response.id).toBe(paymentInstrumentId); + expect(response.status).toBe("active"); + }); + + it("should support PATCH /paymentInstruments/{id}", async (): Promise => { + scope.patch(`/paymentInstruments/${paymentInstrumentId}`) + .reply(200, { + "balanceAccountId": "BA32272223222B5CM82WL892M", + "description": "S. Hopper - Main card", + "issuingCountryCode": "GB", + "status": "inactive", + "type": "card", + "card": { + "brand": "mc", + "brandVariant": "mcdebit", + "cardholderName": "Simon Hopper", + "formFactor": "virtual", + "bin": "555544", + "expiration": { + "month": "01", + "year": "2024" + }, + "lastFour": "5785", + "number": "************5785" + }, + "id": paymentInstrumentId + }); + const request: models.PaymentInstrumentUpdateRequest = { + "balanceAccountId": "BA32272223222B5CM82WL892M" + }; + + const response: models.PaymentInstrument = await balancePlatform.PaymentInstruments.update(paymentInstrumentId, request); + + expect(response.id).toBe(paymentInstrumentId); + expect(response.balanceAccountId).toBe("BA32272223222B5CM82WL892M"); + }); + + it("should support GET /paymentInstruments/{id}/transactionRules", async (): Promise => { + scope.get(`/paymentInstruments/${paymentInstrumentId}/transactionRules`) + .reply(200, { + "transactionRules": [ + { + "description": "Allow 5 transactions per month", + "interval": { + "type": "monthly" + }, + "maxTransactions": 5, + "paymentInstrumentGroupId": paymentInstrumentGroupId, + "reference": "myRule12345", + "startDate": "2021-01-25T12:46:35.476629Z", + "status": "active", + "type": "velocity", + "id": "TR32272223222B5CMDGMC9F4F" + }, + { + "amount": { + "currency": "EUR", + "value": 10000 + }, + "description": "Allow up to 100 EUR per month", + "interval": { + "type": "monthly" + }, + "paymentInstrumentGroupId": paymentInstrumentGroupId, + "reference": "myRule16378", + "startDate": "2021-01-25T12:46:35.476629Z", + "status": "active", + "type": "velocity", + "id": "TR32272223222B5CMDGT89F4F" + } + ] + }); + + const response: models.TransactionRulesResponse = await balancePlatform.PaymentInstruments.listTransactionRules(paymentInstrumentId); + + expect(response.transactionRules!.length).toBe(2); + expect(response.transactionRules![0].id).toBe("TR32272223222B5CMDGMC9F4F"); + }); + }); + + describe("PaymentInstrumentGroups", (): void => { + it("should support POST /paymentInstrumentGroups", async (): Promise => { + scope.post("/paymentInstrumentGroups") + .reply(200, { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "txVariant": "mc", + "id": paymentInstrumentGroupId + }); + const request: models.PaymentInstrumentGroupInfo = { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "txVariant": "mc" + }; + + const response: models.PaymentInstrumentGroup = await balancePlatform.PaymentInstrumentGroups.create(request); + + expect(response.id).toBe(paymentInstrumentGroupId); + expect(response.txVariant).toBe("mc"); + }); + + it("should support GET /paymentInstrumentGroups/{id}", async (): Promise => { + scope.get(`/paymentInstrumentGroups/${paymentInstrumentGroupId}`) + .reply(200, { + "balancePlatform": "YOUR_BALANCE_PLATFORM", + "txVariant": "mc", + "id": paymentInstrumentGroupId + }); + + const response: models.PaymentInstrumentGroup = await balancePlatform.PaymentInstrumentGroups.retrieve(paymentInstrumentGroupId); + + expect(response.id).toBe(paymentInstrumentGroupId); + expect(response.txVariant).toBe("mc"); + }); + + it("should support GET /paymentInstrumentGroups/{id}/transactionRules", async (): Promise => { + scope.get(`/paymentInstrumentGroups/${paymentInstrumentGroupId}/transactionRules`) + .reply(200, { + "transactionRules": [ + { + "description": "Allow 5 transactions per month", + "interval": { + "type": "monthly" + }, + "maxTransactions": 5, + "paymentInstrumentGroupId": paymentInstrumentGroupId, + "reference": "myRule12345", + "startDate": "2021-01-25T12:46:35.476629Z", + "status": "active", + "type": "velocity", + "id": "TR32272223222B5CMDGMC9F4F" + }, + { + "amount": { + "currency": "EUR", + "value": 10000 + }, + "description": "Allow up to 100 EUR per month", + "interval": { + "type": "monthly" + }, + "paymentInstrumentGroupId": paymentInstrumentGroupId, + "reference": "myRule16378", + "startDate": "2021-01-25T12:46:35.476629Z", + "status": "active", + "type": "velocity", + "id": "TR32272223222B5CMDGT89F4F" + } + ] + }); + + const response: models.TransactionRulesResponse = await balancePlatform.PaymentInstrumentGroups.listTransactionRules(paymentInstrumentGroupId); + + expect(response.transactionRules!.length).toBe(2); + expect(response.transactionRules![0].id).toBe("TR32272223222B5CMDGMC9F4F"); + }); + }); + + describe("TransactionRules", (): void => { + it("should support POST /transactionRules", async (): Promise => { + scope.post("/transactionRules") + .reply(200, { + "description": "Allow only point-of-sale transactions", + "entityKey": { + "entityReference": "PI3227C223222B5BPCMFXD2XG", + "entityType": "paymentInstrument" + }, + "interval": { + "timeZone": "UTC", + "type": "perTransaction" + }, + "outcomeType": "hardBlock", + "reference": "YOUR_REFERENCE_4F7346", + "requestType": "authorization", + "ruleRestrictions": { + "processingTypes": { + "operation": "noneMatch", + "value": [ + "pos" + ] + } + }, + "startDate": "2022-03-23T15:05:11.979433+01:00", + "status": "active", + "type": "blockList", + "id": transactionRuleId + }); + const request: models.TransactionRuleInfo = { + "description": "Allow only point-of-sale transactions", + "reference": "YOUR_REFERENCE_4F7346", + "entityKey": { + "entityType": "paymentInstrument", + "entityReference": "PI3227C223222B5BPCMFXD2XG" + }, + "status": models.TransactionRuleInfo.StatusEnum.Active, + "interval": { + "type": models.TransactionRuleInterval.TypeEnum.PerTransaction + }, + "ruleRestrictions": { + "processingTypes": { + "operation": "noneMatch", + "value": [ + models.ProcessingTypesRestriction.ValueEnum.Pos + ] + } + }, + "type": models.TransactionRuleInfo.TypeEnum.BlockList + }; + + const response: models.TransactionRule = await balancePlatform.TransactionRules.create(request); + + expect(response.id).toBe(transactionRuleId); + expect(response.status).toBe("active"); + }); + + it("should support GET /transactionRules/{transactionRuleId}", async (): Promise => { + scope.get(`/transactionRules/${transactionRuleId}`) + .reply(200, { + "transactionRule": { + "description": "Allow 5 transactions per month", + "interval": { + "type": "monthly" + }, + "maxTransactions": 5, + "paymentInstrumentId": "PI3227C223222B59KGTXP884R", + "reference": "myRule12345", + "startDate": "2021-01-25T12:46:35.476629Z", + "status": "active", + "type": "velocity", + "id": transactionRuleId + } + }); + + const response: models.TransactionRuleResponse = await balancePlatform.TransactionRules.retrieve(transactionRuleId); + + expect(response.transactionRule!.id).toBe(transactionRuleId); + expect(response.transactionRule!.type).toBe("velocity"); + }); + + it("should support PATCH /transactionRules/{transactionRuleId}", async (): Promise => { + scope.patch(`/transactionRules/${transactionRuleId}`) + .reply(200, { + "description": "Allow 5 transactions per month", + "interval": { + "type": "monthly" + }, + "reference": "myRule12345", + "startDate": "2021-01-21T12:46:35.476629Z", + "status": "inactive", + "type": "velocity", + "id": transactionRuleId + }); + const request: TransactionRuleInfoUpdate = { + "status": models.TransactionRuleInfo.StatusEnum.Inactive + }; + + const response: models.TransactionRule = await balancePlatform.TransactionRules.update(transactionRuleId, request); + + expect(response.status).toBe("inactive"); + expect(response.reference).toBe("myRule12345"); + }); + + it("should support DELETE /transactionRules/{transactionRuleId}", async (): Promise => { + scope.delete(`/transactionRules/${transactionRuleId}`) + .reply(200, { + "amount": { + "currency": "EUR", + "value": 10000 + }, + "description": "Allow up to 100 EUR per month", + "interval": { + "type": "monthly" + }, + "paymentInstrumentGroupId": "PG3227C223222B5CMD3FJFKGZ", + "reference": "myRule16378", + "startDate": "2021-01-25T12:46:35.476629Z", + "type": "velocity", + "id": transactionRuleId + }); + + const response: models.TransactionRule = await balancePlatform.TransactionRules.delete(transactionRuleId); + + expect(response.id).toBe(transactionRuleId); + }); + }); +}); \ No newline at end of file diff --git a/src/__tests__/binLookup.spec.ts b/src/__tests__/binLookup.spec.ts index aa970ee..b7db218 100644 --- a/src/__tests__/binLookup.spec.ts +++ b/src/__tests__/binLookup.spec.ts @@ -1,26 +1,13 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ import nock from "nock"; import { createClient } from "../__mocks__/base"; import BinLookup from "../services/binLookup"; import Client from "../client"; import HttpClientException from "../httpClient/httpClientException"; +import { + ThreeDSAvailabilityRequest, + ThreeDSAvailabilityResponse, + CostEstimateRequest, +} from "../typings/binlookup/models"; const threeDSAvailabilitySuccess = { binDetails: { @@ -49,9 +36,8 @@ afterEach((): void => { }); describe("Bin Lookup", function (): void { - test.each([false, true])("should succeed on get 3ds availability. isMock: %p", async function (isMock): Promise { - !isMock && nock.restore(); - const threeDSAvailabilityRequest: IBinLookup.ThreeDSAvailabilityRequest = { + test("should succeed on get 3ds availability", async function (): Promise { + const threeDSAvailabilityRequest: ThreeDSAvailabilityRequest = { merchantAccount: process.env.ADYEN_MERCHANT!, brands: ["randomBrand"], cardNumber: "4111111111111111" @@ -62,7 +48,7 @@ describe("Bin Lookup", function (): void { const response = await binLookup.get3dsAvailability(threeDSAvailabilityRequest); - expect(response).toEqual(threeDSAvailabilitySuccess); + expect(response).toEqual(threeDSAvailabilitySuccess); }); test.each([false, true])("should fail with invalid merchant. isMock: %p", async function (isMock): Promise { @@ -77,9 +63,9 @@ describe("Bin Lookup", function (): void { .reply(403, JSON.stringify({status: 403, message: "fail", errorCode: "171"})); try { - await binLookup.get3dsAvailability(threeDSAvailabilityRequest as unknown as IBinLookup.ThreeDSAvailabilityRequest); + await binLookup.get3dsAvailability(threeDSAvailabilityRequest as unknown as ThreeDSAvailabilityRequest); fail("Expected request to fail"); - } catch (e: any) { + } catch (e) { expect(e instanceof HttpClientException).toBeTruthy(); } }); @@ -103,7 +89,7 @@ describe("Bin Lookup", function (): void { resultCode: "Unsupported", surchargeType: "ZERO" }; - const costEstimateRequest: IBinLookup.CostEstimateRequest = { + const costEstimateRequest: CostEstimateRequest = { amount: { currency: "EUR", value: 1000 }, assumptions: { assumeLevel3Data: true, @@ -116,7 +102,7 @@ describe("Bin Lookup", function (): void { mcc: "7411", enrolledIn3DSecure: true }, - shopperInteraction: "Ecommerce" + shopperInteraction: CostEstimateRequest.ShopperInteractionEnum.Ecommerce, }; scope.post("/getCostEstimate") diff --git a/src/__tests__/checkout.spec.ts b/src/__tests__/checkout.spec.ts index 6039df1..d2404fb 100644 --- a/src/__tests__/checkout.spec.ts +++ b/src/__tests__/checkout.spec.ts @@ -1,22 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2021 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import nock from "nock"; import {createClient} from "../__mocks__/base"; import {paymentMethodsSuccess} from "../__mocks__/checkout/paymentMethodsSuccess"; @@ -48,7 +29,9 @@ import { PaymentSetupRequest, PaymentVerificationRequest, CreateCheckoutSessionRequest, - CreateCheckoutSessionResponse + CreateCheckoutSessionResponse, + CardDetailsRequest, + CardDetailsResponse } from "../typings/checkout/models"; const merchantAccount = process.env.ADYEN_MERCHANT!; @@ -172,6 +155,86 @@ afterEach(() => { }); describe("Checkout", (): void => { + test("should add idempotency key to request headers", async (): Promise => { + const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); + scope.post("/payments") + .reply(200, paymentsSuccess) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.payments(paymentsRequest, {idempotencyKey: "testKey"}); + + const paymentMethodsRequest: PaymentMethodsRequest = {merchantAccount}; + scope.post("/paymentMethods") + .reply(200, paymentMethodsSuccess) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.paymentMethods(paymentMethodsRequest, {idempotencyKey: "testKey"}); + + const expiresAt = "2019-12-17T10:05:29Z"; + const paymentLinkSuccess: PaymentLinkResponse = getPaymentLinkSuccess(expiresAt); + scope.post("/paymentLinks") + .reply(200, paymentLinkSuccess) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.paymentLinks(createPaymentLinkRequest(), {idempotencyKey: "testKey"}); + + scope.patch("/paymentLinks/321") + .reply(200, { ...paymentLinkSuccess, status: "expired" }) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.updatePaymentLinks("321", "expired", {idempotencyKey: "testKey"}); + + scope.get("/paymentLinks/123") + .reply(200, paymentLinkSuccess) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.getPaymentLinks("123", {idempotencyKey: "testKey"}); + + scope.post("/payments/details") + .reply(200, paymentDetailsSuccess) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.paymentsDetails(createPaymentsDetailsRequest(), {idempotencyKey: "testKey"}); + + scope.post("/paymentSession") + .reply(200, paymentSessionSuccess) + .matchHeader("Idempotency-Key", "testKey"); + const paymentSessionRequest: PaymentSetupRequest = createPaymentSessionRequest(); + await checkout.paymentSession(paymentSessionRequest, {idempotencyKey: "testKey"}); + + scope.post("/payments/result") + .reply(200, paymentsResultSuccess) + .matchHeader("Idempotency-Key", "testKey"); + const paymentResultRequest: PaymentVerificationRequest = { + payload: "This is a test payload", + }; + await checkout.paymentResult(paymentResultRequest, {idempotencyKey: "testKey"}); + + const orderRequest: CheckoutCreateOrderRequest = { + amount: createAmountObject("USD", 1000), + merchantAccount, + reference + }; + scope.post("/orders") + .reply(200, {}) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.orders(orderRequest, {idempotencyKey: "testKey"}); + + scope.post("/orders/cancel") + .reply(200, {}) + .matchHeader("Idempotency-Key", "testKey"); + await checkout.ordersCancel({ + order: { + orderData: "mock_data", + pspReference: "mock_pspref" + }, + merchantAccount + }, {idempotencyKey: "testKey"}); + + scope.post("/sessions") + .reply(200, sessionsSuccess) + .matchHeader("Idempotency-Key", "testKey"); + + const sessionsRequest: CreateCheckoutSessionRequest = createSessionRequest(); + await checkout.sessions(sessionsRequest, {idempotencyKey: "testKey"}); + + }); + + test.each([false, true])("should make a payment. isMock: %p", async (isMock): Promise => { !isMock && nock.restore(); scope.post("/payments") @@ -190,7 +253,7 @@ describe("Checkout", (): void => { const paymentsRequest: PaymentRequest = createPaymentsCheckoutRequest(); await checkout.payments(paymentsRequest); - } catch (e: any) { + } catch (e) { expect(e instanceof HttpClientException).toBeTruthy(); } }); @@ -284,8 +347,13 @@ describe("Checkout", (): void => { try { new Checkout(client); fail(); - } catch (e: any) { + } catch (e) { + if(e instanceof Error) { expect(e.message).toEqual("Please provide your unique live url prefix on the setEnvironment() call on the Client or provide checkoutEndpoint in your config object."); + + } else { + fail(); + } } }); @@ -410,5 +478,26 @@ describe("Checkout", (): void => { const sessionsRequest: CreateCheckoutSessionRequest = createSessionRequest(); const sessionsResponse: CreateCheckoutSessionResponse = await checkout.sessions(sessionsRequest); expect(sessionsResponse.sessionData).toBeTruthy(); + expect(sessionsResponse.expiresAt).toBeInstanceOf(Date); + expect(sessionsResponse.expiresAt.getFullYear()).toBeGreaterThan(0); + }); + + test("Should get card details", async (): Promise => { + scope.post("/cardDetails") + .reply(200, { + "brands": [ + { + "supported": true, + "type": "visa" + } + ] + }); + + const cardDetailsRequest: CardDetailsRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "cardNumber": "411111" + }; + const cardDetailsReponse: CardDetailsResponse = await checkout.cardDetails(cardDetailsRequest); + expect(cardDetailsReponse?.brands?.length).toBe(1); }); }); diff --git a/src/__tests__/classicIntegration.spec.ts b/src/__tests__/classicIntegration.spec.ts new file mode 100644 index 0000000..d471d51 --- /dev/null +++ b/src/__tests__/classicIntegration.spec.ts @@ -0,0 +1,309 @@ +import nock from "nock"; +import {createClient} from "../__mocks__/base"; +import Client from "../client"; +import ClassicIntegration from "../services/classicIntegration"; +import { PaymentRequest } from "../typings/payments/paymentRequest"; +import { PaymentResult } from "../typings/payments/paymentResult"; +import { PaymentRequest3d } from "../typings/payments/paymentRequest3d"; +import { PaymentRequest3ds2 } from "../typings/payments/paymentRequest3ds2"; +import { AuthenticationResultRequest } from "../typings/payments/authenticationResultRequest"; +import { AuthenticationResultResponse } from "../typings/payments/authenticationResultResponse"; +import { ThreeDS2ResultRequest } from "../typings/payments/threeDS2ResultRequest"; +import { ThreeDS2ResultResponse } from "../typings/payments/threeDS2ResultResponse"; +import { ModificationResult } from "../typings/payments/modificationResult"; +import { CaptureRequest } from "../typings/payments/captureRequest"; +import { CancelRequest } from "../typings/payments/cancelRequest"; +import { RefundRequest } from "../typings/payments/refundRequest"; +import { CancelOrRefundRequest } from "../typings/payments/cancelOrRefundRequest"; +import { TechnicalCancelRequest } from "../typings/payments/technicalCancelRequest"; +import { AdjustAuthorisationRequest } from "../typings/payments/adjustAuthorisationRequest"; +import { DonationRequest } from "../typings/payments/donationRequest"; +import { VoidPendingRefundRequest } from "../typings/payments/voidPendingRefundRequest"; + +let client: Client; +let classicIntegration: ClassicIntegration; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}`); + classicIntegration = new ClassicIntegration(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("Classic Integration", (): void => { + test("Should authorise payment", async (): Promise => { + scope.post("/authorise") + .reply(200, { + "additionalData": { + "scaExemptionRequested": "transactionRiskAnalysis", + "checkout.cardAddedBrand": "visa" + }, + "pspReference": "JVBXGSDM53RZNN82", + "resultCode": "Authorised", + "authCode": "011381" + } + ); + const paymentRequest: PaymentRequest = { + "card": { + "number": "4111111111111111", + "expiryMonth": "03", + "expiryYear": "2030", + "cvc": "737", + "holderName": "John Smith" + }, + "amount": { + "value": 1500, + "currency": "EUR" + }, + "reference": "YOUR_REFERENCE", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const paymentResult: PaymentResult = await classicIntegration.authorise(paymentRequest); + expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); + }); + + test("Should complete 3DS authorisation", async (): Promise => { + scope.post("/authorise3d") + .reply(200, { + "additionalData": { + "scaExemptionRequested": "transactionRiskAnalysis", + "checkout.cardAddedBrand": "visa" + }, + "pspReference": "JVBXGSDM53RZNN82", + "resultCode": "Authorised", + "authCode": "011381" + } + ); + const paymentRequest: PaymentRequest3d = { + "md": "31h..........vOXek7w", + "paResponse": "eNqtmF........wGVA4Ch", + "shopperIP": "61.294.12.12", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const paymentResult: PaymentResult = await classicIntegration.authorise3d(paymentRequest); + expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); + }); + + test("Should complete 3DS2 authorisation", async (): Promise => { + scope.post("/authorise3ds2") + .reply(200, { + "additionalData": { + "scaExemptionRequested": "transactionRiskAnalysis", + "checkout.cardAddedBrand": "visa" + }, + "pspReference": "JVBXGSDM53RZNN82", + "resultCode": "Authorised", + "authCode": "011381" + } + ); + const paymentRequest: PaymentRequest3ds2 = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "amount": { + "value": 1500, + "currency": "EUR" + }, + "reference": "YOUR_REFERENCE", + "threeDS2RequestData": { + "threeDSCompInd": "Y", + "deviceChannel": "testDeviceChannel" + }, + "threeDS2Token": "— - BINARY DATA - -" + }; + + const paymentResult: PaymentResult = await classicIntegration.authorise3ds2(paymentRequest); + expect(paymentResult.pspReference).toEqual("JVBXGSDM53RZNN82"); + }); + + test("Should get auth result after 3DS authentication", async (): Promise => { + scope.post("/getAuthenticationResult").reply(200, { + "threeDS2Result": { "authenticationValue": "THREEDS2RESULT"} + }); + + const getAuthenticationResultrequest: AuthenticationResultRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "pspReference": "9935272408535455" + }; + + const getAuthenticationResultResponse: AuthenticationResultResponse = await classicIntegration.getAuthenticationResult(getAuthenticationResultrequest); + expect(getAuthenticationResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT"); + }); + + test("Should retrieve 3DS2 result", async (): Promise => { + scope.post("/retrieve3ds2Result").reply(200, { + "threeDS2Result": { "authenticationValue": "THREEDS2RESULT"} + }); + const retrieve3ds2ResultRequest: ThreeDS2ResultRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "pspReference": "9935272408535455" + }; + + const retrieve3ds2ResultResponse: ThreeDS2ResultResponse = await classicIntegration.retrieve3ds2Result(retrieve3ds2ResultRequest); + expect(retrieve3ds2ResultResponse?.threeDS2Result?.authenticationValue).toEqual("THREEDS2RESULT"); + }); + + test("Should succesfully send Capture request", async (): Promise => { + scope.post("/capture") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[capture-received]" + }); + + const modificationRequest: CaptureRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "modificationAmount": { + "value": 500, + "currency": "EUR" + }, + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.capture(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.CaptureReceived); + }); + + test("Should succesfully send Cancel request", async (): Promise => { + scope.post("/cancel") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[cancel-received]" + }); + + const modificationRequest: CancelRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.cancel(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.CancelReceived); + }); + + test("Should succesfully send Refund request", async (): Promise => { + scope.post("/refund") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[refund-received]" + }); + + const modificationRequest: RefundRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "modificationAmount": { + "value": 500, + "currency": "EUR" + }, + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.refund(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.RefundReceived); + }); + + test("Should succesfully send CancelOrRefund request", async (): Promise => { + scope.post("/cancelOrRefund") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[cancelOrRefund-received]" + }); + + const modificationRequest: CancelOrRefundRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.cancelOrRefund(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.CancelOrRefundReceived); + }); + + test("Should succesfully send TechnicalCancel request", async (): Promise => { + scope.post("/technicalCancel") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[technical-cancel-received]" + }); + + const modificationRequest: TechnicalCancelRequest = { + "originalMerchantReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "modificationAmount": { + "value": 500, + "currency": "EUR" + }, + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.technicalCancel(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.TechnicalCancelReceived); + }); + + test("Should succesfully send AdjustAuthorisation request", async (): Promise => { + scope.post("/adjustAuthorisation") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[adjustAuthorisation-received]" + }); + + const modificationRequest: AdjustAuthorisationRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "modificationAmount": { + "value": 500, + "currency": "EUR" + }, + "reference": "YourModificationReference", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.adjustAuthorisation(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.AdjustAuthorisationReceived); + }); + + test("Should succesfully send Donate request", async (): Promise => { + scope.post("/donate") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[donation-received]" + }); + + const modificationRequest: DonationRequest = { + "originalReference": "COPY_PSP_REFERENCE_FROM_AUTHORISE_RESPONSE", + "modificationAmount": { + "value": 500, + "currency": "EUR" + }, + "reference": "YOUR_DONATION_REFERENCE", + "donationAccount": "AdyenGivingDemo", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT" + }; + + const modificationResult: ModificationResult = await classicIntegration.donate(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.DonationReceived); + }); + + test("Should succesfully send VoidPendingRefund request", async (): Promise => { + scope.post("/voidPendingRefund") + .reply(200, { + "pspReference": "YOUR_REFERENCE", + "response": "[voidPendingRefund-received]" + }); + + const modificationRequest: VoidPendingRefundRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "tenderReference": "5Iw8001176969533005", + "uniqueTerminalId": "VX820-123456789" + }; + + const modificationResult: ModificationResult = await classicIntegration.voidPendingRefund(modificationRequest); + expect(modificationResult.response).toEqual(ModificationResult.ResponseEnum.VoidPendingRefundReceived); + }); +}); \ No newline at end of file diff --git a/src/__tests__/hmacValidator.spec.ts b/src/__tests__/hmacValidator.spec.ts index ad2352c..fa8f30e 100644 --- a/src/__tests__/hmacValidator.spec.ts +++ b/src/__tests__/hmacValidator.spec.ts @@ -101,8 +101,12 @@ describe("HMAC Validator", function (): void { }; try { hmacValidator.validateHMAC(notificationRequestItemNoAdditionalData, key); - } catch(error: any) { - expect(error.message).toEqual(`Missing ${ApiConstants.HMAC_SIGNATURE}`); + } catch(error) { + if(error instanceof Error) { + expect(error.message).toEqual(`Missing ${ApiConstants.HMAC_SIGNATURE}`); + } else { + fail(); + } } }); diff --git a/src/__tests__/httpClient.spec.ts b/src/__tests__/httpClient.spec.ts index b253b43..f442d7f 100644 --- a/src/__tests__/httpClient.spec.ts +++ b/src/__tests__/httpClient.spec.ts @@ -43,10 +43,14 @@ const getResponse = async ({apiKey , environment }: { apiKey: string; environmen try { await checkout.payments(createPaymentsCheckoutRequest()); fail("request should fail"); - } catch (e: any) { - expect(e instanceof ErrorException).toBeTruthy(); - if (errorMessageEquals) expect(e.message).toEqual(errorMessageEquals); - if (errorMessageContains) expect(e.message.toLowerCase()).toContain(errorMessageContains); + } catch (e) { + if(e instanceof ErrorException){ + if (errorMessageEquals) expect(e.message).toEqual(errorMessageEquals); + if (errorMessageContains) expect(e.message.toLowerCase()).toContain(errorMessageContains); + } else { + fail(); + } + } }; diff --git a/src/__tests__/management.spec.ts b/src/__tests__/management.spec.ts new file mode 100644 index 0000000..0e2ef20 --- /dev/null +++ b/src/__tests__/management.spec.ts @@ -0,0 +1,667 @@ +import nock from "nock"; +import Client from "../client"; +import { createClient } from "../__mocks__/base"; +import { Management } from "../services"; +import { AllowedOrigin, AllowedOriginsResponse, MeApiCredential } from "../typings/management/models"; +import * as models from "../typings/management/models"; +import * as requests from "../__mocks__/management/requests"; +import * as responses from "../__mocks__/management/responses"; + +let client: Client; +let management: Management; +let scope: nock.Scope; + +const merchantId = "merchantId"; +const apiCredentialId = "apiCredentialId"; +const originId = "originId"; +const paymentMethodId = "paymentMethodId"; +const payoutSettingsId = "payoutSettingsId"; +const orderId = "orderId"; +const userId = "userId"; +const webhookId = "webhookId"; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.managementEndpoint}/${Client.MANAGEMENT_API_VERSION}`); + management = new Management(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("Management", (): void => { + describe("Me", (): void => { + test("Should get API credential details based on the API Key used in the request", async (): Promise => { + scope.get("/me") + .reply(200, { + "id": "S2-6262224667", + "username": "ws_123456@Company.Test", + "clientKey": "test_UCP6BO23234FFEFE33E4GWX63", + "allowedIpAddresses": [], + "roles": [ + "Management API - Users read and write", + "Management API - Accounts read", + "Trigger webhook notifications", + "Management API - Payout Account Settings Read And Write", + "Manage LegalEntities via API", + "Manage associated partner accounts via API", + "PSP Pos initial configuration", + + ], + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/me" + }, + "allowedOrigins": { + "href": "https://management-test.adyen.com/v1/me/allowedOrigins" + } + }, + "companyName": "Test", + "active": true, + }); + const meResponse: MeApiCredential = await management.Me.retrieve(); + expect(meResponse.id).toEqual("S2-6262224667"); + }); + + test("Should add an allowed origin to the list of allowed origins", async (): Promise => { + scope.post("/me/allowedOrigins") + .reply(200, { + "id": "S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921", + "domain": "https://www.us.mystore.com", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921" + } + } + }); + const allowedOriginRequest: AllowedOrigin = { + "domain": "https://www.us.mystore.com" + }; + + const allowedOriginsResponse: AllowedOrigin = await management.Me.createAllowedOrigin(allowedOriginRequest); + expect(allowedOriginsResponse.domain).toEqual("https://www.us.mystore.com"); + }); + + test("Should get the list of allowed origins of a API credential based on the API key used in the request", async (): Promise => { + scope.get("/me/allowedOrigins") + .reply(200, { + "data": [ + { + "id": "S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921", + "domain": "https://www.us.mystore.com", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-45597C41735B6D75433E2B396553453ertcdt347675B4E3B413B4C4571522A6B2921" + } + } + } + ] + }); + + const allowedOriginsResponse: AllowedOriginsResponse = await management.Me.retrieveAllowedOrigins(); + expect(allowedOriginsResponse.data?.length).toEqual(1); + }); + }); + + test("Should retrieve the details of the allowed origin specified in the path", async () => { + scope.get("/me/allowedOrigins/S2-123123123123123") + .reply(200, { + "id": "S2-123123123123123", + "domain": "https://www.us.mystore.com", + "_links": { + "self": { + "href": "https://management-test.adyen.com/v1/me/allowedOrigins/S2-123123123123123" + } + } + }); + + const allowedOriginResponse: AllowedOrigin = await management.Me.retrieveAllowedOrigin("S2-123123123123123"); + expect(allowedOriginResponse.id).toEqual("S2-123123123123123"); + }); + + test("Should remove the allowed origin specified in the path", async () => { + scope.delete("/me/allowedOrigins/S2-123123123123123").reply(204, {}); + const allowedOriginResponse: Record = await management.Me.deleteAllowerdOrigin("S2-123123123123123"); + expect(scope.isDone()).toBe(true); + expect(Object.entries(allowedOriginResponse).length).toBe(0); + }); + + describe("MerchantAccount", (): void => { + it("should support GET /merchants", async (): Promise => { + scope.get("/merchants?pageNumber=1&pageSize=1") + .reply(200, responses.listMerchantResponse); + + const response: models.ListMerchantResponse = await management.MerchantAccount.list({ + params: { + "pageNumber": "1", + "pageSize": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants", async (): Promise => { + scope.post("/merchants") + .reply(200, responses.createMerchantResponse); + + const response: models.CreateMerchantResponse = await management.MerchantAccount.create(requests.createMerchantRequest); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}", async (): Promise => { + scope.get(`/merchants/${merchantId}`) + .reply(200, responses.merchant); + + const response: models.Merchant = await management.MerchantAccount.retrieve(merchantId); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/activate", async (): Promise => { + scope.post(`/merchants/${merchantId}/activate`) + .reply(200, responses.requestActivationResponse); + + const response: models.RequestActivationResponse = await management.MerchantAccount.activate(merchantId); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantAllowedOrigins", (): void => { + it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", async (): Promise => { + scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`) + .reply(200, responses.allowedOriginsResponse); + + const response: models.AllowedOriginsResponse = await management.MerchantAllowedOrigins.list(merchantId, apiCredentialId); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins", async (): Promise => { + scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`) + .reply(200, responses.allowedOriginsResponse); + + const response: models.AllowedOriginsResponse = await management.MerchantAllowedOrigins.create(merchantId, apiCredentialId, requests.allowedOrigin); + + expect(response).toBeTruthy(); + }); + + it("should support DELETE /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", async (): Promise => { + scope.delete(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`) + .reply(204); + + await management.MerchantAllowedOrigins.delete(merchantId, apiCredentialId, originId); + }); + + it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}/allowedOrigins/{originId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`) + .reply(200, responses.allowedOrigin); + + const response: models.AllowedOrigin = await management.MerchantAllowedOrigins.retrieve(merchantId, apiCredentialId, originId); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantApiCredentials", (): void => { + it("should support GET /merchants/{merchantId}/apiCredentials", async (): Promise => { + scope.get(`/merchants/${merchantId}/apiCredentials?pageNumber=1&pageSize=1`) + .reply(200, responses.listMerchantApiCredentialsResponse); + + const response: models.ListMerchantApiCredentialsResponse = await management.MerchantApiCredentials.list(merchantId, { + params: { + "pageNumber": "1", + "pageSize": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/apiCredentials", async (): Promise => { + scope.post(`/merchants/${merchantId}/apiCredentials`) + .reply(200, responses.createApiCredentialResponse); + + const response: models.CreateApiCredentialResponse = await management.MerchantApiCredentials.create(merchantId, requests.createMerchantApiCredentialRequest); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/apiCredentials/{apiCredentialId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}`) + .reply(200, responses.apiCredential); + + const response: models.ApiCredential = await management.MerchantApiCredentials.retrieve(merchantId, apiCredentialId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/apiCredentials/{apiCredentialId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}`) + .reply(200, responses.apiCredential); + + const response: models.ApiCredential = await management.MerchantApiCredentials.update(merchantId, apiCredentialId, requests.updateMerchantApiCredentialRequest); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantApiKey", (): void => { + it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateApiKey", async (): Promise => { + scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateApiKey`) + .reply(200, responses.generateApiKeyResponse); + + const response: models.GenerateApiKeyResponse = await management.MerchantApiKey.create(merchantId, apiCredentialId); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantClientKey", (): void => { + it("should support POST /merchants/{merchantId}/apiCredentials/{apiCredentialId}/generateClientKey", async (): Promise => { + scope.post(`/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateClientKey`) + .reply(200, responses.generateClientKeyResponse); + + const response: models.GenerateClientKeyResponse = await management.MerchantClientKey.create(merchantId, apiCredentialId); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantPaymentMethods", (): void => { + it("should support GET /merchants/{merchantId}/paymentMethodSettings", async (): Promise => { + scope.get(`/merchants/${merchantId}/paymentMethodSettings?storeId=1&businessLineId=1&pageNumber=1&pageSize=1`) + .reply(200, responses.paymentMethodResponse); + + const response: models.PaymentMethodResponse = await management.MerchantPaymentMethods.listPaymentMethodSettings(merchantId, { + params: { + "storeId": "1", + "businessLineId": "1", + "pageSize": "1", + "pageNumber": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/paymentMethodSettings", async (): Promise => { + scope.post(`/merchants/${merchantId}/paymentMethodSettings`) + .reply(200, responses.paymentMethod); + + const response: models.PaymentMethod = await management.MerchantPaymentMethods.create(merchantId, { + ...requests.paymentMethodSetupInfo, + type: models.PaymentMethodSetupInfo.TypeEnum.Ideal + }); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`) + .reply(200, responses.paymentMethod); + + const response: models.PaymentMethod = await management.MerchantPaymentMethods.retrieve(merchantId, paymentMethodId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/paymentMethodSettings/{paymentMethodId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`) + .reply(200, responses.paymentMethod); + + const response: models.PaymentMethod = await management.MerchantPaymentMethods.update(merchantId, paymentMethodId, requests.updatePaymentMethodInfo); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantPayoutSettings", (): void => { + it("should support GET /merchants/{merchantId}/payoutSettings", async (): Promise => { + scope.get(`/merchants/${merchantId}/payoutSettings`) + .reply(200, responses.payoutSettingsResponse); + + const response: models.PayoutSettingsResponse = await management.MerchantPayoutSettings.listPayoutSettings(merchantId); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/payoutSettings", async (): Promise => { + scope.post(`/merchants/${merchantId}/payoutSettings`) + .reply(200, responses.payoutSettings); + + const response: models.PayoutSettings = await management.MerchantPayoutSettings.create(merchantId, requests.payoutSettingsRequest); + + expect(response).toBeTruthy(); + }); + + it("should support DELETE /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise => { + scope.delete(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`) + .reply(200); + + await management.MerchantPayoutSettings.delete(merchantId, payoutSettingsId); + }); + + it("should support GET /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`) + .reply(200, responses.payoutSettings); + + const response: models.PayoutSettings = await management.MerchantPayoutSettings.retrieve(merchantId, payoutSettingsId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/payoutSettings/{payoutSettingsId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`) + .reply(200, responses.payoutSettings); + + const response: models.PayoutSettings = await management.MerchantPayoutSettings.update(merchantId, payoutSettingsId, requests.updatePayoutSettingsRequest); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantTerminalOrders", (): void => { + it("should support GET /merchants/{merchantId}/billingEntities", async (): Promise => { + scope.get(`/merchants/${merchantId}/billingEntities?name=bill`) + .reply(200, responses.billingEntitiesResponse); + + const response: models.BillingEntitiesResponse = await management.MerchantTerminalOrders.listBillingEntities(merchantId, { + params: { + "name": "bill" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/shippingLocations", async (): Promise => { + scope.get(`/merchants/${merchantId}/shippingLocations?name=1&offset=1&limit=1`) + .reply(200, responses.shippingLocationsResponse); + + const response: models.ShippingLocationsResponse = await management.MerchantTerminalOrders.listShippingLocations(merchantId, { + params: { + "name": "1", + "offset": "1", + "limit": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/shippingLocations", async (): Promise => { + scope.post(`/merchants/${merchantId}/shippingLocations`) + .reply(200, responses.shippingLocation); + + const response: models.ShippingLocation = await management.MerchantTerminalOrders.createShippingLocation(merchantId, requests.shippingLocation); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/terminalModels", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalModels`) + .reply(200, responses.terminalModelsResponse); + + const response: models.TerminalModelsResponse = await management.MerchantTerminalOrders.listTerminalModels(merchantId); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/terminalOrders", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalOrders?customerOrderReference=1&status=1&offset=1&limit=1`) + .reply(200, responses.terminalOrdersResponse); + + const response: models.TerminalOrdersResponse = await management.MerchantTerminalOrders.listTerminalOrders(merchantId, { + params: { + "customerOrderReference": "1", + "status": "1", + "offset": "1", + "limit": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/terminalOrders", async (): Promise => { + scope.post(`/merchants/${merchantId}/terminalOrders`) + .reply(200, responses.terminalOrder); + + const response: models.TerminalOrder = await management.MerchantTerminalOrders.create(merchantId, requests.terminalOrderRequest); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/terminalOrders/{orderId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalOrders/${orderId}`) + .reply(200, responses.terminalOrder); + + const response: models.TerminalOrder = await management.MerchantTerminalOrders.retrieve(merchantId, orderId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/terminalOrders/{orderId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/terminalOrders/${orderId}`) + .reply(200, responses.terminalOrder); + + const response: models.TerminalOrder = await management.MerchantTerminalOrders.update(merchantId, orderId, requests.terminalOrderRequest); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/terminalOrders/{orderId}/cancel", async (): Promise => { + scope.post(`/merchants/${merchantId}/terminalOrders/${orderId}/cancel`) + .reply(200, responses.terminalOrder); + + const response: models.TerminalOrder = await management.MerchantTerminalOrders.cancel(merchantId, orderId); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/terminalProducts", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalProducts?country=1&terminalModelId=1&offset=1&limit=1`) + .reply(200, responses.terminalProductsResponse); + + const response: models.TerminalProductsResponse = await management.MerchantTerminalOrders.listTerminalProducts(merchantId, { + params: { + "country": "1", + "terminalModelId": "1", + "offset": "1", + "limit": "1" + } + }); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantTerminalSettings", (): void => { + it("should support GET /merchants/{merchantId}/terminalLogos", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalLogos?model=1`) + .reply(200, responses.logo); + + const response: models.Logo = await management.MerchantTerminalSettings.retrieveLogo(merchantId, { + params: { + "model": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/terminalLogos", async (): Promise => { + scope.patch(`/merchants/${merchantId}/terminalLogos?model=1`) + .reply(200, responses.logo); + + const response: models.Logo = await management.MerchantTerminalSettings.updateLogo(merchantId, requests.logo, { + params: { + "model": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/terminalSettings", async (): Promise => { + scope.get(`/merchants/${merchantId}/terminalSettings`) + .reply(200, responses.terminalSettings); + + const response: models.TerminalSettings = await management.MerchantTerminalSettings.retrieve(merchantId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/terminalSettings", async (): Promise => { + scope.patch(`/merchants/${merchantId}/terminalSettings`) + .reply(200, responses.terminalSettings); + + const response: models.TerminalSettings = await management.MerchantTerminalSettings.update(merchantId, requests.terminalSettings); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantUsers", (): void => { + it("should support GET /merchants/{merchantId}/users", async (): Promise => { + scope.get(`/merchants/${merchantId}/users?pageNumber=1&pageSize=1`) + .reply(200, responses.listMerchantUsersResponse); + + const response: models.ListMerchantUsersResponse = await management.MerchantUsers.list(merchantId, { + params: { + "pageNumber": "1", + "pageSize": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/users", async (): Promise => { + scope.post(`/merchants/${merchantId}/users`) + .reply(200, responses.createUserResponse); + + const response: models.CreateUserResponse = await management.MerchantUsers.create(merchantId, requests.createMerchantUserRequest); + + expect(response).toBeTruthy(); + }); + + it("should support GET /merchants/{merchantId}/users/{userId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/users/${userId}`) + .reply(200, responses.user); + + const response: models.User = await management.MerchantUsers.retrieve(merchantId, userId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/users/{userId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/users/${userId}`) + .reply(200, responses.user); + + const response: models.User = await management.MerchantUsers.update(merchantId, userId, requests.updateMerchantUserRequest); + + expect(response).toBeTruthy(); + }); + }); + + describe("MerchantWebhooks", (): void => { + it("should support GET /merchants/{merchantId}/webhooks", async (): Promise => { + scope.get(`/merchants/${merchantId}/webhooks?pageNumber=1&pageSize=1`) + .reply(200, responses.listWebhooksResponse); + + const response: models.ListWebhooksResponse = await management.MerchantWebhooks.list(merchantId, { + params: { + "pageNumber": "1", + "pageSize": "1" + } + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/webhooks", async (): Promise => { + scope.post(`/merchants/${merchantId}/webhooks`) + .reply(200, responses.webhook); + + const response: models.Webhook = await management.MerchantWebhooks.create(merchantId, { + ...requests.createMerchantWebhookRequest, + communicationFormat: models.CreateMerchantWebhookRequest.CommunicationFormatEnum.Json, + networkType: models.CreateMerchantWebhookRequest.NetworkTypeEnum.Public, + sslVersion: models.CreateMerchantWebhookRequest.SslVersionEnum.Tls + }); + + expect(response).toBeTruthy(); + }); + + it("should support DELETE /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise => { + scope.delete(`/merchants/${merchantId}/webhooks/${webhookId}`) + .reply(204); + + await management.MerchantWebhooks.delete(merchantId, webhookId); + }); + + it("should support GET /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise => { + scope.get(`/merchants/${merchantId}/webhooks/${webhookId}`) + .reply(200, responses.webhook); + + const response: models.Webhook = await management.MerchantWebhooks.retrieve(merchantId, webhookId); + + expect(response).toBeTruthy(); + }); + + it("should support PATCH /merchants/{merchantId}/webhooks/{webhookId}", async (): Promise => { + scope.patch(`/merchants/${merchantId}/webhooks/${webhookId}`) + .reply(200, responses.webhook); + + const response: models.Webhook = await management.MerchantWebhooks.update(merchantId, webhookId, { + ...requests.updateMerchantWebhookRequest, + communicationFormat: models.CreateMerchantWebhookRequest.CommunicationFormatEnum.Soap, + networkType: models.CreateMerchantWebhookRequest.NetworkTypeEnum.Local, + sslVersion: models.CreateMerchantWebhookRequest.SslVersionEnum.Sslv3 + }); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/webhooks/{webhookId}/generateHmac", async (): Promise => { + scope.post(`/merchants/${merchantId}/webhooks/${webhookId}/generateHmac`) + .reply(200, responses.generateHmacKeyResponse); + + const response: models.GenerateHmacKeyResponse = await management.MerchantWebhooks.generateHmac(merchantId, webhookId); + + expect(response).toBeTruthy(); + }); + + it("should support POST /merchants/{merchantId}/webhooks/{webhookId}/test", async (): Promise => { + scope.post(`/merchants/${merchantId}/webhooks/${webhookId}/test`) + .reply(200, responses.testWebhookResponse); + + const testWebhookRequest: models.TestWebhookRequest = { + "notification": { + "amount": { + "currency": "string", + "value": 0 + }, + "eventCode": "string", + "eventDate": new Date(2022, 6, 15), + "merchantReference": "string", + "paymentMethod": "string", + "reason": "string", + "success": false + }, + "types": ["string"] + }; + const response: models.TestWebhookResponse = await management.MerchantWebhooks.test(merchantId, webhookId, testWebhookRequest); + + expect(response).toBeTruthy(); + }); + }); +}); diff --git a/src/__tests__/modification.spec.ts b/src/__tests__/modification.spec.ts index 02b7b2e..15b6ad6 100644 --- a/src/__tests__/modification.spec.ts +++ b/src/__tests__/modification.spec.ts @@ -1,25 +1,6 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2021 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import nock from "nock"; import {createClient} from "../__mocks__/base"; -import Modification from "../services/modification"; +import Checkout from "../services/checkout"; import Client from "../client"; import { CreatePaymentAmountUpdateRequest, @@ -32,6 +13,7 @@ import { PaymentCaptureResource, PaymentRefundResource, PaymentReversalResource, StandalonePaymentCancelResource } from "../typings/checkout/models"; +import HttpClientException from "../httpClient/httpClientException"; const invalidModificationResult = { "status": 422, @@ -168,7 +150,7 @@ const createReversalsResponse = (): PaymentReversalResource => { let client: Client; -let modification: Modification; +let checkout: Checkout; let scope: nock.Scope; const paymentPspReference = "863620292981235A"; const invalidPaymentPspReference = "invalid_psp_reference"; @@ -179,7 +161,7 @@ beforeEach((): void => { nock.activate(); } client = createClient(); - modification = new Modification(client); + checkout = new Checkout(client); scope = nock(`${client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}`); }); @@ -194,10 +176,14 @@ describe("Modification", (): void => { scope.post(`/payments/${paymentPspReference}/amountUpdates`) .reply(200, createAmountUpdateResponse()); try { - const result = await modification.amountUpdates(paymentPspReference, request); + const result = await checkout.amountUpdates(paymentPspReference, request); expect(result).toBeTruthy(); - } catch (e: any) { - if(e.message) fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -209,10 +195,14 @@ describe("Modification", (): void => { .reply(422, invalidModificationResult); try { - await modification.amountUpdates(invalidPaymentPspReference, request); - } catch (e: any) { - expect(e.statusCode).toBe(422); - expect(e.message).toContain("Original pspReference required for this operation"); + await checkout.amountUpdates(invalidPaymentPspReference, request); + } catch (e) { + if(e instanceof HttpClientException) { + if(e.statusCode) expect(e.statusCode).toBe(422); + expect(e.message).toContain("Original pspReference required for this operation"); + } else { + fail(); + } } }); @@ -222,10 +212,14 @@ describe("Modification", (): void => { scope.post(`/payments/${paymentPspReference}/cancels`) .reply(200, createCancelsResponse()); try { - const result = await modification.cancels(paymentPspReference, request); + const result = await checkout.cancels(paymentPspReference, request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -236,10 +230,14 @@ describe("Modification", (): void => { scope.post(`/payments/${invalidPaymentPspReference}/cancels`) .reply(422, invalidModificationResult); try { - await modification.cancels(invalidPaymentPspReference, request); - } catch (e: any) { - expect(e.statusCode).toBe(422); - expect(e.message).toContain("Original pspReference required for this operation"); + await checkout.cancels(invalidPaymentPspReference, request); + } catch (e) { + if(e instanceof HttpClientException) { + if(e.statusCode) expect(e.statusCode).toBe(422); + expect(e.message).toContain("Original pspReference required for this operation"); + } else { + fail(); + } } }); @@ -249,10 +247,14 @@ describe("Modification", (): void => { scope.post("/cancels") .reply(200, createStandaloneCancelsResponse()); try { - const result = await modification.cancelsStandalone(request); + const result = await checkout.cancelsStandalone(request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -262,10 +264,14 @@ describe("Modification", (): void => { scope.post(`/payments/${paymentPspReference}/captures`) .reply(200, createCapturesResponse()); try { - const result = await modification.captures(paymentPspReference, request); + const result = await checkout.captures(paymentPspReference, request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -276,10 +282,14 @@ describe("Modification", (): void => { scope.post(`/payments/${invalidPaymentPspReference}/captures`) .reply(422, invalidModificationResult); try { - await modification.captures(invalidPaymentPspReference, request); - } catch (e: any) { - if(e.statusCode) expect(e.statusCode).toBe(422); - if(e.message) expect(e.message).toContain("Original pspReference required for this operation"); + await checkout.captures(invalidPaymentPspReference, request); + } catch (e) { + if(e instanceof HttpClientException) { + if(e.statusCode) expect(e.statusCode).toBe(422); + expect(e.message).toContain("Original pspReference required for this operation"); + } else { + fail(); + } } }); @@ -289,10 +299,14 @@ describe("Modification", (): void => { scope.post(`/payments/${paymentPspReference}/refunds`) .reply(200, createRefundsResponse()); try { - const result = await modification.refunds(paymentPspReference, request); + const result = await checkout.refunds(paymentPspReference, request); expect(result).toBeTruthy(); - } catch (e: any) { - if(e.message) fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -303,10 +317,14 @@ describe("Modification", (): void => { scope.post(`/payments/${invalidPaymentPspReference}/refunds`) .reply(422, invalidModificationResult); try { - await modification.refunds(invalidPaymentPspReference, request); - } catch (e: any) { - if(e.statusCode) expect(e.statusCode).toBe(422); - expect(e.message).toContain("Original pspReference required for this operation"); + await checkout.refunds(invalidPaymentPspReference, request); + } catch (e) { + if(e instanceof HttpClientException) { + if(e.statusCode) expect(e.statusCode).toBe(422); + expect(e.message).toContain("Original pspReference required for this operation"); + } else { + fail(); + } } }); @@ -316,10 +334,14 @@ describe("Modification", (): void => { scope.post(`/payments/${paymentPspReference}/reversals`) .reply(200, createReversalsResponse()); try { - const result = await modification.reversals(paymentPspReference, request); + const result = await checkout.reversals(paymentPspReference, request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + if(e instanceof Error) { + if(e.message) fail(e.message); + } else { + fail(); + } } }); @@ -330,10 +352,14 @@ describe("Modification", (): void => { scope.post(`/payments/${invalidPaymentPspReference}/reversals`) .reply(422, invalidModificationResult); try { - await modification.reversals(invalidPaymentPspReference, request); - } catch (e: any) { - if(e.statusCode) expect(e.statusCode).toBe(422); - expect(e.message).toContain("Original pspReference required for this operation"); + await checkout.reversals(invalidPaymentPspReference, request); + } catch (e) { + if(e instanceof HttpClientException) { + if(e.statusCode) expect(e.statusCode).toBe(422); + expect(e.message).toContain("Original pspReference required for this operation"); + } else { + fail(); + } } }); }); diff --git a/src/__tests__/payout.spec.ts b/src/__tests__/payout.spec.ts index 072fbba..cf560cd 100644 --- a/src/__tests__/payout.spec.ts +++ b/src/__tests__/payout.spec.ts @@ -1,27 +1,15 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import nock from "nock"; import { createClient } from "../__mocks__/base"; import Payout from "../services/payout"; import Client from "../client"; -import StoreDetailRequest = IPayouts.StoreDetailRequest; +import { + ModifyRequest, + PayoutRequest, + Recurring, + StoreDetailAndSubmitRequest, + StoreDetailRequest, + SubmitRequest +} from "../typings/payouts/models"; import { ApiConstants } from "../constants/apiConstants"; const isCI = process.env.CI === "true" || (typeof process.env.CI === "boolean" && process.env.CI); @@ -50,13 +38,13 @@ const amountAndReference = { }; const defaultData = { - dateOfBirth: (new Date()).toISOString(), + dateOfBirth: new Date(), nationality: "NL", shopperEmail: "johndoe@email.com", shopperReference: "shopperReference", }; -const mockStoreDetailRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): IPayouts.StoreDetailRequest => ({ +const mockStoreDetailRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): StoreDetailRequest => ({ ...defaultData, card: { cvc: "737", @@ -65,29 +53,29 @@ const mockStoreDetailRequest = (merchantAccount: string = process.env.ADYEN_MERC number: "4111111111111111", holderName: "John Smith" }, - entityType: "Company", + entityType: StoreDetailRequest.EntityTypeEnum.Company, recurring: { - contract: "PAYOUT" + contract: Recurring.ContractEnum.Payout, }, merchantAccount, }); -const mockSubmitRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): IPayouts.SubmitRequest => ({ +const mockSubmitRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): SubmitRequest => ({ selectedRecurringDetailReference: "LATEST", recurring: { - contract: "PAYOUT" + contract: Recurring.ContractEnum.Payout }, ...defaultData, ...amountAndReference, merchantAccount, }); -const mockStoreDetailAndSubmitRequest = (merchantAccount?: string): IPayouts.StoreDetailAndSubmitRequest => ({ +const mockStoreDetailAndSubmitRequest = (merchantAccount?: string): StoreDetailAndSubmitRequest => ({ ...amountAndReference, ...(mockStoreDetailRequest(merchantAccount)), -}); +}); -const mockPayoutRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): IPayouts.PayoutRequest => ({ +const mockPayoutRequest = (merchantAccount: string = process.env.ADYEN_MERCHANT!): PayoutRequest => ({ ...amountAndReference, ...defaultData, card: { @@ -124,7 +112,7 @@ describe("PayoutTest", function (): void { test.each([isCI, true])("should succeed on store detail and submit third party, isMock: %p", async function (isMock): Promise { !isMock && nock.restore(); payout = new Payout(clientStore); - const request: IPayouts.StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest(); + const request: StoreDetailAndSubmitRequest = mockStoreDetailAndSubmitRequest(); scope.post("/storeDetailAndSubmitThirdParty").reply(200, storeDetailAndSubmitThirdParty); const result = await payout.storeDetailAndSubmitThirdParty(request); @@ -158,7 +146,7 @@ describe("PayoutTest", function (): void { response: "[payout-confirm-received]" }); - const request: IPayouts.ModifyRequest = { + const request: ModifyRequest = { merchantAccount: process.env.ADYEN_MERCHANT!, originalReference: storeResult.pspReference }; @@ -173,7 +161,7 @@ describe("PayoutTest", function (): void { payout = new Payout(clientStore); scope.post("/submitThirdParty").reply(200, storeDetailAndSubmitThirdParty); - const request: IPayouts.SubmitRequest = mockSubmitRequest(); + const request: SubmitRequest = mockSubmitRequest(); const result = await payout.submitThirdparty(request); expect(result.resultCode).toEqual("[payout-submit-received]"); @@ -193,7 +181,7 @@ describe("PayoutTest", function (): void { const storeResult = await payout.storeDetail(storeRequest); payout = new Payout(clientReview); - const request: IPayouts.ModifyRequest = { + const request: ModifyRequest = { merchantAccount: process.env.ADYEN_MERCHANT!, originalReference: storeResult.pspReference }; @@ -221,4 +209,4 @@ describe("PayoutTest", function (): void { expect(result.resultCode).toEqual("Received"); expect(result.pspReference).toBeTruthy(); }); -}); \ No newline at end of file +}); diff --git a/src/__tests__/platforms.spec.ts b/src/__tests__/platforms.spec.ts index acd2f64..27a3cbc 100644 --- a/src/__tests__/platforms.spec.ts +++ b/src/__tests__/platforms.spec.ts @@ -26,10 +26,11 @@ import { Client, Platforms } from "../index"; import * as A from "../typings/platformsAccount/models"; import F = IPlatformsFund; import N = IPlatformsNotificationConfiguration; -import H = IPlatformsHostedOnboardingPage; import AccountHolderDetails = A.AccountHolderDetails; import NotificationConfigurationDetails = N.NotificationConfigurationDetails; import HttpClientException from "../httpClient/httpClientException"; +import { GetOnboardingUrlRequest, GetOnboardingUrlResponse, GetPciUrlRequest, GetPciUrlResponse } from "../typings/platformsHostedOnboardingPage/models"; +import { DebitAccountHolderRequest, DebitAccountHolderResponse } from "../typings/platformsFund/models"; let client: Client; let platforms: Platforms; @@ -138,6 +139,7 @@ describe("Platforms Test", function () { ["refundFundsTransfer", createMock(), createMock()], ["setupBeneficiary", createMock(), createMock()], ["refundNotPaidOutTransfers", createMock(), createMock()], + ["debitAccountHolder", createMock(), createMock()], ]; test.each(cases)( "should %p", @@ -175,7 +177,8 @@ describe("Platforms Test", function () { describe("Hop", function () { const cases = [ - ["getOnboardingUrl", createMock(), createMock()] + ["getOnboardingUrl", createMock(), createMock()], + ["getPciQuestionnaireUrl", createMock(), createMock()], ]; test.each(cases)( "should %p", @@ -244,8 +247,12 @@ describe.skip("Platforms Test E2E", function(): void { nock.restore(); try { expect(accountHolder.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); it("should get account holder", async function() { @@ -255,8 +262,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: accountHolder.accountHolderCode, }); expect(result.accountHolderDetails.email).toEqual("random_email@example.com"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -273,8 +284,12 @@ describe.skip("Platforms Test E2E", function(): void { } }); expect(result.accountHolderDetails!.address?.country).toEqual("BE"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -287,8 +302,12 @@ describe.skip("Platforms Test E2E", function(): void { tier: 2 }); expect(result.resultCode).toEqual("Success"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -296,8 +315,12 @@ describe.skip("Platforms Test E2E", function(): void { nock.restore(); try { expect(account.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -314,8 +337,12 @@ describe.skip("Platforms Test E2E", function(): void { } }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -335,8 +362,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: account.accountHolderCode, }); expect(result.documentDetails![0].filename).toEqual("IDCardFront.png"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -347,8 +378,12 @@ describe.skip("Platforms Test E2E", function(): void { accountCode: accountToClose.accountCode }); expect(result.status).toEqual("Closed"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -359,8 +394,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: accountHolderToSuspend.accountHolderCode, }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -369,8 +408,12 @@ describe.skip("Platforms Test E2E", function(): void { try { const result = await platforms.Account.unSuspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -383,8 +426,12 @@ describe.skip("Platforms Test E2E", function(): void { stateType: A.UpdateAccountHolderStateRequest.StateTypeEnum.Payout }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -395,8 +442,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: accountHolderToClose.accountHolderCode }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -409,9 +460,13 @@ describe.skip("Platforms Test E2E", function(): void { year: 2020 }); expect(result.content).toBeDefined(); - } catch (e: any) { - assertError(e); - } + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } + } }); }); }); @@ -423,8 +478,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: generateRandomCode() }); expect(result.balancePerAccount![0].detailBalance).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -435,8 +494,12 @@ describe.skip("Platforms Test E2E", function(): void { accountHolderCode: generateRandomCode() }); expect(result.accountTransactionLists![0].transactions).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -453,8 +516,12 @@ describe.skip("Platforms Test E2E", function(): void { transferCode: "SUBSCRIPTION" }); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -468,8 +535,12 @@ describe.skip("Platforms Test E2E", function(): void { const result = await platforms.NotificationConfiguration.getNotificationConfigurationList({}); const resultStr = JSON.stringify(result); expect(resultStr.includes("pspReference")).toBeTruthy(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -483,8 +554,12 @@ describe.skip("Platforms Test E2E", function(): void { } }); expect(result.configurationDetails.active).toBeTruthy(); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -496,8 +571,12 @@ describe.skip("Platforms Test E2E", function(): void { notificationId: configurationID }); expect(result.configurationDetails.notifyURL).toEqual("https://www.adyen.com/notification-handler"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -522,8 +601,12 @@ describe.skip("Platforms Test E2E", function(): void { }); const accountHolderVerification = result.configurationDetails.eventConfigs.filter(event => event.eventType === "ACCOUNT_HOLDER_VERIFICATION")[0]; expect(accountHolderVerification.includeMode).toEqual("EXCLUDE"); - } catch (e: any) { - assertError(e); + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } } }); @@ -534,9 +617,13 @@ describe.skip("Platforms Test E2E", function(): void { try { const result = await platforms.NotificationConfiguration.deleteNotificationConfigurations({notificationIds}); expect(result.pspReference).toBeDefined(); - } catch (e: any) { - assertError(e); - } + } catch (e) { + if(e instanceof HttpClientException) { + assertError(e); + } else { + fail(); + } + } }); }); diff --git a/src/__tests__/recurring.spec.ts b/src/__tests__/recurring.spec.ts index e00827d..3a1e429 100644 --- a/src/__tests__/recurring.spec.ts +++ b/src/__tests__/recurring.spec.ts @@ -1,22 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import nock from "nock"; import { createClient } from "../__mocks__/base"; import { disableSuccess } from "../__mocks__/recurring/disableSuccess"; @@ -44,7 +25,6 @@ const createRecurringDetailsRequest = (): RecurringDetailsRequest => { shopperReference: "shopperReference", }; }; -const isCI = process.env.CI === "true" || (typeof process.env.CI === "boolean" && process.env.CI); let client: Client; let recurring: RecurringService; @@ -66,7 +46,7 @@ afterEach(() => { }); describe("Recurring", (): void => { - test("should list recurring details ", async (): Promise => { + test("should list recurring details", async (): Promise => { scope.post("/listRecurringDetails") .reply(200, listRecurringDetailsSuccess); const request = createRecurringDetailsRequest(); @@ -74,11 +54,10 @@ describe("Recurring", (): void => { const result = await recurring.listRecurringDetails(request); expect(result).toBeTruthy(); - expect(result.details?.[0].RecurringDetail.recurringDetailReference).toBe('recurringReference'); + expect(result.details?.[0].recurringDetailReference).toBe("recurringReference"); }); - test.each([isCI, true])("should disable, isMock: %p", async (isMock): Promise => { - !isMock && nock.restore(); + test("should disable", async (): Promise => { scope.post("/payments") .reply(200, paymentsSuccess); @@ -97,13 +76,12 @@ describe("Recurring", (): void => { try { const result = await recurring.disable(request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + fail(e); } }); - test.each([isCI, true])("should send pre-debit Notification, isMock %p", async (isMock): Promise => { - !isMock && nock.restore(); + test("should send pre-debit Notification", async (): Promise => { scope.post("/notifyShopper") .reply(200, notifyShopperSuccess); @@ -123,15 +101,13 @@ describe("Recurring", (): void => { try { const result = await recurring.notifyShopper(notifyShopperRequest); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + fail(e); } }); - // TODO: register account for AccountUpdater and unmock test - test.each([true])("should schedule account updater, isMock: %p", async (isMock): Promise => { - !isMock && nock.restore(); + test("should schedule account updater", async (): Promise => { const scheduleAccountUpdaterSuccess: ScheduleAccountUpdaterResult = { pspReference: "mocked_psp", result: "SUCCESS" @@ -154,8 +130,8 @@ describe("Recurring", (): void => { try { const result = await recurring.scheduleAccountUpdater(request); expect(result).toBeTruthy(); - } catch (e: any) { - fail(e.message); + } catch (e) { + fail(e); } }); }); diff --git a/src/__tests__/storedValue.spec.ts b/src/__tests__/storedValue.spec.ts new file mode 100644 index 0000000..ef24809 --- /dev/null +++ b/src/__tests__/storedValue.spec.ts @@ -0,0 +1,267 @@ +import nock from "nock"; +import Client from "../client"; +import {createClient} from "../__mocks__/base"; +import {StoredValue} from "../services"; +import { StoredValueIssueRequest, + StoredValueIssueResponse, + StoredValueStatusChangeRequest, + StoredValueStatusChangeResponse, + StoredValueLoadRequest, + StoredValueLoadResponse, + StoredValueBalanceCheckRequest, + StoredValueBalanceCheckResponse, + StoredValueBalanceMergeRequest, + StoredValueBalanceMergeResponse, + StoredValueVoidRequest, + StoredValueVoidResponse +} from "../typings/storedValue/models"; + + +let client: Client; +let storedValue: StoredValue; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}`); + storedValue = new StoredValue(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("StoredValue", (): void => { + test("Should issue Givex card", async (): Promise => { + scope.post("/issue") + .reply(200, { + "currentBalance": { + "currency": "EUR", + "value": 1000 + }, + "pspReference": "851564651069192J", + "resultCode": "Success", + "paymentMethod": { + "number": "7219627091701347", + "securityCode": "0140", + "type": "givex" + } + }); + const issueRequest: StoredValueIssueRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store": "YOUR_STORE_ID", + "paymentMethod": { + "type": "givex" + }, + "amount": { + "currency": "EUR", + "value": 1000 + }, + "reference": "YOUR_REFERENCE" + }; + + const issueResponse: StoredValueIssueResponse = await storedValue.issue(issueRequest); + expect(issueResponse.pspReference).toEqual("851564651069192J"); + + }); + + test("Should issue virtual Fiserv card", async (): Promise => { + scope.post("/issue") + .reply(200, { + "currentBalance": { + "currency": "EUR", + "value": 1000 + }, + "pspReference": "851564651069192J", + "resultCode": "Success", + "paymentMethod": { + "number": "7219627091701347", + "securityCode": "0140", + "type": "givex" + } + }); + const issueRequest: StoredValueIssueRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store": "YOUR_STORE_ID", + "paymentMethod": { + "type": "valuelink" + }, + // "giftCardPromoCode": "1324", + "reference": "YOUR_REFERENCE" + }; + + const issueResponse: StoredValueIssueResponse = await storedValue.issue(issueRequest); + expect(issueResponse.pspReference).toEqual("851564651069192J"); + + }); + + test("Should activate card", async (): Promise => { + scope.post("/changeStatus") + .reply(200, { + "currentBalance": { + "currency": "USD", + "value": 1000 + }, + "pspReference": "851564652149588K", + "resultCode": "Success" + }); + + const statusRequest: StoredValueStatusChangeRequest = { + "status": StoredValueStatusChangeRequest.StatusEnum.Active, + "amount": { + "currency": "USD", + "value": 1000 + }, + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store":"YOUR_STORE_ID", + "paymentMethod": { + "type": "svs", + "number": "6006491286999921374", + "securityCode": "1111" + }, + "reference": "YOUR_REFERENCE" + }; + + const changeStatusResponse: StoredValueStatusChangeResponse = await storedValue.changeStatus(statusRequest); + expect(changeStatusResponse.pspReference).toEqual("851564652149588K"); + }); + + test("Should deactivate card", async (): Promise => { + scope.post("/changeStatus") + .reply(200, { + "currentBalance": { + "currency": "USD", + "value": 1000 + }, + "pspReference": "851564652149588K", + "resultCode": "Success" + }); + + const statusRequest: StoredValueStatusChangeRequest = { + "status": StoredValueStatusChangeRequest.StatusEnum.Inactive, + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store":"YOUR_STORE_ID", + "paymentMethod": { + "type": "givex", + }, + "recurringDetailReference": "7219627091701347", + "shopperReference": "YOUR_UNIQUE_SHOPPER_ID_P3fW3k9D2tvXFu6l", + "shopperInteraction": StoredValueStatusChangeRequest.ShopperInteractionEnum.Ecommerce, + "reference": "YOUR_REFERENCE" + }; + + const changeStatusResponse: StoredValueStatusChangeResponse = await storedValue.changeStatus(statusRequest); + expect(changeStatusResponse.pspReference).toEqual("851564652149588K"); + }); + + test("Should load funds to card", async (): Promise => { + scope.post("/load") + .reply(200, { + "currentBalance": { + "currency": "USD", + "value": 30000 + }, + "pspReference": "851564654294247B", + "resultCode": "Success" + }); + + const loadRequest: StoredValueLoadRequest = { + "amount": { + "currency": "USD", + "value": 2000 + }, + "loadType": StoredValueLoadRequest.LoadTypeEnum.MerchandiseReturn, + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store":"YOUR_STORE_ID", + "paymentMethod": { + "type": "svs", + "number": "6006491286999921374", + "securityCode": "1111" + }, + "reference": "YOUR_REFERENCE" + }; + + const loadResponse: StoredValueLoadResponse = await storedValue.load(loadRequest); + expect(loadResponse.pspReference).toEqual("851564654294247B"); + }); + + test("Should check remaining balance of card", async (): Promise => { + scope.post("/checkBalance") + .reply(200, { + "currentBalance": { + "currency": "EUR", + "value": 5600 + }, + "pspReference": "881564657480267D", + "resultCode": "Success" + }); + + const checkBalanceRequest: StoredValueBalanceCheckRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store":"YOUR_STORE_ID", + "paymentMethod": { + "type": "svs", + "number": "603628672882001915092", + "securityCode": "5754" + }, + "reference": "YOUR_REFERENCE" + }; + + const checkBalanceResponse: StoredValueBalanceCheckResponse = await storedValue.checkBalance(checkBalanceRequest); + expect(checkBalanceResponse.pspReference).toEqual("881564657480267D"); + }); + + test("Should transfer full value from one card to another", async (): Promise => { + scope.post("/mergeBalance") + .reply(200, { + "currentBalance": { + "currency": "EUR", + "value": 5600 + }, + "pspReference": "881564657480267D", + "resultCode": "Success" + }); + + const mergeBalanceRequest: StoredValueBalanceMergeRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "store":"YOUR_STORE_ID", + "sourcePaymentMethod": { + "number": "7777182708544835", + "securityCode": "2329" + }, + "paymentMethod": { + "type": "valuelink", + "number": "8888182708544836", + "securityCode": "2330" + }, + "reference": "YOUR_REFERENCE" + }; + + const mergeBalanceResponse: StoredValueBalanceMergeResponse = await storedValue.mergebalance(mergeBalanceRequest); + expect(mergeBalanceResponse.pspReference).toEqual("881564657480267D"); + }); + + test("Should undo transaction on card", async (): Promise => { + scope.post("/voidTransaction") + .reply(200, { + "currentBalance": { + "currency": "EUR", + "value": 120000 + }, + "pspReference": "851564673300692A", + "resultCode": "Success" + }); + + const voidTransactionRequest: StoredValueVoidRequest = { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "originalReference": "851564654294247B", + "reference": "YOUR_REFERENCE" + }; + + const voidTransactionResponse: StoredValueVoidResponse = await storedValue.voidTransaction(voidTransactionRequest); + expect(voidTransactionResponse.pspReference).toEqual("851564673300692A"); + }); +}); \ No newline at end of file diff --git a/src/__tests__/terminalCloudAPI.spec.ts b/src/__tests__/terminalCloudAPI.spec.ts index ce2d68e..30b2a44 100644 --- a/src/__tests__/terminalCloudAPI.spec.ts +++ b/src/__tests__/terminalCloudAPI.spec.ts @@ -23,7 +23,7 @@ import { asyncRes } from "../__mocks__/terminalApi/async"; import { syncRefund, syncRes, syncResEventNotification } from "../__mocks__/terminalApi/sync"; import Client from "../client"; import TerminalCloudAPI from "../services/terminalCloudAPI"; -import { TerminalApiResponse } from "../typings/terminal/models"; +import { SaleToAcquirerData, TerminalApiResponse } from "../typings/terminal/models"; let client: Client; let terminalCloudAPI: TerminalCloudAPI; @@ -46,7 +46,7 @@ afterEach((): void => { const isCI = process.env.CI === "true" || (typeof process.env.CI === "boolean" && process.env.CI); describe("Terminal Cloud API", (): void => { - test.each([isCI, true])("should make an async payment request, isMock: %p", async (isMock): Promise => { + test.each([isCI])("should make an async payment request, isMock: %p", async (isMock): Promise => { !isMock && nock.restore(); scope.post("/async").reply(200, asyncRes); @@ -57,7 +57,7 @@ describe("Terminal Cloud API", (): void => { expect(requestResponse).toEqual("ok"); }); - test.each([isCI, true])("should make a sync payment request, isMock: %p", async (isMock): Promise => { + test.each([isCI])("should make a sync payment request, isMock: %p", async (isMock): Promise => { !isMock && nock.restore(); scope.post("/sync").reply(200, syncRes); @@ -68,7 +68,7 @@ describe("Terminal Cloud API", (): void => { expect(terminalAPIResponse.SaleToPOIResponse?.MessageHeader).toBeDefined(); }); - test.each([isCI, true])("should return event notification if response contains it, isMock: %p", async (isMock): Promise => { + test.each([isCI])("should return event notification if response contains it, isMock: %p", async (isMock): Promise => { !isMock && nock.restore(); const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest(); @@ -79,23 +79,26 @@ describe("Terminal Cloud API", (): void => { expect(terminalAPIResponse.SaleToPOIRequest?.EventNotification).toBeDefined(); }); - test.each([isCI, true])("should make an async refund request, isMock: %p", async (isMock): Promise => { + test.each([isCI])("should make an async refund request, isMock: %p", async (isMock): Promise => { !isMock && nock.restore(); scope.post("/sync").reply(200, syncRes); const terminalAPIPaymentRequest = createTerminalAPIPaymentRequest(); const terminalAPIResponse: TerminalApiResponse = await terminalCloudAPI.sync(terminalAPIPaymentRequest); + const pOITransactionId = terminalAPIResponse.SaleToPOIResponse!.PaymentResponse!.POIData!.POITransactionID; + expect(pOITransactionId).toBeTruthy(); + scope.post("/sync").reply(200, syncRefund); - const pOITransactionId = terminalAPIResponse.SaleToPOIResponse?.PaymentResponse?.POIData!.POITransactionID; - if(pOITransactionId) { - const terminalAPIRefundRequest = createTerminalAPIRefundRequest(pOITransactionId); - const terminalAPIRefundResponse = await terminalCloudAPI.sync(terminalAPIRefundRequest); + const terminalAPIRefundRequest = createTerminalAPIRefundRequest(pOITransactionId); + const id = Math.floor(Math.random() * Math.floor(10000000)).toString(); + terminalAPIRefundRequest.SaleToPOIRequest.MessageHeader.ServiceID = id; + const saleToAcquirerData: SaleToAcquirerData = new SaleToAcquirerData(); + saleToAcquirerData.currency = "EUR"; + terminalAPIRefundRequest.SaleToPOIRequest.ReversalRequest!.SaleData!.SaleToAcquirerData = saleToAcquirerData; + const terminalAPIRefundResponse = await terminalCloudAPI.sync(terminalAPIRefundRequest); - expect(terminalAPIRefundResponse.SaleToPOIResponse?.ReversalResponse).toBeDefined(); - } else { - fail(); - } - }); + expect(terminalAPIRefundResponse.SaleToPOIResponse?.ReversalResponse?.Response.Result).toBe("Success"); + }, 20000); }); diff --git a/src/__tests__/terminalLocalAPI.spec.ts b/src/__tests__/terminalLocalAPI.spec.ts index b8bc038..61da4a2 100644 --- a/src/__tests__/terminalLocalAPI.spec.ts +++ b/src/__tests__/terminalLocalAPI.spec.ts @@ -79,9 +79,13 @@ describe("Terminal Local API", (): void => { try { await terminalLocalAPI.request(terminalAPIPaymentRequest, securityKey); - } catch (e: any) { - expect(e instanceof NexoCryptoException); - expect(e.message).toEqual("Hmac validation failed"); + } catch (e) { + if(e instanceof NexoCryptoException) { + expect(e.message).toEqual("Hmac validation failed"); + } else { + fail(); + } + } }); }); diff --git a/src/__tests__/terminalManagement.spec.ts b/src/__tests__/terminalManagement.spec.ts new file mode 100644 index 0000000..8a438bc --- /dev/null +++ b/src/__tests__/terminalManagement.spec.ts @@ -0,0 +1,157 @@ +import nock from "nock"; +import Client from "../client"; +import { createClient } from "../__mocks__/base"; +import TerminalManagement from "../services/terminalManagement"; +import { + AssignTerminalsRequest, + AssignTerminalsResponse, + FindTerminalRequest, + FindTerminalResponse, + GetStoresUnderAccountRequest, + GetStoresUnderAccountResponse, + GetTerminalDetailsRequest, + GetTerminalDetailsResponse, + GetTerminalsUnderAccountRequest, + GetTerminalsUnderAccountResponse +} from "../typings/terminalManagement/models"; + +let client: Client; +let terminalManagement: TerminalManagement; +let scope: nock.Scope; + +beforeEach((): void => { + if (!nock.isActive()) { + nock.activate(); + } + client = createClient(); + scope = nock(`${client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}`); + terminalManagement = new TerminalManagement(client); +}); + +afterEach(() => { + nock.cleanAll(); +}); + +describe("POS Terminal Management API", (): void => { + test("Should support /assignTerminals", async (): Promise => { + scope.post("/assignTerminals") + .reply(200, { + "results": { + "P400Plus-275479597": "RemoveConfigScheduled" + } + }); + const request: AssignTerminalsRequest = { + "companyAccount": "YOUR_COMPANY_ACCOUNT", + "terminals": [ + "P400Plus-275479597" + ] + }; + + const response: AssignTerminalsResponse = await terminalManagement.assignTerminals(request); + + expect(response.results["P400Plus-275479597"]).toEqual("RemoveConfigScheduled"); + }); + + test("Should support /findTerminal", async (): Promise => { + scope.post("/findTerminal") + .reply(200, { + "companyAccount": "YOUR_COMPANY_ACCOUNT", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "merchantInventory": false, + "terminal": "P400Plus-275479597" + }); + const request: FindTerminalRequest = { + "terminal": "P400Plus-275479597" + }; + + const response: FindTerminalResponse = await terminalManagement.findTerminal(request); + + expect(response.terminal).toEqual("P400Plus-275479597"); + }); + + test("Should support /getStoresUnderAccount", async (): Promise => { + scope.post("/getStoresUnderAccount") + .reply(200, { + "stores": [ + { + "store": "YOUR_STORE", + "description": "YOUR_STORE", + "address": { + "city": "The City", + "countryCode": "NL", + "postalCode": "1234", + "streetAddress": "The Street" + }, + "status": "Active", + "merchantAccountCode": "YOUR_MERCHANT_ACCOUNT" + } + ] + }); + const request: GetStoresUnderAccountRequest = { + "companyAccount": "YOUR_COMPANY_ACCOUNT" + }; + + const response: GetStoresUnderAccountResponse = await terminalManagement.getStoresUnderAccount(request); + + expect(response.stores).toHaveLength(1); + expect(response.stores![0].status).toEqual("Active"); + expect(response.stores![0].address?.countryCode).toEqual("NL"); + }); + + test("Should support /getTerminalDetails", async (): Promise => { + scope.post("/getTerminalDetails") + .reply(200, { + "companyAccount": "YOUR_COMPANY_ACCOUNT", + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "merchantInventory": false, + "terminal": "P400Plus-275479597", + "deviceModel": "P400Plus", + "serialNumber": "275-479-597", + "permanentTerminalId": "75479597", + "terminalStatus": "ReAssignToInventoryPending", + "firmwareVersion": "Verifone_VOS 1.57.6", + "country": "NETHERLANDS", + "dhcpEnabled": false + }); + const request: GetTerminalDetailsRequest = { + "terminal": "P400Plus-275479597" + }; + + const response: GetTerminalDetailsResponse = await terminalManagement.getTerminalDetails(request); + + expect(response.deviceModel).toBe("P400Plus"); + }); + + + test("Should support /getTerminalsUnderAccount", async (): Promise => { + scope.post("/getTerminalsUnderAccount") + .reply(200, { + "companyAccount": "YOUR_COMPANY_ACCOUNT", + "merchantAccounts": [ + { + "merchantAccount": "YOUR_MERCHANT_ACCOUNT", + "inStoreTerminals": [ + "P400Plus-275479597" + ], + "stores": [ + { + "store": "YOUR_STORE", + "inStoreTerminals": [ + "M400-401972715" + ] + } + ] + } + ] + }); + const request: GetTerminalsUnderAccountRequest = { + "companyAccount": "YOUR_COMPANY_ACCOUNT" + }; + + const response: GetTerminalsUnderAccountResponse = await terminalManagement.getTerminalsUnderAccount(request); + + expect(response.merchantAccounts).toHaveLength(1); + expect(response.merchantAccounts![0].stores).toHaveLength(1); + expect(response.merchantAccounts![0].stores![0].inStoreTerminals).toEqual(["M400-401972715"]); + }); +}); \ No newline at end of file diff --git a/src/client.ts b/src/client.ts index a210d00..05ca7ae 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,22 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import Config from "./config"; import HttpURLConnectionClient from "./httpClient/httpURLConnectionClient"; import { version } from "../package.json"; @@ -53,13 +34,17 @@ class Client { public static MARKETPAY_ENDPOINT_TEST = "https://cal-test.adyen.com/cal/services"; public static MARKETPAY_ENDPOINT_LIVE = "https://cal-live.adyen.com/cal/services"; public static CHECKOUT_API_VERSION = "v69"; - public static API_VERSION = "v64"; - public static RECURRING_API_VERSION = "v49"; + public static API_VERSION = "v68"; + public static RECURRING_API_VERSION = "v68"; public static MARKETPAY_ACCOUNT_API_VERSION = "v6"; public static MARKETPAY_FUND_API_VERSION = "v6"; public static MARKETPAY_HOP_API_VERSION = "v6"; public static MARKETPAY_NOTIFICATION_API_VERSION = "v5"; public static MARKETPAY_NOTIFICATION_CONFIGURATION_API_VERSION = "v6"; + public static PAYMENT_API_VERSION = "v68"; + public static STOREDVALUE_API_VERSION = "v46"; + public static TERMINAL_MANAGEMENT_API_VERSION = "v1"; + public static MANAGEMENT_API_VERSION = "v1"; public static LIB_NAME = "adyen-node-api-library"; public static LIB_VERSION: string = version; public static CHECKOUT_ENDPOINT_TEST = "https://checkout-test.adyen.com/checkout"; @@ -69,6 +54,17 @@ class Client { public static TERMINAL_API_ENDPOINT_TEST = "https://terminal-api-test.adyen.com"; public static TERMINAL_API_ENDPOINT_LIVE = "https://terminal-api-live.adyen.com"; public static ENDPOINT_PROTOCOL = "https://"; + public static PAYMENT_API_ENDPOINT_TEST = "https://pal-test.adyen.com/pal/servlet/Payment"; + public static PAYMENT_API_ENDPOINT_LIVE = "https://pal-live.adyen.com/pal/servlet/Payment"; + public static STOREDVALUE_API_ENDPOINT_TEST = "https://pal-test.adyen.com/pal/servlet/StoredValue"; + public static STOREDVALUE_API_ENDPOINT_LIVE = "https://pal-live.adyen.com/pal/servlet/StoredValue"; + public static TERMINAL_MANAGEMENT_API_ENDPOINT_TEST = "https://postfmapi-test.adyen.com/postfmapi/terminal"; + public static TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE = "https://postfmapi-live.adyen.com/postfmapi/terminal"; + public static MANAGEMENT_API_ENDPOINT_TEST = "https://management-test.adyen.com"; + public static MANAGEMENT_API_ENDPOINT_LIVE = "https://management-live.adyen.com"; + public static BALANCE_PLATFORM_API_VERSION = "v2"; + public static BALANCE_PLATFORM_API_ENDPOINT_TEST = "https://balanceplatform-api-test.adyen.com/bcl"; + public static BALANCE_PLATFORM_API_ENDPOINT_LIVE = "https://balanceplatform-api-live.adyen.com/bcl"; private _httpClient!: ClientInterface; public config: Config; @@ -107,11 +103,22 @@ class Client { this.config.hppEndpoint = Client.HPP_TEST; this.config.checkoutEndpoint = Client.CHECKOUT_ENDPOINT_TEST; this.config.terminalApiCloudEndpoint = Client.TERMINAL_API_ENDPOINT_TEST; + this.config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_TEST; + this.config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_TEST; + this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST; + this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST; + this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST; } else if (environment === "LIVE") { this.config.endpoint = Client.ENDPOINT_LIVE; this.config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_LIVE; this.config.hppEndpoint = Client.HPP_LIVE; this.config.terminalApiCloudEndpoint = Client.TERMINAL_API_ENDPOINT_LIVE; + this.config.paymentEndpoint = Client.PAYMENT_API_ENDPOINT_LIVE; + this.config.storedValueEndpoint = Client.STOREDVALUE_API_ENDPOINT_LIVE; + this.config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_LIVE; + this.config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_LIVE; + this.config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_LIVE; + if (liveEndpointUrlPrefix) { this.config.endpoint = `${Client.ENDPOINT_PROTOCOL}${liveEndpointUrlPrefix}${Client.ENDPOINT_LIVE_SUFFIX}`; diff --git a/src/config.ts b/src/config.ts index f8ceb40..bba4d54 100644 --- a/src/config.ts +++ b/src/config.ts @@ -34,6 +34,11 @@ interface ConfigConstructor { checkoutEndpoint?: string; terminalApiCloudEndpoint?: string; terminalApiLocalEndpoint?: string; + paymentEndpoint?: string; + storedValueEndpoint?: string; + terminalManagementEndpoint?: string; + managementEndpoint?: string; + balancePlatformEndpoint?: string; } class Config { @@ -58,6 +63,12 @@ class Config { public terminalApiCloudEndpoint?: string; public terminalApiLocalEndpoint?: string; + public paymentEndpoint?: string; + public storedValueEndpoint?: string; + public terminalManagementEndpoint?: string; + public managementEndpoint?: string; + public balancePlatformEndpoint?: string; + public constructor(options: ConfigConstructor = {}) { if (options.username) this.username = options.username; if (options.password) this.password = options.password; @@ -76,6 +87,11 @@ class Config { if (options.checkoutEndpoint) this._checkoutEndpoint = options.checkoutEndpoint; if (options.terminalApiCloudEndpoint) this.terminalApiCloudEndpoint = options.terminalApiCloudEndpoint; if (options.terminalApiLocalEndpoint) this.terminalApiLocalEndpoint = options.terminalApiLocalEndpoint; + if (options.paymentEndpoint) this.paymentEndpoint = options.paymentEndpoint; + if (options.storedValueEndpoint) this.storedValueEndpoint = options.storedValueEndpoint; + if (options.terminalManagementEndpoint) this.terminalManagementEndpoint = options.terminalManagementEndpoint; + if (options.managementEndpoint) this.managementEndpoint = options.managementEndpoint; + if (options.balancePlatformEndpoint) this.balancePlatformEndpoint = options.balancePlatformEndpoint; } public set checkoutEndpoint(checkoutEndpoint: string | undefined) { diff --git a/src/httpClient/httpURLConnectionClient.ts b/src/httpClient/httpURLConnectionClient.ts index 3ce1b18..582d628 100644 --- a/src/httpClient/httpURLConnectionClient.ts +++ b/src/httpClient/httpURLConnectionClient.ts @@ -22,7 +22,7 @@ import { Agent, AgentOptions, request as httpsRequest } from "https"; import { HttpsProxyAgent } from "https-proxy-agent"; import * as fs from "fs"; -import { URL } from "url"; +import { URL, URLSearchParams } from "url"; import Client from "../client"; import Config from "../config"; import HttpClientException from "./httpClientException"; @@ -87,6 +87,10 @@ class HttpURLConnectionClient implements ClientInterface { requestOptions.port = url.port; requestOptions.path = url.pathname; + if (requestOptions.params) { + requestOptions.path += "?" + new URLSearchParams(requestOptions.params).toString(); + } + if (requestOptions && requestOptions.idempotencyKey) { requestOptions.headers[ApiConstants.IDEMPOTENCY_KEY] = requestOptions.idempotencyKey; delete requestOptions.idempotencyKey; @@ -195,8 +199,9 @@ class HttpURLConnectionClient implements ClientInterface { checkServerIdentity, }; - } catch (e: any) { - return Promise.reject(new HttpClientException({ message: `Error loading certificate from path: ${e.message}` })); + } catch (e) { + const message = e instanceof Error ? e.message: "undefined"; + return Promise.reject(new HttpClientException({ message: `Error loading certificate from path: ${message}` })); } } diff --git a/src/services/balancePlaftform/accountHolders.ts b/src/services/balancePlaftform/accountHolders.ts new file mode 100644 index 0000000..f5867a5 --- /dev/null +++ b/src/services/balancePlaftform/accountHolders.ts @@ -0,0 +1,52 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { AccountHolder, AccountHolderInfo, ObjectSerializer, PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models"; +import { IRequest } from "../../typings/requestOptions"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +// @TODO PW-7013: make this change at the spec level? +export type AccountHolderUpdate = Omit; + +class AccountHolders extends Service { + public async create(request: AccountHolderInfo): Promise { + const resource = new BalancePlatformResource(this, "/accountHolders"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "AccountHolder"); + } + + public async retrieve(id: string): Promise { + const resource = new BalancePlatformResource(this, `/accountHolders/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "AccountHolder"); + } + + public async update(id: string, request: AccountHolderUpdate): Promise { + const resource = new BalancePlatformResource(this, `/accountHolders/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "AccountHolder"); + } + + public async listBalanceAccounts(id: string, requestOptions?: IRequest.Options): Promise { + const resource = new BalancePlatformResource(this, `/accountHolders/${id}/balanceAccounts`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaginatedBalanceAccountsResponse"); + } +} + +export default AccountHolders; \ No newline at end of file diff --git a/src/services/balancePlaftform/balanceAccounts.ts b/src/services/balancePlaftform/balanceAccounts.ts new file mode 100644 index 0000000..6416cd6 --- /dev/null +++ b/src/services/balancePlaftform/balanceAccounts.ts @@ -0,0 +1,103 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { BalanceAccount, BalanceAccountInfo, BalanceAccountUpdateRequest, BalanceSweepConfigurationsResponse, ObjectSerializer, PaginatedPaymentInstrumentsResponse, SweepConfigurationV2 } from "../../typings/balancePlatform/models"; +import { IRequest } from "../../typings/requestOptions"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +// @TODO PW-7013: make this change at the spec level? +export type SweepConfigurationV2Create = Omit; +export type SweepConfigurationV2Update = Partial; + +class BalanceAccounts extends Service { + public async create(request: BalanceAccountInfo): Promise { + const resource = new BalancePlatformResource(this, "/balanceAccounts"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "BalanceAccount"); + } + + public async listSweeps(balanceAccountId: string, requestOptions?: IRequest.Options): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BalanceSweepConfigurationsResponse"); + } + + public async createSweep(balanceAccountId: string, request: SweepConfigurationV2Create): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); + } + + public async deleteSweep(balanceAccountId: string, sweepId: string): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`); + await getJsonResponse( + resource, + "", + { method: "DELETE" } + ); + } + + public async retrieveSweep(balanceAccountId: string, sweepId: string): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); + } + + public async updateSweep(balanceAccountId: string, sweepId: string, request: SweepConfigurationV2Update): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${balanceAccountId}/sweeps/${sweepId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "SweepConfigurationV2"); + } + + public async retrieve(id: string): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BalanceAccount"); + } + + public async update(id: string, request: BalanceAccountUpdateRequest): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "BalanceAccount"); + } + + public async listPaymentInstruments(id: string, requestOptions?: IRequest.Options): Promise { + const resource = new BalancePlatformResource(this, `/balanceAccounts/${id}/paymentInstruments`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaginatedPaymentInstrumentsResponse"); + } + +} + +export default BalanceAccounts; diff --git a/src/services/balancePlaftform/general.ts b/src/services/balancePlaftform/general.ts new file mode 100644 index 0000000..9640772 --- /dev/null +++ b/src/services/balancePlaftform/general.ts @@ -0,0 +1,29 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { BalancePlatform, ObjectSerializer, PaginatedAccountHoldersResponse } from "../../typings/balancePlatform/models"; +import { IRequest } from "../../typings/requestOptions"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +class General extends Service { + public async retrieve(id: string): Promise { + const resource = new BalancePlatformResource(this, `/balancePlatforms/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BalancePlatform"); + } + + public async listAccountHolders(id: string, requestOptions?: IRequest.Options): Promise { + const resource = new BalancePlatformResource(this, `/balancePlatforms/${id}/accountHolders`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaginatedAccountHoldersResponse"); + } +} + +export default General; diff --git a/src/services/balancePlaftform/paymentInstrumentGroups.ts b/src/services/balancePlaftform/paymentInstrumentGroups.ts new file mode 100644 index 0000000..453b011 --- /dev/null +++ b/src/services/balancePlaftform/paymentInstrumentGroups.ts @@ -0,0 +1,39 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ObjectSerializer, PaymentInstrumentGroup, PaymentInstrumentGroupInfo, TransactionRulesResponse } from "../../typings/balancePlatform/models"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +class PaymentInstrumentGroups extends Service { + public async create(request: PaymentInstrumentGroupInfo): Promise { + const resource = new BalancePlatformResource(this, "/paymentInstrumentGroups"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup"); + } + + public async retrieve(id: string): Promise { + const resource = new BalancePlatformResource(this, `/paymentInstrumentGroups/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaymentInstrumentGroup"); + } + + public async listTransactionRules(id: string): Promise { + const resource = new BalancePlatformResource(this, `/paymentInstrumentGroups/${id}/transactionRules`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); + } +} + +export default PaymentInstrumentGroups; + diff --git a/src/services/balancePlaftform/paymentInstruments.ts b/src/services/balancePlaftform/paymentInstruments.ts new file mode 100644 index 0000000..ab2b53c --- /dev/null +++ b/src/services/balancePlaftform/paymentInstruments.ts @@ -0,0 +1,48 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ObjectSerializer, PaymentInstrument, PaymentInstrumentInfo, PaymentInstrumentUpdateRequest, TransactionRulesResponse } from "../../typings/balancePlatform/models"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +class PaymentInstruments extends Service { + public async create(request: PaymentInstrumentInfo): Promise { + const resource = new BalancePlatformResource(this, "/paymentInstruments"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "PaymentInstrument"); + } + + public async retrieve(id: string): Promise { + const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaymentInstrument"); + } + + public async update(id: string, request: PaymentInstrumentUpdateRequest): Promise { + const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "PaymentInstrument"); + } + + public async listTransactionRules(id: string): Promise { + const resource = new BalancePlatformResource(this, `/paymentInstruments/${id}/transactionRules`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TransactionRulesResponse"); + } +} + +export default PaymentInstruments; diff --git a/src/services/balancePlaftform/transactionRules.ts b/src/services/balancePlaftform/transactionRules.ts new file mode 100644 index 0000000..1b79165 --- /dev/null +++ b/src/services/balancePlaftform/transactionRules.ts @@ -0,0 +1,50 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ObjectSerializer, TransactionRule, TransactionRuleInfo, TransactionRuleResponse } from "../../typings/balancePlatform/models"; +import BalancePlatformResource from "../resource/balancePlaftformResource"; + +// @TODO PW-7013: make this change at the spec level? +export type TransactionRuleInfoUpdate = Partial; + +class TransactionRules extends Service { + public async create(request: TransactionRuleInfo): Promise { + const resource = new BalancePlatformResource(this, "/transactionRules"); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "TransactionRule"); + } + public async retrieve(transactionRuleId: string): Promise { + const resource = new BalancePlatformResource(this, `/transactionRules/${transactionRuleId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TransactionRuleResponse"); + } + + public async update(transactionRuleId: string, request: TransactionRuleInfoUpdate): Promise { + const resource = new BalancePlatformResource(this, `/transactionRules/${transactionRuleId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "TransactionRule"); + } + + public async delete(transactionRuleId: string): Promise { + const resource = new BalancePlatformResource(this, `/transactionRules/${transactionRuleId}`); + const response = await getJsonResponse( + resource, + "", + { method: "DELETE" } + ); + return ObjectSerializer.deserialize(response, "TransactionRule"); + } +} + +export default TransactionRules; diff --git a/src/services/balancePlatform.ts b/src/services/balancePlatform.ts new file mode 100644 index 0000000..d187a5b --- /dev/null +++ b/src/services/balancePlatform.ts @@ -0,0 +1,40 @@ +import Service from "../service"; +import Client from "../client"; +import AccountHolders from "./balancePlaftform/accountHolders"; +import BalanceAccounts from "./balancePlaftform/balanceAccounts"; +import General from "./balancePlaftform/general"; +import PaymentInstruments from "./balancePlaftform/paymentInstruments"; +import PaymentInstrumentGroups from "./balancePlaftform/paymentInstrumentGroups"; +import TransactionRules from "./balancePlaftform/transactionRules"; + +class BalancePlatform extends Service { + public constructor(client: Client) { + super(client); + } + + public get General() { + return new General(this.client); + } + + public get AccountHolders() { + return new AccountHolders(this.client); + } + + public get BalanceAccounts() { + return new BalanceAccounts(this.client); + } + + public get PaymentInstruments() { + return new PaymentInstruments(this.client); + } + + public get PaymentInstrumentGroups() { + return new PaymentInstrumentGroups(this.client); + } + + public get TransactionRules() { + return new TransactionRules(this.client); + } +} + +export default BalancePlatform; diff --git a/src/services/binLookup.ts b/src/services/binLookup.ts index 438b640..122b7ca 100644 --- a/src/services/binLookup.ts +++ b/src/services/binLookup.ts @@ -1,26 +1,14 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; import Client from "../client"; import GetCostEstimate from "./resource/binLookup/getCostEstimate"; import Get3dsAvailability from "./resource/binLookup/get3dsAvailability"; import getJsonResponse from "../helpers/getJsonResponse"; +import { + ThreeDSAvailabilityRequest, + ThreeDSAvailabilityResponse, + CostEstimateRequest, + CostEstimateResponse, +} from "../typings/binlookup/models"; class BinLookup extends ApiKeyAuthenticatedService { private readonly _get3dsAvailability: Get3dsAvailability; @@ -32,15 +20,15 @@ class BinLookup extends ApiKeyAuthenticatedService { this._getCostEstimate = new GetCostEstimate(this); } - public get3dsAvailability(request: IBinLookup.ThreeDSAvailabilityRequest): Promise { - return getJsonResponse( + public get3dsAvailability(request: ThreeDSAvailabilityRequest): Promise { + return getJsonResponse( this._get3dsAvailability, request ); } - public getCostEstimate(request: IBinLookup.CostEstimateRequest): Promise { - return getJsonResponse( + public getCostEstimate(request: CostEstimateRequest): Promise { + return getJsonResponse( this._getCostEstimate, request ); diff --git a/src/services/checkout.ts b/src/services/checkout.ts index 90a2834..81a39e3 100644 --- a/src/services/checkout.ts +++ b/src/services/checkout.ts @@ -1,22 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; @@ -28,6 +9,12 @@ import PaymentsResult from "./resource/checkout/paymentsResult"; import PaymentLinks from "./resource/checkout/paymentLinks"; import OriginKeys from "./resource/checkout/originKeys"; import setApplicationInfo from "../helpers/setApplicationInfo"; +import AmountUpdates from "./resource/checkout/amountUpdates"; +import Cancels from "./resource/checkout/cancels"; +import Captures from "./resource/checkout/captures"; +import Refunds from "./resource/checkout/refunds"; +import Reversals from "./resource/checkout/reversals"; +import CancelsStandalone from "./resource/checkout/cancelsStandalone"; import { IRequest } from "../typings/requestOptions"; import { PaymentRequest, @@ -52,7 +39,22 @@ import { CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, PaymentDonationRequest, - DonationResponse + DonationResponse, + CardDetailsRequest, + CardDetailsResponse, + CreatePaymentAmountUpdateRequest, + CreatePaymentCancelRequest, + CreatePaymentCaptureRequest, + CreatePaymentRefundRequest, + CreatePaymentReversalRequest, + CreateStandalonePaymentCancelRequest, + PaymentAmountUpdateResource, + PaymentCancelResource, + PaymentCaptureResource, + PaymentRefundResource, + PaymentReversalResource, + StandalonePaymentCancelResource, + ObjectSerializer } from "../typings/checkout/models"; import PaymentLinksId from "./resource/checkout/paymentLinksId"; @@ -61,6 +63,7 @@ import Orders from "./resource/checkout/orders"; import OrdersCancel from "./resource/checkout/ordersCancel"; import Sessions from "./resource/checkout/sessions"; import Donations from "./resource/checkout/donations"; +import CardDetails from "./resource/checkout/cardDetails"; class Checkout extends ApiKeyAuthenticatedService { private readonly _payments: Payments; @@ -69,13 +72,13 @@ class Checkout extends ApiKeyAuthenticatedService { private readonly _paymentSession: PaymentSession; private readonly _paymentsResult: PaymentsResult; private readonly _paymentLinks: PaymentLinks; - private readonly _paymentLinksId: PaymentLinksId; private readonly _originKeys: OriginKeys; private readonly _paymentMethodsBalance: PaymentMethodsBalance; private readonly _orders: Orders; private readonly _ordersCancel: OrdersCancel; private readonly _sessions: Sessions; private readonly _donations: Donations; + private readonly _cardDetails: CardDetails; public constructor(client: Client) { super(client); @@ -85,121 +88,248 @@ class Checkout extends ApiKeyAuthenticatedService { this._paymentSession = new PaymentSession(this); this._paymentsResult = new PaymentsResult(this); this._paymentLinks = new PaymentLinks(this); - this._paymentLinksId = new PaymentLinksId(this); this._originKeys = new OriginKeys(this); this._paymentMethodsBalance = new PaymentMethodsBalance(this); this._orders = new Orders(this); this._ordersCancel = new OrdersCancel(this); this._sessions = new Sessions(this); this._donations = new Donations(this); + this._cardDetails = new CardDetails(this); } - public payments(paymentsRequest: PaymentRequest, requestOptions?: IRequest.Options): Promise { - return getJsonResponse( + // Payments + + public async sessions(checkoutSessionRequest: CreateCheckoutSessionRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._sessions, + checkoutSessionRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "CreateCheckoutSessionResponse"); + } + + public async paymentMethods(paymentMethodsRequest: PaymentMethodsRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._paymentMethods, + paymentMethodsRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "PaymentMethodsResponse"); + } + + public async payments(paymentsRequest: PaymentRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( this._payments, setApplicationInfo(paymentsRequest), requestOptions, ); + return ObjectSerializer.deserialize(response, "PaymentResponse"); } - public paymentMethods(paymentMethodsRequest: PaymentMethodsRequest): Promise { - return getJsonResponse( - this._paymentMethods, - paymentMethodsRequest, - ); - } - - public paymentLinks(paymentLinkRequest: CreatePaymentLinkRequest): Promise { - return getJsonResponse( - this._paymentLinks, - paymentLinkRequest - ); - } - - public getPaymentLinks(linkId: string): Promise { - this._paymentLinksId.id = linkId; - return getJsonResponse, PaymentLinkResponse>( - this._paymentLinksId, - {}, - { method: "GET" } - ); - } - - public updatePaymentLinks(linkId: string, status: "expired"): Promise { - this._paymentLinksId.id = linkId; - return getJsonResponse, PaymentLinkResponse>( - this._paymentLinksId, - { status }, - { method: "PATCH" } - ); - } - - public paymentsDetails(paymentsDetailsRequest: DetailsRequest, requestOptions?: IRequest.Options): Promise { - return getJsonResponse( + public async paymentsDetails(paymentsDetailsRequest: DetailsRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( this._paymentsDetails, paymentsDetailsRequest, - requestOptions + requestOptions, ); + return ObjectSerializer.deserialize(response, "PaymentResponse"); } - public paymentSession( + public async donations(donationRequest: PaymentDonationRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._donations, + donationRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "DonationResponse"); + } + + public async cardDetails(cardDetailsRequest: CardDetailsRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._cardDetails, + cardDetailsRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "CardDetailsResponse"); + } + + // Payment Links + + public async paymentLinks(paymentLinkRequest: CreatePaymentLinkRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._paymentLinks, + paymentLinkRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); + } + + public async getPaymentLinks(linkId: string, requestOptions?: IRequest.Options): Promise { + const paymentLinksId = new PaymentLinksId(this, linkId); + const response = await getJsonResponse, PaymentLinkResponse>( + paymentLinksId, + {}, + {...{ method: "GET" }, ...requestOptions}, + ); + return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); + } + + public async updatePaymentLinks(linkId: string, status: "expired", requestOptions?: IRequest.Options): Promise { + const paymentLinksId = new PaymentLinksId(this, linkId); + const response = await getJsonResponse, PaymentLinkResponse>( + paymentLinksId, + { status }, + {...{ method: "PATCH" }, ...requestOptions}, + ); + return ObjectSerializer.deserialize(response, "PaymentLinkResponse"); + } + + // Modifications + + public async amountUpdates( + paymentPspReference: string, + amountUpdatesRequest: CreatePaymentAmountUpdateRequest, + requestOptions?: IRequest.Options, + ): Promise { + const amountUpdates = new AmountUpdates(this, paymentPspReference); + const response = await getJsonResponse( + amountUpdates, + amountUpdatesRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "PaymentAmountUpdateResource"); + } + + public async cancelsStandalone( + cancelsStandaloneRequest: CreateStandalonePaymentCancelRequest, + requestOptions?: IRequest.Options + ): Promise { + const cancelsStandalone = new CancelsStandalone(this); + const response = await getJsonResponse( + cancelsStandalone, + cancelsStandaloneRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "StandalonePaymentCancelResource"); + } + + public async cancels( + paymentPspReference: string, + cancelsRequest: CreatePaymentCancelRequest, + requestOptions?: IRequest.Options, + ): Promise { + const cancels = new Cancels(this, paymentPspReference); + const response = await getJsonResponse( + cancels, + cancelsRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "PaymentCancelResource"); + } + + public async captures( + paymentPspReference: string, + capturesRequest: CreatePaymentCaptureRequest, + requestOptions?: IRequest.Options + ): Promise { + const captures = new Captures(this, paymentPspReference); + const response = await getJsonResponse( + captures, + capturesRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "PaymentCaptureResource"); + } + + public async refunds( + paymentPspReference: string, + refundsRequest: CreatePaymentRefundRequest, + requestOptions?: IRequest.Options + ): Promise { + const refunds = new Refunds(this, paymentPspReference); + const response = await getJsonResponse( + refunds, + refundsRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "PaymentRefundResource"); + } + + public async reversals( + paymentPspReference: string, + reversalsRequest: CreatePaymentReversalRequest, + requestOptions?: IRequest.Options + ): Promise { + const refunds = new Reversals(this, paymentPspReference); + const response = await getJsonResponse( + refunds, + reversalsRequest, + requestOptions + ); + return ObjectSerializer.deserialize(response, "PaymentReversalResource"); + } + + // Orders + + public async paymentMethodsBalance(paymentMethodsBalanceRequest: CheckoutBalanceCheckRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._paymentMethodsBalance, + paymentMethodsBalanceRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "CheckoutBalanceCheckResponse"); + } + + public async orders(ordersRequest: CheckoutCreateOrderRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._orders, + ordersRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "CheckoutCreateOrderResponse"); + } + + public async ordersCancel(ordersCancelRequest: CheckoutCancelOrderRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( + this._ordersCancel, + ordersCancelRequest, + requestOptions, + ); + return ObjectSerializer.deserialize(response, "CheckoutCancelOrderResponse"); + } + + // Classic Checkout SDK + + public async paymentSession( paymentSessionRequest: PaymentSetupRequest, requestOptions?: IRequest.Options, ): Promise { - return getJsonResponse( + const response = await getJsonResponse( this._paymentSession, paymentSessionRequest, requestOptions, ); + return ObjectSerializer.deserialize(response, "PaymentSetupResponse"); } - public paymentResult(paymentResultRequest: PaymentVerificationRequest): Promise { - return getJsonResponse( + public async paymentResult(paymentResultRequest: PaymentVerificationRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( this._paymentsResult, paymentResultRequest, + requestOptions, ); + return ObjectSerializer.deserialize(response, "PaymentVerificationResponse"); } - public originKeys(originKeysRequest: CheckoutUtilityRequest): Promise { - return getJsonResponse( + //Utility + + public async originKeys(originKeysRequest: CheckoutUtilityRequest, requestOptions?: IRequest.Options): Promise { + const response = await getJsonResponse( this._originKeys, originKeysRequest, + requestOptions, ); - } - - public paymentMethodsBalance(paymentMethodsBalanceRequest: CheckoutBalanceCheckRequest): Promise { - return getJsonResponse( - this._paymentMethodsBalance, - paymentMethodsBalanceRequest, - ); - } - - public orders(ordersRequest: CheckoutCreateOrderRequest): Promise { - return getJsonResponse( - this._orders, - ordersRequest, - ); - } - - public ordersCancel(ordersCancelRequest: CheckoutCancelOrderRequest): Promise { - return getJsonResponse( - this._ordersCancel, - ordersCancelRequest, - ); - } - - public sessions(checkoutSessionRequest: CreateCheckoutSessionRequest): Promise { - return getJsonResponse( - this._sessions, - checkoutSessionRequest, - ); - } - - public donations(donationRequest: PaymentDonationRequest): Promise { - return getJsonResponse( - this._donations, - donationRequest, - ); + return ObjectSerializer.deserialize(response, "CheckoutUtilityResponse"); } } diff --git a/src/services/classicIntegration.ts b/src/services/classicIntegration.ts new file mode 100644 index 0000000..7ac29a9 --- /dev/null +++ b/src/services/classicIntegration.ts @@ -0,0 +1,171 @@ +import ApiKeyAuthenticatedService from "../apiKeyAuthenticatedService"; +import Client from "../client"; +import getJsonResponse from "../helpers/getJsonResponse"; +import Authorise from "./resource/payment/authorise"; +import Authorise3d from "./resource/payment/authorise3d"; +import Authorise3ds2 from "./resource/payment/authorise3ds2"; +import GetAuthenticationResult from "./resource/payment/getAuthenticationResult"; +import Retrieve3ds2Result from "./resource/payment/retrieve3ds2Result"; +import Capture from "./resource/payment/capture"; +import Cancel from "./resource/payment/cancel"; +import Refund from "./resource/payment/refund"; +import CancelOrRefund from "./resource/payment/cancelOrRefund"; +import TechnicalCancel from "./resource/payment/technicalCancel"; +import AdjustAuthorisation from "./resource/payment/adjustAuthorisation"; +import Donate from "./resource/payment/donate"; +import VoidPendingRefund from "./resource/payment/voidPendingRefund"; + +import { + AdjustAuthorisationRequest, + AuthenticationResultRequest, + AuthenticationResultResponse, + CancelOrRefundRequest, + CancelRequest, + CaptureRequest, + DonationRequest, + ModificationResult, + PaymentRequest, + PaymentRequest3d, + PaymentRequest3ds2, + PaymentResult, + RefundRequest, + TechnicalCancelRequest, + ThreeDS2ResultRequest, + ThreeDS2ResultResponse, + VoidPendingRefundRequest, +} from "../typings/payments/models"; + + +class ClassicIntegration extends ApiKeyAuthenticatedService { + private readonly _authorise; + private readonly _authorise3d; + private readonly _authorise3ds2; + private readonly _getAuthenticationResult; + private readonly _retrieve3ds2Result; + private readonly _capture; + private readonly _cancel; + private readonly _refund; + private readonly _cancelOrRefund; + private readonly _technicalCancel; + private readonly _adjustAuthorisation; + private readonly _donate; + private readonly _voidPendingRefund; + + + + public constructor(client: Client) { + super(client); + this._authorise = new Authorise(this); + this._authorise3d = new Authorise3d(this); + this._authorise3ds2 = new Authorise3ds2(this); + this._getAuthenticationResult = new GetAuthenticationResult(this); + this._retrieve3ds2Result = new Retrieve3ds2Result(this); + this._capture = new Capture(this); + this._cancel = new Cancel(this); + this._refund = new Refund(this); + this._cancelOrRefund = new CancelOrRefund(this); + this._technicalCancel = new TechnicalCancel(this); + this._adjustAuthorisation = new AdjustAuthorisation(this); + this._donate = new Donate(this); + this._voidPendingRefund = new VoidPendingRefund(this); + + } + + // General + + public authorise(paymentRequest: PaymentRequest): Promise { + return getJsonResponse( + this._authorise, + paymentRequest, + ); + } + + public authorise3d(paymentRequest3d: PaymentRequest3d): Promise { + return getJsonResponse( + this._authorise3d, + paymentRequest3d, + ); + } + + public authorise3ds2(paymentRequest3ds2: PaymentRequest3ds2): Promise { + return getJsonResponse( + this._authorise3ds2, + paymentRequest3ds2, + ); + } + + public getAuthenticationResult(authenticationResultRequest: AuthenticationResultRequest): Promise { + return getJsonResponse( + this._getAuthenticationResult, + authenticationResultRequest, + ); + } + + public retrieve3ds2Result(threeDs2ResultRequest: ThreeDS2ResultRequest): Promise { + return getJsonResponse( + this._retrieve3ds2Result, + threeDs2ResultRequest, + ); + } + + // Modifications + + public capture(captureRequest: CaptureRequest): Promise { + return getJsonResponse( + this._capture, + captureRequest, + ); + } + + public cancel(cancelRequest: CancelRequest): Promise { + return getJsonResponse( + this._cancel, + cancelRequest, + ); + } + + public refund(refundRequest: RefundRequest): Promise { + return getJsonResponse( + this._refund, + refundRequest, + ); + } + + public cancelOrRefund(cancelOrRefundRequest: CancelOrRefundRequest): Promise { + return getJsonResponse( + this._cancelOrRefund, + cancelOrRefundRequest, + ); + } + + public technicalCancel(technicalCancelRequest: TechnicalCancelRequest): Promise { + return getJsonResponse( + this._technicalCancel, + technicalCancelRequest, + ); + } + + public adjustAuthorisation(adjustAuthorisationRequest: AdjustAuthorisationRequest): Promise { + return getJsonResponse( + this._adjustAuthorisation, + adjustAuthorisationRequest, + ); + } + + public donate(donationRequest: DonationRequest): Promise { + return getJsonResponse( + this._donate, + donationRequest, + ); + } + + public voidPendingRefund(voidPendingRefundRequest: VoidPendingRefundRequest): Promise { + return getJsonResponse( + this._voidPendingRefund, + voidPendingRefundRequest, + ); + } +} + +export default ClassicIntegration; + diff --git a/src/services/index.ts b/src/services/index.ts index 808ae33..d32dafb 100644 --- a/src/services/index.ts +++ b/src/services/index.ts @@ -1,27 +1,11 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - export { default as TerminalLocalAPI } from "./terminalLocalAPI"; export { default as TerminalCloudAPI } from "./terminalCloudAPI"; export { default as CheckoutAPI } from "./checkout"; +export { default as ClassicIntegrationAPI } from "./classicIntegration"; export { default as Recurring } from "./recurring"; -export { default as Modification } from "./modification"; export { default as BinLookup } from "./binLookup"; export { default as Payout } from "./payout"; export { default as Platforms } from "./platforms"; +export { default as StoredValue} from "./storedValue"; +export { default as TerminalManagement} from "./terminalManagement"; +export { default as Management } from "./management"; \ No newline at end of file diff --git a/src/services/management.ts b/src/services/management.ts new file mode 100644 index 0000000..5a46e07 --- /dev/null +++ b/src/services/management.ts @@ -0,0 +1,72 @@ +import Service from "../service"; +import Client from "../client"; + +import MeApi from "./management/meApi"; +import MerchantAccount from "./management/merchantAccount"; +import MerchantAllowedOrigins from "./management/merchantAllowedOrigins"; +import MerchantApiCredentials from "./management/merchantApiCredentials"; +import MerchantApiKey from "./management/merchantApiKey"; +import MerchantClientKey from "./management/merchantClientKey"; +import MerchantPaymentMethods from "./management/merchantPaymentMethods"; +import MerchantPayoutSettings from "./management/merchantPayoutSettings"; +import MerchantTerminalOrders from "./management/merchantTerminalOrders"; +import MerchantTerminalSettings from "./management/merchantTerminalSettings"; +import MerchantUsers from "./management/merchantUsers"; +import MerchantWebhooks from "./management/merchantWebhooks"; + +class Management extends Service { + public constructor(client: Client) { + super(client); + } + + public get Me() { + const meApi = new MeApi(this.client); + return meApi.Me; + } + + public get MerchantAccount() { + return new MerchantAccount(this.client); + } + + public get MerchantAllowedOrigins() { + return new MerchantAllowedOrigins(this.client); + } + + public get MerchantApiCredentials() { + return new MerchantApiCredentials(this.client); + } + + public get MerchantApiKey() { + return new MerchantApiKey(this.client); + } + + public get MerchantClientKey() { + return new MerchantClientKey(this.client); + } + + public get MerchantPaymentMethods() { + return new MerchantPaymentMethods(this.client); + } + + public get MerchantPayoutSettings() { + return new MerchantPayoutSettings(this.client); + } + + public get MerchantTerminalOrders() { + return new MerchantTerminalOrders(this.client); + } + + public get MerchantTerminalSettings() { + return new MerchantTerminalSettings(this.client); + } + + public get MerchantUsers() { + return new MerchantUsers(this.client); + } + + public get MerchantWebhooks() { + return new MerchantWebhooks(this.client); + } +} + +export default Management; diff --git a/src/services/management/meApi.ts b/src/services/management/meApi.ts new file mode 100644 index 0000000..79c92d7 --- /dev/null +++ b/src/services/management/meApi.ts @@ -0,0 +1,71 @@ +import Client from "../../client"; +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { + AllowedOrigin, + AllowedOriginsResponse, + CreateAllowedOriginRequest, + MeApiCredential +} from "../../typings/management/models"; + +import Me from "../resource/management/me"; + +class MeApi extends Service { + //Me + private readonly _retrieveMe: Me; + private readonly _allowedOrigins: Me; + + + public constructor(client: Client) { + super(client); + this._retrieveMe = new Me(this, ""); + this._allowedOrigins = new Me(this, "/allowedOrigins"); + } + + public get Me(): { + retrieve:() => Promise; + createAllowedOrigin: (allowedOriginRequest: CreateAllowedOriginRequest) => Promise; + retrieveAllowedOrigins: () => Promise; + retrieveAllowedOrigin: (originId: string) => Promise; + deleteAllowerdOrigin: (originId: string) => Promise>; + } { + const retrieve = () => getJsonResponse, MeApiCredential>( + this._retrieveMe, + {}, + { method: "GET"} + ); + + const createAllowedOrigin = (allowedOriginRequest: CreateAllowedOriginRequest) => getJsonResponse( + this._allowedOrigins, + allowedOriginRequest, + ); + + const retrieveAllowedOrigins = () => getJsonResponse, AllowedOriginsResponse>( + this._allowedOrigins, + {}, + { method: "GET"} + ); + + const retrieveAllowedOrigin = (originId: string) => { + const allowedOrigin = new Me(this, `/allowedOrigins/${originId}`); + return getJsonResponse, AllowedOrigin>( + allowedOrigin, + {}, + { method: "GET"} + ); + }; + + const deleteAllowerdOrigin = (originId: string) => { + const allowedOrigin = new Me(this, `/allowedOrigins/${originId}`); + return getJsonResponse, Record>( + allowedOrigin, + {}, + { method: "DELETE"} + ); + }; + + return { retrieve, createAllowedOrigin, retrieveAllowedOrigins, retrieveAllowedOrigin, deleteAllowerdOrigin }; + } +} + +export default MeApi; diff --git a/src/services/management/merchantAccount.ts b/src/services/management/merchantAccount.ts new file mode 100644 index 0000000..cf75a6f --- /dev/null +++ b/src/services/management/merchantAccount.ts @@ -0,0 +1,61 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { CreateMerchantRequest, CreateMerchantResponse, ListMerchantResponse, Merchant, ObjectSerializer, RequestActivationResponse } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantAccount extends Service { + /** + * Get a list of merchant accounts + */ + public async list(requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ListMerchantResponse"); + } + + /** + * Create a merchant account + */ + public async create(request: CreateMerchantRequest): Promise { + const resource = new ManagementResource(this, `/merchants`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "CreateMerchantResponse"); + } + + /** + * Get a merchant account + */ + public async retrieve(merchantId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "Merchant"); + } + + /** + * Request to activate a merchant account + */ + public async activate(merchantId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/activate`); + const response = await getJsonResponse( + resource, + "", + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "RequestActivationResponse"); + } +} + +export default MerchantAccount; diff --git a/src/services/management/merchantAllowedOrigins.ts b/src/services/management/merchantAllowedOrigins.ts new file mode 100644 index 0000000..0a0c0f4 --- /dev/null +++ b/src/services/management/merchantAllowedOrigins.ts @@ -0,0 +1,59 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { AllowedOrigin, AllowedOriginsResponse, ObjectSerializer } from "../../typings/management/models"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantAllowedOrigins extends Service { + /** + * Get a list of allowed origins + */ + public async list(merchantId: string, apiCredentialId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "AllowedOriginsResponse"); + } + + /** + * Create an allowed origin + */ + public async create(merchantId: string, apiCredentialId: string, request: AllowedOrigin): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "AllowedOriginsResponse"); + } + + /** + * Delete an allowed origin + */ + public async delete(merchantId: string, apiCredentialId: string, originId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`); + await getJsonResponse( + resource, + "", + { method: "DELETE" } + ); + } + + /** + * Get an allowed origin + */ + public async retrieve(merchantId: string, apiCredentialId: string, originId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/allowedOrigins/${originId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "AllowedOrigin"); + } +} + +export default MerchantAllowedOrigins; diff --git a/src/services/management/merchantApiCredentials.ts b/src/services/management/merchantApiCredentials.ts new file mode 100644 index 0000000..2b34f52 --- /dev/null +++ b/src/services/management/merchantApiCredentials.ts @@ -0,0 +1,61 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ApiCredential, CreateApiCredentialResponse, CreateMerchantApiCredentialRequest, ListMerchantApiCredentialsResponse, ObjectSerializer, UpdateMerchantApiCredentialRequest } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantApiCredentials extends Service { + /** + * Get a list of API credentials + */ + public async list(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ListMerchantApiCredentialsResponse"); + } + + /** + * Create an API credential + */ + public async create(merchantId: string, request: CreateMerchantApiCredentialRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "CreateApiCredentialResponse"); + } + + /** + * Get an API credential + */ + public async retrieve(merchantId: string, apiCredentialId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ApiCredential"); + } + + /** + * Update an API credential + */ + public async update(merchantId: string, apiCredentialId: string, request: UpdateMerchantApiCredentialRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "ApiCredential"); + } +} + +export default MerchantApiCredentials; diff --git a/src/services/management/merchantApiKey.ts b/src/services/management/merchantApiKey.ts new file mode 100644 index 0000000..5516962 --- /dev/null +++ b/src/services/management/merchantApiKey.ts @@ -0,0 +1,21 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { GenerateApiKeyResponse, ObjectSerializer } from "../../typings/management/models"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantApiKey extends Service { + /** + * Generate new API key + */ + public async create(merchantId: string, apiCredentialId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateApiKey`); + const response = await getJsonResponse( + resource, + "", + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "GenerateApiKeyResponse"); + } +} + +export default MerchantApiKey; diff --git a/src/services/management/merchantClientKey.ts b/src/services/management/merchantClientKey.ts new file mode 100644 index 0000000..173b5c8 --- /dev/null +++ b/src/services/management/merchantClientKey.ts @@ -0,0 +1,21 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { GenerateClientKeyResponse, ObjectSerializer } from "../../typings/management/models"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantClientKey extends Service { + /** + * Generate new client key + */ + public async create(merchantId: string, apiCredentialId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/apiCredentials/${apiCredentialId}/generateClientKey`); + const response = await getJsonResponse( + resource, + "", + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "GenerateClientKeyResponse"); + } +} + +export default MerchantClientKey; diff --git a/src/services/management/merchantPaymentMethods.ts b/src/services/management/merchantPaymentMethods.ts new file mode 100644 index 0000000..efb6898 --- /dev/null +++ b/src/services/management/merchantPaymentMethods.ts @@ -0,0 +1,61 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ObjectSerializer, PaymentMethod, PaymentMethodResponse, PaymentMethodSetupInfo, UpdatePaymentMethodInfo } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantPaymentMethods extends Service { + /** + * Get all payment methods + */ + public async listPaymentMethodSettings(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/paymentMethodSettings`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaymentMethodResponse"); + } + + /** + * Request a payment method + */ + public async create(merchantId: string, request: PaymentMethodSetupInfo): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/paymentMethodSettings`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "PaymentMethod"); + } + + /** + * Get payment method details + */ + public async retrieve(merchantId: string, paymentMethodId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PaymentMethod"); + } + + /** + * Update a payment method + */ + public async update(merchantId: string, paymentMethodId: string, request: UpdatePaymentMethodInfo): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/paymentMethodSettings/${paymentMethodId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "PaymentMethod"); + } +} + +export default MerchantPaymentMethods; diff --git a/src/services/management/merchantPayoutSettings.ts b/src/services/management/merchantPayoutSettings.ts new file mode 100644 index 0000000..453229a --- /dev/null +++ b/src/services/management/merchantPayoutSettings.ts @@ -0,0 +1,72 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { ObjectSerializer, PayoutSettings, PayoutSettingsRequest, PayoutSettingsResponse, UpdatePayoutSettingsRequest } from "../../typings/management/models"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantPayoutSettings extends Service { + /** + * Get a list of payout settings + */ + public async listPayoutSettings(merchantId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/payoutSettings`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PayoutSettingsResponse"); + } + + /** + * Add a payout setting + */ + public async create(merchantId: string, request: PayoutSettingsRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/payoutSettings`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "PayoutSettings"); + } + + /** + * Delete a payout setting + */ + public async delete(merchantId: string, payoutSettingsId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`); + await getJsonResponse( + resource, + "", + { method: "DELETE" } + ); + } + + /** + * Get a payout setting + */ + public async retrieve(merchantId: string, payoutSettingsId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "PayoutSettings"); + } + + /** + * Update a payout setting + */ + public async update(merchantId: string, payoutSettingsId: string, request: UpdatePayoutSettingsRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/payoutSettings/${payoutSettingsId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "PayoutSettings"); + } +} + +export default MerchantPayoutSettings; diff --git a/src/services/management/merchantTerminalOrders.ts b/src/services/management/merchantTerminalOrders.ts new file mode 100644 index 0000000..f94ab82 --- /dev/null +++ b/src/services/management/merchantTerminalOrders.ts @@ -0,0 +1,139 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { BillingEntitiesResponse, ObjectSerializer, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, TerminalOrder, TerminalOrderRequest, TerminalOrdersResponse, TerminalProductsResponse } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantTerminalOrders extends Service { + /** + * Get a list of billing entities + */ + public async listBillingEntities(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/billingEntities`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "BillingEntitiesResponse"); + } + + /** + * Get a list of shipping locations + */ + public async listShippingLocations(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/shippingLocations`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ShippingLocationsResponse"); + } + + /** + * Create a shipping location + */ + public async createShippingLocation(merchantId: string, request: ShippingLocation): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/shippingLocations`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "ShippingLocation"); + } + + /** + * Get a list of terminal models + */ + public async listTerminalModels(merchantId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalModels`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TerminalModelsResponse"); + } + + /** + * Get a list of orders + */ + public async listTerminalOrders(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalOrders`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TerminalOrdersResponse"); + } + + /** + * Create an order + */ + public async create(merchantId: string, request: TerminalOrderRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalOrders`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "TerminalOrder"); + } + + /** + * Get an order + */ + public async retrieve(merchantId: string, orderId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalOrders/${orderId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TerminalOrder"); + } + + /** + * Update an order + */ + public async update(merchantId: string, orderId: string, request: TerminalOrderRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalOrders/${orderId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "TerminalOrder"); + } + + /** + * Cancel an order + */ + public async cancel(merchantId: string, orderId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalOrders/${orderId}/cancel`); + const response = await getJsonResponse( + resource, + "", + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "TerminalOrder"); + } + + /** + * Get a list of terminal products + */ + public async listTerminalProducts(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalProducts`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TerminalProductsResponse"); + } +} + +export default MerchantTerminalOrders; diff --git a/src/services/management/merchantTerminalSettings.ts b/src/services/management/merchantTerminalSettings.ts new file mode 100644 index 0000000..59b6f20 --- /dev/null +++ b/src/services/management/merchantTerminalSettings.ts @@ -0,0 +1,61 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { Logo, ObjectSerializer, TerminalSettings } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantTerminalSettings extends Service { + /** + * Get the terminal logo + */ + public async retrieveLogo(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalLogos`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "Logo"); + } + + /** + * Update the terminal logo + */ + public async updateLogo(merchantId: string, request: Logo, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalLogos`); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "Logo"); + } + + /** + * Get terminal settings + */ + public async retrieve(merchantId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalSettings`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "TerminalSettings"); + } + + /** + * Update terminal settings + */ + public async update(merchantId: string, request: TerminalSettings): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/terminalSettings`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "TerminalSettings"); + } +} + +export default MerchantTerminalSettings; diff --git a/src/services/management/merchantUsers.ts b/src/services/management/merchantUsers.ts new file mode 100644 index 0000000..ff6a11c --- /dev/null +++ b/src/services/management/merchantUsers.ts @@ -0,0 +1,61 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { CreateMerchantUserRequest, CreateUserResponse, ListMerchantUsersResponse, ObjectSerializer, UpdateMerchantUserRequest, User } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantUsers extends Service { + /** + * Get a list of users + */ + public async list(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/users`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ListMerchantUsersResponse"); + } + + /** + * Create a new user + */ + public async create(merchantId: string, request: CreateMerchantUserRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/users`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "CreateUserResponse"); + } + + /** + * Get user details + */ + public async retrieve(merchantId: string, userId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/users/${userId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "User"); + } + + /** + * Update a user + */ + public async update(merchantId: string, userId: string, request: UpdateMerchantUserRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/users/${userId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "User"); + } +} + +export default MerchantUsers; diff --git a/src/services/management/merchantWebhooks.ts b/src/services/management/merchantWebhooks.ts new file mode 100644 index 0000000..d9fab17 --- /dev/null +++ b/src/services/management/merchantWebhooks.ts @@ -0,0 +1,99 @@ +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import { CreateMerchantWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, ObjectSerializer, TestWebhookRequest, TestWebhookResponse, UpdateMerchantWebhookRequest, Webhook } from "../../typings/management/models"; +import { IRequest } from "../../typings/requestOptions"; +import ManagementResource from "../resource/management/managementResource"; + +class MerchantWebhooks extends Service { + /** + * List all webhooks + */ + public async list(merchantId: string, requestOptions?: IRequest.Options): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks`); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ListWebhooksResponse"); + } + + /** + * Set up a webhook + */ + public async create(merchantId: string, request: CreateMerchantWebhookRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "Webhook"); + } + + /** + * Remove a webhook + */ + public async delete(merchantId: string, webhookId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks/${webhookId}`); + await getJsonResponse( + resource, + "", + { method: "DELETE" } + ); + } + + /** + * Get a webhook + */ + public async retrieve(merchantId: string, webhookId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks/${webhookId}`); + const response = await getJsonResponse( + resource, + "", + { method: "GET" } + ); + return ObjectSerializer.deserialize(response, "Webhook"); + } + + /** + * Update a webhook + */ + public async update(merchantId: string, webhookId: string, request: UpdateMerchantWebhookRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks/${webhookId}`); + const response = await getJsonResponse( + resource, + request, + { method: "PATCH" } + ); + return ObjectSerializer.deserialize(response, "Webhook"); + } + + /** + * Generate an HMAC key + */ + public async generateHmac(merchantId: string, webhookId: string): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks/${webhookId}/generateHmac`); + const response = await getJsonResponse( + resource, + "", + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "GenerateHmacKeyResponse"); + } + + /** + * Test a webhook + */ + public async test(merchantId: string, webhookId: string, request: TestWebhookRequest): Promise { + const resource = new ManagementResource(this, `/merchants/${merchantId}/webhooks/${webhookId}/test`); + const response = await getJsonResponse( + resource, + request, + { method: "POST" } + ); + return ObjectSerializer.deserialize(response, "TestWebhookResponse"); + } +} + +export default MerchantWebhooks; diff --git a/src/services/modification.ts b/src/services/modification.ts deleted file mode 100644 index 78b5522..0000000 --- a/src/services/modification.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2021 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ -import Client from "../client"; -import getJsonResponse from "../helpers/getJsonResponse"; -import Service from "../service"; -import { ApplicationInfo } from "../typings/applicationInfo"; -import { IRequest } from "../typings/requestOptions"; -import AmountUpdates from "./resource/modification/amountUpdates"; -import Cancels from "./resource/modification/cancels"; -import Captures from "./resource/modification/captures"; -import Refunds from "./resource/modification/refunds"; -import Reversals from "./resource/modification/reversals"; -import CancelsStandalone from "./resource/modification/cancelsStandalone"; -import { - CreatePaymentAmountUpdateRequest, - CreatePaymentCancelRequest, - CreatePaymentCaptureRequest, - CreatePaymentRefundRequest, CreatePaymentReversalRequest, - CreateStandalonePaymentCancelRequest, - PaymentAmountUpdateResource, - PaymentCancelResource, - PaymentCaptureResource, PaymentRefundResource, PaymentReversalResource, - StandalonePaymentCancelResource -} from "../typings/checkout/models"; - -interface AppInfo { applicationInfo?: ApplicationInfo } -type GenericRequest = T & AppInfo; - -class Modification extends Service { - public constructor(client: Client) { - super(client); - } - - public amountUpdates( - paymentPspReference: string, - amountUpdatesRequest: GenericRequest, - requestOptions?: IRequest.Options, - ): Promise { - const amountUpdates = new AmountUpdates(this, paymentPspReference); - return getJsonResponse( - amountUpdates, - amountUpdatesRequest, - requestOptions - ); - } - - public cancelsStandalone( - cancelsStandaloneRequest: GenericRequest, - requestOptions?: IRequest.Options - ): Promise { - const cancelsStandalone = new CancelsStandalone(this); - return getJsonResponse( - cancelsStandalone, - cancelsStandaloneRequest, - requestOptions - ); - } - - public cancels( - paymentPspReference: string, - cancelsRequest: GenericRequest, - requestOptions?: IRequest.Options, - ): Promise { - const cancels = new Cancels(this, paymentPspReference); - return getJsonResponse( - cancels, - cancelsRequest, - requestOptions - ); - } - - public captures( - paymentPspReference: string, - capturesRequest: GenericRequest, - requestOptions?: IRequest.Options - ): Promise { - const captures = new Captures(this, paymentPspReference); - return getJsonResponse( - captures, - capturesRequest, - requestOptions - ); - } - - public refunds( - paymentPspReference: string, - refundsRequest: GenericRequest, - requestOptions?: IRequest.Options - ): Promise { - const refunds = new Refunds(this, paymentPspReference); - return getJsonResponse( - refunds, - refundsRequest, - requestOptions - ); - } - - public reversals( - paymentPspReference: string, - reversalsRequest: GenericRequest, - requestOptions?: IRequest.Options - ): Promise { - const refunds = new Reversals(this, paymentPspReference); - return getJsonResponse( - refunds, - reversalsRequest, - requestOptions - ); - } -} - -export default Modification; diff --git a/src/services/payout.ts b/src/services/payout.ts index 0ea7024..a948fcb 100644 --- a/src/services/payout.ts +++ b/src/services/payout.ts @@ -1,21 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ import Client from "../client"; import Service from "../service"; import DeclineThirdParty from "./resource/payout/declineThirdParty"; @@ -25,6 +7,18 @@ import ConfirmThirdParty from "./resource/payout/confirmThirdParty"; import PayoutResource from "./resource/payout/payout"; import StoreDetailAndSubmitThirdParty from "./resource/payout/storeDetailAndSubmitThirdParty"; import getJsonResponse from "../helpers/getJsonResponse"; +import { + ModifyRequest, + ModifyResponse, + PayoutRequest, + PayoutResponse, + StoreDetailAndSubmitRequest, + StoreDetailAndSubmitResponse, + StoreDetailRequest, + StoreDetailResponse, + SubmitRequest, + SubmitResponse +} from "../typings/payouts/models"; class Payout extends Service { private readonly _storeDetailAndSubmitThirdParty: StoreDetailAndSubmitThirdParty; @@ -45,47 +39,47 @@ class Payout extends Service { this._payout = new PayoutResource(this); } - public storeDetailAndSubmitThirdParty(request: IPayouts.StoreDetailAndSubmitRequest): Promise { - return getJsonResponse( + public storeDetailAndSubmitThirdParty(request: StoreDetailAndSubmitRequest): Promise { + return getJsonResponse( this._storeDetailAndSubmitThirdParty, request ); } - public confirmThirdParty(request: IPayouts.ModifyRequest): Promise { - return getJsonResponse( + public confirmThirdParty(request: ModifyRequest): Promise { + return getJsonResponse( this._confirmThirdParty, request ); } - public declineThirdParty(request: IPayouts.ModifyRequest): Promise { - return getJsonResponse( + public declineThirdParty(request: ModifyRequest): Promise { + return getJsonResponse( this._declineThirdParty, request ); } - public storeDetail(request: IPayouts.StoreDetailRequest): Promise { - return getJsonResponse( + public storeDetail(request: StoreDetailRequest): Promise { + return getJsonResponse( this._storeDetail, request ); } - public submitThirdparty(request: IPayouts.SubmitRequest): Promise { - return getJsonResponse( + public submitThirdparty(request: SubmitRequest): Promise { + return getJsonResponse( this._submitThirdParty, request ); } - public payout(request: IPayouts.PayoutRequest): Promise { - return getJsonResponse( + public payout(request: PayoutRequest): Promise { + return getJsonResponse( this._payout, request ); } } -export default Payout; \ No newline at end of file +export default Payout; diff --git a/src/services/platforms.ts b/src/services/platforms.ts index 47138c4..8cd336d 100644 --- a/src/services/platforms.ts +++ b/src/services/platforms.ts @@ -1,23 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - - import Service from "../service"; import Client from "../client"; import PlatformsAccount, { AccountTypesEnum } from "./resource/platforms/account"; @@ -58,6 +38,14 @@ import { GetTaxFormResponse, } from "../typings/platformsAccount/models"; +import { + GetOnboardingUrlRequest, + GetOnboardingUrlResponse, + GetPciUrlRequest, + GetPciUrlResponse +} from "../typings/platformsHostedOnboardingPage/models"; +import { DebitAccountHolderRequest, DebitAccountHolderResponse } from "../typings/platformsFund/models"; + type AccountType = AccountTypesEnum.Accounts; type VerificationType = AccountTypesEnum.Verification; type AccountHoldersType = AccountTypesEnum.AccountHolders; @@ -98,9 +86,11 @@ class Platforms extends Service { private readonly _refundFundsTransfer: PlatformsFund; private readonly _setupBeneficiary: PlatformsFund; private readonly _refundNotPaidOutTransfers: PlatformsFund; + private readonly _debitAccountHolder: PlatformsFund; /* HOP */ private readonly _getOnboardingUrl: PlatformsHostedOnboardingPage; + private readonly _getPciQuestionnaireUrl: PlatformsHostedOnboardingPage; /* Notification Configuration */ private readonly _createNotificationConfiguration: PlatformsNotificationConfiguration; @@ -141,9 +131,11 @@ class Platforms extends Service { this._refundFundsTransfer = new PlatformsFund(this, "/refundFundsTransfer"); this._setupBeneficiary = new PlatformsFund(this, "/setupBeneficiary"); this._refundNotPaidOutTransfers = new PlatformsFund(this, "/refundNotPaidOutTransfers"); + this._debitAccountHolder = new PlatformsFund(this, "/debitAccountHolder"); // HOP this._getOnboardingUrl = new PlatformsHostedOnboardingPage(this, "/getOnboardingUrl"); + this._getPciQuestionnaireUrl = new PlatformsHostedOnboardingPage(this, "/getPciQuestionnaireUrl"); // Notification Configuration this._createNotificationConfiguration = new PlatformsNotificationConfiguration(this, "/createNotificationConfiguration"); @@ -156,7 +148,7 @@ class Platforms extends Service { createRequest = (service: T) => { return (request: U): Promise => getJsonResponse(service, request); - } + }; public get Account(): { getAccountHolder: (request: GetAccountHolderRequest) => Promise; @@ -212,6 +204,7 @@ class Platforms extends Service { refundFundsTransfer: (request: IPlatformsFund.RefundFundsTransferRequest) => Promise; payoutAccountHolder: (request: IPlatformsFund.PayoutAccountHolderRequest) => Promise; accountHolderBalance: (request: IPlatformsFund.AccountHolderBalanceRequest) => Promise; + debitAccountHolder: (request: DebitAccountHolderRequest) => Promise; } { const accountHolderBalance = this.createRequest(this._accountHolderBalance); const accountHolderTransactionList = this.createRequest(this._accountHolderTransactionList); @@ -220,14 +213,18 @@ class Platforms extends Service { const refundFundsTransfer = this.createRequest(this._refundFundsTransfer); const setupBeneficiary = this.createRequest(this._setupBeneficiary); const refundNotPaidOutTransfers = this.createRequest(this._refundNotPaidOutTransfers); + const debitAccountHolder = this.createRequest(this._debitAccountHolder); - return { accountHolderBalance, accountHolderTransactionList, payoutAccountHolder, refundFundsTransfer, transferFunds, setupBeneficiary, refundNotPaidOutTransfers }; + return { accountHolderBalance, accountHolderTransactionList, payoutAccountHolder, refundFundsTransfer, transferFunds, setupBeneficiary, refundNotPaidOutTransfers, debitAccountHolder }; } - public get HostedOnboardingPage(): { getOnboardingUrl: (request: IPlatformsHostedOnboardingPage.GetOnboardingUrlRequest) => Promise } { - const getOnboardingUrl = this.createRequest(this._getOnboardingUrl); - - return { getOnboardingUrl }; + public get HostedOnboardingPage(): { + getOnboardingUrl: (request: GetOnboardingUrlRequest) => Promise; + getPciQuestionnaireUrl: (request: GetPciUrlRequest) => Promise; + } { + const getOnboardingUrl = this.createRequest(this._getOnboardingUrl); + const getPciQuestionnaireUrl = this.createRequest(this._getPciQuestionnaireUrl); + return { getOnboardingUrl, getPciQuestionnaireUrl }; } public get NotificationConfiguration(): { diff --git a/src/services/recurring.ts b/src/services/recurring.ts index 9f4b5d0..a2f1742 100644 --- a/src/services/recurring.ts +++ b/src/services/recurring.ts @@ -1,22 +1,3 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; @@ -39,7 +20,7 @@ class Recurring extends Service { private readonly _listRecurringDetails: ListRecurringDetails; private readonly _disable: Disable; private readonly _scheduleAccountUpdater: ScheduleAccountUpdater; - private readonly _notifyShopper: NotifyShopper + private readonly _notifyShopper: NotifyShopper; public constructor(client: Client) { super(client); diff --git a/src/services/resource/balancePlaftformResource.ts b/src/services/resource/balancePlaftformResource.ts new file mode 100644 index 0000000..b1073ab --- /dev/null +++ b/src/services/resource/balancePlaftformResource.ts @@ -0,0 +1,14 @@ +import Client from "../../client"; +import Service from "../../service"; +import Resource from "../resource"; + +class BalancePlatformResource extends Resource { + public constructor(service: Service, endpoint: string) { + super( + service, + `${service.client.config.balancePlatformEndpoint}/${Client.BALANCE_PLATFORM_API_VERSION}${endpoint}` + ); + } +} + +export default BalancePlatformResource; \ No newline at end of file diff --git a/src/services/resource/modification/amountUpdates.ts b/src/services/resource/checkout/amountUpdates.ts similarity index 100% rename from src/services/resource/modification/amountUpdates.ts rename to src/services/resource/checkout/amountUpdates.ts diff --git a/src/services/resource/modification/cancels.ts b/src/services/resource/checkout/cancels.ts similarity index 100% rename from src/services/resource/modification/cancels.ts rename to src/services/resource/checkout/cancels.ts diff --git a/src/services/resource/modification/cancelsStandalone.ts b/src/services/resource/checkout/cancelsStandalone.ts similarity index 100% rename from src/services/resource/modification/cancelsStandalone.ts rename to src/services/resource/checkout/cancelsStandalone.ts diff --git a/src/services/resource/modification/captures.ts b/src/services/resource/checkout/captures.ts similarity index 100% rename from src/services/resource/modification/captures.ts rename to src/services/resource/checkout/captures.ts diff --git a/src/services/resource/checkout/cardDetails.ts b/src/services/resource/checkout/cardDetails.ts new file mode 100644 index 0000000..02d1e77 --- /dev/null +++ b/src/services/resource/checkout/cardDetails.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class CardDetails extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}/cardDetails`, + ); + } +} + +export default CardDetails; diff --git a/src/services/resource/checkout/paymentLinksId.ts b/src/services/resource/checkout/paymentLinksId.ts index eb644de..56b7a96 100644 --- a/src/services/resource/checkout/paymentLinksId.ts +++ b/src/services/resource/checkout/paymentLinksId.ts @@ -1,40 +1,15 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import Client from "../../../client"; import Service from "../../../service"; import Resource from "../../resource"; class PaymentLinksId extends Resource { - static _id: string; - public constructor(service: Service) { + public constructor(service: Service, paymentLinksId: string) { super( service, - `${service.client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}/paymentLinks`, + `${service.client.config.checkoutEndpoint}/${Client.CHECKOUT_API_VERSION}/paymentLinks/${paymentLinksId}`, ); } - - public set id(id: string) { - PaymentLinksId._id = id; - this.endpoint = `${this.endpoint}/${PaymentLinksId._id}`; - } } export default PaymentLinksId; diff --git a/src/services/resource/modification/refunds.ts b/src/services/resource/checkout/refunds.ts similarity index 100% rename from src/services/resource/modification/refunds.ts rename to src/services/resource/checkout/refunds.ts diff --git a/src/services/resource/modification/reversals.ts b/src/services/resource/checkout/reversals.ts similarity index 100% rename from src/services/resource/modification/reversals.ts rename to src/services/resource/checkout/reversals.ts diff --git a/src/services/resource/management/managementResource.ts b/src/services/resource/management/managementResource.ts new file mode 100644 index 0000000..e9ae0d4 --- /dev/null +++ b/src/services/resource/management/managementResource.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class ManagementResource extends Resource { + public constructor(service: Service, endpoint: string) { + super( + service, + `${service.client.config.managementEndpoint}/${Client.MANAGEMENT_API_VERSION}${endpoint}` + ); + } +} + +export default ManagementResource; \ No newline at end of file diff --git a/src/services/resource/management/me.ts b/src/services/resource/management/me.ts new file mode 100644 index 0000000..6b393d7 --- /dev/null +++ b/src/services/resource/management/me.ts @@ -0,0 +1,15 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + + +class Me extends Resource { + public constructor(service: Service, endpoint: string) { + super( + service, + `${service.client.config.managementEndpoint}/${Client.MANAGEMENT_API_VERSION}/me${endpoint}`, + ); + } +} + +export default Me; \ No newline at end of file diff --git a/src/services/resource/payment/adjustAuthorisation.ts b/src/services/resource/payment/adjustAuthorisation.ts new file mode 100644 index 0000000..6302eff --- /dev/null +++ b/src/services/resource/payment/adjustAuthorisation.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class AdjustAuthorisation extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/adjustAuthorisation`, + ); + } +} + +export default AdjustAuthorisation; \ No newline at end of file diff --git a/src/services/resource/payment/authorise.ts b/src/services/resource/payment/authorise.ts new file mode 100644 index 0000000..42574f8 --- /dev/null +++ b/src/services/resource/payment/authorise.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Authorise extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/authorise`, + ); + } +} + +export default Authorise; \ No newline at end of file diff --git a/src/services/resource/payment/authorise3d.ts b/src/services/resource/payment/authorise3d.ts new file mode 100644 index 0000000..ee7047c --- /dev/null +++ b/src/services/resource/payment/authorise3d.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Authorise3d extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/authorise3d`, + ); + } +} + +export default Authorise3d; \ No newline at end of file diff --git a/src/services/resource/payment/authorise3ds2.ts b/src/services/resource/payment/authorise3ds2.ts new file mode 100644 index 0000000..6ff5e0b --- /dev/null +++ b/src/services/resource/payment/authorise3ds2.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Authorise3ds2 extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/authorise3ds2`, + ); + } +} + +export default Authorise3ds2; \ No newline at end of file diff --git a/src/services/resource/payment/cancel.ts b/src/services/resource/payment/cancel.ts new file mode 100644 index 0000000..976cfce --- /dev/null +++ b/src/services/resource/payment/cancel.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Cancel extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/cancel`, + ); + } +} + +export default Cancel; \ No newline at end of file diff --git a/src/services/resource/payment/cancelOrRefund.ts b/src/services/resource/payment/cancelOrRefund.ts new file mode 100644 index 0000000..9a29088 --- /dev/null +++ b/src/services/resource/payment/cancelOrRefund.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class CancelOrRefund extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/cancelOrRefund`, + ); + } +} + +export default CancelOrRefund; \ No newline at end of file diff --git a/src/services/resource/payment/capture.ts b/src/services/resource/payment/capture.ts new file mode 100644 index 0000000..e99ee44 --- /dev/null +++ b/src/services/resource/payment/capture.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Capture extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/capture`, + ); + } +} + +export default Capture; \ No newline at end of file diff --git a/src/services/resource/payment/donate.ts b/src/services/resource/payment/donate.ts new file mode 100644 index 0000000..529c7e0 --- /dev/null +++ b/src/services/resource/payment/donate.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Donate extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/donate`, + ); + } +} + +export default Donate; \ No newline at end of file diff --git a/src/services/resource/payment/getAuthenticationResult.ts b/src/services/resource/payment/getAuthenticationResult.ts new file mode 100644 index 0000000..6edb6e3 --- /dev/null +++ b/src/services/resource/payment/getAuthenticationResult.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class GetAuthenticationResult extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/getAuthenticationResult`, + ); + } +} + +export default GetAuthenticationResult; \ No newline at end of file diff --git a/src/services/resource/payment/refund.ts b/src/services/resource/payment/refund.ts new file mode 100644 index 0000000..ae3e8c1 --- /dev/null +++ b/src/services/resource/payment/refund.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Refund extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/refund`, + ); + } +} + +export default Refund; \ No newline at end of file diff --git a/src/services/resource/payment/retrieve3ds2Result.ts b/src/services/resource/payment/retrieve3ds2Result.ts new file mode 100644 index 0000000..d758e56 --- /dev/null +++ b/src/services/resource/payment/retrieve3ds2Result.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Retrieve3ds2Result extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/retrieve3ds2Result`, + ); + } +} + +export default Retrieve3ds2Result; \ No newline at end of file diff --git a/src/services/resource/payment/technicalCancel.ts b/src/services/resource/payment/technicalCancel.ts new file mode 100644 index 0000000..ea124bb --- /dev/null +++ b/src/services/resource/payment/technicalCancel.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class TechnicalCancel extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/technicalCancel`, + ); + } +} + +export default TechnicalCancel; \ No newline at end of file diff --git a/src/services/resource/payment/voidPendingRefund.ts b/src/services/resource/payment/voidPendingRefund.ts new file mode 100644 index 0000000..c432451 --- /dev/null +++ b/src/services/resource/payment/voidPendingRefund.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class VoidPendingRefund extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.paymentEndpoint}/${Client.PAYMENT_API_VERSION}/voidPendingRefund`, + ); + } +} + +export default VoidPendingRefund; \ No newline at end of file diff --git a/src/services/resource/platforms/fund.ts b/src/services/resource/platforms/fund.ts index fb34a2f..4fd6ebc 100644 --- a/src/services/resource/platforms/fund.ts +++ b/src/services/resource/platforms/fund.ts @@ -30,7 +30,8 @@ type Endpoints = "/transferFunds"| "/refundFundsTransfer"| "/setupBeneficiary"| - "/refundNotPaidOutTransfers"; + "/refundNotPaidOutTransfers" | + "/debitAccountHolder"; class PlatformsFund extends Resource { diff --git a/src/services/resource/platforms/hop.ts b/src/services/resource/platforms/hop.ts index 3e2363b..1a571ba 100644 --- a/src/services/resource/platforms/hop.ts +++ b/src/services/resource/platforms/hop.ts @@ -1,29 +1,8 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * - * Adyen NodeJS API Library - * - * Copyright (c) 2019 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - import Client from "../../../client"; import Service from "../../../service"; import Resource from "../../resource"; -type Endpoints = "/getOnboardingUrl"; +type Endpoints = "/getOnboardingUrl" | "/getPciQuestionnaireUrl"; class PlatformsHostedOnboardingPage extends Resource { public constructor(service: Service, endpoint: Endpoints) { diff --git a/src/services/resource/storedValue/changeStatus.ts b/src/services/resource/storedValue/changeStatus.ts new file mode 100644 index 0000000..5402861 --- /dev/null +++ b/src/services/resource/storedValue/changeStatus.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class ChangeStatus extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/changeStatus` + ); + } +} + +export default ChangeStatus; \ No newline at end of file diff --git a/src/services/resource/storedValue/checkBalance.ts b/src/services/resource/storedValue/checkBalance.ts new file mode 100644 index 0000000..e6d0904 --- /dev/null +++ b/src/services/resource/storedValue/checkBalance.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class CheckBalance extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/checkBalance` + ); + } +} + +export default CheckBalance; \ No newline at end of file diff --git a/src/services/resource/storedValue/issue.ts b/src/services/resource/storedValue/issue.ts new file mode 100644 index 0000000..61fe318 --- /dev/null +++ b/src/services/resource/storedValue/issue.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Issue extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/issue` + ); + } +} + +export default Issue; \ No newline at end of file diff --git a/src/services/resource/storedValue/load.ts b/src/services/resource/storedValue/load.ts new file mode 100644 index 0000000..74204f3 --- /dev/null +++ b/src/services/resource/storedValue/load.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class Load extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/load` + ); + } +} + +export default Load; \ No newline at end of file diff --git a/src/services/resource/storedValue/mergeBalance.ts b/src/services/resource/storedValue/mergeBalance.ts new file mode 100644 index 0000000..c28b1e0 --- /dev/null +++ b/src/services/resource/storedValue/mergeBalance.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class MergeBalance extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/mergeBalance` + ); + } +} + +export default MergeBalance; \ No newline at end of file diff --git a/src/services/resource/storedValue/voidTransaction.ts b/src/services/resource/storedValue/voidTransaction.ts new file mode 100644 index 0000000..ce97017 --- /dev/null +++ b/src/services/resource/storedValue/voidTransaction.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class VoidTransaction extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.storedValueEndpoint}/${Client.STOREDVALUE_API_VERSION}/voidTransaction` + ); + } +} + +export default VoidTransaction; \ No newline at end of file diff --git a/src/services/resource/terminalManagement/assignTerminals.ts b/src/services/resource/terminalManagement/assignTerminals.ts new file mode 100644 index 0000000..5c9e623 --- /dev/null +++ b/src/services/resource/terminalManagement/assignTerminals.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class AssignTerminals extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}/assignTerminals` + ); + } +} + +export default AssignTerminals; diff --git a/src/services/resource/terminalManagement/findTerminal.ts b/src/services/resource/terminalManagement/findTerminal.ts new file mode 100644 index 0000000..53f7afb --- /dev/null +++ b/src/services/resource/terminalManagement/findTerminal.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class FindTerminal extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}/findTerminal` + ); + } +} + +export default FindTerminal; diff --git a/src/services/resource/terminalManagement/getStoresUnderAccount.ts b/src/services/resource/terminalManagement/getStoresUnderAccount.ts new file mode 100644 index 0000000..b7bcf45 --- /dev/null +++ b/src/services/resource/terminalManagement/getStoresUnderAccount.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class GetStoresUnderAccount extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}/getStoresUnderAccount` + ); + } +} + +export default GetStoresUnderAccount; diff --git a/src/services/resource/terminalManagement/getTerminalDetails.ts b/src/services/resource/terminalManagement/getTerminalDetails.ts new file mode 100644 index 0000000..6f4282d --- /dev/null +++ b/src/services/resource/terminalManagement/getTerminalDetails.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class GetTerminalDetails extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}/getTerminalDetails` + ); + } +} + +export default GetTerminalDetails; diff --git a/src/services/resource/terminalManagement/getTerminalsUnderAccount.ts b/src/services/resource/terminalManagement/getTerminalsUnderAccount.ts new file mode 100644 index 0000000..ae09e24 --- /dev/null +++ b/src/services/resource/terminalManagement/getTerminalsUnderAccount.ts @@ -0,0 +1,14 @@ +import Client from "../../../client"; +import Service from "../../../service"; +import Resource from "../../resource"; + +class GetTerminalsUnderAccount extends Resource { + public constructor(service: Service) { + super( + service, + `${service.client.config.terminalManagementEndpoint}/${Client.TERMINAL_MANAGEMENT_API_VERSION}/getTerminalsUnderAccount` + ); + } +} + +export default GetTerminalsUnderAccount; diff --git a/src/services/storedValue.ts b/src/services/storedValue.ts new file mode 100644 index 0000000..0559667 --- /dev/null +++ b/src/services/storedValue.ts @@ -0,0 +1,88 @@ +import Client from "../client"; +import getJsonResponse from "../helpers/getJsonResponse"; +import Service from "../service"; +import { + StoredValueBalanceCheckRequest, + StoredValueBalanceCheckResponse, + StoredValueBalanceMergeRequest, + StoredValueBalanceMergeResponse, + StoredValueIssueRequest, + StoredValueIssueResponse, + StoredValueLoadRequest, + StoredValueLoadResponse, + StoredValueStatusChangeRequest, + StoredValueStatusChangeResponse, + StoredValueVoidRequest, + StoredValueVoidResponse, +} from "../typings/storedValue/models"; +import ChangeStatus from "./resource/storedValue/changeStatus"; +import Issue from "./resource/storedValue/issue"; +import Load from "./resource/storedValue/load"; +import CheckBalance from "./resource/storedValue/checkBalance"; +import MergeBalance from "./resource/storedValue/mergeBalance"; +import VoidTransaction from "./resource/storedValue/voidTransaction"; + +class StoredValue extends Service { + + private readonly _issue: Issue; + private readonly _changeStatus: ChangeStatus; + private readonly _load: Load; + private readonly _checkBalance: CheckBalance; + private readonly _mergebalance: MergeBalance; + private readonly _voidTransaction: VoidTransaction; + + + public constructor(client: Client) { + super(client); + this._issue = new Issue(this); + this._changeStatus = new ChangeStatus(this); + this._load = new Load(this); + this._checkBalance = new CheckBalance(this); + this._mergebalance = new MergeBalance(this); + this._voidTransaction = new VoidTransaction(this); + } + + public issue(request: StoredValueIssueRequest): Promise { + return getJsonResponse( + this._issue, + request, + ); + } + + public changeStatus(request: StoredValueStatusChangeRequest): Promise { + return getJsonResponse( + this._changeStatus, + request, + ); + } + + public load(request: StoredValueLoadRequest): Promise { + return getJsonResponse( + this._load, + request, + ); + } + + public checkBalance(request: StoredValueBalanceCheckRequest): Promise { + return getJsonResponse( + this._checkBalance, + request, + ); + } + + public mergebalance(request: StoredValueBalanceMergeRequest): Promise { + return getJsonResponse( + this._mergebalance, + request, + ); + } + + public voidTransaction(request: StoredValueVoidRequest): Promise { + return getJsonResponse( + this._voidTransaction, + request, + ); + } +} + +export default StoredValue; diff --git a/src/services/terminalCloudAPI.ts b/src/services/terminalCloudAPI.ts index 3adda40..13c1736 100644 --- a/src/services/terminalCloudAPI.ts +++ b/src/services/terminalCloudAPI.ts @@ -46,14 +46,6 @@ class TerminalCloudAPI extends ApiKeyAuthenticatedService { const reqWithAppInfo = {saleToPOIRequest}; mergeDeep(request, reqWithAppInfo); - const formattedRequest = ObjectSerializer.serialize(request, "TerminalApiRequest"); - - if (formattedRequest.SaleToPOIRequest?.PaymentRequest?.SaleData?.SaleToAcquirerData) { - const dataString = JSON.stringify(formattedRequest.SaleToPOIRequest.PaymentRequest.SaleData.SaleToAcquirerData); - formattedRequest.SaleToPOIRequest.PaymentRequest.SaleData.SaleToAcquirerData = Buffer.from(dataString).toString("base64"); - } - - return formattedRequest; } return ObjectSerializer.serialize(request, "TerminalApiRequest"); diff --git a/src/services/terminalLocalAPI.ts b/src/services/terminalLocalAPI.ts index e92e8c9..3d2a86e 100644 --- a/src/services/terminalLocalAPI.ts +++ b/src/services/terminalLocalAPI.ts @@ -47,12 +47,6 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService { securityKey: SecurityKey, ): Promise { const formattedRequest = ObjectSerializer.serialize(terminalApiRequest, "TerminalApiRequest"); - - if (formattedRequest.SaleToPOIRequest?.PaymentRequest?.SaleData?.SaleToAcquirerData) { - const dataString = JSON.stringify(formattedRequest.SaleToPOIRequest.PaymentRequest.SaleData.SaleToAcquirerData); - formattedRequest.SaleToPOIRequest.PaymentRequest.SaleData.SaleToAcquirerData = Buffer.from(dataString).toString("base64"); - } - const saleToPoiSecuredMessage: SaleToPOISecuredMessage = NexoCrypto.encrypt( terminalApiRequest.SaleToPOIRequest.MessageHeader, JSON.stringify(formattedRequest), diff --git a/src/services/terminalManagement.ts b/src/services/terminalManagement.ts new file mode 100644 index 0000000..2d79f7c --- /dev/null +++ b/src/services/terminalManagement.ts @@ -0,0 +1,80 @@ +import Client from "../client"; +import getJsonResponse from "../helpers/getJsonResponse"; +import Service from "../service"; +import { + AssignTerminalsRequest, + AssignTerminalsResponse, + FindTerminalRequest, + FindTerminalResponse, + GetStoresUnderAccountRequest, + GetStoresUnderAccountResponse, + GetTerminalDetailsRequest, + GetTerminalDetailsResponse, + GetTerminalsUnderAccountRequest, + GetTerminalsUnderAccountResponse, + ObjectSerializer +} from "../typings/terminalManagement/models"; +import AssignTerminals from "./resource/terminalManagement/assignTerminals"; +import FindTerminal from "./resource/terminalManagement/findTerminal"; +import GetStoresUnderAccount from "./resource/terminalManagement/getStoresUnderAccount"; +import GetTerminalDetails from "./resource/terminalManagement/getTerminalDetails"; +import GetTerminalsUnderAccount from "./resource/terminalManagement/getTerminalsUnderAccount"; + +class TerminalManagement extends Service { + private readonly _assignTerminals: AssignTerminals; + private readonly _findTerminal: FindTerminal; + private readonly _getStoresUnderAccount: GetStoresUnderAccount; + private readonly _getTerminalDetails: GetTerminalDetails; + private readonly _getTerminalsUnderAccount: GetTerminalsUnderAccount; + + public constructor(client: Client) { + super(client); + this._assignTerminals = new AssignTerminals(this); + this._findTerminal = new FindTerminal(this); + this._getStoresUnderAccount = new GetStoresUnderAccount(this); + this._getTerminalDetails = new GetTerminalDetails(this); + this._getTerminalsUnderAccount = new GetTerminalsUnderAccount(this); + } + + public async assignTerminals(request: AssignTerminalsRequest): Promise { + const response = await getJsonResponse( + this._assignTerminals, + request, + ); + return ObjectSerializer.deserialize(response, "AssignTerminalsResponse"); + } + + public async findTerminal(request: FindTerminalRequest): Promise { + const response = await getJsonResponse( + this._findTerminal, + request, + ); + return ObjectSerializer.deserialize(response, "FindTerminalResponse"); + } + + public async getStoresUnderAccount(request: GetStoresUnderAccountRequest): Promise { + const response = await getJsonResponse( + this._getStoresUnderAccount, + request, + ); + return ObjectSerializer.deserialize(response, "GetStoresUnderAccountResponse"); + } + + public async getTerminalDetails(request: GetTerminalDetailsRequest): Promise { + const response = await getJsonResponse( + this._getTerminalDetails, + request, + ); + return ObjectSerializer.deserialize(response, "GetTerminalDetailsResponse"); + } + + public async getTerminalsUnderAccount(request: GetTerminalsUnderAccountRequest): Promise { + const response = await getJsonResponse( + this._getTerminalsUnderAccount, + request, + ); + return ObjectSerializer.deserialize(response, "GetTerminalsUnderAccountResponse"); + } +} + +export default TerminalManagement; \ No newline at end of file diff --git a/src/typings/balancePlatform/accountHolder.ts b/src/typings/balancePlatform/accountHolder.ts new file mode 100644 index 0000000..ccfac13 --- /dev/null +++ b/src/typings/balancePlatform/accountHolder.ts @@ -0,0 +1,118 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; + +export class AccountHolder { + /** + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + */ + 'balancePlatform'?: string; + /** + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: AccountHolderCapability; }; + 'contactDetails'?: ContactDetails; + /** + * Your description for the account holder, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the account holder. + */ + 'id': string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. For more information on how to create a legal entity, refer to [Onboard and verify account holders](https://docs.adyen.com/issuing/kyc-verification). + */ + 'legalEntityId': string; + /** + * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + */ + 'primaryBalanceAccount'?: string; + /** + * Your reference for the account holder, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the account holder. Possible values: * **Active**: The account holder is active. This is the default status when creating an account holder. * **Suspended**: The account holder is temporarily suspended. You can set the account back to active or close it permanently. * **Closed**: The account holder is permanently deactivated. This action cannot be undone. + */ + 'status'?: AccountHolder.StatusEnum; + /** + * The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: AccountHolderCapability; }" + }, + { + "name": "contactDetails", + "baseName": "contactDetails", + "type": "ContactDetails" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "primaryBalanceAccount", + "baseName": "primaryBalanceAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "AccountHolder.StatusEnum" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountHolder.attributeTypeMap; + } +} + +export namespace AccountHolder { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } +} diff --git a/src/typings/balancePlatform/accountHolderCapability.ts b/src/typings/balancePlatform/accountHolderCapability.ts new file mode 100644 index 0000000..e3f902f --- /dev/null +++ b/src/typings/balancePlatform/accountHolderCapability.ts @@ -0,0 +1,118 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblem } from './capabilityProblem'; +import { JSONObject } from './jSONObject'; + +export class AccountHolderCapability { + /** + * Indicates whether the capability is allowed. Adyen sets this to **true** if the verification is successful and the account holder is permitted to use the capability. + */ + 'allowed'?: boolean; + /** + * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. + */ + 'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum; + 'allowedSettings'?: JSONObject; + /** + * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. + */ + 'enabled'?: boolean; + /** + * Contains verification errors and the actions that you can take to resolve them. + */ + 'problems'?: Array; + /** + * Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field. + */ + 'requested'?: boolean; + /** + * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. + */ + 'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum; + 'requestedSettings'?: JSONObject; + /** + * The status of the verification checks for the capability. Possible values: * **pending**: Adyen is running the verification. * **invalid**: The verification failed. Check if the `errors` array contains more information. * **valid**: The verification has been successfully completed. * **rejected**: Adyen has verified the information, but found reasons to not allow the capability. + */ + 'verificationStatus'?: AccountHolderCapability.VerificationStatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, + { + "name": "allowedLevel", + "baseName": "allowedLevel", + "type": "AccountHolderCapability.AllowedLevelEnum" + }, + { + "name": "allowedSettings", + "baseName": "allowedSettings", + "type": "JSONObject" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "problems", + "baseName": "problems", + "type": "Array" + }, + { + "name": "requested", + "baseName": "requested", + "type": "boolean" + }, + { + "name": "requestedLevel", + "baseName": "requestedLevel", + "type": "AccountHolderCapability.RequestedLevelEnum" + }, + { + "name": "requestedSettings", + "baseName": "requestedSettings", + "type": "JSONObject" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "AccountHolderCapability.VerificationStatusEnum" + } ]; + + static getAttributeTypeMap() { + return AccountHolderCapability.attributeTypeMap; + } +} + +export namespace AccountHolderCapability { + export enum AllowedLevelEnum { + High = 'high', + Low = 'low', + Medium = 'medium', + NotApplicable = 'notApplicable' + } + export enum RequestedLevelEnum { + High = 'high', + Low = 'low', + Medium = 'medium', + NotApplicable = 'notApplicable' + } + export enum VerificationStatusEnum { + Invalid = 'invalid', + Pending = 'pending', + Rejected = 'rejected', + Valid = 'valid' + } +} diff --git a/src/typings/balancePlatform/accountHolderInfo.ts b/src/typings/balancePlatform/accountHolderInfo.ts new file mode 100644 index 0000000..72a0c1c --- /dev/null +++ b/src/typings/balancePlatform/accountHolderInfo.ts @@ -0,0 +1,83 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; + +export class AccountHolderInfo { + /** + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + */ + 'balancePlatform'?: string; + /** + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: AccountHolderCapability; }; + 'contactDetails'?: ContactDetails; + /** + * Your description for the account holder, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder. For more information on how to create a legal entity, refer to [Onboard and verify account holders](https://docs.adyen.com/issuing/kyc-verification). + */ + 'legalEntityId': string; + /** + * Your reference for the account holder, maximum 150 characters. + */ + 'reference'?: string; + /** + * The [time zone](https://www.iana.org/time-zones) of the account holder. For example, **Europe/Amsterdam**. If not set, the time zone of the balance account will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: AccountHolderCapability; }" + }, + { + "name": "contactDetails", + "baseName": "contactDetails", + "type": "ContactDetails" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountHolderInfo.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/activeNetworkTokensRestriction.ts b/src/typings/balancePlatform/activeNetworkTokensRestriction.ts new file mode 100644 index 0000000..c62b129 --- /dev/null +++ b/src/typings/balancePlatform/activeNetworkTokensRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ActiveNetworkTokensRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * The number of tokens. + */ + 'value'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ActiveNetworkTokensRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/address.ts b/src/typings/balancePlatform/address.ts new file mode 100644 index 0000000..8a46c6b --- /dev/null +++ b/src/typings/balancePlatform/address.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + /** + * The name of the city. Maximum length: 3000 characters. + */ + 'city': string; + /** + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + */ + 'country': string; + /** + * The number or name of the house. Maximum length: 3000 characters. + */ + 'houseNumberOrName': string; + /** + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; + /** + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; + /** + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/address2.ts b/src/typings/balancePlatform/address2.ts new file mode 100644 index 0000000..b6598f3 --- /dev/null +++ b/src/typings/balancePlatform/address2.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address2 { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. >If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + */ + 'country': string; + /** + * First line of the address. + */ + 'line1'?: string; + /** + * Second line of the address. + */ + 'line2'?: string; + /** + * Third line of the address. + */ + 'line3'?: string; + /** + * The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. + */ + 'postalCode'?: string; + /** + * The two-letterISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "line3", + "baseName": "line3", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address2.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/amount.ts b/src/typings/balancePlatform/amount.ts new file mode 100644 index 0000000..c987e52 --- /dev/null +++ b/src/typings/balancePlatform/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/authentication.ts b/src/typings/balancePlatform/authentication.ts new file mode 100644 index 0000000..5892c95 --- /dev/null +++ b/src/typings/balancePlatform/authentication.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Phone } from './phone'; + +export class Authentication { + /** + * The email address where the one-time password (OTP) is sent. + */ + 'email'?: string; + /** + * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äÃļÃŧßÄÖÜ+-*_/ç%()=?!~#\'\",;:$&Ã ÃšÃ˛ÃĸôÃģÃĄÃēÃŗ** + */ + 'password'?: string; + 'phone'?: Phone; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "phone", + "baseName": "phone", + "type": "Phone" + } ]; + + static getAttributeTypeMap() { + return Authentication.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/balance.ts b/src/typings/balancePlatform/balance.ts new file mode 100644 index 0000000..06a727a --- /dev/null +++ b/src/typings/balancePlatform/balance.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Balance { + /** + * The remaining amount available for spending. + */ + 'available': number; + /** + * The total amount in the balance. + */ + 'balance': number; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance. + */ + 'currency': string; + /** + * The amount reserved for payments that have been authorised, but have not been captured yet. + */ + 'reserved': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "available", + "baseName": "available", + "type": "number" + }, + { + "name": "balance", + "baseName": "balance", + "type": "number" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "reserved", + "baseName": "reserved", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Balance.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/balanceAccount.ts b/src/typings/balancePlatform/balanceAccount.ts new file mode 100644 index 0000000..d27ea77 --- /dev/null +++ b/src/typings/balancePlatform/balanceAccount.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Balance } from './balance'; + +export class BalanceAccount { + /** + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + */ + 'accountHolderId': string; + /** + * List of balances with the amount and currency. + */ + 'balances'?: Array; + /** + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. + */ + 'defaultCurrencyCode'?: string; + /** + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + */ + 'description'?: string; + /** + * The unique identifier of the balance account. + */ + 'id': string; + /** + * Your reference for the balance account, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the balance account, set to **active** by default. + */ + 'status'?: BalanceAccount.StatusEnum; + /** + * The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. If not set, the time zone of the account holder will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderId", + "baseName": "accountHolderId", + "type": "string" + }, + { + "name": "balances", + "baseName": "balances", + "type": "Array" + }, + { + "name": "defaultCurrencyCode", + "baseName": "defaultCurrencyCode", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "BalanceAccount.StatusEnum" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalanceAccount.attributeTypeMap; + } +} + +export namespace BalanceAccount { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } +} diff --git a/src/typings/balancePlatform/balanceAccountInfo.ts b/src/typings/balancePlatform/balanceAccountInfo.ts new file mode 100644 index 0000000..6263416 --- /dev/null +++ b/src/typings/balancePlatform/balanceAccountInfo.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BalanceAccountInfo { + /** + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + */ + 'accountHolderId': string; + /** + * The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. + */ + 'defaultCurrencyCode'?: string; + /** + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + */ + 'description'?: string; + /** + * Your reference for the balance account, maximum 150 characters. + */ + 'reference'?: string; + /** + * The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. If not set, the time zone of the account holder will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderId", + "baseName": "accountHolderId", + "type": "string" + }, + { + "name": "defaultCurrencyCode", + "baseName": "defaultCurrencyCode", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalanceAccountInfo.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts new file mode 100644 index 0000000..6684d2c --- /dev/null +++ b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts @@ -0,0 +1,83 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BalanceAccountUpdateRequest { + /** + * The unique identifier of the [account holder](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/accountHolders__resParam_id) associated with the balance account. + */ + 'accountHolderId'?: string; + /** + * The default currency code of this balance account, in three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) format. The default value is **EUR**. + */ + 'defaultCurrencyCode'?: string; + /** + * A human-readable description of the balance account, maximum 300 characters. You can use this parameter to distinguish between multiple balance accounts under an account holder. + */ + 'description'?: string; + /** + * Your reference to the balance account, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the balance account. Payment instruments linked to the balance account can only be used if the balance account status is **active**. Possible values: **active**, **inactive**, **closed**, **suspended**. + */ + 'status'?: BalanceAccountUpdateRequest.StatusEnum; + /** + * The [time zone](https://www.iana.org/time-zones) of the balance account. For example, **Europe/Amsterdam**. If not set, the time zone of the account holder will be used. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderId", + "baseName": "accountHolderId", + "type": "string" + }, + { + "name": "defaultCurrencyCode", + "baseName": "defaultCurrencyCode", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "BalanceAccountUpdateRequest.StatusEnum" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalanceAccountUpdateRequest.attributeTypeMap; + } +} + +export namespace BalanceAccountUpdateRequest { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } +} diff --git a/src/typings/balancePlatform/balancePlatform.ts b/src/typings/balancePlatform/balancePlatform.ts new file mode 100644 index 0000000..5c282be --- /dev/null +++ b/src/typings/balancePlatform/balancePlatform.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BalancePlatform { + /** + * Your description of the balance platform, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the balance platform. + */ + 'id': string; + /** + * The status of the balance platform. Possible values: **Active**, **Inactive**, **Closed**, **Suspended**. + */ + 'status'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BalancePlatform.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts b/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts new file mode 100644 index 0000000..091615f --- /dev/null +++ b/src/typings/balancePlatform/balanceSweepConfigurationsResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { SweepConfigurationV2 } from './sweepConfigurationV2'; + +export class BalanceSweepConfigurationsResponse { + /** + * Indicates whether there are more items on the next page. + */ + 'hasNext': boolean; + /** + * Indicates whether there are more items on the previous page. + */ + 'hasPrevious': boolean; + /** + * List of sweeps associated with the balance account. + */ + 'sweeps': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hasNext", + "baseName": "hasNext", + "type": "boolean" + }, + { + "name": "hasPrevious", + "baseName": "hasPrevious", + "type": "boolean" + }, + { + "name": "sweeps", + "baseName": "sweeps", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return BalanceSweepConfigurationsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/brandVariantsRestriction.ts b/src/typings/balancePlatform/brandVariantsRestriction.ts new file mode 100644 index 0000000..cfd1e00 --- /dev/null +++ b/src/typings/balancePlatform/brandVariantsRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BrandVariantsRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of card brand variants. Possible values: - **mc**, **mccredit**, **mccommercialcredit_b2b**, **mcdebit**, **mcbusinessdebit**, **mcbusinessworlddebit**, **mcprepaid**, **mcmaestro** - **visa**, **visacredit**, **visadebit**, **visaprepaid**. You can specify a rule for a generic variant. For example, to create a rule for all Mastercard payment instruments, use **mc**. The rule is applied to all payment instruments under **mc**, such as **mcbusinessdebit** and **mcdebit**. + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return BrandVariantsRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/bulkAddress.ts b/src/typings/balancePlatform/bulkAddress.ts new file mode 100644 index 0000000..62779dc --- /dev/null +++ b/src/typings/balancePlatform/bulkAddress.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BulkAddress { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The name of the company. + */ + 'company'?: string; + /** + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. + */ + 'country': string; + /** + * The email address. + */ + 'email'?: string; + /** + * The house number or name. + */ + 'houseNumberOrName'?: string; + /** + * The full telephone number. + */ + 'mobile'?: string; + /** + * The postal code. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. + */ + 'postalCode'?: string; + /** + * The two-letter ISO 3166-2 state or province code. Maximum length: 2 characters for addresses in the US. + */ + 'stateOrProvince'?: string; + /** + * The streetname of the house. + */ + 'street'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "mobile", + "baseName": "mobile", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BulkAddress.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/capabilityProblem.ts b/src/typings/balancePlatform/capabilityProblem.ts new file mode 100644 index 0000000..14ba744 --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblem.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { VerificationError } from './verificationError'; + +export class CapabilityProblem { + 'entity'?: CapabilityProblemEntity; + /** + * Contains information about the verification error. + */ + 'verificationErrors'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entity", + "baseName": "entity", + "type": "CapabilityProblemEntity" + }, + { + "name": "verificationErrors", + "baseName": "verificationErrors", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblem.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/capabilityProblemEntity.ts b/src/typings/balancePlatform/capabilityProblemEntity.ts new file mode 100644 index 0000000..efbd925 --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblemEntity.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; + +export class CapabilityProblemEntity { + /** + * The ID of the entity. + */ + 'id'?: string; + 'owner'?: CapabilityProblemEntityRecursive; + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ + 'type'?: CapabilityProblemEntity.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "owner", + "baseName": "owner", + "type": "CapabilityProblemEntityRecursive" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntity.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntity.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntity { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts new file mode 100644 index 0000000..e75b3a5 --- /dev/null +++ b/src/typings/balancePlatform/capabilityProblemEntityRecursive.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CapabilityProblemEntityRecursive { + /** + * The ID of the entity. + */ + 'id'?: string; + /** + * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. + */ + 'type'?: CapabilityProblemEntityRecursive.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CapabilityProblemEntityRecursive.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CapabilityProblemEntityRecursive.attributeTypeMap; + } +} + +export namespace CapabilityProblemEntityRecursive { + export enum TypeEnum { + BankAccount = 'BankAccount', + Document = 'Document', + LegalEntity = 'LegalEntity' + } +} diff --git a/src/typings/balancePlatform/card.ts b/src/typings/balancePlatform/card.ts new file mode 100644 index 0000000..439f242 --- /dev/null +++ b/src/typings/balancePlatform/card.ts @@ -0,0 +1,128 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Authentication } from './authentication'; +import { CardConfiguration } from './cardConfiguration'; +import { DeliveryContact } from './deliveryContact'; +import { Expiry } from './expiry'; + +export class Card { + 'authentication'?: Authentication; + /** + * The bank identification number (BIN) of the card number. + */ + 'bin'?: string; + /** + * The brand of the payment instrument. Possible values: **visa**, **mc**. + */ + 'brand': string; + /** + * The brand variant of the payment instrument. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**. + */ + 'brandVariant': string; + /** + * The name of the card holder. Maximum length: 26 characters. + */ + 'cardholderName': string; + 'configuration'?: CardConfiguration; + /** + * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. + */ + 'cvc'?: string; + 'deliveryContact'?: DeliveryContact; + 'expiration'?: Expiry; + /** + * The form factor of the card. Possible values: **virtual**, **physical**. + */ + 'formFactor': Card.FormFactorEnum; + /** + * Last last four digits of the card number. + */ + 'lastFour'?: string; + /** + * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. + */ + 'number': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authentication", + "baseName": "authentication", + "type": "Authentication" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brandVariant", + "baseName": "brandVariant", + "type": "string" + }, + { + "name": "cardholderName", + "baseName": "cardholderName", + "type": "string" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "CardConfiguration" + }, + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "deliveryContact", + "baseName": "deliveryContact", + "type": "DeliveryContact" + }, + { + "name": "expiration", + "baseName": "expiration", + "type": "Expiry" + }, + { + "name": "formFactor", + "baseName": "formFactor", + "type": "Card.FormFactorEnum" + }, + { + "name": "lastFour", + "baseName": "lastFour", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + +export namespace Card { + export enum FormFactorEnum { + Physical = 'physical', + Unknown = 'unknown', + Virtual = 'virtual' + } +} diff --git a/src/typings/balancePlatform/cardConfiguration.ts b/src/typings/balancePlatform/cardConfiguration.ts new file mode 100644 index 0000000..d3eaf14 --- /dev/null +++ b/src/typings/balancePlatform/cardConfiguration.ts @@ -0,0 +1,145 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BulkAddress } from './bulkAddress'; + +export class CardConfiguration { + /** + * Overrides the activation label design ID defined in the `configurationProfileId`. The activation label is attached to the card and contains the activation instructions. + */ + 'activation'?: string; + /** + * Your app\'s URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. + */ + 'activationUrl'?: string; + 'bulkAddress'?: BulkAddress; + /** + * The ID of the card image. This is the image that will be printed on the full front of the card. + */ + 'cardImageId'?: string; + /** + * Overrides the carrier design ID defined in the `configurationProfileId`. The carrier is the letter or packaging to which the card is attached. + */ + 'carrier'?: string; + /** + * The ID of the carrier image. This is the image that will printed on the letter to which the card is attached. + */ + 'carrierImageId'?: string; + /** + * The ID of the card configuration profile that contains the settings of the card. For example, the envelope and PIN mailer designs or the logistics company handling the shipment. All the settings in the profile are applied to the card, unless you provide other fields to override them. For example, send the `shipmentMethod` to override the logistics company defined in the card configuration profile. + */ + 'configurationProfileId': string; + /** + * The three-letter [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency code of the card. For example, **EUR**. + */ + 'currency'?: string; + /** + * Overrides the envelope design ID defined in the `configurationProfileId`. + */ + 'envelope'?: string; + /** + * Overrides the insert design ID defined in the `configurationProfileId`. An insert is any additional material, such as marketing materials, that are shipped together with the card. + */ + 'insert'?: string; + /** + * The two-letter [ISO-639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code of the card. For example, **en**. + */ + 'language'?: string; + /** + * The ID of the logo image. This is the image that will be printed on the partial front of the card, such as a logo on the upper right corner. + */ + 'logoImageId'?: string; + /** + * Overrides the PIN mailer design ID defined in the `configurationProfileId`. The PIN mailer is the letter on which the PIN is printed. + */ + 'pinMailer'?: string; + /** + * Overrides the logistics company defined in the `configurationProfileId`. + */ + 'shipmentMethod'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "activation", + "baseName": "activation", + "type": "string" + }, + { + "name": "activationUrl", + "baseName": "activationUrl", + "type": "string" + }, + { + "name": "bulkAddress", + "baseName": "bulkAddress", + "type": "BulkAddress" + }, + { + "name": "cardImageId", + "baseName": "cardImageId", + "type": "string" + }, + { + "name": "carrier", + "baseName": "carrier", + "type": "string" + }, + { + "name": "carrierImageId", + "baseName": "carrierImageId", + "type": "string" + }, + { + "name": "configurationProfileId", + "baseName": "configurationProfileId", + "type": "string" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "envelope", + "baseName": "envelope", + "type": "string" + }, + { + "name": "insert", + "baseName": "insert", + "type": "string" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "logoImageId", + "baseName": "logoImageId", + "type": "string" + }, + { + "name": "pinMailer", + "baseName": "pinMailer", + "type": "string" + }, + { + "name": "shipmentMethod", + "baseName": "shipmentMethod", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardConfiguration.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/cardInfo.ts b/src/typings/balancePlatform/cardInfo.ts new file mode 100644 index 0000000..d6bd71f --- /dev/null +++ b/src/typings/balancePlatform/cardInfo.ts @@ -0,0 +1,85 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Authentication } from './authentication'; +import { CardConfiguration } from './cardConfiguration'; +import { DeliveryContact } from './deliveryContact'; + +export class CardInfo { + 'authentication'?: Authentication; + /** + * The brand of the payment instrument. Possible values: **visa**, **mc**. + */ + 'brand': string; + /** + * The brand variant of the payment instrument. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**. + */ + 'brandVariant': string; + /** + * The name of the card holder. Maximum length: 26 characters. + */ + 'cardholderName': string; + 'configuration'?: CardConfiguration; + 'deliveryContact'?: DeliveryContact; + /** + * The form factor of the card. Possible values: **virtual**, **physical**. + */ + 'formFactor': CardInfo.FormFactorEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authentication", + "baseName": "authentication", + "type": "Authentication" + }, + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brandVariant", + "baseName": "brandVariant", + "type": "string" + }, + { + "name": "cardholderName", + "baseName": "cardholderName", + "type": "string" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "CardConfiguration" + }, + { + "name": "deliveryContact", + "baseName": "deliveryContact", + "type": "DeliveryContact" + }, + { + "name": "formFactor", + "baseName": "formFactor", + "type": "CardInfo.FormFactorEnum" + } ]; + + static getAttributeTypeMap() { + return CardInfo.attributeTypeMap; + } +} + +export namespace CardInfo { + export enum FormFactorEnum { + Physical = 'physical', + Unknown = 'unknown', + Virtual = 'virtual' + } +} diff --git a/src/typings/balancePlatform/contactDetails.ts b/src/typings/balancePlatform/contactDetails.ts new file mode 100644 index 0000000..be1668a --- /dev/null +++ b/src/typings/balancePlatform/contactDetails.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Phone } from './phone'; + +export class ContactDetails { + 'address': Address; + /** + * The email address of the account holder. + */ + 'email': string; + 'phone': Phone; + /** + * The URL of the account holder\'s website. + */ + 'webAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "phone", + "baseName": "phone", + "type": "Phone" + }, + { + "name": "webAddress", + "baseName": "webAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ContactDetails.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/countriesRestriction.ts b/src/typings/balancePlatform/countriesRestriction.ts new file mode 100644 index 0000000..3a1c3ac --- /dev/null +++ b/src/typings/balancePlatform/countriesRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CountriesRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CountriesRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/deliveryContact.ts b/src/typings/balancePlatform/deliveryContact.ts new file mode 100644 index 0000000..038f51c --- /dev/null +++ b/src/typings/balancePlatform/deliveryContact.ts @@ -0,0 +1,69 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address2 } from './address2'; +import { Name } from './name'; +import { PhoneNumber } from './phoneNumber'; + +export class DeliveryContact { + 'address'?: Address2; + /** + * The email address of the contact. + */ + 'email'?: string; + /** + * The full phone number of the contact provided as a single string. It will be handled as a landline phone. **Examples:** \"0031 6 11 22 33 44\", \"+316/1122-3344\", \"(0031) 611223344\" + */ + 'fullPhoneNumber'?: string; + 'name'?: Name; + 'phoneNumber'?: PhoneNumber; + /** + * The URL of the contact\'s website. + */ + 'webAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address2" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "fullPhoneNumber", + "baseName": "fullPhoneNumber", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "PhoneNumber" + }, + { + "name": "webAddress", + "baseName": "webAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DeliveryContact.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/differentCurrenciesRestriction.ts b/src/typings/balancePlatform/differentCurrenciesRestriction.ts new file mode 100644 index 0000000..b39143d --- /dev/null +++ b/src/typings/balancePlatform/differentCurrenciesRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DifferentCurrenciesRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * Checks the currency of the payment against the currency of the payment instrument. Possible values: - **true**: The currency of the payment is different from the currency of the payment instrument. - **false**: The currencies are the same. + */ + 'value'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return DifferentCurrenciesRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/duration.ts b/src/typings/balancePlatform/duration.ts new file mode 100644 index 0000000..bd0389d --- /dev/null +++ b/src/typings/balancePlatform/duration.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Duration { + /** + * The unit of time. You can only use **minutes** and **hours** if the `interval.type` is **sliding**. Possible values: **minutes**, **hours**, **days**, **weeks**, or **months** + */ + 'unit'?: Duration.UnitEnum; + /** + * The length of time by the unit. For example, 5 days. The maximum duration is 90 days or an equivalent in other units. For example, 3 months. + */ + 'value'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "unit", + "baseName": "unit", + "type": "Duration.UnitEnum" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Duration.attributeTypeMap; + } +} + +export namespace Duration { + export enum UnitEnum { + Days = 'days', + Hours = 'hours', + Minutes = 'minutes', + Months = 'months', + Weeks = 'weeks' + } +} diff --git a/src/typings/balancePlatform/entryModesRestriction.ts b/src/typings/balancePlatform/entryModesRestriction.ts new file mode 100644 index 0000000..a5b1173 --- /dev/null +++ b/src/typings/balancePlatform/entryModesRestriction.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class EntryModesRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of point-of-sale entry modes. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **token**, **server**, **barcode**, **ocr**. + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return EntryModesRestriction.attributeTypeMap; + } +} + +export namespace EntryModesRestriction { + export enum ValueEnum { + Barcode = 'barcode', + Chip = 'chip', + Cof = 'cof', + Contactless = 'contactless', + Magstripe = 'magstripe', + Manual = 'manual', + Ocr = 'ocr', + Server = 'server', + Token = 'token', + Unknown = 'unknown' + } +} diff --git a/src/typings/balancePlatform/expiry.ts b/src/typings/balancePlatform/expiry.ts new file mode 100644 index 0000000..9d63d5e --- /dev/null +++ b/src/typings/balancePlatform/expiry.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Expiry { + /** + * The month in which the card will expire. + */ + 'month'?: string; + /** + * The year in which the card will expire. + */ + 'year'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "month", + "baseName": "month", + "type": "string" + }, + { + "name": "year", + "baseName": "year", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Expiry.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/internationalTransactionRestriction.ts b/src/typings/balancePlatform/internationalTransactionRestriction.ts new file mode 100644 index 0000000..c5d3d18 --- /dev/null +++ b/src/typings/balancePlatform/internationalTransactionRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class InternationalTransactionRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * Boolean indicating whether transaction is an international transaction. Possible values: - **true**: The transaction is an international transaction. - **false**: The transaction is a domestic transaction. + */ + 'value'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return InternationalTransactionRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/invalidField.ts b/src/typings/balancePlatform/invalidField.ts new file mode 100644 index 0000000..887af04 --- /dev/null +++ b/src/typings/balancePlatform/invalidField.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class InvalidField { + /** + * Description of the validation error. + */ + 'message': string; + /** + * The field that has an invalid value. + */ + 'name': string; + /** + * The invalid value. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InvalidField.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/jSONObject.ts b/src/typings/balancePlatform/jSONObject.ts new file mode 100644 index 0000000..4aa2683 --- /dev/null +++ b/src/typings/balancePlatform/jSONObject.ts @@ -0,0 +1,34 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { JSONPath } from './jSONPath'; + +export class JSONObject { + 'paths'?: Array; + 'rootPath'?: JSONPath; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paths", + "baseName": "paths", + "type": "Array" + }, + { + "name": "rootPath", + "baseName": "rootPath", + "type": "JSONPath" + } ]; + + static getAttributeTypeMap() { + return JSONObject.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/jSONPath.ts b/src/typings/balancePlatform/jSONPath.ts new file mode 100644 index 0000000..2cb727a --- /dev/null +++ b/src/typings/balancePlatform/jSONPath.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class JSONPath { + 'content'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "content", + "baseName": "content", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return JSONPath.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/matchingTransactionsRestriction.ts b/src/typings/balancePlatform/matchingTransactionsRestriction.ts new file mode 100644 index 0000000..6f7d4cb --- /dev/null +++ b/src/typings/balancePlatform/matchingTransactionsRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MatchingTransactionsRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * The number of transactions. + */ + 'value'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return MatchingTransactionsRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/mccsRestriction.ts b/src/typings/balancePlatform/mccsRestriction.ts new file mode 100644 index 0000000..06ce9cf --- /dev/null +++ b/src/typings/balancePlatform/mccsRestriction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MccsRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of merchant category codes (MCCs). + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return MccsRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/merchantAcquirerPair.ts b/src/typings/balancePlatform/merchantAcquirerPair.ts new file mode 100644 index 0000000..85ee765 --- /dev/null +++ b/src/typings/balancePlatform/merchantAcquirerPair.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MerchantAcquirerPair { + /** + * The acquirer ID. + */ + 'acquirerId'?: string; + /** + * The merchant identification number (MID). + */ + 'merchantId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerId", + "baseName": "acquirerId", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantAcquirerPair.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/merchantsRestriction.ts b/src/typings/balancePlatform/merchantsRestriction.ts new file mode 100644 index 0000000..c3ea6ee --- /dev/null +++ b/src/typings/balancePlatform/merchantsRestriction.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MerchantAcquirerPair } from './merchantAcquirerPair'; + +export class MerchantsRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of merchant ID and acquirer ID pairs. + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return MerchantsRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts new file mode 100644 index 0000000..147785d --- /dev/null +++ b/src/typings/balancePlatform/models.ts @@ -0,0 +1,378 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './accountHolder'; +export * from './accountHolderCapability'; +export * from './accountHolderInfo'; +export * from './activeNetworkTokensRestriction'; +export * from './address'; +export * from './address2'; +export * from './amount'; +export * from './authentication'; +export * from './balance'; +export * from './balanceAccount'; +export * from './balanceAccountInfo'; +export * from './balanceAccountUpdateRequest'; +export * from './balancePlatform'; +export * from './balanceSweepConfigurationsResponse'; +export * from './brandVariantsRestriction'; +export * from './bulkAddress'; +export * from './capabilityProblem'; +export * from './capabilityProblemEntity'; +export * from './capabilityProblemEntityRecursive'; +export * from './card'; +export * from './cardConfiguration'; +export * from './cardInfo'; +export * from './contactDetails'; +export * from './countriesRestriction'; +export * from './deliveryContact'; +export * from './differentCurrenciesRestriction'; +export * from './duration'; +export * from './entryModesRestriction'; +export * from './expiry'; +export * from './internationalTransactionRestriction'; +export * from './invalidField'; +export * from './jSONObject'; +export * from './jSONPath'; +export * from './matchingTransactionsRestriction'; +export * from './mccsRestriction'; +export * from './merchantAcquirerPair'; +export * from './merchantsRestriction'; +export * from './name'; +export * from './paginatedAccountHoldersResponse'; +export * from './paginatedBalanceAccountsResponse'; +export * from './paginatedPaymentInstrumentsResponse'; +export * from './paymentInstrument'; +export * from './paymentInstrumentGroup'; +export * from './paymentInstrumentGroupInfo'; +export * from './paymentInstrumentInfo'; +export * from './paymentInstrumentUpdateRequest'; +export * from './phone'; +export * from './phoneNumber'; +export * from './processingTypesRestriction'; +export * from './remediatingAction'; +export * from './restServiceError'; +export * from './sweepConfigurationV2'; +export * from './sweepCounterparty'; +export * from './sweepSchedule'; +export * from './timeOfDay'; +export * from './timeOfDayRestriction'; +export * from './totalAmountRestriction'; +export * from './transactionRule'; +export * from './transactionRuleEntityKey'; +export * from './transactionRuleInfo'; +export * from './transactionRuleInterval'; +export * from './transactionRuleResponse'; +export * from './transactionRuleRestrictions'; +export * from './transactionRulesResponse'; +export * from './verificationError'; +export * from './verificationErrorRecursive'; + + +import { AccountHolder } from './accountHolder'; +import { AccountHolderCapability } from './accountHolderCapability'; +import { AccountHolderInfo } from './accountHolderInfo'; +import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction'; +import { Address } from './address'; +import { Address2 } from './address2'; +import { Amount } from './amount'; +import { Authentication } from './authentication'; +import { Balance } from './balance'; +import { BalanceAccount } from './balanceAccount'; +import { BalanceAccountInfo } from './balanceAccountInfo'; +import { BalanceAccountUpdateRequest } from './balanceAccountUpdateRequest'; +import { BalancePlatform } from './balancePlatform'; +import { BalanceSweepConfigurationsResponse } from './balanceSweepConfigurationsResponse'; +import { BrandVariantsRestriction } from './brandVariantsRestriction'; +import { BulkAddress } from './bulkAddress'; +import { CapabilityProblem } from './capabilityProblem'; +import { CapabilityProblemEntity } from './capabilityProblemEntity'; +import { CapabilityProblemEntityRecursive } from './capabilityProblemEntityRecursive'; +import { Card } from './card'; +import { CardConfiguration } from './cardConfiguration'; +import { CardInfo } from './cardInfo'; +import { ContactDetails } from './contactDetails'; +import { CountriesRestriction } from './countriesRestriction'; +import { DeliveryContact } from './deliveryContact'; +import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; +import { Duration } from './duration'; +import { EntryModesRestriction } from './entryModesRestriction'; +import { Expiry } from './expiry'; +import { InternationalTransactionRestriction } from './internationalTransactionRestriction'; +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; +import { JSONPath } from './jSONPath'; +import { MatchingTransactionsRestriction } from './matchingTransactionsRestriction'; +import { MccsRestriction } from './mccsRestriction'; +import { MerchantAcquirerPair } from './merchantAcquirerPair'; +import { MerchantsRestriction } from './merchantsRestriction'; +import { Name } from './name'; +import { PaginatedAccountHoldersResponse } from './paginatedAccountHoldersResponse'; +import { PaginatedBalanceAccountsResponse } from './paginatedBalanceAccountsResponse'; +import { PaginatedPaymentInstrumentsResponse } from './paginatedPaymentInstrumentsResponse'; +import { PaymentInstrument } from './paymentInstrument'; +import { PaymentInstrumentGroup } from './paymentInstrumentGroup'; +import { PaymentInstrumentGroupInfo } from './paymentInstrumentGroupInfo'; +import { PaymentInstrumentInfo } from './paymentInstrumentInfo'; +import { PaymentInstrumentUpdateRequest } from './paymentInstrumentUpdateRequest'; +import { Phone } from './phone'; +import { PhoneNumber } from './phoneNumber'; +import { ProcessingTypesRestriction } from './processingTypesRestriction'; +import { RemediatingAction } from './remediatingAction'; +import { RestServiceError } from './restServiceError'; +import { SweepConfigurationV2 } from './sweepConfigurationV2'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; +import { TimeOfDay } from './timeOfDay'; +import { TimeOfDayRestriction } from './timeOfDayRestriction'; +import { TotalAmountRestriction } from './totalAmountRestriction'; +import { TransactionRule } from './transactionRule'; +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInfo } from './transactionRuleInfo'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleResponse } from './transactionRuleResponse'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; +import { TransactionRulesResponse } from './transactionRulesResponse'; +import { VerificationError } from './verificationError'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountHolder.StatusEnum": AccountHolder.StatusEnum, + "AccountHolderCapability.AllowedLevelEnum": AccountHolderCapability.AllowedLevelEnum, + "AccountHolderCapability.RequestedLevelEnum": AccountHolderCapability.RequestedLevelEnum, + "AccountHolderCapability.VerificationStatusEnum": AccountHolderCapability.VerificationStatusEnum, + "BalanceAccount.StatusEnum": BalanceAccount.StatusEnum, + "BalanceAccountUpdateRequest.StatusEnum": BalanceAccountUpdateRequest.StatusEnum, + "CapabilityProblemEntity.TypeEnum": CapabilityProblemEntity.TypeEnum, + "CapabilityProblemEntityRecursive.TypeEnum": CapabilityProblemEntityRecursive.TypeEnum, + "Card.FormFactorEnum": Card.FormFactorEnum, + "CardInfo.FormFactorEnum": CardInfo.FormFactorEnum, + "Duration.UnitEnum": Duration.UnitEnum, + "EntryModesRestriction.ValueEnum": EntryModesRestriction.ValueEnum, + "PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum, + "PaymentInstrument.StatusReasonEnum": PaymentInstrument.StatusReasonEnum, + "PaymentInstrument.TypeEnum": PaymentInstrument.TypeEnum, + "PaymentInstrumentInfo.StatusEnum": PaymentInstrumentInfo.StatusEnum, + "PaymentInstrumentInfo.StatusReasonEnum": PaymentInstrumentInfo.StatusReasonEnum, + "PaymentInstrumentInfo.TypeEnum": PaymentInstrumentInfo.TypeEnum, + "PaymentInstrumentUpdateRequest.StatusEnum": PaymentInstrumentUpdateRequest.StatusEnum, + "PaymentInstrumentUpdateRequest.StatusReasonEnum": PaymentInstrumentUpdateRequest.StatusReasonEnum, + "Phone.TypeEnum": Phone.TypeEnum, + "PhoneNumber.PhoneTypeEnum": PhoneNumber.PhoneTypeEnum, + "ProcessingTypesRestriction.ValueEnum": ProcessingTypesRestriction.ValueEnum, + "SweepConfigurationV2.StatusEnum": SweepConfigurationV2.StatusEnum, + "SweepConfigurationV2.TypeEnum": SweepConfigurationV2.TypeEnum, + "SweepSchedule.TypeEnum": SweepSchedule.TypeEnum, + "TransactionRule.OutcomeTypeEnum": TransactionRule.OutcomeTypeEnum, + "TransactionRule.StatusEnum": TransactionRule.StatusEnum, + "TransactionRule.TypeEnum": TransactionRule.TypeEnum, + "TransactionRuleInfo.OutcomeTypeEnum": TransactionRuleInfo.OutcomeTypeEnum, + "TransactionRuleInfo.StatusEnum": TransactionRuleInfo.StatusEnum, + "TransactionRuleInfo.TypeEnum": TransactionRuleInfo.TypeEnum, + "TransactionRuleInterval.DayOfWeekEnum": TransactionRuleInterval.DayOfWeekEnum, + "TransactionRuleInterval.TypeEnum": TransactionRuleInterval.TypeEnum, + "VerificationError.TypeEnum": VerificationError.TypeEnum, + "VerificationErrorRecursive.TypeEnum": VerificationErrorRecursive.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountHolder": AccountHolder, + "AccountHolderCapability": AccountHolderCapability, + "AccountHolderInfo": AccountHolderInfo, + "ActiveNetworkTokensRestriction": ActiveNetworkTokensRestriction, + "Address": Address, + "Address2": Address2, + "Amount": Amount, + "Authentication": Authentication, + "Balance": Balance, + "BalanceAccount": BalanceAccount, + "BalanceAccountInfo": BalanceAccountInfo, + "BalanceAccountUpdateRequest": BalanceAccountUpdateRequest, + "BalancePlatform": BalancePlatform, + "BalanceSweepConfigurationsResponse": BalanceSweepConfigurationsResponse, + "BrandVariantsRestriction": BrandVariantsRestriction, + "BulkAddress": BulkAddress, + "CapabilityProblem": CapabilityProblem, + "CapabilityProblemEntity": CapabilityProblemEntity, + "CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive, + "Card": Card, + "CardConfiguration": CardConfiguration, + "CardInfo": CardInfo, + "ContactDetails": ContactDetails, + "CountriesRestriction": CountriesRestriction, + "DeliveryContact": DeliveryContact, + "DifferentCurrenciesRestriction": DifferentCurrenciesRestriction, + "Duration": Duration, + "EntryModesRestriction": EntryModesRestriction, + "Expiry": Expiry, + "InternationalTransactionRestriction": InternationalTransactionRestriction, + "InvalidField": InvalidField, + "JSONObject": JSONObject, + "JSONPath": JSONPath, + "MatchingTransactionsRestriction": MatchingTransactionsRestriction, + "MccsRestriction": MccsRestriction, + "MerchantAcquirerPair": MerchantAcquirerPair, + "MerchantsRestriction": MerchantsRestriction, + "Name": Name, + "PaginatedAccountHoldersResponse": PaginatedAccountHoldersResponse, + "PaginatedBalanceAccountsResponse": PaginatedBalanceAccountsResponse, + "PaginatedPaymentInstrumentsResponse": PaginatedPaymentInstrumentsResponse, + "PaymentInstrument": PaymentInstrument, + "PaymentInstrumentGroup": PaymentInstrumentGroup, + "PaymentInstrumentGroupInfo": PaymentInstrumentGroupInfo, + "PaymentInstrumentInfo": PaymentInstrumentInfo, + "PaymentInstrumentUpdateRequest": PaymentInstrumentUpdateRequest, + "Phone": Phone, + "PhoneNumber": PhoneNumber, + "ProcessingTypesRestriction": ProcessingTypesRestriction, + "RemediatingAction": RemediatingAction, + "RestServiceError": RestServiceError, + "SweepConfigurationV2": SweepConfigurationV2, + "SweepCounterparty": SweepCounterparty, + "SweepSchedule": SweepSchedule, + "TimeOfDay": TimeOfDay, + "TimeOfDayRestriction": TimeOfDayRestriction, + "TotalAmountRestriction": TotalAmountRestriction, + "TransactionRule": TransactionRule, + "TransactionRuleEntityKey": TransactionRuleEntityKey, + "TransactionRuleInfo": TransactionRuleInfo, + "TransactionRuleInterval": TransactionRuleInterval, + "TransactionRuleResponse": TransactionRuleResponse, + "TransactionRuleRestrictions": TransactionRuleRestrictions, + "TransactionRulesResponse": TransactionRulesResponse, + "VerificationError": VerificationError, + "VerificationErrorRecursive": VerificationErrorRecursive, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/balancePlatform/name.ts b/src/typings/balancePlatform/name.ts new file mode 100644 index 0000000..46326e4 --- /dev/null +++ b/src/typings/balancePlatform/name.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name { + /** + * The first name. + */ + 'firstName': string; + /** + * The last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts b/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts new file mode 100644 index 0000000..72b7341 --- /dev/null +++ b/src/typings/balancePlatform/paginatedAccountHoldersResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountHolder } from './accountHolder'; + +export class PaginatedAccountHoldersResponse { + /** + * List of account holders. + */ + 'accountHolders': Array; + /** + * Indicates whether there are more items on the next page. + */ + 'hasNext': boolean; + /** + * Indicates whether there are more items on the previous page. + */ + 'hasPrevious': boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolders", + "baseName": "accountHolders", + "type": "Array" + }, + { + "name": "hasNext", + "baseName": "hasNext", + "type": "boolean" + }, + { + "name": "hasPrevious", + "baseName": "hasPrevious", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaginatedAccountHoldersResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts b/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts new file mode 100644 index 0000000..72d2b63 --- /dev/null +++ b/src/typings/balancePlatform/paginatedBalanceAccountsResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BalanceAccount } from './balanceAccount'; + +export class PaginatedBalanceAccountsResponse { + /** + * List of balance accounts. + */ + 'balanceAccounts': Array; + /** + * Indicates whether there are more items on the next page. + */ + 'hasNext': boolean; + /** + * Indicates whether there are more items on the previous page. + */ + 'hasPrevious': boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccounts", + "baseName": "balanceAccounts", + "type": "Array" + }, + { + "name": "hasNext", + "baseName": "hasNext", + "type": "boolean" + }, + { + "name": "hasPrevious", + "baseName": "hasPrevious", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaginatedBalanceAccountsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts b/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts new file mode 100644 index 0000000..7edb9c5 --- /dev/null +++ b/src/typings/balancePlatform/paginatedPaymentInstrumentsResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PaymentInstrument } from './paymentInstrument'; + +export class PaginatedPaymentInstrumentsResponse { + /** + * Indicates whether there are more items on the next page. + */ + 'hasNext': boolean; + /** + * Indicates whether there are more items on the previous page. + */ + 'hasPrevious': boolean; + /** + * List of payment instruments associated with the balance account. + */ + 'paymentInstruments': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hasNext", + "baseName": "hasNext", + "type": "boolean" + }, + { + "name": "hasPrevious", + "baseName": "hasPrevious", + "type": "boolean" + }, + { + "name": "paymentInstruments", + "baseName": "paymentInstruments", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaginatedPaymentInstrumentsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paymentInstrument.ts b/src/typings/balancePlatform/paymentInstrument.ts new file mode 100644 index 0000000..3e4785f --- /dev/null +++ b/src/typings/balancePlatform/paymentInstrument.ts @@ -0,0 +1,130 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Card } from './card'; + +export class PaymentInstrument { + /** + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + */ + 'balanceAccountId': string; + 'card'?: Card; + /** + * Your description for the payment instrument, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the payment instrument. + */ + 'id': string; + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + */ + 'issuingCountryCode': string; + /** + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + */ + 'paymentInstrumentGroupId'?: string; + /** + * Your reference for the payment instrument, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + */ + 'status'?: PaymentInstrument.StatusEnum; + /** + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + */ + 'statusReason'?: PaymentInstrument.StatusReasonEnum; + /** + * Type of payment instrument. Possible value: **card**. + */ + 'type': PaymentInstrument.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "issuingCountryCode", + "baseName": "issuingCountryCode", + "type": "string" + }, + { + "name": "paymentInstrumentGroupId", + "baseName": "paymentInstrumentGroupId", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentInstrument.StatusEnum" + }, + { + "name": "statusReason", + "baseName": "statusReason", + "type": "PaymentInstrument.StatusReasonEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "PaymentInstrument.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrument.attributeTypeMap; + } +} + +export namespace PaymentInstrument { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } + export enum StatusReasonEnum { + AccountClosure = 'accountClosure', + Damaged = 'damaged', + EndOfLife = 'endOfLife', + Expired = 'expired', + Lost = 'lost', + Other = 'other', + Stolen = 'stolen', + SuspectedFraud = 'suspectedFraud' + } + export enum TypeEnum { + Card = 'card' + } +} diff --git a/src/typings/balancePlatform/paymentInstrumentGroup.ts b/src/typings/balancePlatform/paymentInstrumentGroup.ts new file mode 100644 index 0000000..205cde4 --- /dev/null +++ b/src/typings/balancePlatform/paymentInstrumentGroup.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PaymentInstrumentGroup { + /** + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + */ + 'balancePlatform': string; + /** + * Your description for the payment instrument group, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the payment instrument group. + */ + 'id'?: string; + /** + * Properties of the payment instrument group. + */ + 'properties'?: { [key: string]: string; }; + /** + * Your reference for the payment instrument group, maximum 150 characters. + */ + 'reference'?: string; + /** + * The tx variant of the payment instrument group. + */ + 'txVariant': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "properties", + "baseName": "properties", + "type": "{ [key: string]: string; }" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "txVariant", + "baseName": "txVariant", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrumentGroup.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts b/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts new file mode 100644 index 0000000..d1b503f --- /dev/null +++ b/src/typings/balancePlatform/paymentInstrumentGroupInfo.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PaymentInstrumentGroupInfo { + /** + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the payment instrument group belongs. + */ + 'balancePlatform': string; + /** + * Your description for the payment instrument group, maximum 300 characters. + */ + 'description'?: string; + /** + * Properties of the payment instrument group. + */ + 'properties'?: { [key: string]: string; }; + /** + * Your reference for the payment instrument group, maximum 150 characters. + */ + 'reference'?: string; + /** + * The tx variant of the payment instrument group. + */ + 'txVariant': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "properties", + "baseName": "properties", + "type": "{ [key: string]: string; }" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "txVariant", + "baseName": "txVariant", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrumentGroupInfo.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/paymentInstrumentInfo.ts b/src/typings/balancePlatform/paymentInstrumentInfo.ts new file mode 100644 index 0000000..015bed8 --- /dev/null +++ b/src/typings/balancePlatform/paymentInstrumentInfo.ts @@ -0,0 +1,121 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CardInfo } from './cardInfo'; + +export class PaymentInstrumentInfo { + /** + * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. + */ + 'balanceAccountId': string; + 'card'?: CardInfo; + /** + * Your description for the payment instrument, maximum 300 characters. + */ + 'description'?: string; + /** + * The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the payment instrument is issued. For example, **NL** or **US**. + */ + 'issuingCountryCode': string; + /** + * The unique identifier of the [payment instrument group](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/paymentInstrumentGroups__resParam_id) to which the payment instrument belongs. + */ + 'paymentInstrumentGroupId'?: string; + /** + * Your reference for the payment instrument, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + */ + 'status'?: PaymentInstrumentInfo.StatusEnum; + /** + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + */ + 'statusReason'?: PaymentInstrumentInfo.StatusReasonEnum; + /** + * Type of payment instrument. Possible value: **card**. + */ + 'type': PaymentInstrumentInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "card", + "baseName": "card", + "type": "CardInfo" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "issuingCountryCode", + "baseName": "issuingCountryCode", + "type": "string" + }, + { + "name": "paymentInstrumentGroupId", + "baseName": "paymentInstrumentGroupId", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentInstrumentInfo.StatusEnum" + }, + { + "name": "statusReason", + "baseName": "statusReason", + "type": "PaymentInstrumentInfo.StatusReasonEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "PaymentInstrumentInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrumentInfo.attributeTypeMap; + } +} + +export namespace PaymentInstrumentInfo { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } + export enum StatusReasonEnum { + AccountClosure = 'accountClosure', + Damaged = 'damaged', + EndOfLife = 'endOfLife', + Expired = 'expired', + Lost = 'lost', + Other = 'other', + Stolen = 'stolen', + SuspectedFraud = 'suspectedFraud' + } + export enum TypeEnum { + Card = 'card' + } +} diff --git a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts new file mode 100644 index 0000000..1e8fb05 --- /dev/null +++ b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts @@ -0,0 +1,82 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CardInfo } from './cardInfo'; + +export class PaymentInstrumentUpdateRequest { + /** + * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. + */ + 'balanceAccountId'?: string; + 'card'?: CardInfo; + /** + * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. + */ + 'status'?: PaymentInstrumentUpdateRequest.StatusEnum; + /** + * Comment for the status of the payment instrument. Required if `statusReason` is **other**. + */ + 'statusComment'?: string; + /** + * The reason for updating the status of the payment instrument. Possible values: **lost**, **stolen**, **damaged**, **suspectedFraud**, **expired**, **endOfLife**, **accountClosure**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change. + */ + 'statusReason'?: PaymentInstrumentUpdateRequest.StatusReasonEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "card", + "baseName": "card", + "type": "CardInfo" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentInstrumentUpdateRequest.StatusEnum" + }, + { + "name": "statusComment", + "baseName": "statusComment", + "type": "string" + }, + { + "name": "statusReason", + "baseName": "statusReason", + "type": "PaymentInstrumentUpdateRequest.StatusReasonEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentInstrumentUpdateRequest.attributeTypeMap; + } +} + +export namespace PaymentInstrumentUpdateRequest { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } + export enum StatusReasonEnum { + AccountClosure = 'accountClosure', + Damaged = 'damaged', + EndOfLife = 'endOfLife', + Expired = 'expired', + Lost = 'lost', + Other = 'other', + Stolen = 'stolen', + SuspectedFraud = 'suspectedFraud' + } +} diff --git a/src/typings/balancePlatform/phone.ts b/src/typings/balancePlatform/phone.ts new file mode 100644 index 0000000..731e45b --- /dev/null +++ b/src/typings/balancePlatform/phone.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Phone { + /** + * The full phone number provided as a single string. For example, **\"0031 6 11 22 33 44\"**, **\"+316/1122-3344\"**, or **\"(0031) 611223344\"**. + */ + 'number': string; + /** + * Type of phone number. Possible values: **Landline**, **Mobile**. + */ + 'type': Phone.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Phone.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Phone.attributeTypeMap; + } +} + +export namespace Phone { + export enum TypeEnum { + Landline = 'landline', + Mobile = 'mobile' + } +} diff --git a/src/typings/balancePlatform/phoneNumber.ts b/src/typings/balancePlatform/phoneNumber.ts new file mode 100644 index 0000000..cfa7db3 --- /dev/null +++ b/src/typings/balancePlatform/phoneNumber.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PhoneNumber { + /** + * The two-character ISO-3166-1 alpha-2 country code of the phone number. For example, **US** or **NL**. + */ + 'phoneCountryCode': string; + /** + * The phone number. The inclusion of the phone number country code is not necessary. + */ + 'phoneNumber': string; + /** + * The type of the phone number. Possible values: **Landline**, **Mobile**, **SIP**, **Fax**. + */ + 'phoneType'?: PhoneNumber.PhoneTypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "phoneCountryCode", + "baseName": "phoneCountryCode", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + }, + { + "name": "phoneType", + "baseName": "phoneType", + "type": "PhoneNumber.PhoneTypeEnum" + } ]; + + static getAttributeTypeMap() { + return PhoneNumber.attributeTypeMap; + } +} + +export namespace PhoneNumber { + export enum PhoneTypeEnum { + Fax = 'Fax', + Landline = 'Landline', + Mobile = 'Mobile', + Sip = 'SIP' + } +} diff --git a/src/typings/balancePlatform/processingTypesRestriction.ts b/src/typings/balancePlatform/processingTypesRestriction.ts new file mode 100644 index 0000000..f0c1004 --- /dev/null +++ b/src/typings/balancePlatform/processingTypesRestriction.ts @@ -0,0 +1,52 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ProcessingTypesRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + /** + * List of processing types. Possible values: **atmWithdraw**, **pos**, **ecommerce**, **moto**, **recurring**, **balanceInquiry**. + */ + 'value'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ProcessingTypesRestriction.attributeTypeMap; + } +} + +export namespace ProcessingTypesRestriction { + export enum ValueEnum { + AtmWithdraw = 'atmWithdraw', + BalanceInquiry = 'balanceInquiry', + Ecommerce = 'ecommerce', + Moto = 'moto', + Pos = 'pos', + PurchaseWithCashback = 'purchaseWithCashback', + Recurring = 'recurring', + Token = 'token', + Unknown = 'unknown' + } +} diff --git a/src/typings/balancePlatform/remediatingAction.ts b/src/typings/balancePlatform/remediatingAction.ts new file mode 100644 index 0000000..b90d13d --- /dev/null +++ b/src/typings/balancePlatform/remediatingAction.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RemediatingAction { + /** + * The remediating action code. + */ + 'code'?: string; + /** + * A description of how you can resolve the verification error. + */ + 'message'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RemediatingAction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/restServiceError.ts b/src/typings/balancePlatform/restServiceError.ts new file mode 100644 index 0000000..f41d0c6 --- /dev/null +++ b/src/typings/balancePlatform/restServiceError.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; + +export class RestServiceError { + /** + * A human-readable explanation specific to this occurrence of the problem. + */ + 'detail': string; + /** + * A code that identifies the problem type. + */ + 'errorCode': string; + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + */ + 'errorType': string; + /** + * A unique URI that identifies the specific occurrence of the problem. + */ + 'instance'?: string; + /** + * Detailed explanation of each validation error, when applicable. + */ + 'invalidFields'?: Array; + /** + * A unique reference for the request, essentially the same as `pspReference`. + */ + 'requestId'?: string; + 'response'?: JSONObject; + /** + * The HTTP status code. + */ + 'status': number; + /** + * A short, human-readable summary of the problem type. + */ + 'title': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "detail", + "baseName": "detail", + "type": "string" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "instance", + "baseName": "instance", + "type": "string" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "requestId", + "baseName": "requestId", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "JSONObject" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + }, + { + "name": "title", + "baseName": "title", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RestServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts new file mode 100644 index 0000000..23d9fdf --- /dev/null +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -0,0 +1,100 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; + +export class SweepConfigurationV2 { + 'counterparty': SweepCounterparty; + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). + */ + 'currency': string; + /** + * The unique identifier of the sweep. + */ + 'id': string; + 'schedule': SweepSchedule; + /** + * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. + */ + 'status'?: SweepConfigurationV2.StatusEnum; + 'sweepAmount'?: Amount; + 'targetAmount'?: Amount; + 'triggerAmount'?: Amount; + /** + * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. + */ + 'type'?: SweepConfigurationV2.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "counterparty", + "baseName": "counterparty", + "type": "SweepCounterparty" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "schedule", + "baseName": "schedule", + "type": "SweepSchedule" + }, + { + "name": "status", + "baseName": "status", + "type": "SweepConfigurationV2.StatusEnum" + }, + { + "name": "sweepAmount", + "baseName": "sweepAmount", + "type": "Amount" + }, + { + "name": "targetAmount", + "baseName": "targetAmount", + "type": "Amount" + }, + { + "name": "triggerAmount", + "baseName": "triggerAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "SweepConfigurationV2.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SweepConfigurationV2.attributeTypeMap; + } +} + +export namespace SweepConfigurationV2 { + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } + export enum TypeEnum { + Pull = 'pull', + Push = 'push' + } +} diff --git a/src/typings/balancePlatform/sweepCounterparty.ts b/src/typings/balancePlatform/sweepCounterparty.ts new file mode 100644 index 0000000..692d9f8 --- /dev/null +++ b/src/typings/balancePlatform/sweepCounterparty.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SweepCounterparty { + /** + * The unique identifier of the destination or source [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id). You can only use this for periodic sweep schedules such as `schedule.type` **daily** or **monthly**. + */ + 'balanceAccountId'?: string; + /** + * The merchant account that will be the source of funds, if you are processing payments with Adyen. You can only use this with sweeps of `type` **pull** and `schedule.type` **balance**. + */ + 'merchantAccount'?: string; + /** + * The unique identifier of the destination or source [transfer instrument](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/transferInstruments__resParam_id). You can also use this in combination with a `merchantAccount` and a `type` **pull** to start a direct debit request from the source transfer instrument. To use this feature, reach out to your Adyen contact. + */ + 'transferInstrumentId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SweepCounterparty.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/sweepSchedule.ts b/src/typings/balancePlatform/sweepSchedule.ts new file mode 100644 index 0000000..64dca05 --- /dev/null +++ b/src/typings/balancePlatform/sweepSchedule.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SweepSchedule { + /** + * The schedule type. Possible values: * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`. + */ + 'type'?: SweepSchedule.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "SweepSchedule.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SweepSchedule.attributeTypeMap; + } +} + +export namespace SweepSchedule { + export enum TypeEnum { + Daily = 'daily', + Weekly = 'weekly', + Monthly = 'monthly', + Balance = 'balance' + } +} diff --git a/src/typings/balancePlatform/timeOfDay.ts b/src/typings/balancePlatform/timeOfDay.ts new file mode 100644 index 0000000..f28b2bf --- /dev/null +++ b/src/typings/balancePlatform/timeOfDay.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TimeOfDay { + /** + * The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + */ + 'endTime'?: string; + /** + * The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**. + */ + 'startTime'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "endTime", + "baseName": "endTime", + "type": "string" + }, + { + "name": "startTime", + "baseName": "startTime", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TimeOfDay.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/timeOfDayRestriction.ts b/src/typings/balancePlatform/timeOfDayRestriction.ts new file mode 100644 index 0000000..051a59d --- /dev/null +++ b/src/typings/balancePlatform/timeOfDayRestriction.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TimeOfDay } from './timeOfDay'; + +export class TimeOfDayRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + 'value'?: TimeOfDay; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "TimeOfDay" + } ]; + + static getAttributeTypeMap() { + return TimeOfDayRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/totalAmountRestriction.ts b/src/typings/balancePlatform/totalAmountRestriction.ts new file mode 100644 index 0000000..320fe8b --- /dev/null +++ b/src/typings/balancePlatform/totalAmountRestriction.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class TotalAmountRestriction { + /** + * Defines how the condition must be evaluated. + */ + 'operation': string; + 'value'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "operation", + "baseName": "operation", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return TotalAmountRestriction.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/transactionRule.ts b/src/typings/balancePlatform/transactionRule.ts new file mode 100644 index 0000000..9bb3054 --- /dev/null +++ b/src/typings/balancePlatform/transactionRule.ts @@ -0,0 +1,148 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; + +export class TransactionRule { + /** + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + */ + 'aggregationLevel'?: string; + /** + * Your description for the transaction rule, maximum 300 characters. + */ + 'description': string; + /** + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + */ + 'endDate'?: string; + 'entityKey': TransactionRuleEntityKey; + /** + * The unique identifier of the transaction rule. + */ + 'id'?: string; + 'interval': TransactionRuleInterval; + /** + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + */ + 'outcomeType'?: TransactionRule.OutcomeTypeEnum; + /** + * Your reference for the transaction rule, maximum 150 characters. + */ + 'reference': string; + 'ruleRestrictions': TransactionRuleRestrictions; + /** + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + */ + 'score'?: number; + /** + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + */ + 'startDate'?: string; + /** + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + */ + 'status'?: TransactionRule.StatusEnum; + /** + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which definesif a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + */ + 'type': TransactionRule.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "aggregationLevel", + "baseName": "aggregationLevel", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "endDate", + "baseName": "endDate", + "type": "string" + }, + { + "name": "entityKey", + "baseName": "entityKey", + "type": "TransactionRuleEntityKey" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "interval", + "baseName": "interval", + "type": "TransactionRuleInterval" + }, + { + "name": "outcomeType", + "baseName": "outcomeType", + "type": "TransactionRule.OutcomeTypeEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "ruleRestrictions", + "baseName": "ruleRestrictions", + "type": "TransactionRuleRestrictions" + }, + { + "name": "score", + "baseName": "score", + "type": "number" + }, + { + "name": "startDate", + "baseName": "startDate", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "TransactionRule.StatusEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "TransactionRule.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TransactionRule.attributeTypeMap; + } +} + +export namespace TransactionRule { + export enum OutcomeTypeEnum { + HardBlock = 'hardBlock', + ScoreBased = 'scoreBased' + } + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } + export enum TypeEnum { + AllowList = 'allowList', + BlockList = 'blockList', + MaxUsage = 'maxUsage', + Velocity = 'velocity' + } +} diff --git a/src/typings/balancePlatform/transactionRuleEntityKey.ts b/src/typings/balancePlatform/transactionRuleEntityKey.ts new file mode 100644 index 0000000..b6a85fa --- /dev/null +++ b/src/typings/balancePlatform/transactionRuleEntityKey.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TransactionRuleEntityKey { + /** + * The unique identifier of the resource. + */ + 'entityReference'?: string; + /** + * The type of resource. Possible values: **balancePlatform**, **paymentInstrumentGroup**, **accountHolder**, **balanceAccount**, or **paymentInstrument**. + */ + 'entityType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "entityReference", + "baseName": "entityReference", + "type": "string" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransactionRuleEntityKey.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/transactionRuleInfo.ts b/src/typings/balancePlatform/transactionRuleInfo.ts new file mode 100644 index 0000000..8199017 --- /dev/null +++ b/src/typings/balancePlatform/transactionRuleInfo.ts @@ -0,0 +1,139 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionRuleEntityKey } from './transactionRuleEntityKey'; +import { TransactionRuleInterval } from './transactionRuleInterval'; +import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; + +export class TransactionRuleInfo { + /** + * The level at which data must be accumulated, used in rules with `type` **velocity** or **maxUsage**. The level must be the [same or lower in hierarchy](https://docs.adyen.com/issuing/transaction-rules#accumulate-data) than the `entityKey`. If not provided, by default, the rule will accumulate data at the **paymentInstrument** level. Possible values: **paymentInstrument**, **paymentInstrumentGroup**, **balanceAccount**, **accountHolder**, **balancePlatform**. + */ + 'aggregationLevel'?: string; + /** + * Your description for the transaction rule, maximum 300 characters. + */ + 'description': string; + /** + * The date when the rule will stop being evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided, the rule will be evaluated until the rule status is set to **inactive**. + */ + 'endDate'?: string; + 'entityKey': TransactionRuleEntityKey; + 'interval': TransactionRuleInterval; + /** + * The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined. + */ + 'outcomeType'?: TransactionRuleInfo.OutcomeTypeEnum; + /** + * Your reference for the transaction rule, maximum 150 characters. + */ + 'reference': string; + 'ruleRestrictions': TransactionRuleRestrictions; + /** + * A positive or negative score applied to the transaction if it meets the conditions of the rule. Required when `outcomeType` is **scoreBased**. The value must be between **-100** and **100**. + */ + 'score'?: number; + /** + * The date when the rule will start to be evaluated, in ISO 8601 extended offset date-time format. For example, **2020-12-18T10:15:30+01:00**. If not provided when creating a transaction rule, the `startDate` is set to the date when the rule status is set to **active**. + */ + 'startDate'?: string; + /** + * The status of the transaction rule. If you provide a `startDate` in the request, the rule is automatically created with an **active** status. Possible values: **active**, **inactive**. + */ + 'status'?: TransactionRuleInfo.StatusEnum; + /** + * The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which definesif a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met. + */ + 'type': TransactionRuleInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "aggregationLevel", + "baseName": "aggregationLevel", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "endDate", + "baseName": "endDate", + "type": "string" + }, + { + "name": "entityKey", + "baseName": "entityKey", + "type": "TransactionRuleEntityKey" + }, + { + "name": "interval", + "baseName": "interval", + "type": "TransactionRuleInterval" + }, + { + "name": "outcomeType", + "baseName": "outcomeType", + "type": "TransactionRuleInfo.OutcomeTypeEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "ruleRestrictions", + "baseName": "ruleRestrictions", + "type": "TransactionRuleRestrictions" + }, + { + "name": "score", + "baseName": "score", + "type": "number" + }, + { + "name": "startDate", + "baseName": "startDate", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "TransactionRuleInfo.StatusEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "TransactionRuleInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TransactionRuleInfo.attributeTypeMap; + } +} + +export namespace TransactionRuleInfo { + export enum OutcomeTypeEnum { + HardBlock = 'hardBlock', + ScoreBased = 'scoreBased' + } + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } + export enum TypeEnum { + AllowList = 'allowList', + BlockList = 'blockList', + MaxUsage = 'maxUsage', + Velocity = 'velocity' + } +} diff --git a/src/typings/balancePlatform/transactionRuleInterval.ts b/src/typings/balancePlatform/transactionRuleInterval.ts new file mode 100644 index 0000000..285d3de --- /dev/null +++ b/src/typings/balancePlatform/transactionRuleInterval.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Duration } from './duration'; + +export class TransactionRuleInterval { + /** + * The day of month, used when the `duration.unit` is **months**. If not provided, by default, this is set to **1**, the first day of the month. + */ + 'dayOfMonth'?: number; + /** + * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. + */ + 'dayOfWeek'?: TransactionRuleInterval.DayOfWeekEnum; + 'duration'?: Duration; + /** + * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. + */ + 'timeOfDay'?: string; + /** + * The [time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). For example, **Europe/Amsterdam**. By default, this is set to **UTC**. + */ + 'timeZone'?: string; + /** + * The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 UTC. * **weekly**: the counters are reset every Monday at 00:00:00 UTC. * **monthly**: the counters reset every first day of the month at 00:00:00 UTC. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 UTC. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify. + */ + 'type': TransactionRuleInterval.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "dayOfMonth", + "baseName": "dayOfMonth", + "type": "number" + }, + { + "name": "dayOfWeek", + "baseName": "dayOfWeek", + "type": "TransactionRuleInterval.DayOfWeekEnum" + }, + { + "name": "duration", + "baseName": "duration", + "type": "Duration" + }, + { + "name": "timeOfDay", + "baseName": "timeOfDay", + "type": "string" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "TransactionRuleInterval.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return TransactionRuleInterval.attributeTypeMap; + } +} + +export namespace TransactionRuleInterval { + export enum DayOfWeekEnum { + Friday = 'friday', + Monday = 'monday', + Saturday = 'saturday', + Sunday = 'sunday', + Thursday = 'thursday', + Tuesday = 'tuesday', + Wednesday = 'wednesday' + } + export enum TypeEnum { + Daily = 'daily', + Lifetime = 'lifetime', + Monthly = 'monthly', + PerTransaction = 'perTransaction', + Rolling = 'rolling', + Sliding = 'sliding', + Weekly = 'weekly' + } +} diff --git a/src/typings/balancePlatform/transactionRuleResponse.ts b/src/typings/balancePlatform/transactionRuleResponse.ts new file mode 100644 index 0000000..03f7d54 --- /dev/null +++ b/src/typings/balancePlatform/transactionRuleResponse.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionRule } from './transactionRule'; + +export class TransactionRuleResponse { + 'transactionRule'?: TransactionRule; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "transactionRule", + "baseName": "transactionRule", + "type": "TransactionRule" + } ]; + + static getAttributeTypeMap() { + return TransactionRuleResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/transactionRuleRestrictions.ts b/src/typings/balancePlatform/transactionRuleRestrictions.ts new file mode 100644 index 0000000..7c1a68b --- /dev/null +++ b/src/typings/balancePlatform/transactionRuleRestrictions.ts @@ -0,0 +1,105 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction'; +import { BrandVariantsRestriction } from './brandVariantsRestriction'; +import { CountriesRestriction } from './countriesRestriction'; +import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; +import { EntryModesRestriction } from './entryModesRestriction'; +import { InternationalTransactionRestriction } from './internationalTransactionRestriction'; +import { MatchingTransactionsRestriction } from './matchingTransactionsRestriction'; +import { MccsRestriction } from './mccsRestriction'; +import { MerchantsRestriction } from './merchantsRestriction'; +import { ProcessingTypesRestriction } from './processingTypesRestriction'; +import { TimeOfDayRestriction } from './timeOfDayRestriction'; +import { TotalAmountRestriction } from './totalAmountRestriction'; + +export class TransactionRuleRestrictions { + 'activeNetworkTokens'?: ActiveNetworkTokensRestriction; + 'brandVariants'?: BrandVariantsRestriction; + 'countries'?: CountriesRestriction; + 'differentCurrencies'?: DifferentCurrenciesRestriction; + 'entryModes'?: EntryModesRestriction; + 'internationalTransaction'?: InternationalTransactionRestriction; + 'matchingTransactions'?: MatchingTransactionsRestriction; + 'mccs'?: MccsRestriction; + 'merchants'?: MerchantsRestriction; + 'processingTypes'?: ProcessingTypesRestriction; + 'timeOfDay'?: TimeOfDayRestriction; + 'totalAmount'?: TotalAmountRestriction; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "activeNetworkTokens", + "baseName": "activeNetworkTokens", + "type": "ActiveNetworkTokensRestriction" + }, + { + "name": "brandVariants", + "baseName": "brandVariants", + "type": "BrandVariantsRestriction" + }, + { + "name": "countries", + "baseName": "countries", + "type": "CountriesRestriction" + }, + { + "name": "differentCurrencies", + "baseName": "differentCurrencies", + "type": "DifferentCurrenciesRestriction" + }, + { + "name": "entryModes", + "baseName": "entryModes", + "type": "EntryModesRestriction" + }, + { + "name": "internationalTransaction", + "baseName": "internationalTransaction", + "type": "InternationalTransactionRestriction" + }, + { + "name": "matchingTransactions", + "baseName": "matchingTransactions", + "type": "MatchingTransactionsRestriction" + }, + { + "name": "mccs", + "baseName": "mccs", + "type": "MccsRestriction" + }, + { + "name": "merchants", + "baseName": "merchants", + "type": "MerchantsRestriction" + }, + { + "name": "processingTypes", + "baseName": "processingTypes", + "type": "ProcessingTypesRestriction" + }, + { + "name": "timeOfDay", + "baseName": "timeOfDay", + "type": "TimeOfDayRestriction" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "TotalAmountRestriction" + } ]; + + static getAttributeTypeMap() { + return TransactionRuleRestrictions.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/transactionRulesResponse.ts b/src/typings/balancePlatform/transactionRulesResponse.ts new file mode 100644 index 0000000..236cd1e --- /dev/null +++ b/src/typings/balancePlatform/transactionRulesResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionRule } from './transactionRule'; + +export class TransactionRulesResponse { + /** + * List of transaction rules. + */ + 'transactionRules'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "transactionRules", + "baseName": "transactionRules", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TransactionRulesResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/verificationError.ts b/src/typings/balancePlatform/verificationError.ts new file mode 100644 index 0000000..bd3ccfa --- /dev/null +++ b/src/typings/balancePlatform/verificationError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RemediatingAction } from './remediatingAction'; +import { VerificationErrorRecursive } from './verificationErrorRecursive'; + +export class VerificationError { + /** + * The verification error code. + */ + 'code'?: string; + /** + * A description of the error. + */ + 'message'?: string; + /** + * Contains the actions that you can take to resolve the verification error. + */ + 'remediatingActions'?: Array; + /** + * Contains more granular information about the verification error. + */ + 'subErrors'?: Array; + /** + * The type of error. Possible values: **invalidInput**, **dataMissing**. + */ + 'type'?: VerificationError.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + }, + { + "name": "subErrors", + "baseName": "subErrors", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationError.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return VerificationError.attributeTypeMap; + } +} + +export namespace VerificationError { + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/balancePlatform/verificationErrorRecursive.ts b/src/typings/balancePlatform/verificationErrorRecursive.ts new file mode 100644 index 0000000..d047d6f --- /dev/null +++ b/src/typings/balancePlatform/verificationErrorRecursive.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v2 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RemediatingAction } from './remediatingAction'; + +export class VerificationErrorRecursive { + /** + * The verification error code. + */ + 'code'?: string; + /** + * A description of the error. + */ + 'message'?: string; + /** + * The type of error. Possible values: **invalidInput**, **dataMissing**. + */ + 'type'?: VerificationErrorRecursive.TypeEnum; + /** + * Contains the actions that you can take to resolve the verification error. + */ + 'remediatingActions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "code", + "baseName": "code", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "VerificationErrorRecursive.TypeEnum" + }, + { + "name": "remediatingActions", + "baseName": "remediatingActions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return VerificationErrorRecursive.attributeTypeMap; + } +} + +export namespace VerificationErrorRecursive { + export enum TypeEnum { + DataMissing = 'dataMissing', + InvalidInput = 'invalidInput', + PendingStatus = 'pendingStatus' + } +} diff --git a/src/typings/binLookup.ts b/src/typings/binLookup.ts deleted file mode 100644 index d823d1b..0000000 --- a/src/typings/binLookup.ts +++ /dev/null @@ -1,337 +0,0 @@ - -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - - -declare namespace IBinLookup { - export interface Amount { - /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; - /** - * The payable amount that can be charged for the transaction. - * - * The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; // int64 - } - export interface BinDetail { - /** - * The country where the card was issued. - */ - issuerCountry?: string; - } - export interface CardBin { - /** - * The first 6 digit of the card number. Enable this field via merchant account settings. - */ - bin?: string; - /** - * If true, it indicates a commercial card. Enable this field via merchant account settings. - */ - commercial?: boolean; - /** - * The card funding source. Valid values are: - * * CHARGE - * * CREDIT - * * DEBIT - * * DEFERRED_DEBIT - * * PREPAID - * * PREPAID_RELOADABLE - * * PREPAID_NONRELOADABLE - * > Enable this field via merchant account settings. - */ - fundingSource?: string; - /** - * Indicates availability of funds. - * - * Visa: - * * "I" (fast funds are supported) - * * "N" (otherwise) - * - * Mastercard: - * * "I" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) - * * "N" (otherwise) - * > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from "N" or "U". - */ - fundsAvailability?: string; - /** - * The issuing bank of the card. - */ - issuingBank?: string; - /** - * The country where the card was issued from. - */ - issuingCountry?: string; - /** - * The currency of the card. - */ - issuingCurrency?: string; - /** - * The payment method associated with the card (e.g. visa, mc, or amex). - */ - paymentMethod?: string; - /** - * Indicates whether a payout is eligible or not for this card. - * - * Visa: - * * "Y" - * * "N" - * - * Mastercard: - * * "Y" (domestic and cross-border) - * * "D" (only domestic) - * * "N" (no MoneySend) - * * "U" (unknown) - * > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from "N" or "U". - */ - payoutEligible?: string; - /** - * The last four digits of the card number. - */ - summary?: string; - } - export interface CostEstimateAssumptions { - /** - * If true, the cardholder is expected to successfully authorise via 3D Secure. - */ - assume3DSecureAuthenticated?: boolean; - /** - * If true, the transaction is expected to have valid Level 3 data. - */ - assumeLevel3Data?: boolean; - /** - * If not zero, the number of installments. - */ - installments?: number; // int32 - } - export interface CostEstimateRequest { - /** - * The transaction amount used as a base for the cost estimation. - */ - amount: IBinLookup.Amount; - /** - * Assumptions made for the expected characteristics of the transaction, for which the charges are being estimated. - */ - assumptions?: IBinLookup.CostEstimateAssumptions; - /** - * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. - * - * > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. - */ - cardNumber?: string; - /** - * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. - * - * > Either the `cardNumber` or `encryptedCard` field must be provided in a payment request. - */ - encryptedCard?: string; - /** - * The merchant account identifier you want to process the (transaction) request with. - */ - merchantAccount: string; - /** - * Additional data for merchants who don't use Adyen as the payment authorisation gateway. - */ - merchantDetails?: IBinLookup.MerchantDetails; - /** - * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/checkout/tokenization). - */ - recurring?: IBinLookup.Recurring; - /** - * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. - */ - selectedRecurringDetailReference?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. - * For the web service API, Adyen assumes Ecommerce shopper interaction by default. - * - * This field has the following possible values: - * * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. - * * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). - * * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. - * * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * > This field is required for recurring payments. - */ - shopperReference?: string; - } - export interface CostEstimateResponse { - /** - * Card BIN details. - */ - cardBin?: IBinLookup.CardBin; - /** - * The estimated cost (scheme fee + interchange) in the settlement currency. If the settlement currency cannot be determined, the fee in EUR is returned. - */ - costEstimateAmount?: IBinLookup.Amount; - /** - * The result of the cost estimation. - */ - resultCode?: string; - /** - * Indicates the way the charges can be passed on to the cardholder. The following values are possible: - * * `ZERO` - the charges are not allowed to pass on - * * `PASSTHROUGH` - the charges can be passed on - * * `UNLIMITED` - there is no limit on how much surcharge is passed on - */ - surchargeType?: string; - } - export interface DSPublicKeyDetail { - /** - * Card brand. - */ - brand?: string; - /** - * Directory Server (DS) identifier. - */ - directoryServerId?: string; - /** - * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. - */ - publicKey?: string; // byte - } - export interface MerchantDetails { - /** - * 2-letter ISO 3166 country code of the card acceptor location. - * > This parameter is required for the merchants who don't use Adyen as the payment authorisation gateway. - */ - countryCode?: string; - /** - * If true, indicates that the merchant is enrolled in 3D Secure for the card network. - */ - enrolledIn3DSecure?: boolean; - /** - * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - * - * The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). - */ - mcc?: string; - } - namespace Post { - export type RequestBody = IBinLookup.CostEstimateRequest; - namespace Responses { - export type $200 = IBinLookup.CostEstimateResponse; - } - } - export interface Recurring { - /** - * The type of recurring contract to be used. - * Possible values: - * * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. - * * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). - */ - contract?: "ONECLICK" | "RECURRING" | "PAYOUT"; - /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; - /** - * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - */ - recurringExpiry?: string; // date-time - /** - * Minimum number of days between authorisations. Only for 3D Secure 2. - */ - recurringFrequency?: string; - /** - * The name of the token service. - */ - tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; - } - export interface ThreeDS2CardRangeDetail { - /** - * Card brand. - */ - brandCode?: string; - /** - * BIN end range. - */ - endRange?: string; - /** - * BIN start range. - */ - startRange?: string; - /** - * 3D Secure protocol version. - */ - threeDS2Version?: string; - /** - * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. - */ - threeDSMethodURL?: string; - } - export interface ThreeDSAvailabilityRequest { - /** - * This field contains additional data, which may be required for a particular request. - * - * The `additionalData` object consists of entries, each of which includes the key and value. - */ - additionalData?: { - }; - /** - * List of brands. - */ - brands: string[]; - /** - * Card number or BIN. - */ - cardNumber?: string; - /** - * The merchant account identifier. - */ - merchantAccount: string; - /** - * A recurring detail reference corresponding to a card. - */ - recurringDetailReference?: string; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - */ - shopperReference?: string; - } - export interface ThreeDSAvailabilityResponse { - /** - * Bin Group Details - */ - binDetails?: IBinLookup.BinDetail; - /** - * List of Directory Server (DS) public keys. - */ - dsPublicKeys?: IBinLookup.DSPublicKeyDetail[]; - /** - * Indicator if 3D Secure 1 is supported. - */ - threeDS1Supported?: boolean; - /** - * List of brand and card range pairs. - */ - threeDS2CardRangeDetails?: IBinLookup.ThreeDS2CardRangeDetail[]; - /** - * Indicator if 3D Secure 2 is supported. - */ - threeDS2supported?: boolean; - } -} diff --git a/src/typings/binlookup/amount.ts b/src/typings/binlookup/amount.ts new file mode 100644 index 0000000..4339f80 --- /dev/null +++ b/src/typings/binlookup/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/binDetail.ts b/src/typings/binlookup/binDetail.ts new file mode 100644 index 0000000..f3cbd7f --- /dev/null +++ b/src/typings/binlookup/binDetail.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BinDetail { + /** + * The country where the card was issued. + */ + 'issuerCountry'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BinDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/cardBin.ts b/src/typings/binlookup/cardBin.ts new file mode 100644 index 0000000..c24a6e1 --- /dev/null +++ b/src/typings/binlookup/cardBin.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CardBin { + /** + * The first 6 digit of the card number. Enable this field via merchant account settings. + */ + 'bin'?: string; + /** + * If true, it indicates a commercial card. Enable this field via merchant account settings. + */ + 'commercial'?: boolean; + /** + * The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings. + */ + 'fundingSource'?: string; + /** + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'fundsAvailability'?: string; + /** + * The issuing bank of the card. + */ + 'issuingBank'?: string; + /** + * The country where the card was issued from. + */ + 'issuingCountry'?: string; + /** + * The currency of the card. + */ + 'issuingCurrency'?: string; + /** + * The payment method associated with the card (e.g. visa, mc, or amex). + */ + 'paymentMethod'?: string; + /** + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\". + */ + 'payoutEligible'?: string; + /** + * The last four digits of the card number. + */ + 'summary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "commercial", + "baseName": "commercial", + "type": "boolean" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "issuingBank", + "baseName": "issuingBank", + "type": "string" + }, + { + "name": "issuingCountry", + "baseName": "issuingCountry", + "type": "string" + }, + { + "name": "issuingCurrency", + "baseName": "issuingCurrency", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "summary", + "baseName": "summary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardBin.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/costEstimateAssumptions.ts b/src/typings/binlookup/costEstimateAssumptions.ts new file mode 100644 index 0000000..29a1b9a --- /dev/null +++ b/src/typings/binlookup/costEstimateAssumptions.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CostEstimateAssumptions { + /** + * If true, the cardholder is expected to successfully authorise via 3D Secure. + */ + 'assume3DSecureAuthenticated'?: boolean; + /** + * If true, the transaction is expected to have valid Level 3 data. + */ + 'assumeLevel3Data'?: boolean; + /** + * If not zero, the number of installments. + */ + 'installments'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "assume3DSecureAuthenticated", + "baseName": "assume3DSecureAuthenticated", + "type": "boolean" + }, + { + "name": "assumeLevel3Data", + "baseName": "assumeLevel3Data", + "type": "boolean" + }, + { + "name": "installments", + "baseName": "installments", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return CostEstimateAssumptions.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/costEstimateRequest.ts b/src/typings/binlookup/costEstimateRequest.ts new file mode 100644 index 0000000..ddde57d --- /dev/null +++ b/src/typings/binlookup/costEstimateRequest.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; + +export class CostEstimateRequest { + 'amount': Amount; + 'assumptions'?: CostEstimateAssumptions; + /** + * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + */ + 'cardNumber'?: string; + /** + * Encrypted data that stores card information for non PCI-compliant use cases. The encrypted data must be created with the Checkout Card Component or Secured Fields Component, and must contain the `encryptedCardNumber` field. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. + */ + 'encryptedCardNumber'?: string; + /** + * The merchant account identifier you want to process the (transaction) request with. + */ + 'merchantAccount': string; + 'merchantDetails'?: MerchantDetails; + 'recurring'?: Recurring; + /** + * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the card holder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: CostEstimateRequest.ShopperInteractionEnum; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "assumptions", + "baseName": "assumptions", + "type": "CostEstimateAssumptions" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "encryptedCardNumber", + "baseName": "encryptedCardNumber", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantDetails", + "baseName": "merchantDetails", + "type": "MerchantDetails" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CostEstimateRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateRequest.attributeTypeMap; + } +} + +export namespace CostEstimateRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/binlookup/costEstimateResponse.ts b/src/typings/binlookup/costEstimateResponse.ts new file mode 100644 index 0000000..9262513 --- /dev/null +++ b/src/typings/binlookup/costEstimateResponse.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { CardBin } from './cardBin'; + +export class CostEstimateResponse { + 'cardBin'?: CardBin; + 'costEstimateAmount'?: Amount; + /** + * Adyen\'s 16-character reference associated with the request. + */ + 'costEstimateReference'?: string; + /** + * The result of the cost estimation. + */ + 'resultCode'?: string; + /** + * Indicates the way the charges can be passed on to the cardholder. The following values are possible: * `ZERO` - the charges are not allowed to pass on * `PASSTHROUGH` - the charges can be passed on * `UNLIMITED` - there is no limit on how much surcharge is passed on + */ + 'surchargeType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "CardBin" + }, + { + "name": "costEstimateAmount", + "baseName": "costEstimateAmount", + "type": "Amount" + }, + { + "name": "costEstimateReference", + "baseName": "costEstimateReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + }, + { + "name": "surchargeType", + "baseName": "surchargeType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CostEstimateResponse.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/dSPublicKeyDetail.ts b/src/typings/binlookup/dSPublicKeyDetail.ts new file mode 100644 index 0000000..13aa725 --- /dev/null +++ b/src/typings/binlookup/dSPublicKeyDetail.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DSPublicKeyDetail { + /** + * Card brand. + */ + 'brand'?: string; + /** + * Directory Server (DS) identifier. + */ + 'directoryServerId'?: string; + /** + * The version of the mobile 3D Secure 2 SDK. For the possible values, refer to the versions in [Adyen 3DS2 Android](https://github.com/Adyen/adyen-3ds2-android/releases) and [Adyen 3DS2 iOS](https://github.com/Adyen/adyen-3ds2-ios/releases). + */ + 'fromSDKVersion'?: string; + /** + * Public key. The 3D Secure 2 SDK encrypts the device information by using the DS public key. + */ + 'publicKey'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "directoryServerId", + "baseName": "directoryServerId", + "type": "string" + }, + { + "name": "fromSDKVersion", + "baseName": "fromSDKVersion", + "type": "string" + }, + { + "name": "publicKey", + "baseName": "publicKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DSPublicKeyDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/merchantDetails.ts b/src/typings/binlookup/merchantDetails.ts new file mode 100644 index 0000000..8f9cea3 --- /dev/null +++ b/src/typings/binlookup/merchantDetails.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MerchantDetails { + /** + * 2-letter ISO 3166 country code of the card acceptor location. > This parameter is required for the merchants who don\'t use Adyen as the payment authorisation gateway. + */ + 'countryCode'?: string; + /** + * If true, indicates that the merchant is enrolled in 3D Secure for the card network. + */ + 'enrolledIn3DSecure'?: boolean; + /** + * The merchant category code (MCC) is a four-digit number which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. The list of MCCs can be found [here](https://en.wikipedia.org/wiki/Merchant_category_code). + */ + 'mcc'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "enrolledIn3DSecure", + "baseName": "enrolledIn3DSecure", + "type": "boolean" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDetails.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/models.ts b/src/typings/binlookup/models.ts new file mode 100644 index 0000000..95e7dd5 --- /dev/null +++ b/src/typings/binlookup/models.ts @@ -0,0 +1,186 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './binDetail'; +export * from './cardBin'; +export * from './costEstimateAssumptions'; +export * from './costEstimateRequest'; +export * from './costEstimateResponse'; +export * from './dSPublicKeyDetail'; +export * from './merchantDetails'; +export * from './recurring'; +export * from './serviceError'; +export * from './threeDS2CardRangeDetail'; +export * from './threeDSAvailabilityRequest'; +export * from './threeDSAvailabilityResponse'; + + +import { Amount } from './amount'; +import { BinDetail } from './binDetail'; +import { CardBin } from './cardBin'; +import { CostEstimateAssumptions } from './costEstimateAssumptions'; +import { CostEstimateRequest } from './costEstimateRequest'; +import { CostEstimateResponse } from './costEstimateResponse'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { MerchantDetails } from './merchantDetails'; +import { Recurring } from './recurring'; +import { ServiceError } from './serviceError'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; +import { ThreeDSAvailabilityRequest } from './threeDSAvailabilityRequest'; +import { ThreeDSAvailabilityResponse } from './threeDSAvailabilityResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "CostEstimateRequest.ShopperInteractionEnum": CostEstimateRequest.ShopperInteractionEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "BinDetail": BinDetail, + "CardBin": CardBin, + "CostEstimateAssumptions": CostEstimateAssumptions, + "CostEstimateRequest": CostEstimateRequest, + "CostEstimateResponse": CostEstimateResponse, + "DSPublicKeyDetail": DSPublicKeyDetail, + "MerchantDetails": MerchantDetails, + "Recurring": Recurring, + "ServiceError": ServiceError, + "ThreeDS2CardRangeDetail": ThreeDS2CardRangeDetail, + "ThreeDSAvailabilityRequest": ThreeDSAvailabilityRequest, + "ThreeDSAvailabilityResponse": ThreeDSAvailabilityResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/binlookup/recurring.ts b/src/typings/binlookup/recurring.ts new file mode 100644 index 0000000..406a031 --- /dev/null +++ b/src/typings/binlookup/recurring.ts @@ -0,0 +1,77 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Recurring { + /** + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; + /** + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } +} + +export namespace Recurring { + export enum ContractEnum { + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' + } + export enum TokenServiceEnum { + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/binlookup/serviceError.ts b/src/typings/binlookup/serviceError.ts new file mode 100644 index 0000000..ecd1397 --- /dev/null +++ b/src/typings/binlookup/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/threeDS2CardRangeDetail.ts b/src/typings/binlookup/threeDS2CardRangeDetail.ts new file mode 100644 index 0000000..c87c470 --- /dev/null +++ b/src/typings/binlookup/threeDS2CardRangeDetail.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDS2CardRangeDetail { + /** + * Provides additional information to the 3DS Server. Possible values: - 01 (Authentication is available at ACS) - 02 (Attempts supported by ACS or DS) - 03 (Decoupled authentication supported) - 04 (Whitelisting supported) + */ + 'acsInfoInd'?: Array; + /** + * Card brand. + */ + 'brandCode'?: string; + /** + * BIN end range. + */ + 'endRange'?: string; + /** + * BIN start range. + */ + 'startRange'?: string; + /** + * 3D Secure protocol version. + */ + 'threeDS2Version'?: string; + /** + * In a 3D Secure 2 browser-based flow, this is the URL where you should send the device fingerprint to. + */ + 'threeDSMethodURL'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsInfoInd", + "baseName": "acsInfoInd", + "type": "Array" + }, + { + "name": "brandCode", + "baseName": "brandCode", + "type": "string" + }, + { + "name": "endRange", + "baseName": "endRange", + "type": "string" + }, + { + "name": "startRange", + "baseName": "startRange", + "type": "string" + }, + { + "name": "threeDS2Version", + "baseName": "threeDS2Version", + "type": "string" + }, + { + "name": "threeDSMethodURL", + "baseName": "threeDSMethodURL", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2CardRangeDetail.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/threeDSAvailabilityRequest.ts b/src/typings/binlookup/threeDSAvailabilityRequest.ts new file mode 100644 index 0000000..5032c87 --- /dev/null +++ b/src/typings/binlookup/threeDSAvailabilityRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSAvailabilityRequest { + /** + * This field contains additional data, which may be required for a particular request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * List of brands. + */ + 'brands'?: Array; + /** + * Card number or BIN. + */ + 'cardNumber'?: string; + /** + * The merchant account identifier. + */ + 'merchantAccount': string; + /** + * A recurring detail reference corresponding to a card. + */ + 'recurringDetailReference'?: string; + /** + * The shopper\'s reference to uniquely identify this shopper (e.g. user ID or account ID). + */ + 'shopperReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityRequest.attributeTypeMap; + } +} + diff --git a/src/typings/binlookup/threeDSAvailabilityResponse.ts b/src/typings/binlookup/threeDSAvailabilityResponse.ts new file mode 100644 index 0000000..257c09d --- /dev/null +++ b/src/typings/binlookup/threeDSAvailabilityResponse.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v52 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BinDetail } from './binDetail'; +import { DSPublicKeyDetail } from './dSPublicKeyDetail'; +import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; + +export class ThreeDSAvailabilityResponse { + 'binDetails'?: BinDetail; + /** + * List of Directory Server (DS) public keys. + */ + 'dsPublicKeys'?: Array; + /** + * Indicator if 3D Secure 1 is supported. + */ + 'threeDS1Supported'?: boolean; + /** + * List of brand and card range pairs. + */ + 'threeDS2CardRangeDetails'?: Array; + /** + * Indicator if 3D Secure 2 is supported. + */ + 'threeDS2supported'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "binDetails", + "baseName": "binDetails", + "type": "BinDetail" + }, + { + "name": "dsPublicKeys", + "baseName": "dsPublicKeys", + "type": "Array" + }, + { + "name": "threeDS1Supported", + "baseName": "threeDS1Supported", + "type": "boolean" + }, + { + "name": "threeDS2CardRangeDetails", + "baseName": "threeDS2CardRangeDetails", + "type": "Array" + }, + { + "name": "threeDS2supported", + "baseName": "threeDS2supported", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ThreeDSAvailabilityResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/accountInfo.ts b/src/typings/checkout/accountInfo.ts index 7550c3e..9542949 100644 --- a/src/typings/checkout/accountInfo.ts +++ b/src/typings/checkout/accountInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AccountInfo { /** * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days @@ -103,6 +85,109 @@ export class AccountInfo { * Shopper\'s work phone number (including the country code). */ 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } } export namespace AccountInfo { diff --git a/src/typings/checkout/acctInfo.ts b/src/typings/checkout/acctInfo.ts index b43771d..c7d2cf4 100644 --- a/src/typings/checkout/acctInfo.ts +++ b/src/typings/checkout/acctInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AcctInfo { /** * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days @@ -91,6 +73,94 @@ export class AcctInfo { * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. */ 'txnActivityYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chAccAgeInd", + "baseName": "chAccAgeInd", + "type": "AcctInfo.ChAccAgeIndEnum" + }, + { + "name": "chAccChange", + "baseName": "chAccChange", + "type": "string" + }, + { + "name": "chAccChangeInd", + "baseName": "chAccChangeInd", + "type": "AcctInfo.ChAccChangeIndEnum" + }, + { + "name": "chAccPwChange", + "baseName": "chAccPwChange", + "type": "string" + }, + { + "name": "chAccPwChangeInd", + "baseName": "chAccPwChangeInd", + "type": "AcctInfo.ChAccPwChangeIndEnum" + }, + { + "name": "chAccString", + "baseName": "chAccString", + "type": "string" + }, + { + "name": "nbPurchaseAccount", + "baseName": "nbPurchaseAccount", + "type": "string" + }, + { + "name": "paymentAccAge", + "baseName": "paymentAccAge", + "type": "string" + }, + { + "name": "paymentAccInd", + "baseName": "paymentAccInd", + "type": "AcctInfo.PaymentAccIndEnum" + }, + { + "name": "provisionAttemptsDay", + "baseName": "provisionAttemptsDay", + "type": "string" + }, + { + "name": "shipAddressUsage", + "baseName": "shipAddressUsage", + "type": "string" + }, + { + "name": "shipAddressUsageInd", + "baseName": "shipAddressUsageInd", + "type": "AcctInfo.ShipAddressUsageIndEnum" + }, + { + "name": "shipNameIndicator", + "baseName": "shipNameIndicator", + "type": "AcctInfo.ShipNameIndicatorEnum" + }, + { + "name": "suspiciousAccActivity", + "baseName": "suspiciousAccActivity", + "type": "AcctInfo.SuspiciousAccActivityEnum" + }, + { + "name": "txnActivityDay", + "baseName": "txnActivityDay", + "type": "string" + }, + { + "name": "txnActivityYear", + "baseName": "txnActivityYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AcctInfo.attributeTypeMap; + } } export namespace AcctInfo { diff --git a/src/typings/checkout/achDetails.ts b/src/typings/checkout/achDetails.ts index 8cebe11..2f13797 100644 --- a/src/typings/checkout/achDetails.ts +++ b/src/typings/checkout/achDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AchDetails { /** * The bank account number (without separators). @@ -59,6 +41,54 @@ export class AchDetails { * **ach** */ 'type'?: AchDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "encryptedBankAccountNumber", + "baseName": "encryptedBankAccountNumber", + "type": "string" + }, + { + "name": "encryptedBankLocationId", + "baseName": "encryptedBankLocationId", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AchDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AchDetails.attributeTypeMap; + } } export namespace AchDetails { diff --git a/src/typings/checkout/additionalData3DSecure.ts b/src/typings/checkout/additionalData3DSecure.ts index f433c8f..8c66ff0 100644 --- a/src/typings/checkout/additionalData3DSecure.ts +++ b/src/typings/checkout/additionalData3DSecure.ts @@ -1,37 +1,23 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalData3DSecure { /** * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. */ 'allow3DS2'?: string; /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + /** * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. */ 'executeThreeD'?: string; @@ -47,5 +33,52 @@ export class AdditionalData3DSecure { * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error. */ 'threeDSVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } } +export namespace AdditionalData3DSecure { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } +} diff --git a/src/typings/checkout/additionalDataAirline.ts b/src/typings/checkout/additionalDataAirline.ts index b6c820c..42b97d9 100644 --- a/src/typings/checkout/additionalDataAirline.ts +++ b/src/typings/checkout/additionalDataAirline.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataAirline { /** * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 @@ -139,5 +121,153 @@ export class AdditionalDataAirline { * The name of the travel agency. * minLength: 1 * maxLength: 25 */ 'airlineTravelAgencyName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineDocumentType", + "baseName": "airline.document_type", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataCarRental.ts b/src/typings/checkout/additionalDataCarRental.ts index e16ed2a..eaaa95f 100644 --- a/src/typings/checkout/additionalDataCarRental.ts +++ b/src/typings/checkout/additionalDataCarRental.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataCarRental { /** * Pick-up date. * Date format: `yyyyMMdd` @@ -119,5 +101,128 @@ export class AdditionalDataCarRental { * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataCommon.ts b/src/typings/checkout/additionalDataCommon.ts index d8f83d4..0edb017 100644 --- a/src/typings/checkout/additionalDataCommon.ts +++ b/src/typings/checkout/additionalDataCommon.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataCommon { /** * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. @@ -36,7 +18,7 @@ export class AdditionalDataCommon { */ 'authorisationType'?: string; /** - * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new). + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). */ 'customRoutingFlag'?: string; /** @@ -83,6 +65,84 @@ export class AdditionalDataCommon { * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. */ 'subMerchantTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "industryUsage", + "baseName": "industryUsage", + "type": "AdditionalDataCommon.IndustryUsageEnum" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "subMerchantCity", + "baseName": "subMerchantCity", + "type": "string" + }, + { + "name": "subMerchantCountry", + "baseName": "subMerchantCountry", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + }, + { + "name": "subMerchantName", + "baseName": "subMerchantName", + "type": "string" + }, + { + "name": "subMerchantPostalCode", + "baseName": "subMerchantPostalCode", + "type": "string" + }, + { + "name": "subMerchantState", + "baseName": "subMerchantState", + "type": "string" + }, + { + "name": "subMerchantStreet", + "baseName": "subMerchantStreet", + "type": "string" + }, + { + "name": "subMerchantTaxId", + "baseName": "subMerchantTaxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } } export namespace AdditionalDataCommon { diff --git a/src/typings/checkout/additionalDataLevel23.ts b/src/typings/checkout/additionalDataLevel23.ts index f482bbf..a4be2ba 100644 --- a/src/typings/checkout/additionalDataLevel23.ts +++ b/src/typings/checkout/additionalDataLevel23.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataLevel23 { /** * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. @@ -95,5 +77,98 @@ export class AdditionalDataLevel23 { * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. */ 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataLodging.ts b/src/typings/checkout/additionalDataLodging.ts index 7aba653..97feb4e 100644 --- a/src/typings/checkout/additionalDataLodging.ts +++ b/src/typings/checkout/additionalDataLodging.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataLodging { /** * The arrival date. * Date format: `yyyyMMdd` @@ -95,5 +77,98 @@ export class AdditionalDataLodging { * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 */ 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataOpenInvoice.ts b/src/typings/checkout/additionalDataOpenInvoice.ts index 062cd05..3e674d9 100644 --- a/src/typings/checkout/additionalDataOpenInvoice.ts +++ b/src/typings/checkout/additionalDataOpenInvoice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataOpenInvoice { /** * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. @@ -36,6 +18,14 @@ export class AdditionalDataOpenInvoice { */ 'openinvoicedataNumberOfLines'?: string; /** + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientFirstName'?: string; + /** + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientLastName'?: string; + /** * The three-character ISO currency code. */ 'openinvoicedataLineItemNrCurrencyCode'?: string; @@ -91,5 +81,103 @@ export class AdditionalDataOpenInvoice { * URI where the customer can track their shipment. */ 'openinvoicedataLineItemNrTrackingUri'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "string" + }, + { + "name": "openinvoicedataRecipientFirstName", + "baseName": "openinvoicedata.recipientFirstName", + "type": "string" + }, + { + "name": "openinvoicedataRecipientLastName", + "baseName": "openinvoicedata.recipientLastName", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedataLine[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedataLine[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedataLine[itemNr].itemAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedataLine[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedataLine[itemNr].itemVatAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedataLine[itemNr].numberOfItems", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnShippingCompany", + "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingUri", + "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingCompany", + "baseName": "openinvoicedataLine[itemNr].shippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingMethod", + "baseName": "openinvoicedataLine[itemNr].shippingMethod", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].trackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingUri", + "baseName": "openinvoicedataLine[itemNr].trackingUri", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataOpi.ts b/src/typings/checkout/additionalDataOpi.ts index d4c12b6..ab85126 100644 --- a/src/typings/checkout/additionalDataOpi.ts +++ b/src/typings/checkout/additionalDataOpi.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataOpi { /** * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ 'opiIncludeTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiIncludeTransToken", + "baseName": "opi.includeTransToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpi.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRatepay.ts b/src/typings/checkout/additionalDataRatepay.ts index 9629bbb..6295e67 100644 --- a/src/typings/checkout/additionalDataRatepay.ts +++ b/src/typings/checkout/additionalDataRatepay.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRatepay { /** * Amount the customer has to pay each month. @@ -59,5 +41,53 @@ export class AdditionalDataRatepay { * Identification name or number for the invoice, defined by the merchant. */ 'ratepaydataInvoiceId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "string" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "string" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "string" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRetry.ts b/src/typings/checkout/additionalDataRetry.ts index d36ae7e..63d3ebc 100644 --- a/src/typings/checkout/additionalDataRetry.ts +++ b/src/typings/checkout/additionalDataRetry.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRetry { /** * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. @@ -39,5 +21,28 @@ export class AdditionalDataRetry { * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. */ 'retrySkipRetry'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "string" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "string" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRisk.ts b/src/typings/checkout/additionalDataRisk.ts index ae6bdd0..5dd4da9 100644 --- a/src/typings/checkout/additionalDataRisk.ts +++ b/src/typings/checkout/additionalDataRisk.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRisk { /** * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). @@ -111,5 +93,118 @@ export class AdditionalDataRisk { * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. */ 'riskdataSkipRisk'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataCustomFieldName", + "baseName": "riskdata.[customFieldName]", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataRiskProfileReference", + "baseName": "riskdata.riskProfileReference", + "type": "string" + }, + { + "name": "riskdataSkipRisk", + "baseName": "riskdata.skipRisk", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataRiskStandalone.ts b/src/typings/checkout/additionalDataRiskStandalone.ts index a8d52cd..914a281 100644 --- a/src/typings/checkout/additionalDataRiskStandalone.ts +++ b/src/typings/checkout/additionalDataRiskStandalone.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataRiskStandalone { /** * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. @@ -87,5 +69,88 @@ export class AdditionalDataRiskStandalone { * Required for PayPal payments only. The only supported value is: **paypal**. */ 'tokenDataType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "riskToken", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataSubMerchant.ts b/src/typings/checkout/additionalDataSubMerchant.ts index 7f61a75..0cc8c1c 100644 --- a/src/typings/checkout/additionalDataSubMerchant.ts +++ b/src/typings/checkout/additionalDataSubMerchant.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataSubMerchant { /** * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. @@ -67,5 +49,63 @@ export class AdditionalDataSubMerchant { * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ */ 'subMerchantSubSellerSubSellerNrTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "subMerchantNumberOfSubSellers", + "baseName": "subMerchant.numberOfSubSellers", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCity", + "baseName": "subMerchant.subSeller[subSellerNr].city", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCountry", + "baseName": "subMerchant.subSeller[subSellerNr].country", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrId", + "baseName": "subMerchant.subSeller[subSellerNr].id", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrMcc", + "baseName": "subMerchant.subSeller[subSellerNr].mcc", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrName", + "baseName": "subMerchant.subSeller[subSellerNr].name", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrPostalCode", + "baseName": "subMerchant.subSeller[subSellerNr].postalCode", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrState", + "baseName": "subMerchant.subSeller[subSellerNr].state", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrStreet", + "baseName": "subMerchant.subSeller[subSellerNr].street", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrTaxId", + "baseName": "subMerchant.subSeller[subSellerNr].taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataSubMerchant.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataTemporaryServices.ts b/src/typings/checkout/additionalDataTemporaryServices.ts index 0a03849..f137cad 100644 --- a/src/typings/checkout/additionalDataTemporaryServices.ts +++ b/src/typings/checkout/additionalDataTemporaryServices.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataTemporaryServices { /** * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 @@ -63,5 +45,58 @@ export class AdditionalDataTemporaryServices { * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 */ 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } } diff --git a/src/typings/checkout/additionalDataWallets.ts b/src/typings/checkout/additionalDataWallets.ts index eb61af4..5398276 100644 --- a/src/typings/checkout/additionalDataWallets.ts +++ b/src/typings/checkout/additionalDataWallets.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AdditionalDataWallets { /** * The Android Pay token retrieved from the SDK. @@ -51,5 +33,43 @@ export class AdditionalDataWallets { * The Visa Checkout Call ID retrieved from the SDK. */ 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } } diff --git a/src/typings/checkout/address.ts b/src/typings/checkout/address.ts index dba92e3..be8a94b 100644 --- a/src/typings/checkout/address.ts +++ b/src/typings/checkout/address.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Address { /** * The name of the city. Maximum length: 3000 characters. @@ -51,5 +33,43 @@ export class Address { * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } } diff --git a/src/typings/checkout/afterpayDetails.ts b/src/typings/checkout/afterpayDetails.ts index bcb6416..cbc6149 100644 --- a/src/typings/checkout/afterpayDetails.ts +++ b/src/typings/checkout/afterpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AfterpayDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class AfterpayDetails { * **afterpay_default** */ 'type': AfterpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AfterpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AfterpayDetails.attributeTypeMap; + } } export namespace AfterpayDetails { diff --git a/src/typings/checkout/amazonPayDetails.ts b/src/typings/checkout/amazonPayDetails.ts index 44dc6a9..5ddcc04 100644 --- a/src/typings/checkout/amazonPayDetails.ts +++ b/src/typings/checkout/amazonPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AmazonPayDetails { /** * This is the `amazonPayToken` that you obtained from the [Get Checkout Session](https://amazon-pay-acquirer-guide.s3-eu-west-1.amazonaws.com/v1/amazon-pay-api-v2/checkout-session.html#get-checkout-session) response. @@ -35,6 +17,24 @@ export class AmazonPayDetails { * **amazonpay** */ 'type'?: AmazonPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amazonPayToken", + "baseName": "amazonPayToken", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "AmazonPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AmazonPayDetails.attributeTypeMap; + } } export namespace AmazonPayDetails { diff --git a/src/typings/checkout/amount.ts b/src/typings/checkout/amount.ts index 49aa9d2..5aaece7 100644 --- a/src/typings/checkout/amount.ts +++ b/src/typings/checkout/amount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). @@ -35,5 +17,23 @@ export class Amount { * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } } diff --git a/src/typings/checkout/androidPayDetails.ts b/src/typings/checkout/androidPayDetails.ts index 8696095..397e83c 100644 --- a/src/typings/checkout/androidPayDetails.ts +++ b/src/typings/checkout/androidPayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AndroidPayDetails { /** * **androidpay** */ 'type'?: AndroidPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "AndroidPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return AndroidPayDetails.attributeTypeMap; + } } export namespace AndroidPayDetails { diff --git a/src/typings/checkout/applePayDetails.ts b/src/typings/checkout/applePayDetails.ts index 5833ee3..c5287c4 100644 --- a/src/typings/checkout/applePayDetails.ts +++ b/src/typings/checkout/applePayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ApplePayDetails { /** * The stringified and base64 encoded `paymentData` you retrieved from the Apple framework. @@ -47,6 +29,39 @@ export class ApplePayDetails { * **applepay** */ 'type'?: ApplePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "applePayToken", + "baseName": "applePayToken", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "ApplePayDetails.FundingSourceEnum" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "ApplePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return ApplePayDetails.attributeTypeMap; + } } export namespace ApplePayDetails { diff --git a/src/typings/checkout/applePaySessionResponse.ts b/src/typings/checkout/applePaySessionResponse.ts new file mode 100644 index 0000000..ebf298e --- /dev/null +++ b/src/typings/checkout/applePaySessionResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ApplePaySessionResponse { + /** + * Base64 encoded data you need to [complete the Apple Pay merchant vlaidation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation). + */ + 'data': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApplePaySessionResponse.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/applicationInfo.ts b/src/typings/checkout/applicationInfo.ts index 6dce7be..782d485 100644 --- a/src/typings/checkout/applicationInfo.ts +++ b/src/typings/checkout/applicationInfo.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CommonField } from './commonField'; import { ExternalPlatform } from './externalPlatform'; import { MerchantDevice } from './merchantDevice'; @@ -37,5 +19,43 @@ export class ApplicationInfo { 'merchantApplication'?: CommonField; 'merchantDevice'?: MerchantDevice; 'shopperInteractionDevice'?: ShopperInteractionDevice; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "adyenLibrary", + "baseName": "adyenLibrary", + "type": "CommonField" + }, + { + "name": "adyenPaymentSource", + "baseName": "adyenPaymentSource", + "type": "CommonField" + }, + { + "name": "externalPlatform", + "baseName": "externalPlatform", + "type": "ExternalPlatform" + }, + { + "name": "merchantApplication", + "baseName": "merchantApplication", + "type": "CommonField" + }, + { + "name": "merchantDevice", + "baseName": "merchantDevice", + "type": "MerchantDevice" + }, + { + "name": "shopperInteractionDevice", + "baseName": "shopperInteractionDevice", + "type": "ShopperInteractionDevice" + } ]; + + static getAttributeTypeMap() { + return ApplicationInfo.attributeTypeMap; + } } diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index 9a2c42a..ca120e7 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { ThreeDSRequestData } from './threeDSRequestData'; export class AuthenticationData { @@ -37,6 +19,29 @@ export class AuthenticationData { */ 'authenticationOnly'?: boolean; 'threeDSRequestData'?: ThreeDSRequestData; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "attemptAuthentication", + "baseName": "attemptAuthentication", + "type": "AuthenticationData.AttemptAuthenticationEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "threeDSRequestData", + "baseName": "threeDSRequestData", + "type": "ThreeDSRequestData" + } ]; + + static getAttributeTypeMap() { + return AuthenticationData.attributeTypeMap; + } } export namespace AuthenticationData { diff --git a/src/typings/checkout/avs.ts b/src/typings/checkout/avs.ts index d2543bb..69a56be 100644 --- a/src/typings/checkout/avs.ts +++ b/src/typings/checkout/avs.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Avs { /** * Indicates whether the shopper is allowed to modify the billing address for the current payment request. @@ -35,6 +17,24 @@ export class Avs { * Specifies whether the shopper should enter their billing address during checkout. Allowed values: * yes — Perform AVS checks for every card payment. * automatic — Perform AVS checks only when required to optimize the conversion rate. * no — Do not perform AVS checks. */ 'enabled'?: Avs.EnabledEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressEditable", + "baseName": "addressEditable", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "Avs.EnabledEnum" + } ]; + + static getAttributeTypeMap() { + return Avs.attributeTypeMap; + } } export namespace Avs { diff --git a/src/typings/checkout/bacsDirectDebitDetails.ts b/src/typings/checkout/bacsDirectDebitDetails.ts index 32da986..7838468 100644 --- a/src/typings/checkout/bacsDirectDebitDetails.ts +++ b/src/typings/checkout/bacsDirectDebitDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BacsDirectDebitDetails { /** * The bank account number (without separators). @@ -51,10 +33,48 @@ export class BacsDirectDebitDetails { * **directdebit_GB** */ 'type'?: BacsDirectDebitDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BacsDirectDebitDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BacsDirectDebitDetails.attributeTypeMap; + } } export namespace BacsDirectDebitDetails { export enum TypeEnum { - DirectdebitGB = 'directdebit_GB' + DirectdebitGb = 'directdebit_GB' } } diff --git a/src/typings/checkout/bankAccount.ts b/src/typings/checkout/bankAccount.ts index a7465ab..9457bef 100644 --- a/src/typings/checkout/bankAccount.ts +++ b/src/typings/checkout/bankAccount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BankAccount { /** * The bank account number (without separators). @@ -63,5 +45,58 @@ export class BankAccount { * The bank account holder\'s tax ID. */ 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } } diff --git a/src/typings/checkout/billDeskDetails.ts b/src/typings/checkout/billDeskDetails.ts index b62b942..bfb4972 100644 --- a/src/typings/checkout/billDeskDetails.ts +++ b/src/typings/checkout/billDeskDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BillDeskDetails { /** * The issuer id of the shopper\'s selected bank. @@ -35,13 +17,31 @@ export class BillDeskDetails { * **billdesk** */ 'type': BillDeskDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BillDeskDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BillDeskDetails.attributeTypeMap; + } } export namespace BillDeskDetails { export enum TypeEnum { BilldeskOnline = 'billdesk_online', BilldeskWallet = 'billdesk_wallet', - OnlinebankingIN = 'onlinebanking_IN', - WalletIN = 'wallet_IN' + OnlinebankingIn = 'onlinebanking_IN', + WalletIn = 'wallet_IN' } } diff --git a/src/typings/checkout/blikDetails.ts b/src/typings/checkout/blikDetails.ts index d7b2e31..5d2f9c2 100644 --- a/src/typings/checkout/blikDetails.ts +++ b/src/typings/checkout/blikDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BlikDetails { /** * BLIK code consisting of 6 digits. @@ -43,6 +25,34 @@ export class BlikDetails { * **blik** */ 'type'?: BlikDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "blikCode", + "baseName": "blikCode", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BlikDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BlikDetails.attributeTypeMap; + } } export namespace BlikDetails { diff --git a/src/typings/checkout/browserInfo.ts b/src/typings/checkout/browserInfo.ts index 76f806e..32a2bcf 100644 --- a/src/typings/checkout/browserInfo.ts +++ b/src/typings/checkout/browserInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BrowserInfo { /** * The accept header value of the shopper\'s browser. @@ -63,5 +45,58 @@ export class BrowserInfo { * The user agent value of the shopper\'s browser. */ 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } } diff --git a/src/typings/checkout/card.ts b/src/typings/checkout/card.ts index 680f39c..1b01fa1 100644 --- a/src/typings/checkout/card.ts +++ b/src/typings/checkout/card.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. @@ -59,5 +41,53 @@ export class Card { * The year component of the start date (for some UK debit cards only). */ 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardBrandDetails.ts b/src/typings/checkout/cardBrandDetails.ts index 87b25e3..09c2df8 100644 --- a/src/typings/checkout/cardBrandDetails.ts +++ b/src/typings/checkout/cardBrandDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardBrandDetails { /** * Indicates if you support the card brand. @@ -35,5 +17,23 @@ export class CardBrandDetails { * The name of the card brand. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "supported", + "baseName": "supported", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardBrandDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardDetails.ts b/src/typings/checkout/cardDetails.ts index 543d959..2b92b67 100644 --- a/src/typings/checkout/cardDetails.ts +++ b/src/typings/checkout/cardDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardDetails { /** * Secondary brand of the card. For example: **plastix**, **hmclub**. @@ -96,6 +78,104 @@ export class CardDetails { * Default payment method details. Common for scheme payment methods, and for simple payment method details. */ 'type'?: CardDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "cupsecureplusSmscode", + "baseName": "cupsecureplus.smscode", + "type": "string" + }, + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "encryptedCardNumber", + "baseName": "encryptedCardNumber", + "type": "string" + }, + { + "name": "encryptedExpiryMonth", + "baseName": "encryptedExpiryMonth", + "type": "string" + }, + { + "name": "encryptedExpiryYear", + "baseName": "encryptedExpiryYear", + "type": "string" + }, + { + "name": "encryptedSecurityCode", + "baseName": "encryptedSecurityCode", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "CardDetails.FundingSourceEnum" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "networkPaymentReference", + "baseName": "networkPaymentReference", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "threeDS2SdkVersion", + "baseName": "threeDS2SdkVersion", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CardDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CardDetails.attributeTypeMap; + } } export namespace CardDetails { diff --git a/src/typings/checkout/cardDetailsRequest.ts b/src/typings/checkout/cardDetailsRequest.ts index a7a607e..4ec8275 100644 --- a/src/typings/checkout/cardDetailsRequest.ts +++ b/src/typings/checkout/cardDetailsRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CardDetailsRequest { /** * A minimum of the first 8 digits of the card number and a maximum of the full card number. 11 digits gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. @@ -43,5 +25,33 @@ export class CardDetailsRequest { * The card brands you support. This is the [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) array from your [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. If not included, our API uses the ones configured for your merchant account and, if provided, the country code. */ 'supportedBrands'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardNumber", + "baseName": "cardNumber", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "supportedBrands", + "baseName": "supportedBrands", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CardDetailsRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/cardDetailsResponse.ts b/src/typings/checkout/cardDetailsResponse.ts index 77c6bea..7f919ed 100644 --- a/src/typings/checkout/cardDetailsResponse.ts +++ b/src/typings/checkout/cardDetailsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CardBrandDetails } from './cardBrandDetails'; export class CardDetailsResponse { @@ -32,5 +14,18 @@ export class CardDetailsResponse { * The list of brands identified for the card. */ 'brands'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brands", + "baseName": "brands", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CardDetailsResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/cellulantDetails.ts b/src/typings/checkout/cellulantDetails.ts index 33eed70..a02bd4d 100644 --- a/src/typings/checkout/cellulantDetails.ts +++ b/src/typings/checkout/cellulantDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CellulantDetails { /** * The Cellulant issuer. @@ -35,6 +17,24 @@ export class CellulantDetails { * **Cellulant** */ 'type'?: CellulantDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CellulantDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return CellulantDetails.attributeTypeMap; + } } export namespace CellulantDetails { diff --git a/src/typings/checkout/checkoutAwaitAction.ts b/src/typings/checkout/checkoutAwaitAction.ts index 1a1a263..9a7675e 100644 --- a/src/typings/checkout/checkoutAwaitAction.ts +++ b/src/typings/checkout/checkoutAwaitAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutAwaitAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -43,6 +25,34 @@ export class CheckoutAwaitAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutAwaitAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutAwaitAction.attributeTypeMap; + } } export namespace CheckoutAwaitAction { diff --git a/src/typings/checkout/checkoutBalanceCheckRequest.ts b/src/typings/checkout/checkoutBalanceCheckRequest.ts index 5aeaad4..f50b66f 100644 --- a/src/typings/checkout/checkoutBalanceCheckRequest.ts +++ b/src/typings/checkout/checkoutBalanceCheckRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; @@ -123,7 +105,7 @@ export class CheckoutBalanceCheckRequest { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -172,6 +154,229 @@ export class CheckoutBalanceCheckRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CheckoutBalanceCheckRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CheckoutBalanceCheckRequest.attributeTypeMap; + } } export namespace CheckoutBalanceCheckRequest { @@ -184,6 +389,6 @@ export namespace CheckoutBalanceCheckRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/checkoutBalanceCheckResponse.ts b/src/typings/checkout/checkoutBalanceCheckResponse.ts index 299cc75..2a0b9aa 100644 --- a/src/typings/checkout/checkoutBalanceCheckResponse.ts +++ b/src/typings/checkout/checkoutBalanceCheckResponse.ts @@ -1,36 +1,18 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { FraudResult } from './fraudResult'; export class CheckoutBalanceCheckResponse { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; 'balance': Amount; @@ -48,6 +30,49 @@ export class CheckoutBalanceCheckResponse { */ 'resultCode': CheckoutBalanceCheckResponse.ResultCodeEnum; 'transactionLimit'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "balance", + "baseName": "balance", + "type": "Amount" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutBalanceCheckResponse.ResultCodeEnum" + }, + { + "name": "transactionLimit", + "baseName": "transactionLimit", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return CheckoutBalanceCheckResponse.attributeTypeMap; + } } export namespace CheckoutBalanceCheckResponse { diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts index 4aa1e3d..e055ba5 100644 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ b/src/typings/checkout/checkoutBankTransferAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutBankTransferAction { @@ -65,6 +47,64 @@ export class CheckoutBankTransferAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "beneficiary", + "baseName": "beneficiary", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutBankTransferAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutBankTransferAction.attributeTypeMap; + } } export namespace CheckoutBankTransferAction { diff --git a/src/typings/checkout/checkoutCancelOrderRequest.ts b/src/typings/checkout/checkoutCancelOrderRequest.ts index 5f4118b..8789904 100644 --- a/src/typings/checkout/checkoutCancelOrderRequest.ts +++ b/src/typings/checkout/checkoutCancelOrderRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CheckoutOrder } from './checkoutOrder'; export class CheckoutCancelOrderRequest { @@ -33,5 +15,23 @@ export class CheckoutCancelOrderRequest { */ 'merchantAccount': string; 'order': CheckoutOrder; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + } ]; + + static getAttributeTypeMap() { + return CheckoutCancelOrderRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutCancelOrderResponse.ts b/src/typings/checkout/checkoutCancelOrderResponse.ts index 68488fa..114311c 100644 --- a/src/typings/checkout/checkoutCancelOrderResponse.ts +++ b/src/typings/checkout/checkoutCancelOrderResponse.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutCancelOrderResponse { /** * A unique reference of the cancellation request. @@ -35,6 +17,24 @@ export class CheckoutCancelOrderResponse { * The result of the cancellation request. Possible values: * **Received** – Indicates the cancellation has successfully been received by Adyen, and will be processed. */ 'resultCode': CheckoutCancelOrderResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutCancelOrderResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return CheckoutCancelOrderResponse.attributeTypeMap; + } } export namespace CheckoutCancelOrderResponse { diff --git a/src/typings/checkout/checkoutCreateOrderRequest.ts b/src/typings/checkout/checkoutCreateOrderRequest.ts index 03c0be1..b437c8b 100644 --- a/src/typings/checkout/checkoutCreateOrderRequest.ts +++ b/src/typings/checkout/checkoutCreateOrderRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutCreateOrderRequest { @@ -41,5 +23,33 @@ export class CheckoutCreateOrderRequest { * A custom reference identifying the order. */ 'reference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutCreateOrderRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutCreateOrderResponse.ts b/src/typings/checkout/checkoutCreateOrderResponse.ts index e9665ff..1cc8611 100644 --- a/src/typings/checkout/checkoutCreateOrderResponse.ts +++ b/src/typings/checkout/checkoutCreateOrderResponse.ts @@ -1,36 +1,18 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { FraudResult } from './fraudResult'; export class CheckoutCreateOrderResponse { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; @@ -60,6 +42,64 @@ export class CheckoutCreateOrderResponse { * The result of the order creation request. The value is always **Success**. */ 'resultCode': CheckoutCreateOrderResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "remainingAmount", + "baseName": "remainingAmount", + "type": "Amount" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "CheckoutCreateOrderResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return CheckoutCreateOrderResponse.attributeTypeMap; + } } export namespace CheckoutCreateOrderResponse { diff --git a/src/typings/checkout/checkoutDonationAction.ts b/src/typings/checkout/checkoutDonationAction.ts index 29f9a58..9282f24 100644 --- a/src/typings/checkout/checkoutDonationAction.ts +++ b/src/typings/checkout/checkoutDonationAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutDonationAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -43,6 +25,34 @@ export class CheckoutDonationAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutDonationAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutDonationAction.attributeTypeMap; + } } export namespace CheckoutDonationAction { diff --git a/src/typings/checkout/checkoutOneTimePasscodeAction.ts b/src/typings/checkout/checkoutOneTimePasscodeAction.ts index 971717c..c672617 100644 --- a/src/typings/checkout/checkoutOneTimePasscodeAction.ts +++ b/src/typings/checkout/checkoutOneTimePasscodeAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Redirect } from './redirect'; export class CheckoutOneTimePasscodeAction { @@ -57,6 +39,54 @@ export class CheckoutOneTimePasscodeAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "redirect", + "baseName": "redirect", + "type": "Redirect" + }, + { + "name": "resendInterval", + "baseName": "resendInterval", + "type": "number" + }, + { + "name": "resendMaxAttempts", + "baseName": "resendMaxAttempts", + "type": "number" + }, + { + "name": "resendUrl", + "baseName": "resendUrl", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutOneTimePasscodeAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutOneTimePasscodeAction.attributeTypeMap; + } } export namespace CheckoutOneTimePasscodeAction { diff --git a/src/typings/checkout/checkoutOrder.ts b/src/typings/checkout/checkoutOrder.ts index 2281085..6112bef 100644 --- a/src/typings/checkout/checkoutOrder.ts +++ b/src/typings/checkout/checkoutOrder.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutOrder { /** * The encrypted order data. @@ -35,5 +17,23 @@ export class CheckoutOrder { * The `pspReference` that belongs to the order. */ 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutOrder.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutOrderResponse.ts b/src/typings/checkout/checkoutOrderResponse.ts index b3fbfce..99587ae 100644 --- a/src/typings/checkout/checkoutOrderResponse.ts +++ b/src/typings/checkout/checkoutOrderResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutOrderResponse { @@ -46,5 +28,43 @@ export class CheckoutOrderResponse { */ 'reference'?: string; 'remainingAmount'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "orderData", + "baseName": "orderData", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "remainingAmount", + "baseName": "remainingAmount", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return CheckoutOrderResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutQrCodeAction.ts b/src/typings/checkout/checkoutQrCodeAction.ts index 6190f1f..40813ac 100644 --- a/src/typings/checkout/checkoutQrCodeAction.ts +++ b/src/typings/checkout/checkoutQrCodeAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutQrCodeAction { /** * Expiry time of the QR code. @@ -51,6 +33,44 @@ export class CheckoutQrCodeAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutQrCodeAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutQrCodeAction.attributeTypeMap; + } } export namespace CheckoutQrCodeAction { diff --git a/src/typings/checkout/checkoutRedirectAction.ts b/src/typings/checkout/checkoutRedirectAction.ts index 18bcf0b..5671054 100644 --- a/src/typings/checkout/checkoutRedirectAction.ts +++ b/src/typings/checkout/checkoutRedirectAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutRedirectAction { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. @@ -47,6 +29,39 @@ export class CheckoutRedirectAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "{ [key: string]: string; }" + }, + { + "name": "method", + "baseName": "method", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutRedirectAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutRedirectAction.attributeTypeMap; + } } export namespace CheckoutRedirectAction { diff --git a/src/typings/checkout/checkoutSDKAction.ts b/src/typings/checkout/checkoutSDKAction.ts index 96a8524..5ff7357 100644 --- a/src/typings/checkout/checkoutSDKAction.ts +++ b/src/typings/checkout/checkoutSDKAction.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutSDKAction { /** * A value that must be submitted to the `/payments/details` endpoint to verify this payment. @@ -47,11 +29,44 @@ export class CheckoutSDKAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "sdkData", + "baseName": "sdkData", + "type": "{ [key: string]: string; }" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutSDKAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutSDKAction.attributeTypeMap; + } } export namespace CheckoutSDKAction { export enum TypeEnum { Sdk = 'sdk', - WechatpaySDK = 'wechatpaySDK' + WechatpaySdk = 'wechatpaySDK' } } diff --git a/src/typings/checkout/checkoutSessionInstallmentOption.ts b/src/typings/checkout/checkoutSessionInstallmentOption.ts new file mode 100644 index 0000000..74e44c0 --- /dev/null +++ b/src/typings/checkout/checkoutSessionInstallmentOption.ts @@ -0,0 +1,54 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CheckoutSessionInstallmentOption { + /** + * Defines the type of installment plan. If not set, defaults to **regular**. Possible values: * **regular** * **revolving** + */ + 'plans'?: Array; + /** + * Preselected number of installments offered for this payment method. + */ + 'preselectedValue'?: number; + /** + * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. + */ + 'values'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "plans", + "baseName": "plans", + "type": "Array" + }, + { + "name": "preselectedValue", + "baseName": "preselectedValue", + "type": "number" + }, + { + "name": "values", + "baseName": "values", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutSessionInstallmentOption.attributeTypeMap; + } +} + +export namespace CheckoutSessionInstallmentOption { + export enum PlansEnum { + Regular = 'regular', + Revolving = 'revolving' + } +} diff --git a/src/typings/checkout/checkoutThreeDS2Action.ts b/src/typings/checkout/checkoutThreeDS2Action.ts index c09e893..d254056 100644 --- a/src/typings/checkout/checkoutThreeDS2Action.ts +++ b/src/typings/checkout/checkoutThreeDS2Action.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutThreeDS2Action { /** * A token needed to authorise a payment. @@ -55,10 +37,53 @@ export class CheckoutThreeDS2Action { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authorisationToken", + "baseName": "authorisationToken", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "subtype", + "baseName": "subtype", + "type": "string" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutThreeDS2Action.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutThreeDS2Action.attributeTypeMap; + } } export namespace CheckoutThreeDS2Action { export enum TypeEnum { - ThreeDS2 = 'threeDS2' + ThreeDs2 = 'threeDS2' } } diff --git a/src/typings/checkout/checkoutUtilityRequest.ts b/src/typings/checkout/checkoutUtilityRequest.ts index 2d4d8de..3dceec1 100644 --- a/src/typings/checkout/checkoutUtilityRequest.ts +++ b/src/typings/checkout/checkoutUtilityRequest.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutUtilityRequest { /** * The list of origin domains, for which origin keys are requested. */ 'originDomains': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "originDomains", + "baseName": "originDomains", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CheckoutUtilityRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutUtilityResponse.ts b/src/typings/checkout/checkoutUtilityResponse.ts index 337d8b2..64b6845 100644 --- a/src/typings/checkout/checkoutUtilityResponse.ts +++ b/src/typings/checkout/checkoutUtilityResponse.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CheckoutUtilityResponse { /** * 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. */ 'originKeys'?: { [key: string]: string; }; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "originKeys", + "baseName": "originKeys", + "type": "{ [key: string]: string; }" + } ]; + + static getAttributeTypeMap() { + return CheckoutUtilityResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/checkoutVoucherAction.ts b/src/typings/checkout/checkoutVoucherAction.ts index eccec3b..0787093 100644 --- a/src/typings/checkout/checkoutVoucherAction.ts +++ b/src/typings/checkout/checkoutVoucherAction.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class CheckoutVoucherAction { @@ -99,6 +81,114 @@ export class CheckoutVoucherAction { * Specifies the URL to redirect to. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "alternativeReference", + "baseName": "alternativeReference", + "type": "string" + }, + { + "name": "collectionInstitutionNumber", + "baseName": "collectionInstitutionNumber", + "type": "string" + }, + { + "name": "downloadUrl", + "baseName": "downloadUrl", + "type": "string" + }, + { + "name": "entity", + "baseName": "entity", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "initialAmount", + "baseName": "initialAmount", + "type": "Amount" + }, + { + "name": "instructionsUrl", + "baseName": "instructionsUrl", + "type": "string" + }, + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "maskedTelephoneNumber", + "baseName": "maskedTelephoneNumber", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "paymentMethodType", + "baseName": "paymentMethodType", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "string" + }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Amount" + }, + { + "name": "totalAmount", + "baseName": "totalAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "CheckoutVoucherAction.TypeEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CheckoutVoucherAction.attributeTypeMap; + } } export namespace CheckoutVoucherAction { diff --git a/src/typings/checkout/commonField.ts b/src/typings/checkout/commonField.ts index 4c49828..92fdd35 100644 --- a/src/typings/checkout/commonField.ts +++ b/src/typings/checkout/commonField.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CommonField { /** * Name of the field. For example, Name of External Platform. @@ -35,5 +17,23 @@ export class CommonField { * Version of the field. For example, Version of External Platform. */ 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CommonField.attributeTypeMap; + } } diff --git a/src/typings/checkout/company.ts b/src/typings/checkout/company.ts index 805b225..e98c127 100644 --- a/src/typings/checkout/company.ts +++ b/src/typings/checkout/company.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Company { /** * The company website\'s home page. @@ -51,5 +33,43 @@ export class Company { * The company type. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "homepage", + "baseName": "homepage", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "registryLocation", + "baseName": "registryLocation", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Company.attributeTypeMap; + } } diff --git a/src/typings/checkout/configuration.ts b/src/typings/checkout/configuration.ts index 635fcec..071010c 100644 --- a/src/typings/checkout/configuration.ts +++ b/src/typings/checkout/configuration.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Avs } from './avs'; import { InstallmentsNumber } from './installmentsNumber'; import { ShopperInput } from './shopperInput'; @@ -37,12 +19,40 @@ export class Configuration { 'cardHolderName'?: Configuration.CardHolderNameEnum; 'installments'?: InstallmentsNumber; 'shopperInput'?: ShopperInput; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "avs", + "baseName": "avs", + "type": "Avs" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "Configuration.CardHolderNameEnum" + }, + { + "name": "installments", + "baseName": "installments", + "type": "InstallmentsNumber" + }, + { + "name": "shopperInput", + "baseName": "shopperInput", + "type": "ShopperInput" + } ]; + + static getAttributeTypeMap() { + return Configuration.attributeTypeMap; + } } export namespace Configuration { export enum CardHolderNameEnum { - NONE = 'NONE', - OPTIONAL = 'OPTIONAL', - REQUIRED = 'REQUIRED' + None = 'NONE', + Optional = 'OPTIONAL', + Required = 'REQUIRED' } } diff --git a/src/typings/checkout/createApplePaySessionRequest.ts b/src/typings/checkout/createApplePaySessionRequest.ts new file mode 100644 index 0000000..abc8144 --- /dev/null +++ b/src/typings/checkout/createApplePaySessionRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateApplePaySessionRequest { + /** + * This is the name that your shoppers will see in the Apple Pay interface. The value returned as `configuration.merchantName` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + */ + 'displayName': string; + /** + * The domain name you provided when you added Apple Pay in your Customer Area. This must match the `window.location.hostname` of the web shop. + */ + 'domainName': string; + /** + * Your merchant identifier registered with Apple Pay. Use the value of the `configuration.merchantId` field from the [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) response. + */ + 'merchantIdentifier': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "displayName", + "baseName": "displayName", + "type": "string" + }, + { + "name": "domainName", + "baseName": "domainName", + "type": "string" + }, + { + "name": "merchantIdentifier", + "baseName": "merchantIdentifier", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateApplePaySessionRequest.attributeTypeMap; + } +} + diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index 4cb3898..b01582f 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -1,35 +1,18 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; @@ -96,6 +79,10 @@ export class CreateCheckoutSessionRequest { */ 'expiresAt'?: Date; /** + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + */ + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; + /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip. */ 'lineItems'?: Array; @@ -151,7 +138,7 @@ export class CreateCheckoutSessionRequest { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -203,11 +190,274 @@ export class CreateCheckoutSessionRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "CreateCheckoutSessionRequest.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreateCheckoutSessionRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CreateCheckoutSessionRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreateCheckoutSessionRequest.attributeTypeMap; + } } export namespace CreateCheckoutSessionRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -220,6 +470,6 @@ export namespace CreateCheckoutSessionRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 80c4c39..52e374c 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -1,35 +1,18 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; import { AuthenticationData } from './authenticationData'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; import { Company } from './company'; import { LineItem } from './lineItem'; import { Mandate } from './mandate'; @@ -100,6 +83,10 @@ export class CreateCheckoutSessionResponse { */ 'id': string; /** + * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. + */ + 'installmentOptions'?: { [key: string]: CheckoutSessionInstallmentOption; }; + /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip. */ 'lineItems'?: Array; @@ -159,7 +146,7 @@ export class CreateCheckoutSessionResponse { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -211,11 +198,284 @@ export class CreateCheckoutSessionResponse { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "CreateCheckoutSessionResponse.ChannelEnum" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: CheckoutSessionInstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreateCheckoutSessionResponse.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionData", + "baseName": "sessionData", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "CreateCheckoutSessionResponse.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CreateCheckoutSessionResponse.attributeTypeMap; + } } export namespace CreateCheckoutSessionResponse { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -228,6 +488,6 @@ export namespace CreateCheckoutSessionResponse { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/createPaymentAmountUpdateRequest.ts b/src/typings/checkout/createPaymentAmountUpdateRequest.ts index 7936b6c..046be86 100644 --- a/src/typings/checkout/createPaymentAmountUpdateRequest.ts +++ b/src/typings/checkout/createPaymentAmountUpdateRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { Split } from './split'; @@ -46,6 +28,39 @@ export class CreatePaymentAmountUpdateRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reason", + "baseName": "reason", + "type": "CreatePaymentAmountUpdateRequest.ReasonEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentAmountUpdateRequest.attributeTypeMap; + } } export namespace CreatePaymentAmountUpdateRequest { diff --git a/src/typings/checkout/createPaymentCancelRequest.ts b/src/typings/checkout/createPaymentCancelRequest.ts index 82f15a9..2ad2c20 100644 --- a/src/typings/checkout/createPaymentCancelRequest.ts +++ b/src/typings/checkout/createPaymentCancelRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreatePaymentCancelRequest { /** * The merchant account that is used to process the payment. @@ -35,5 +17,23 @@ export class CreatePaymentCancelRequest { * Your reference for the cancel request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentCancelRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentCaptureRequest.ts b/src/typings/checkout/createPaymentCaptureRequest.ts index 42fd74a..3c948de 100644 --- a/src/typings/checkout/createPaymentCaptureRequest.ts +++ b/src/typings/checkout/createPaymentCaptureRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -47,5 +29,38 @@ export class CreatePaymentCaptureRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentCaptureRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentLinkRequest.ts b/src/typings/checkout/createPaymentLinkRequest.ts index 8aaa7b7..6bd8179 100644 --- a/src/typings/checkout/createPaymentLinkRequest.ts +++ b/src/typings/checkout/createPaymentLinkRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -161,6 +143,194 @@ export class CreatePaymentLinkRequest { * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: InstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "CreatePaymentLinkRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "requiredShopperFields", + "baseName": "requiredShopperFields", + "type": "Array" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "reusable", + "baseName": "reusable", + "type": "boolean" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethodMode", + "baseName": "storePaymentMethodMode", + "type": "CreatePaymentLinkRequest.StorePaymentMethodModeEnum" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "themeId", + "baseName": "themeId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentLinkRequest.attributeTypeMap; + } } export namespace CreatePaymentLinkRequest { diff --git a/src/typings/checkout/createPaymentRefundRequest.ts b/src/typings/checkout/createPaymentRefundRequest.ts index 6ce2bc4..32db517 100644 --- a/src/typings/checkout/createPaymentRefundRequest.ts +++ b/src/typings/checkout/createPaymentRefundRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -47,5 +29,38 @@ export class CreatePaymentRefundRequest { * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). */ 'splits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentRefundRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createPaymentReversalRequest.ts b/src/typings/checkout/createPaymentReversalRequest.ts index d629798..39b7a1e 100644 --- a/src/typings/checkout/createPaymentReversalRequest.ts +++ b/src/typings/checkout/createPaymentReversalRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreatePaymentReversalRequest { /** * The merchant account that is used to process the payment. @@ -35,5 +17,23 @@ export class CreatePaymentReversalRequest { * Your reference for the reversal request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreatePaymentReversalRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/createStandalonePaymentCancelRequest.ts b/src/typings/checkout/createStandalonePaymentCancelRequest.ts index be76f50..ec8d9e4 100644 --- a/src/typings/checkout/createStandalonePaymentCancelRequest.ts +++ b/src/typings/checkout/createStandalonePaymentCancelRequest.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreateStandalonePaymentCancelRequest { /** * The merchant account that is used to process the payment. @@ -39,5 +21,28 @@ export class CreateStandalonePaymentCancelRequest { * Your reference for the cancel request. Maximum length: 80 characters. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentReference", + "baseName": "paymentReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateStandalonePaymentCancelRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/detailsRequest.ts b/src/typings/checkout/detailsRequest.ts index e26c9e2..23b5b47 100644 --- a/src/typings/checkout/detailsRequest.ts +++ b/src/typings/checkout/detailsRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { PaymentCompletionDetails } from './paymentCompletionDetails'; export class DetailsRequest { @@ -37,5 +19,28 @@ export class DetailsRequest { * Change the `authenticationOnly` indicator originally set in the `/payments` request. Only needs to be set if you want to modify the value set previously. */ 'threeDSAuthenticationOnly'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "details", + "baseName": "details", + "type": "PaymentCompletionDetails" + }, + { + "name": "paymentData", + "baseName": "paymentData", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return DetailsRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/deviceRenderOptions.ts b/src/typings/checkout/deviceRenderOptions.ts index 78b5b6e..ae0693b 100644 --- a/src/typings/checkout/deviceRenderOptions.ts +++ b/src/typings/checkout/deviceRenderOptions.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeviceRenderOptions { /** * Supported SDK interface types. Allowed values: * native * html * both @@ -35,6 +17,24 @@ export class DeviceRenderOptions { * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect */ 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } } export namespace DeviceRenderOptions { diff --git a/src/typings/checkout/dokuDetails.ts b/src/typings/checkout/dokuDetails.ts index 72c2cba..3bf0364 100644 --- a/src/typings/checkout/dokuDetails.ts +++ b/src/typings/checkout/dokuDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DokuDetails { /** * The shopper\'s first name. @@ -43,6 +25,34 @@ export class DokuDetails { * **doku** */ 'type': DokuDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DokuDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DokuDetails.attributeTypeMap; + } } export namespace DokuDetails { diff --git a/src/typings/checkout/donationResponse.ts b/src/typings/checkout/donationResponse.ts index f5226f2..cc4dff2 100644 --- a/src/typings/checkout/donationResponse.ts +++ b/src/typings/checkout/donationResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { PaymentResponse } from './paymentResponse'; @@ -51,6 +33,49 @@ export class DonationResponse { * The status of the donation transaction. Possible values: * **completed** * **pending** * **refused** */ 'status'?: DonationResponse.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationAccount", + "baseName": "donationAccount", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "payment", + "baseName": "payment", + "type": "PaymentResponse" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "DonationResponse.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return DonationResponse.attributeTypeMap; + } } export namespace DonationResponse { diff --git a/src/typings/checkout/dotpayDetails.ts b/src/typings/checkout/dotpayDetails.ts index df7a3a9..58e9747 100644 --- a/src/typings/checkout/dotpayDetails.ts +++ b/src/typings/checkout/dotpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DotpayDetails { /** * The Dotpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dotpay issuer to preselect it. @@ -35,6 +17,24 @@ export class DotpayDetails { * **dotpay** */ 'type'?: DotpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DotpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DotpayDetails.attributeTypeMap; + } } export namespace DotpayDetails { diff --git a/src/typings/checkout/dragonpayDetails.ts b/src/typings/checkout/dragonpayDetails.ts index e6afaf9..b020601 100644 --- a/src/typings/checkout/dragonpayDetails.ts +++ b/src/typings/checkout/dragonpayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DragonpayDetails { /** * The Dragonpay issuer value of the shopper\'s selected bank. Set this to an **id** of a Dragonpay issuer to preselect it. @@ -39,6 +21,29 @@ export class DragonpayDetails { * **dragonpay** */ 'type': DragonpayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DragonpayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DragonpayDetails.attributeTypeMap; + } } export namespace DragonpayDetails { diff --git a/src/typings/checkout/econtextVoucherDetails.ts b/src/typings/checkout/econtextVoucherDetails.ts index 7a88e78..e173d91 100644 --- a/src/typings/checkout/econtextVoucherDetails.ts +++ b/src/typings/checkout/econtextVoucherDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class EcontextVoucherDetails { /** * The shopper\'s first name. @@ -47,6 +29,39 @@ export class EcontextVoucherDetails { * **econtextvoucher** */ 'type': EcontextVoucherDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "EcontextVoucherDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return EcontextVoucherDetails.attributeTypeMap; + } } export namespace EcontextVoucherDetails { diff --git a/src/typings/checkout/externalPlatform.ts b/src/typings/checkout/externalPlatform.ts index 6120dcb..aa1f4e1 100644 --- a/src/typings/checkout/externalPlatform.ts +++ b/src/typings/checkout/externalPlatform.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ExternalPlatform { /** * External platform integrator. @@ -39,5 +21,28 @@ export class ExternalPlatform { * Version of the field. For example, Version of External Platform. */ 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "integrator", + "baseName": "integrator", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalPlatform.attributeTypeMap; + } } diff --git a/src/typings/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts index c0dc06d..990c7dc 100644 --- a/src/typings/checkout/forexQuote.ts +++ b/src/typings/checkout/forexQuote.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class ForexQuote { @@ -64,5 +46,73 @@ export class ForexQuote { * The date until which the forex quote is valid. */ 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } } diff --git a/src/typings/checkout/fraudCheckResult.ts b/src/typings/checkout/fraudCheckResult.ts index ebf34dd..83b72dc 100644 --- a/src/typings/checkout/fraudCheckResult.ts +++ b/src/typings/checkout/fraudCheckResult.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class FraudCheckResult { /** * The fraud score generated by the risk check. @@ -39,5 +21,28 @@ export class FraudCheckResult { * The name of the risk check. */ 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } } diff --git a/src/typings/checkout/fraudResult.ts b/src/typings/checkout/fraudResult.ts index 5d2d715..425dc02 100644 --- a/src/typings/checkout/fraudResult.ts +++ b/src/typings/checkout/fraudResult.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { FraudCheckResult } from './fraudCheckResult'; export class FraudResult { @@ -36,5 +18,23 @@ export class FraudResult { * The result of the individual risk checks. */ 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } } diff --git a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts index 80e293b..d327133 100644 --- a/src/typings/checkout/genericIssuerPaymentMethodDetails.ts +++ b/src/typings/checkout/genericIssuerPaymentMethodDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GenericIssuerPaymentMethodDetails { /** * The issuer id of the shopper\'s selected bank. @@ -43,12 +25,40 @@ export class GenericIssuerPaymentMethodDetails { * **genericissuer** */ 'type': GenericIssuerPaymentMethodDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GenericIssuerPaymentMethodDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GenericIssuerPaymentMethodDetails.attributeTypeMap; + } } export namespace GenericIssuerPaymentMethodDetails { export enum TypeEnum { Eps = 'eps', - OnlineBankingSK = 'onlineBanking_SK', - OnlineBankingCZ = 'onlineBanking_CZ' + OnlineBankingSk = 'onlineBanking_SK', + OnlineBankingCz = 'onlineBanking_CZ' } } diff --git a/src/typings/checkout/giropayDetails.ts b/src/typings/checkout/giropayDetails.ts index e13a141..5f02c67 100644 --- a/src/typings/checkout/giropayDetails.ts +++ b/src/typings/checkout/giropayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GiropayDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -39,6 +21,29 @@ export class GiropayDetails { * **giropay** */ 'type'?: GiropayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GiropayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GiropayDetails.attributeTypeMap; + } } export namespace GiropayDetails { diff --git a/src/typings/checkout/googlePayDetails.ts b/src/typings/checkout/googlePayDetails.ts index 0a4ff32..3f7e22b 100644 --- a/src/typings/checkout/googlePayDetails.ts +++ b/src/typings/checkout/googlePayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GooglePayDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class GooglePayDetails { * **googlepay**, **paywithgoogle** */ 'type'?: GooglePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "GooglePayDetails.FundingSourceEnum" + }, + { + "name": "googlePayToken", + "baseName": "googlePayToken", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "GooglePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return GooglePayDetails.attributeTypeMap; + } } export namespace GooglePayDetails { diff --git a/src/typings/checkout/idealDetails.ts b/src/typings/checkout/idealDetails.ts index d86f857..42b04b4 100644 --- a/src/typings/checkout/idealDetails.ts +++ b/src/typings/checkout/idealDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class IdealDetails { /** * The iDEAL issuer value of the shopper\'s selected bank. Set this to an **id** of an iDEAL issuer to preselect it. @@ -43,6 +25,34 @@ export class IdealDetails { * **ideal** */ 'type'?: IdealDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "IdealDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return IdealDetails.attributeTypeMap; + } } export namespace IdealDetails { diff --git a/src/typings/checkout/inputDetail.ts b/src/typings/checkout/inputDetail.ts index 17e3691..fb26f57 100644 --- a/src/typings/checkout/inputDetail.ts +++ b/src/typings/checkout/inputDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Item } from './item'; import { SubInputDetail } from './subInputDetail'; @@ -65,5 +47,58 @@ export class InputDetail { * The value can be pre-filled, if available. */ 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "details", + "baseName": "details", + "type": "Array" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "itemSearchUrl", + "baseName": "itemSearchUrl", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InputDetail.attributeTypeMap; + } } diff --git a/src/typings/checkout/installmentOption.ts b/src/typings/checkout/installmentOption.ts index a2ebf4f..69fcba7 100644 --- a/src/typings/checkout/installmentOption.ts +++ b/src/typings/checkout/installmentOption.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class InstallmentOption { /** * The maximum number of installments offered for this payment method. @@ -43,6 +25,34 @@ export class InstallmentOption { * An array of the number of installments that the shopper can choose from. For example, **[2,3,5]**. This cannot be specified simultaneously with `maxValue`. */ 'values'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "maxValue", + "baseName": "maxValue", + "type": "number" + }, + { + "name": "plans", + "baseName": "plans", + "type": "Array" + }, + { + "name": "preselectedValue", + "baseName": "preselectedValue", + "type": "number" + }, + { + "name": "values", + "baseName": "values", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return InstallmentOption.attributeTypeMap; + } } export namespace InstallmentOption { diff --git a/src/typings/checkout/installments.ts b/src/typings/checkout/installments.ts index 3cbbc94..9ee17c2 100644 --- a/src/typings/checkout/installments.ts +++ b/src/typings/checkout/installments.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Installments { /** * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving** @@ -35,6 +17,24 @@ export class Installments { * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "plan", + "baseName": "plan", + "type": "Installments.PlanEnum" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } } export namespace Installments { diff --git a/src/typings/checkout/installmentsNumber.ts b/src/typings/checkout/installmentsNumber.ts index af6530e..21bc254 100644 --- a/src/typings/checkout/installmentsNumber.ts +++ b/src/typings/checkout/installmentsNumber.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class InstallmentsNumber { /** * Maximum number of installments */ 'maxNumberOfInstallments': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "maxNumberOfInstallments", + "baseName": "maxNumberOfInstallments", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return InstallmentsNumber.attributeTypeMap; + } } diff --git a/src/typings/checkout/item.ts b/src/typings/checkout/item.ts index 6773e11..fbca84f 100644 --- a/src/typings/checkout/item.ts +++ b/src/typings/checkout/item.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Item { /** * The value to provide in the result. @@ -35,5 +17,23 @@ export class Item { * The display name. */ 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Item.attributeTypeMap; + } } diff --git a/src/typings/checkout/klarnaDetails.ts b/src/typings/checkout/klarnaDetails.ts index aeec107..a08e3dc 100644 --- a/src/typings/checkout/klarnaDetails.ts +++ b/src/typings/checkout/klarnaDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class KlarnaDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class KlarnaDetails { * **klarna** */ 'type': KlarnaDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "KlarnaDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return KlarnaDetails.attributeTypeMap; + } } export namespace KlarnaDetails { diff --git a/src/typings/checkout/lineItem.ts b/src/typings/checkout/lineItem.ts index c9fa241..9e08671 100644 --- a/src/typings/checkout/lineItem.ts +++ b/src/typings/checkout/lineItem.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class LineItem { /** * Item amount excluding the tax, in minor units. @@ -67,5 +49,63 @@ export class LineItem { * Tax percentage, in minor units. */ 'taxPercentage'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amountExcludingTax", + "baseName": "amountExcludingTax", + "type": "number" + }, + { + "name": "amountIncludingTax", + "baseName": "amountIncludingTax", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "imageUrl", + "baseName": "imageUrl", + "type": "string" + }, + { + "name": "itemCategory", + "baseName": "itemCategory", + "type": "string" + }, + { + "name": "productUrl", + "baseName": "productUrl", + "type": "string" + }, + { + "name": "quantity", + "baseName": "quantity", + "type": "number" + }, + { + "name": "taxAmount", + "baseName": "taxAmount", + "type": "number" + }, + { + "name": "taxPercentage", + "baseName": "taxPercentage", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return LineItem.attributeTypeMap; + } } diff --git a/src/typings/checkout/mandate.ts b/src/typings/checkout/mandate.ts index 1a00afb..a05b41c 100644 --- a/src/typings/checkout/mandate.ts +++ b/src/typings/checkout/mandate.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Mandate { /** * The billing amount (in minor units) of the recurring transactions. @@ -59,6 +41,54 @@ export class Mandate { * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. */ 'startsAt'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "string" + }, + { + "name": "amountRule", + "baseName": "amountRule", + "type": "Mandate.AmountRuleEnum" + }, + { + "name": "billingAttemptsRule", + "baseName": "billingAttemptsRule", + "type": "Mandate.BillingAttemptsRuleEnum" + }, + { + "name": "billingDay", + "baseName": "billingDay", + "type": "string" + }, + { + "name": "endsAt", + "baseName": "endsAt", + "type": "string" + }, + { + "name": "frequency", + "baseName": "frequency", + "type": "Mandate.FrequencyEnum" + }, + { + "name": "remarks", + "baseName": "remarks", + "type": "string" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Mandate.attributeTypeMap; + } } export namespace Mandate { diff --git a/src/typings/checkout/masterpassDetails.ts b/src/typings/checkout/masterpassDetails.ts index 4a249e8..6081f3e 100644 --- a/src/typings/checkout/masterpassDetails.ts +++ b/src/typings/checkout/masterpassDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MasterpassDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -39,6 +21,29 @@ export class MasterpassDetails { * **masterpass** */ 'type'?: MasterpassDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "MasterpassDetails.FundingSourceEnum" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpassTransactionId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MasterpassDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MasterpassDetails.attributeTypeMap; + } } export namespace MasterpassDetails { diff --git a/src/typings/checkout/mbwayDetails.ts b/src/typings/checkout/mbwayDetails.ts index d0f8aa5..7e89299 100644 --- a/src/typings/checkout/mbwayDetails.ts +++ b/src/typings/checkout/mbwayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MbwayDetails { 'shopperEmail': string; 'telephoneNumber': string; @@ -33,6 +15,29 @@ export class MbwayDetails { * **mbway** */ 'type'?: MbwayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MbwayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MbwayDetails.attributeTypeMap; + } } export namespace MbwayDetails { diff --git a/src/typings/checkout/merchantDevice.ts b/src/typings/checkout/merchantDevice.ts index 61a1cce..795ec3f 100644 --- a/src/typings/checkout/merchantDevice.ts +++ b/src/typings/checkout/merchantDevice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MerchantDevice { /** * Operating system running on the merchant device. @@ -39,5 +21,28 @@ export class MerchantDevice { * Merchant device reference. */ 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDevice.attributeTypeMap; + } } diff --git a/src/typings/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts index 95bf947..7229b01 100644 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ b/src/typings/checkout/merchantRiskIndicator.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; export class MerchantRiskIndicator { @@ -81,6 +63,84 @@ export class MerchantRiskIndicator { * Indicates shipping method chosen for the transaction. */ 'shipIndicator'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryEmailAddress", + "baseName": "deliveryEmailAddress", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "giftCardCurr", + "baseName": "giftCardCurr", + "type": "string" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "preOrderPurchaseInd", + "baseName": "preOrderPurchaseInd", + "type": "string" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + }, + { + "name": "reorderItemsInd", + "baseName": "reorderItemsInd", + "type": "string" + }, + { + "name": "shipIndicator", + "baseName": "shipIndicator", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } } export namespace MerchantRiskIndicator { diff --git a/src/typings/checkout/mobilePayDetails.ts b/src/typings/checkout/mobilePayDetails.ts index d60786e..e7b9d49 100644 --- a/src/typings/checkout/mobilePayDetails.ts +++ b/src/typings/checkout/mobilePayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MobilePayDetails { /** * **mobilepay** */ 'type'?: MobilePayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "MobilePayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MobilePayDetails.attributeTypeMap; + } } export namespace MobilePayDetails { diff --git a/src/typings/checkout/models.ts b/src/typings/checkout/models.ts index 1abafa5..ad79319 100644 --- a/src/typings/checkout/models.ts +++ b/src/typings/checkout/models.ts @@ -1,3 +1,13 @@ +/* + * The version of the OpenAPI document: v69 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + export * from './accountInfo'; export * from './acctInfo'; export * from './achDetails'; @@ -22,6 +32,7 @@ export * from './amazonPayDetails'; export * from './amount'; export * from './androidPayDetails'; export * from './applePayDetails'; +export * from './applePaySessionResponse'; export * from './applicationInfo'; export * from './authenticationData'; export * from './avs'; @@ -51,6 +62,7 @@ export * from './checkoutOrderResponse'; export * from './checkoutQrCodeAction'; export * from './checkoutRedirectAction'; export * from './checkoutSDKAction'; +export * from './checkoutSessionInstallmentOption'; export * from './checkoutThreeDS2Action'; export * from './checkoutUtilityRequest'; export * from './checkoutUtilityResponse'; @@ -58,6 +70,7 @@ export * from './checkoutVoucherAction'; export * from './commonField'; export * from './company'; export * from './configuration'; +export * from './createApplePaySessionRequest'; export * from './createCheckoutSessionRequest'; export * from './createCheckoutSessionResponse'; export * from './createPaymentAmountUpdateRequest'; @@ -166,3 +179,635 @@ export * from './visaCheckoutDetails'; export * from './weChatPayDetails'; export * from './weChatPayMiniProgramDetails'; export * from './zipDetails'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AchDetails } from './achDetails'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { AfterpayDetails } from './afterpayDetails'; +import { AmazonPayDetails } from './amazonPayDetails'; +import { Amount } from './amount'; +import { AndroidPayDetails } from './androidPayDetails'; +import { ApplePayDetails } from './applePayDetails'; +import { ApplePaySessionResponse } from './applePaySessionResponse'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationData } from './authenticationData'; +import { Avs } from './avs'; +import { BacsDirectDebitDetails } from './bacsDirectDebitDetails'; +import { BankAccount } from './bankAccount'; +import { BillDeskDetails } from './billDeskDetails'; +import { BlikDetails } from './blikDetails'; +import { BrowserInfo } from './browserInfo'; +import { Card } from './card'; +import { CardBrandDetails } from './cardBrandDetails'; +import { CardDetails } from './cardDetails'; +import { CardDetailsRequest } from './cardDetailsRequest'; +import { CardDetailsResponse } from './cardDetailsResponse'; +import { CellulantDetails } from './cellulantDetails'; +import { CheckoutAwaitAction } from './checkoutAwaitAction'; +import { CheckoutBalanceCheckRequest } from './checkoutBalanceCheckRequest'; +import { CheckoutBalanceCheckResponse } from './checkoutBalanceCheckResponse'; +import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; +import { CheckoutCancelOrderRequest } from './checkoutCancelOrderRequest'; +import { CheckoutCancelOrderResponse } from './checkoutCancelOrderResponse'; +import { CheckoutCreateOrderRequest } from './checkoutCreateOrderRequest'; +import { CheckoutCreateOrderResponse } from './checkoutCreateOrderResponse'; +import { CheckoutDonationAction } from './checkoutDonationAction'; +import { CheckoutOneTimePasscodeAction } from './checkoutOneTimePasscodeAction'; +import { CheckoutOrder } from './checkoutOrder'; +import { CheckoutOrderResponse } from './checkoutOrderResponse'; +import { CheckoutQrCodeAction } from './checkoutQrCodeAction'; +import { CheckoutRedirectAction } from './checkoutRedirectAction'; +import { CheckoutSDKAction } from './checkoutSDKAction'; +import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption'; +import { CheckoutThreeDS2Action } from './checkoutThreeDS2Action'; +import { CheckoutUtilityRequest } from './checkoutUtilityRequest'; +import { CheckoutUtilityResponse } from './checkoutUtilityResponse'; +import { CheckoutVoucherAction } from './checkoutVoucherAction'; +import { CommonField } from './commonField'; +import { Company } from './company'; +import { Configuration } from './configuration'; +import { CreateApplePaySessionRequest } from './createApplePaySessionRequest'; +import { CreateCheckoutSessionRequest } from './createCheckoutSessionRequest'; +import { CreateCheckoutSessionResponse } from './createCheckoutSessionResponse'; +import { CreatePaymentAmountUpdateRequest } from './createPaymentAmountUpdateRequest'; +import { CreatePaymentCancelRequest } from './createPaymentCancelRequest'; +import { CreatePaymentCaptureRequest } from './createPaymentCaptureRequest'; +import { CreatePaymentLinkRequest } from './createPaymentLinkRequest'; +import { CreatePaymentRefundRequest } from './createPaymentRefundRequest'; +import { CreatePaymentReversalRequest } from './createPaymentReversalRequest'; +import { CreateStandalonePaymentCancelRequest } from './createStandalonePaymentCancelRequest'; +import { DetailsRequest } from './detailsRequest'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { DokuDetails } from './dokuDetails'; +import { DonationResponse } from './donationResponse'; +import { DotpayDetails } from './dotpayDetails'; +import { DragonpayDetails } from './dragonpayDetails'; +import { EcontextVoucherDetails } from './econtextVoucherDetails'; +import { ExternalPlatform } from './externalPlatform'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { GenericIssuerPaymentMethodDetails } from './genericIssuerPaymentMethodDetails'; +import { GiropayDetails } from './giropayDetails'; +import { GooglePayDetails } from './googlePayDetails'; +import { IdealDetails } from './idealDetails'; +import { InputDetail } from './inputDetail'; +import { InstallmentOption } from './installmentOption'; +import { Installments } from './installments'; +import { InstallmentsNumber } from './installmentsNumber'; +import { Item } from './item'; +import { KlarnaDetails } from './klarnaDetails'; +import { LineItem } from './lineItem'; +import { Mandate } from './mandate'; +import { MasterpassDetails } from './masterpassDetails'; +import { MbwayDetails } from './mbwayDetails'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { MobilePayDetails } from './mobilePayDetails'; +import { MolPayDetails } from './molPayDetails'; +import { Name } from './name'; +import { OpenInvoiceDetails } from './openInvoiceDetails'; +import { PayPalDetails } from './payPalDetails'; +import { PayUUpiDetails } from './payUUpiDetails'; +import { PayWithGoogleDetails } from './payWithGoogleDetails'; +import { PaymentAmountUpdateResource } from './paymentAmountUpdateResource'; +import { PaymentCancelResource } from './paymentCancelResource'; +import { PaymentCaptureResource } from './paymentCaptureResource'; +import { PaymentCompletionDetails } from './paymentCompletionDetails'; +import { PaymentDetails } from './paymentDetails'; +import { PaymentDetailsResponse } from './paymentDetailsResponse'; +import { PaymentDonationRequest } from './paymentDonationRequest'; +import { PaymentLinkResponse } from './paymentLinkResponse'; +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodGroup } from './paymentMethodGroup'; +import { PaymentMethodIssuer } from './paymentMethodIssuer'; +import { PaymentMethodsRequest } from './paymentMethodsRequest'; +import { PaymentMethodsResponse } from './paymentMethodsResponse'; +import { PaymentRefundResource } from './paymentRefundResource'; +import { PaymentRequest } from './paymentRequest'; +import { PaymentResponse } from './paymentResponse'; +import { PaymentReversalResource } from './paymentReversalResource'; +import { PaymentSetupRequest } from './paymentSetupRequest'; +import { PaymentSetupResponse } from './paymentSetupResponse'; +import { PaymentVerificationRequest } from './paymentVerificationRequest'; +import { PaymentVerificationResponse } from './paymentVerificationResponse'; +import { Phone } from './phone'; +import { RatepayDetails } from './ratepayDetails'; +import { Recurring } from './recurring'; +import { RecurringDetail } from './recurringDetail'; +import { Redirect } from './redirect'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { ResponsePaymentMethod } from './responsePaymentMethod'; +import { RiskData } from './riskData'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { SamsungPayDetails } from './samsungPayDetails'; +import { SepaDirectDebitDetails } from './sepaDirectDebitDetails'; +import { ServiceError } from './serviceError'; +import { ServiceError2 } from './serviceError2'; +import { ShopperInput } from './shopperInput'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { StandalonePaymentCancelResource } from './standalonePaymentCancelResource'; +import { StoredDetails } from './storedDetails'; +import { StoredPaymentMethod } from './storedPaymentMethod'; +import { StoredPaymentMethodDetails } from './storedPaymentMethodDetails'; +import { SubInputDetail } from './subInputDetail'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2ResponseData } from './threeDS2ResponseData'; +import { ThreeDS2Result } from './threeDS2Result'; +import { ThreeDSRequestData } from './threeDSRequestData'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; +import { UpdatePaymentLinkRequest } from './updatePaymentLinkRequest'; +import { UpiCollectDetails } from './upiCollectDetails'; +import { UpiIntentDetails } from './upiIntentDetails'; +import { VippsDetails } from './vippsDetails'; +import { VisaCheckoutDetails } from './visaCheckoutDetails'; +import { WeChatPayDetails } from './weChatPayDetails'; +import { WeChatPayMiniProgramDetails } from './weChatPayMiniProgramDetails'; +import { ZipDetails } from './zipDetails'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AchDetails.TypeEnum": AchDetails.TypeEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "AfterpayDetails.TypeEnum": AfterpayDetails.TypeEnum, + "AmazonPayDetails.TypeEnum": AmazonPayDetails.TypeEnum, + "AndroidPayDetails.TypeEnum": AndroidPayDetails.TypeEnum, + "ApplePayDetails.FundingSourceEnum": ApplePayDetails.FundingSourceEnum, + "ApplePayDetails.TypeEnum": ApplePayDetails.TypeEnum, + "AuthenticationData.AttemptAuthenticationEnum": AuthenticationData.AttemptAuthenticationEnum, + "Avs.EnabledEnum": Avs.EnabledEnum, + "BacsDirectDebitDetails.TypeEnum": BacsDirectDebitDetails.TypeEnum, + "BillDeskDetails.TypeEnum": BillDeskDetails.TypeEnum, + "BlikDetails.TypeEnum": BlikDetails.TypeEnum, + "CardDetails.FundingSourceEnum": CardDetails.FundingSourceEnum, + "CardDetails.TypeEnum": CardDetails.TypeEnum, + "CellulantDetails.TypeEnum": CellulantDetails.TypeEnum, + "CheckoutAwaitAction.TypeEnum": CheckoutAwaitAction.TypeEnum, + "CheckoutBalanceCheckRequest.RecurringProcessingModelEnum": CheckoutBalanceCheckRequest.RecurringProcessingModelEnum, + "CheckoutBalanceCheckRequest.ShopperInteractionEnum": CheckoutBalanceCheckRequest.ShopperInteractionEnum, + "CheckoutBalanceCheckResponse.ResultCodeEnum": CheckoutBalanceCheckResponse.ResultCodeEnum, + "CheckoutBankTransferAction.TypeEnum": CheckoutBankTransferAction.TypeEnum, + "CheckoutCancelOrderResponse.ResultCodeEnum": CheckoutCancelOrderResponse.ResultCodeEnum, + "CheckoutCreateOrderResponse.ResultCodeEnum": CheckoutCreateOrderResponse.ResultCodeEnum, + "CheckoutDonationAction.TypeEnum": CheckoutDonationAction.TypeEnum, + "CheckoutOneTimePasscodeAction.TypeEnum": CheckoutOneTimePasscodeAction.TypeEnum, + "CheckoutQrCodeAction.TypeEnum": CheckoutQrCodeAction.TypeEnum, + "CheckoutRedirectAction.TypeEnum": CheckoutRedirectAction.TypeEnum, + "CheckoutSDKAction.TypeEnum": CheckoutSDKAction.TypeEnum, + "CheckoutSessionInstallmentOption.PlansEnum": CheckoutSessionInstallmentOption.PlansEnum, + "CheckoutThreeDS2Action.TypeEnum": CheckoutThreeDS2Action.TypeEnum, + "CheckoutVoucherAction.TypeEnum": CheckoutVoucherAction.TypeEnum, + "Configuration.CardHolderNameEnum": Configuration.CardHolderNameEnum, + "CreateCheckoutSessionRequest.ChannelEnum": CreateCheckoutSessionRequest.ChannelEnum, + "CreateCheckoutSessionRequest.RecurringProcessingModelEnum": CreateCheckoutSessionRequest.RecurringProcessingModelEnum, + "CreateCheckoutSessionRequest.ShopperInteractionEnum": CreateCheckoutSessionRequest.ShopperInteractionEnum, + "CreateCheckoutSessionResponse.ChannelEnum": CreateCheckoutSessionResponse.ChannelEnum, + "CreateCheckoutSessionResponse.RecurringProcessingModelEnum": CreateCheckoutSessionResponse.RecurringProcessingModelEnum, + "CreateCheckoutSessionResponse.ShopperInteractionEnum": CreateCheckoutSessionResponse.ShopperInteractionEnum, + "CreatePaymentAmountUpdateRequest.ReasonEnum": CreatePaymentAmountUpdateRequest.ReasonEnum, + "CreatePaymentLinkRequest.RecurringProcessingModelEnum": CreatePaymentLinkRequest.RecurringProcessingModelEnum, + "CreatePaymentLinkRequest.RequiredShopperFieldsEnum": CreatePaymentLinkRequest.RequiredShopperFieldsEnum, + "CreatePaymentLinkRequest.StorePaymentMethodModeEnum": CreatePaymentLinkRequest.StorePaymentMethodModeEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "DokuDetails.TypeEnum": DokuDetails.TypeEnum, + "DonationResponse.StatusEnum": DonationResponse.StatusEnum, + "DotpayDetails.TypeEnum": DotpayDetails.TypeEnum, + "DragonpayDetails.TypeEnum": DragonpayDetails.TypeEnum, + "EcontextVoucherDetails.TypeEnum": EcontextVoucherDetails.TypeEnum, + "GenericIssuerPaymentMethodDetails.TypeEnum": GenericIssuerPaymentMethodDetails.TypeEnum, + "GiropayDetails.TypeEnum": GiropayDetails.TypeEnum, + "GooglePayDetails.FundingSourceEnum": GooglePayDetails.FundingSourceEnum, + "GooglePayDetails.TypeEnum": GooglePayDetails.TypeEnum, + "IdealDetails.TypeEnum": IdealDetails.TypeEnum, + "InstallmentOption.PlansEnum": InstallmentOption.PlansEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "KlarnaDetails.TypeEnum": KlarnaDetails.TypeEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MasterpassDetails.FundingSourceEnum": MasterpassDetails.FundingSourceEnum, + "MasterpassDetails.TypeEnum": MasterpassDetails.TypeEnum, + "MbwayDetails.TypeEnum": MbwayDetails.TypeEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "MobilePayDetails.TypeEnum": MobilePayDetails.TypeEnum, + "MolPayDetails.TypeEnum": MolPayDetails.TypeEnum, + "OpenInvoiceDetails.TypeEnum": OpenInvoiceDetails.TypeEnum, + "PayPalDetails.SubtypeEnum": PayPalDetails.SubtypeEnum, + "PayPalDetails.TypeEnum": PayPalDetails.TypeEnum, + "PayUUpiDetails.TypeEnum": PayUUpiDetails.TypeEnum, + "PayWithGoogleDetails.FundingSourceEnum": PayWithGoogleDetails.FundingSourceEnum, + "PayWithGoogleDetails.TypeEnum": PayWithGoogleDetails.TypeEnum, + "PaymentAmountUpdateResource.ReasonEnum": PaymentAmountUpdateResource.ReasonEnum, + "PaymentAmountUpdateResource.StatusEnum": PaymentAmountUpdateResource.StatusEnum, + "PaymentCancelResource.StatusEnum": PaymentCancelResource.StatusEnum, + "PaymentCaptureResource.StatusEnum": PaymentCaptureResource.StatusEnum, + "PaymentDetails.TypeEnum": PaymentDetails.TypeEnum, + "PaymentDetailsResponse.ResultCodeEnum": PaymentDetailsResponse.ResultCodeEnum, + "PaymentDonationRequest.ChannelEnum": PaymentDonationRequest.ChannelEnum, + "PaymentDonationRequest.EntityTypeEnum": PaymentDonationRequest.EntityTypeEnum, + "PaymentDonationRequest.RecurringProcessingModelEnum": PaymentDonationRequest.RecurringProcessingModelEnum, + "PaymentDonationRequest.ShopperInteractionEnum": PaymentDonationRequest.ShopperInteractionEnum, + "PaymentLinkResponse.RecurringProcessingModelEnum": PaymentLinkResponse.RecurringProcessingModelEnum, + "PaymentLinkResponse.RequiredShopperFieldsEnum": PaymentLinkResponse.RequiredShopperFieldsEnum, + "PaymentLinkResponse.StatusEnum": PaymentLinkResponse.StatusEnum, + "PaymentLinkResponse.StorePaymentMethodModeEnum": PaymentLinkResponse.StorePaymentMethodModeEnum, + "PaymentMethod.FundingSourceEnum": PaymentMethod.FundingSourceEnum, + "PaymentMethodsRequest.ChannelEnum": PaymentMethodsRequest.ChannelEnum, + "PaymentRefundResource.StatusEnum": PaymentRefundResource.StatusEnum, + "PaymentRequest.ChannelEnum": PaymentRequest.ChannelEnum, + "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, + "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, + "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, + "PaymentResponse.ResultCodeEnum": PaymentResponse.ResultCodeEnum, + "PaymentReversalResource.StatusEnum": PaymentReversalResource.StatusEnum, + "PaymentSetupRequest.ChannelEnum": PaymentSetupRequest.ChannelEnum, + "PaymentSetupRequest.EntityTypeEnum": PaymentSetupRequest.EntityTypeEnum, + "PaymentSetupRequest.ShopperInteractionEnum": PaymentSetupRequest.ShopperInteractionEnum, + "PaymentVerificationResponse.ResultCodeEnum": PaymentVerificationResponse.ResultCodeEnum, + "RatepayDetails.TypeEnum": RatepayDetails.TypeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "RecurringDetail.FundingSourceEnum": RecurringDetail.FundingSourceEnum, + "Redirect.MethodEnum": Redirect.MethodEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "SamsungPayDetails.FundingSourceEnum": SamsungPayDetails.FundingSourceEnum, + "SamsungPayDetails.TypeEnum": SamsungPayDetails.TypeEnum, + "SepaDirectDebitDetails.TypeEnum": SepaDirectDebitDetails.TypeEnum, + "ShopperInput.BillingAddressEnum": ShopperInput.BillingAddressEnum, + "ShopperInput.DeliveryAddressEnum": ShopperInput.DeliveryAddressEnum, + "ShopperInput.PersonalDetailsEnum": ShopperInput.PersonalDetailsEnum, + "Split.TypeEnum": Split.TypeEnum, + "StandalonePaymentCancelResource.StatusEnum": StandalonePaymentCancelResource.StatusEnum, + "StoredPaymentMethodDetails.TypeEnum": StoredPaymentMethodDetails.TypeEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, + "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, + "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDSRequestData.ChallengeWindowSizeEnum": ThreeDSRequestData.ChallengeWindowSizeEnum, + "ThreeDSRequestData.NativeThreeDSEnum": ThreeDSRequestData.NativeThreeDSEnum, + "ThreeDSRequestData.ThreeDSVersionEnum": ThreeDSRequestData.ThreeDSVersionEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, + "UpdatePaymentLinkRequest.StatusEnum": UpdatePaymentLinkRequest.StatusEnum, + "UpiCollectDetails.TypeEnum": UpiCollectDetails.TypeEnum, + "UpiIntentDetails.TypeEnum": UpiIntentDetails.TypeEnum, + "VippsDetails.TypeEnum": VippsDetails.TypeEnum, + "VisaCheckoutDetails.FundingSourceEnum": VisaCheckoutDetails.FundingSourceEnum, + "VisaCheckoutDetails.TypeEnum": VisaCheckoutDetails.TypeEnum, + "WeChatPayDetails.TypeEnum": WeChatPayDetails.TypeEnum, + "WeChatPayMiniProgramDetails.TypeEnum": WeChatPayMiniProgramDetails.TypeEnum, + "ZipDetails.TypeEnum": ZipDetails.TypeEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AchDetails": AchDetails, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "AfterpayDetails": AfterpayDetails, + "AmazonPayDetails": AmazonPayDetails, + "Amount": Amount, + "AndroidPayDetails": AndroidPayDetails, + "ApplePayDetails": ApplePayDetails, + "ApplePaySessionResponse": ApplePaySessionResponse, + "ApplicationInfo": ApplicationInfo, + "AuthenticationData": AuthenticationData, + "Avs": Avs, + "BacsDirectDebitDetails": BacsDirectDebitDetails, + "BankAccount": BankAccount, + "BillDeskDetails": BillDeskDetails, + "BlikDetails": BlikDetails, + "BrowserInfo": BrowserInfo, + "Card": Card, + "CardBrandDetails": CardBrandDetails, + "CardDetails": CardDetails, + "CardDetailsRequest": CardDetailsRequest, + "CardDetailsResponse": CardDetailsResponse, + "CellulantDetails": CellulantDetails, + "CheckoutAwaitAction": CheckoutAwaitAction, + "CheckoutBalanceCheckRequest": CheckoutBalanceCheckRequest, + "CheckoutBalanceCheckResponse": CheckoutBalanceCheckResponse, + "CheckoutBankTransferAction": CheckoutBankTransferAction, + "CheckoutCancelOrderRequest": CheckoutCancelOrderRequest, + "CheckoutCancelOrderResponse": CheckoutCancelOrderResponse, + "CheckoutCreateOrderRequest": CheckoutCreateOrderRequest, + "CheckoutCreateOrderResponse": CheckoutCreateOrderResponse, + "CheckoutDonationAction": CheckoutDonationAction, + "CheckoutOneTimePasscodeAction": CheckoutOneTimePasscodeAction, + "CheckoutOrder": CheckoutOrder, + "CheckoutOrderResponse": CheckoutOrderResponse, + "CheckoutQrCodeAction": CheckoutQrCodeAction, + "CheckoutRedirectAction": CheckoutRedirectAction, + "CheckoutSDKAction": CheckoutSDKAction, + "CheckoutSessionInstallmentOption": CheckoutSessionInstallmentOption, + "CheckoutThreeDS2Action": CheckoutThreeDS2Action, + "CheckoutUtilityRequest": CheckoutUtilityRequest, + "CheckoutUtilityResponse": CheckoutUtilityResponse, + "CheckoutVoucherAction": CheckoutVoucherAction, + "CommonField": CommonField, + "Company": Company, + "Configuration": Configuration, + "CreateApplePaySessionRequest": CreateApplePaySessionRequest, + "CreateCheckoutSessionRequest": CreateCheckoutSessionRequest, + "CreateCheckoutSessionResponse": CreateCheckoutSessionResponse, + "CreatePaymentAmountUpdateRequest": CreatePaymentAmountUpdateRequest, + "CreatePaymentCancelRequest": CreatePaymentCancelRequest, + "CreatePaymentCaptureRequest": CreatePaymentCaptureRequest, + "CreatePaymentLinkRequest": CreatePaymentLinkRequest, + "CreatePaymentRefundRequest": CreatePaymentRefundRequest, + "CreatePaymentReversalRequest": CreatePaymentReversalRequest, + "CreateStandalonePaymentCancelRequest": CreateStandalonePaymentCancelRequest, + "DetailsRequest": DetailsRequest, + "DeviceRenderOptions": DeviceRenderOptions, + "DokuDetails": DokuDetails, + "DonationResponse": DonationResponse, + "DotpayDetails": DotpayDetails, + "DragonpayDetails": DragonpayDetails, + "EcontextVoucherDetails": EcontextVoucherDetails, + "ExternalPlatform": ExternalPlatform, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "GenericIssuerPaymentMethodDetails": GenericIssuerPaymentMethodDetails, + "GiropayDetails": GiropayDetails, + "GooglePayDetails": GooglePayDetails, + "IdealDetails": IdealDetails, + "InputDetail": InputDetail, + "InstallmentOption": InstallmentOption, + "Installments": Installments, + "InstallmentsNumber": InstallmentsNumber, + "Item": Item, + "KlarnaDetails": KlarnaDetails, + "LineItem": LineItem, + "Mandate": Mandate, + "MasterpassDetails": MasterpassDetails, + "MbwayDetails": MbwayDetails, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "MobilePayDetails": MobilePayDetails, + "MolPayDetails": MolPayDetails, + "Name": Name, + "OpenInvoiceDetails": OpenInvoiceDetails, + "PayPalDetails": PayPalDetails, + "PayUUpiDetails": PayUUpiDetails, + "PayWithGoogleDetails": PayWithGoogleDetails, + "PaymentAmountUpdateResource": PaymentAmountUpdateResource, + "PaymentCancelResource": PaymentCancelResource, + "PaymentCaptureResource": PaymentCaptureResource, + "PaymentCompletionDetails": PaymentCompletionDetails, + "PaymentDetails": PaymentDetails, + "PaymentDetailsResponse": PaymentDetailsResponse, + "PaymentDonationRequest": PaymentDonationRequest, + "PaymentLinkResponse": PaymentLinkResponse, + "PaymentMethod": PaymentMethod, + "PaymentMethodGroup": PaymentMethodGroup, + "PaymentMethodIssuer": PaymentMethodIssuer, + "PaymentMethodsRequest": PaymentMethodsRequest, + "PaymentMethodsResponse": PaymentMethodsResponse, + "PaymentRefundResource": PaymentRefundResource, + "PaymentRequest": PaymentRequest, + "PaymentResponse": PaymentResponse, + "PaymentReversalResource": PaymentReversalResource, + "PaymentSetupRequest": PaymentSetupRequest, + "PaymentSetupResponse": PaymentSetupResponse, + "PaymentVerificationRequest": PaymentVerificationRequest, + "PaymentVerificationResponse": PaymentVerificationResponse, + "Phone": Phone, + "RatepayDetails": RatepayDetails, + "Recurring": Recurring, + "RecurringDetail": RecurringDetail, + "Redirect": Redirect, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ResponsePaymentMethod": ResponsePaymentMethod, + "RiskData": RiskData, + "SDKEphemPubKey": SDKEphemPubKey, + "SamsungPayDetails": SamsungPayDetails, + "SepaDirectDebitDetails": SepaDirectDebitDetails, + "ServiceError": ServiceError, + "ServiceError2": ServiceError2, + "ShopperInput": ShopperInput, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "StandalonePaymentCancelResource": StandalonePaymentCancelResource, + "StoredDetails": StoredDetails, + "StoredPaymentMethod": StoredPaymentMethod, + "StoredPaymentMethodDetails": StoredPaymentMethodDetails, + "SubInputDetail": SubInputDetail, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDS2ResponseData": ThreeDS2ResponseData, + "ThreeDS2Result": ThreeDS2Result, + "ThreeDSRequestData": ThreeDSRequestData, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, + "UpdatePaymentLinkRequest": UpdatePaymentLinkRequest, + "UpiCollectDetails": UpiCollectDetails, + "UpiIntentDetails": UpiIntentDetails, + "VippsDetails": VippsDetails, + "VisaCheckoutDetails": VisaCheckoutDetails, + "WeChatPayDetails": WeChatPayDetails, + "WeChatPayMiniProgramDetails": WeChatPayMiniProgramDetails, + "ZipDetails": ZipDetails, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/checkout/molPayDetails.ts b/src/typings/checkout/molPayDetails.ts index 2d0f9e8..d35195f 100644 --- a/src/typings/checkout/molPayDetails.ts +++ b/src/typings/checkout/molPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class MolPayDetails { /** * The shopper\'s bank. Specify this with the issuer value that corresponds to this bank. @@ -35,11 +17,29 @@ export class MolPayDetails { * **molpay** */ 'type': MolPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "issuer", + "baseName": "issuer", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "MolPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return MolPayDetails.attributeTypeMap; + } } export namespace MolPayDetails { export enum TypeEnum { - FpxMY = 'molpay_ebanking_fpx_MY', - TH = 'molpay_ebanking_TH' + FpxMy = 'molpay_ebanking_fpx_MY', + Th = 'molpay_ebanking_TH' } } diff --git a/src/typings/checkout/name.ts b/src/typings/checkout/name.ts index 2c5449e..439ba32 100644 --- a/src/typings/checkout/name.ts +++ b/src/typings/checkout/name.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Name { /** * The first name. @@ -35,5 +17,23 @@ export class Name { * The last name. */ 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } } diff --git a/src/typings/checkout/openInvoiceDetails.ts b/src/typings/checkout/openInvoiceDetails.ts index 75edaef..5a7f98e 100644 --- a/src/typings/checkout/openInvoiceDetails.ts +++ b/src/typings/checkout/openInvoiceDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class OpenInvoiceDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class OpenInvoiceDetails { * **openinvoice** */ 'type'?: OpenInvoiceDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "OpenInvoiceDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return OpenInvoiceDetails.attributeTypeMap; + } } export namespace OpenInvoiceDetails { diff --git a/src/typings/checkout/payPalDetails.ts b/src/typings/checkout/payPalDetails.ts index 43d4981..6326c24 100644 --- a/src/typings/checkout/payPalDetails.ts +++ b/src/typings/checkout/payPalDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayPalDetails { /** * The unique ID associated with the order. @@ -51,6 +33,44 @@ export class PayPalDetails { * **paypal** */ 'type': PayPalDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "orderID", + "baseName": "orderID", + "type": "string" + }, + { + "name": "payerID", + "baseName": "payerID", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "subtype", + "baseName": "subtype", + "type": "PayPalDetails.SubtypeEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "PayPalDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PayPalDetails.attributeTypeMap; + } } export namespace PayPalDetails { diff --git a/src/typings/checkout/payUUpiDetails.ts b/src/typings/checkout/payUUpiDetails.ts index f942516..3bddd94 100644 --- a/src/typings/checkout/payUUpiDetails.ts +++ b/src/typings/checkout/payUUpiDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayUUpiDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -47,10 +29,43 @@ export class PayUUpiDetails { * The virtual payment address for UPI. */ 'virtualPaymentAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PayUUpiDetails.TypeEnum" + }, + { + "name": "virtualPaymentAddress", + "baseName": "virtualPaymentAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayUUpiDetails.attributeTypeMap; + } } export namespace PayUUpiDetails { export enum TypeEnum { - PayuINUpi = 'payu_IN_upi' + PayuInUpi = 'payu_IN_upi' } } diff --git a/src/typings/checkout/payWithGoogleDetails.ts b/src/typings/checkout/payWithGoogleDetails.ts index 1aa3f09..45c3da1 100644 --- a/src/typings/checkout/payWithGoogleDetails.ts +++ b/src/typings/checkout/payWithGoogleDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayWithGoogleDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class PayWithGoogleDetails { * **paywithgoogle** */ 'type'?: PayWithGoogleDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "PayWithGoogleDetails.FundingSourceEnum" + }, + { + "name": "googlePayToken", + "baseName": "googlePayToken", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "PayWithGoogleDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PayWithGoogleDetails.attributeTypeMap; + } } export namespace PayWithGoogleDetails { diff --git a/src/typings/checkout/paymentAmountUpdateResource.ts b/src/typings/checkout/paymentAmountUpdateResource.ts index 2981dc0..f81bdda 100644 --- a/src/typings/checkout/paymentAmountUpdateResource.ts +++ b/src/typings/checkout/paymentAmountUpdateResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { Split } from './split'; @@ -58,6 +40,54 @@ export class PaymentAmountUpdateResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentAmountUpdateResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reason", + "baseName": "reason", + "type": "PaymentAmountUpdateResource.ReasonEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentAmountUpdateResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentAmountUpdateResource.attributeTypeMap; + } } export namespace PaymentAmountUpdateResource { diff --git a/src/typings/checkout/paymentCancelResource.ts b/src/typings/checkout/paymentCancelResource.ts index 53d2c5e..5529493 100644 --- a/src/typings/checkout/paymentCancelResource.ts +++ b/src/typings/checkout/paymentCancelResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentCancelResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class PaymentCancelResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentCancelResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentCancelResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentCancelResource.attributeTypeMap; + } } export namespace PaymentCancelResource { diff --git a/src/typings/checkout/paymentCaptureResource.ts b/src/typings/checkout/paymentCaptureResource.ts index 2ccb9e7..a48b256 100644 --- a/src/typings/checkout/paymentCaptureResource.ts +++ b/src/typings/checkout/paymentCaptureResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -59,6 +41,54 @@ export class PaymentCaptureResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentCaptureResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentCaptureResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentCaptureResource.attributeTypeMap; + } } export namespace PaymentCaptureResource { diff --git a/src/typings/checkout/paymentCompletionDetails.ts b/src/typings/checkout/paymentCompletionDetails.ts index 6318856..a700af2 100644 --- a/src/typings/checkout/paymentCompletionDetails.ts +++ b/src/typings/checkout/paymentCompletionDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentCompletionDetails { /** * A payment session identifier returned by the card issuer. @@ -91,5 +73,93 @@ export class PaymentCompletionDetails { * Base64-encoded string returned by the Component after the challenge flow. It contains the following parameter: `threeDSCompInd`. */ 'threeds2Fingerprint'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "mD", + "baseName": "MD", + "type": "string" + }, + { + "name": "paReq", + "baseName": "PaReq", + "type": "string" + }, + { + "name": "paRes", + "baseName": "PaRes", + "type": "string" + }, + { + "name": "billingToken", + "baseName": "billingToken", + "type": "string" + }, + { + "name": "cupsecureplusSmscode", + "baseName": "cupsecureplus.smscode", + "type": "string" + }, + { + "name": "facilitatorAccessToken", + "baseName": "facilitatorAccessToken", + "type": "string" + }, + { + "name": "oneTimePasscode", + "baseName": "oneTimePasscode", + "type": "string" + }, + { + "name": "orderID", + "baseName": "orderID", + "type": "string" + }, + { + "name": "payerID", + "baseName": "payerID", + "type": "string" + }, + { + "name": "payload", + "baseName": "payload", + "type": "string" + }, + { + "name": "paymentID", + "baseName": "paymentID", + "type": "string" + }, + { + "name": "paymentStatus", + "baseName": "paymentStatus", + "type": "string" + }, + { + "name": "redirectResult", + "baseName": "redirectResult", + "type": "string" + }, + { + "name": "threeDSResult", + "baseName": "threeDSResult", + "type": "string" + }, + { + "name": "threeds2ChallengeResult", + "baseName": "threeds2.challengeResult", + "type": "string" + }, + { + "name": "threeds2Fingerprint", + "baseName": "threeds2.fingerprint", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentCompletionDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentDetails.ts b/src/typings/checkout/paymentDetails.ts index 6b2ebbf..44de03d 100644 --- a/src/typings/checkout/paymentDetails.ts +++ b/src/typings/checkout/paymentDetails.ts @@ -1,44 +1,40 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentDetails { /** * The payment method type. */ 'type'?: PaymentDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "PaymentDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentDetails.attributeTypeMap; + } } export namespace PaymentDetails { export enum TypeEnum { Alipay = 'alipay', Multibanco = 'multibanco', - BankTransferIBAN = 'bankTransfer_IBAN', + BankTransferIban = 'bankTransfer_IBAN', Paybright = 'paybright', + Paynow = 'paynow', Affirm = 'affirm', AffirmPos = 'affirm_pos', Trustlyvector = 'trustlyvector', @@ -53,24 +49,27 @@ export namespace PaymentDetails { KcpBanktransfer = 'kcp_banktransfer', KcpPayco = 'kcp_payco', KcpCreditcard = 'kcp_creditcard', - WechatpaySDK = 'wechatpaySDK', - WechatpayQR = 'wechatpayQR', + WechatpaySdk = 'wechatpaySDK', + WechatpayQr = 'wechatpayQR', WechatpayWeb = 'wechatpayWeb', - WalletIN = 'wallet_IN', - PayuINCashcard = 'payu_IN_cashcard', - PayuINNb = 'payu_IN_nb', + MolpayBoost = 'molpay_boost', + WalletIn = 'wallet_IN', + PayuInCashcard = 'payu_IN_cashcard', + PayuInNb = 'payu_IN_nb', UpiQr = 'upi_qr', Paytm = 'paytm', - MolpayEbankingVN = 'molpay_ebanking_VN', - OpenbankingUK = 'openbanking_UK', - EbankingFI = 'ebanking_FI', - MolpayEbankingMY = 'molpay_ebanking_MY', - MolpayEbankingDirectMY = 'molpay_ebanking_direct_MY', + MolpayEbankingVn = 'molpay_ebanking_VN', + OnlineBankingPl = 'onlineBanking_PL', + OpenbankingUk = 'openbanking_UK', + EbankingFi = 'ebanking_FI', + MolpayEbankingMy = 'molpay_ebanking_MY', + MolpayEbankingDirectMy = 'molpay_ebanking_direct_MY', Swish = 'swish', Twint = 'twint', Pix = 'pix', Walley = 'walley', WalleyB2b = 'walley_b2b', + Alma = 'alma', MolpayFpx = 'molpay_fpx', Konbini = 'konbini', DirectEbanking = 'directEbanking', @@ -92,7 +91,7 @@ export namespace PaymentDetails { GopayWallet = 'gopay_wallet', Poli = 'poli', KcpNaverpay = 'kcp_naverpay', - OnlinebankingIN = 'onlinebanking_IN', + OnlinebankingIn = 'onlinebanking_IN', Fawry = 'fawry', Atome = 'atome', Moneybookers = 'moneybookers', @@ -115,6 +114,7 @@ export namespace PaymentDetails { Touchngo = 'touchngo', Maybank2uMae = 'maybank2u_mae', Duitnow = 'duitnow', + Promptpay = 'promptpay', TwintPos = 'twint_pos', AlipayHk = 'alipay_hk', AlipayHkWeb = 'alipay_hk_web', diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index be94ee0..deac6e3 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { FraudResult } from './fraudResult'; @@ -34,7 +16,7 @@ import { ThreeDS2Result } from './threeDS2Result'; export class PaymentDetailsResponse { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; 'amount'?: Amount; @@ -75,6 +57,89 @@ export class PaymentDetailsResponse { * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ 'threeDSPaymentData'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "ResponsePaymentMethod" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentDetailsResponse.ResultCodeEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "threeDS2ResponseData", + "baseName": "threeDS2ResponseData", + "type": "ThreeDS2ResponseData" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDSPaymentData", + "baseName": "threeDSPaymentData", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentDetailsResponse.attributeTypeMap; + } } export namespace PaymentDetailsResponse { diff --git a/src/typings/checkout/paymentDonationRequest.ts b/src/typings/checkout/paymentDonationRequest.ts index 1e54c78..db2a173 100644 --- a/src/typings/checkout/paymentDonationRequest.ts +++ b/src/typings/checkout/paymentDonationRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { AchDetails } from './achDetails'; import { Address } from './address'; @@ -236,7 +218,7 @@ export class PaymentDonationRequest { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -285,11 +267,334 @@ export class PaymentDonationRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentDonationRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "donationAccount", + "baseName": "donationAccount", + "type": "string" + }, + { + "name": "donationOriginalPspReference", + "baseName": "donationOriginalPspReference", + "type": "string" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentDonationRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentDonationRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentDonationRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentDonationRequest.attributeTypeMap; + } } export namespace PaymentDonationRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -306,6 +611,6 @@ export namespace PaymentDonationRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 9b9ca0d..293fafa 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -173,6 +155,209 @@ export class PaymentLinkResponse { * The URL at which the shopper can complete the payment. */ 'url': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "deliverAt", + "baseName": "deliverAt", + "type": "Date" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "installmentOptions", + "baseName": "installmentOptions", + "type": "{ [key: string]: InstallmentOption; }" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentLinkResponse.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "requiredShopperFields", + "baseName": "requiredShopperFields", + "type": "Array" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "reusable", + "baseName": "reusable", + "type": "boolean" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentLinkResponse.StatusEnum" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethodMode", + "baseName": "storePaymentMethodMode", + "type": "PaymentLinkResponse.StorePaymentMethodModeEnum" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "themeId", + "baseName": "themeId", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentLinkResponse.attributeTypeMap; + } } export namespace PaymentLinkResponse { diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts index 0077658..107893b 100644 --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; import { PaymentMethodIssuer } from './paymentMethodIssuer'; @@ -63,6 +45,59 @@ export class PaymentMethod { * The unique payment method code. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "PaymentMethod.FundingSourceEnum" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "issuers", + "baseName": "issuers", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethod.attributeTypeMap; + } } export namespace PaymentMethod { diff --git a/src/typings/checkout/paymentMethodGroup.ts b/src/typings/checkout/paymentMethodGroup.ts index f3b5d9f..1ace311 100644 --- a/src/typings/checkout/paymentMethodGroup.ts +++ b/src/typings/checkout/paymentMethodGroup.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentMethodGroup { /** * The name of the group. @@ -39,5 +21,28 @@ export class PaymentMethodGroup { * The unique code of the group. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "paymentMethodData", + "baseName": "paymentMethodData", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodGroup.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentMethodIssuer.ts b/src/typings/checkout/paymentMethodIssuer.ts index 614c058..000a3c8 100644 --- a/src/typings/checkout/paymentMethodIssuer.ts +++ b/src/typings/checkout/paymentMethodIssuer.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentMethodIssuer { /** * A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. @@ -39,5 +21,28 @@ export class PaymentMethodIssuer { * A localized name of the issuer. */ 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "disabled", + "baseName": "disabled", + "type": "boolean" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodIssuer.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index 2a1e50a..49e734e 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutOrder } from './checkoutOrder'; @@ -71,11 +53,79 @@ export class PaymentMethodsRequest { * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. */ 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentMethodsRequest.ChannelEnum" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "splitCardFundingSources", + "baseName": "splitCardFundingSources", + "type": "boolean" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsRequest.attributeTypeMap; + } } export namespace PaymentMethodsRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } diff --git a/src/typings/checkout/paymentMethodsResponse.ts b/src/typings/checkout/paymentMethodsResponse.ts index 8317fd7..f1eeab6 100644 --- a/src/typings/checkout/paymentMethodsResponse.ts +++ b/src/typings/checkout/paymentMethodsResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { PaymentMethod } from './paymentMethod'; import { StoredPaymentMethod } from './storedPaymentMethod'; @@ -37,5 +19,23 @@ export class PaymentMethodsResponse { * List of all stored payment methods. */ 'storedPaymentMethods'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentMethods", + "baseName": "paymentMethods", + "type": "Array" + }, + { + "name": "storedPaymentMethods", + "baseName": "storedPaymentMethods", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodsResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentRefundResource.ts b/src/typings/checkout/paymentRefundResource.ts index c3589b2..c05ab84 100644 --- a/src/typings/checkout/paymentRefundResource.ts +++ b/src/typings/checkout/paymentRefundResource.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { LineItem } from './lineItem'; import { Split } from './split'; @@ -59,6 +41,54 @@ export class PaymentRefundResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentRefundResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentRefundResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentRefundResource.attributeTypeMap; + } } export namespace PaymentRefundResource { diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index f1b6138..0c60e10 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AccountInfo } from './accountInfo'; import { AchDetails } from './achDetails'; import { Address } from './address'; @@ -224,7 +206,7 @@ export class PaymentRequest { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -273,11 +255,319 @@ export class PaymentRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "authenticationData", + "baseName": "authenticationData", + "type": "AuthenticationData" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrder" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest.RecurringProcessingModelEnum" + }, + { + "name": "redirectFromIssuerMethod", + "baseName": "redirectFromIssuerMethod", + "type": "string" + }, + { + "name": "redirectToIssuerMethod", + "baseName": "redirectToIssuerMethod", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest.attributeTypeMap; + } } export namespace PaymentRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -294,6 +584,6 @@ export namespace PaymentRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index 986fe91..e4995e5 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Amount } from './amount'; import { CheckoutAwaitAction } from './checkoutAwaitAction'; import { CheckoutBankTransferAction } from './checkoutBankTransferAction'; @@ -47,7 +29,7 @@ export class PaymentResponse { */ 'action'?: CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction; /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; 'amount'?: Amount; @@ -84,6 +66,89 @@ export class PaymentResponse { * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ 'threeDSPaymentData'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "action", + "baseName": "action", + "type": "CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "donationToken", + "baseName": "donationToken", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "ResponsePaymentMethod" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentResponse.ResultCodeEnum" + }, + { + "name": "threeDS2ResponseData", + "baseName": "threeDS2ResponseData", + "type": "ThreeDS2ResponseData" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDSPaymentData", + "baseName": "threeDSPaymentData", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentResponse.attributeTypeMap; + } } export namespace PaymentResponse { diff --git a/src/typings/checkout/paymentReversalResource.ts b/src/typings/checkout/paymentReversalResource.ts index eaeb5aa..89a91a9 100644 --- a/src/typings/checkout/paymentReversalResource.ts +++ b/src/typings/checkout/paymentReversalResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentReversalResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class PaymentReversalResource { * The status of your request. This will always have the value **received**. */ 'status': PaymentReversalResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "PaymentReversalResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentReversalResource.attributeTypeMap; + } } export namespace PaymentReversalResource { diff --git a/src/typings/checkout/paymentSetupRequest.ts b/src/typings/checkout/paymentSetupRequest.ts index d849848..21ebaad 100644 --- a/src/typings/checkout/paymentSetupRequest.ts +++ b/src/typings/checkout/paymentSetupRequest.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Address } from './address'; import { Amount } from './amount'; import { ApplicationInfo } from './applicationInfo'; @@ -166,7 +148,7 @@ export class PaymentSetupRequest { */ 'shopperEmail'?: string; /** - * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'shopperIP'?: string; /** @@ -218,11 +200,284 @@ export class PaymentSetupRequest { * Set to true if the payment should be routed to a trusted MID. */ 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "allowedPaymentMethods", + "baseName": "allowedPaymentMethods", + "type": "Array" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "blockedPaymentMethods", + "baseName": "blockedPaymentMethods", + "type": "Array" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "channel", + "baseName": "channel", + "type": "PaymentSetupRequest.ChannelEnum" + }, + { + "name": "checkoutAttemptId", + "baseName": "checkoutAttemptId", + "type": "string" + }, + { + "name": "company", + "baseName": "company", + "type": "Company" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "Configuration" + }, + { + "name": "conversionId", + "baseName": "conversionId", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "enableOneClick", + "baseName": "enableOneClick", + "type": "boolean" + }, + { + "name": "enablePayOut", + "baseName": "enablePayOut", + "type": "boolean" + }, + { + "name": "enableRecurring", + "baseName": "enableRecurring", + "type": "boolean" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentSetupRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "lineItems", + "baseName": "lineItems", + "type": "Array" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "origin", + "baseName": "origin", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "riskData", + "baseName": "riskData", + "type": "RiskData" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "sessionValidity", + "baseName": "sessionValidity", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentSetupRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storePaymentMethod", + "baseName": "storePaymentMethod", + "type": "boolean" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "token", + "baseName": "token", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupRequest.attributeTypeMap; + } } export namespace PaymentSetupRequest { export enum ChannelEnum { - IOS = 'iOS', + IOs = 'iOS', Android = 'Android', Web = 'Web' } @@ -234,6 +489,6 @@ export namespace PaymentSetupRequest { Ecommerce = 'Ecommerce', ContAuth = 'ContAuth', Moto = 'Moto', - POS = 'POS' + Pos = 'POS' } } diff --git a/src/typings/checkout/paymentSetupResponse.ts b/src/typings/checkout/paymentSetupResponse.ts index 4fb3011..50f4b1a 100644 --- a/src/typings/checkout/paymentSetupResponse.ts +++ b/src/typings/checkout/paymentSetupResponse.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { RecurringDetail } from './recurringDetail'; export class PaymentSetupResponse { @@ -36,5 +18,23 @@ export class PaymentSetupResponse { * The detailed list of stored payment details required to generate payment forms. Will be empty if oneClick is set to false in the request. */ 'recurringDetails'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paymentSession", + "baseName": "paymentSession", + "type": "string" + }, + { + "name": "recurringDetails", + "baseName": "recurringDetails", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PaymentSetupResponse.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentVerificationRequest.ts b/src/typings/checkout/paymentVerificationRequest.ts index 85b23fc..8c087b3 100644 --- a/src/typings/checkout/paymentVerificationRequest.ts +++ b/src/typings/checkout/paymentVerificationRequest.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PaymentVerificationRequest { /** * Encrypted and signed payment result data. You should receive this value from the Checkout SDK after the shopper completes the payment. */ 'payload': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payload", + "baseName": "payload", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationRequest.attributeTypeMap; + } } diff --git a/src/typings/checkout/paymentVerificationResponse.ts b/src/typings/checkout/paymentVerificationResponse.ts index 5b65a4b..2f2ed67 100644 --- a/src/typings/checkout/paymentVerificationResponse.ts +++ b/src/typings/checkout/paymentVerificationResponse.ts @@ -1,37 +1,19 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { CheckoutOrderResponse } from './checkoutOrderResponse'; import { FraudResult } from './fraudResult'; import { ServiceError2 } from './serviceError2'; export class PaymentVerificationResponse { /** - * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; 'fraudResult'?: FraudResult; @@ -61,6 +43,64 @@ export class PaymentVerificationResponse { * The shopperLocale value provided in the payment request. */ 'shopperLocale': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "order", + "baseName": "order", + "type": "CheckoutOrderResponse" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "refusalReasonCode", + "baseName": "refusalReasonCode", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentVerificationResponse.ResultCodeEnum" + }, + { + "name": "serviceError", + "baseName": "serviceError", + "type": "ServiceError2" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentVerificationResponse.attributeTypeMap; + } } export namespace PaymentVerificationResponse { diff --git a/src/typings/checkout/phone.ts b/src/typings/checkout/phone.ts index 271915d..02daea6 100644 --- a/src/typings/checkout/phone.ts +++ b/src/typings/checkout/phone.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Phone { /** * Country code. Length: 1–3 characters. @@ -35,5 +17,23 @@ export class Phone { * Subscriber number. Maximum length: 15 characters. */ 'subscriber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cc", + "baseName": "cc", + "type": "string" + }, + { + "name": "subscriber", + "baseName": "subscriber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Phone.attributeTypeMap; + } } diff --git a/src/typings/checkout/ratepayDetails.ts b/src/typings/checkout/ratepayDetails.ts index cbff8ee..6788011 100644 --- a/src/typings/checkout/ratepayDetails.ts +++ b/src/typings/checkout/ratepayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class RatepayDetails { /** * The address where to send the invoice. @@ -51,6 +33,44 @@ export class RatepayDetails { * **ratepay** */ 'type': RatepayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "string" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "string" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "RatepayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return RatepayDetails.attributeTypeMap; + } } export namespace RatepayDetails { diff --git a/src/typings/checkout/recurring.ts b/src/typings/checkout/recurring.ts index f5a11d2..8c21ef7 100644 --- a/src/typings/checkout/recurring.ts +++ b/src/typings/checkout/recurring.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). @@ -47,16 +29,49 @@ export class Recurring { * The name of the token service. */ 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } } export namespace Recurring { export enum ContractEnum { - ONECLICK = 'ONECLICK', - RECURRING = 'RECURRING', - PAYOUT = 'PAYOUT' + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' } export enum TokenServiceEnum { - VISATOKENSERVICE = 'VISATOKENSERVICE', - MCTOKENSERVICE = 'MCTOKENSERVICE' + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' } } diff --git a/src/typings/checkout/recurringDetail.ts b/src/typings/checkout/recurringDetail.ts index 54ddbcb..4e0a59d 100644 --- a/src/typings/checkout/recurringDetail.ts +++ b/src/typings/checkout/recurringDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { InputDetail } from './inputDetail'; import { PaymentMethodGroup } from './paymentMethodGroup'; import { PaymentMethodIssuer } from './paymentMethodIssuer'; @@ -69,6 +51,69 @@ export class RecurringDetail { * The unique payment method code. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "brands", + "baseName": "brands", + "type": "Array" + }, + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "RecurringDetail.FundingSourceEnum" + }, + { + "name": "group", + "baseName": "group", + "type": "PaymentMethodGroup" + }, + { + "name": "inputDetails", + "baseName": "inputDetails", + "type": "Array" + }, + { + "name": "issuers", + "baseName": "issuers", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedDetails", + "baseName": "storedDetails", + "type": "StoredDetails" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RecurringDetail.attributeTypeMap; + } } export namespace RecurringDetail { diff --git a/src/typings/checkout/redirect.ts b/src/typings/checkout/redirect.ts index 17ddfdd..cc114e0 100644 --- a/src/typings/checkout/redirect.ts +++ b/src/typings/checkout/redirect.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Redirect { /** * When the redirect URL must be accessed via POST, use this data to post to the redirect URL. @@ -39,11 +21,34 @@ export class Redirect { * The URL, to which you must redirect a shopper to complete a payment. */ 'url'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "{ [key: string]: string; }" + }, + { + "name": "method", + "baseName": "method", + "type": "Redirect.MethodEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Redirect.attributeTypeMap; + } } export namespace Redirect { export enum MethodEnum { - GET = 'GET', - POST = 'POST' + Get = 'GET', + Post = 'POST' } } diff --git a/src/typings/checkout/responseAdditionalData3DSecure.ts b/src/typings/checkout/responseAdditionalData3DSecure.ts index 5258452..4f1ef12 100644 --- a/src/typings/checkout/responseAdditionalData3DSecure.ts +++ b/src/typings/checkout/responseAdditionalData3DSecure.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalData3DSecure { /** * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. @@ -47,5 +29,38 @@ export class ResponseAdditionalData3DSecure { * Indicates whether a card is enrolled for 3D Secure 2. */ 'threeds2CardEnrolled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "scaExemptionRequested", + "baseName": "scaExemptionRequested", + "type": "string" + }, + { + "name": "threeds2CardEnrolled", + "baseName": "threeds2.cardEnrolled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalData3DSecure.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataBillingAddress.ts b/src/typings/checkout/responseAdditionalDataBillingAddress.ts index 2e2c5c0..e1b3b20 100644 --- a/src/typings/checkout/responseAdditionalDataBillingAddress.ts +++ b/src/typings/checkout/responseAdditionalDataBillingAddress.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataBillingAddress { /** * The billing address city passed in the payment request. @@ -51,5 +33,43 @@ export class ResponseAdditionalDataBillingAddress { * The billing address street passed in the payment request. */ 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataCard.ts b/src/typings/checkout/responseAdditionalDataCard.ts index a00cfe1..a45196e 100644 --- a/src/typings/checkout/responseAdditionalDataCard.ts +++ b/src/typings/checkout/responseAdditionalDataCard.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataCard { /** * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 @@ -59,5 +41,53 @@ export class ResponseAdditionalDataCard { * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 */ 'issuerBin'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + }, + { + "name": "issuerBin", + "baseName": "issuerBin", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataCommon.ts b/src/typings/checkout/responseAdditionalDataCommon.ts index 3c0477d..17d6611 100644 --- a/src/typings/checkout/responseAdditionalDataCommon.ts +++ b/src/typings/checkout/responseAdditionalDataCommon.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataCommon { /** * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. @@ -263,12 +245,315 @@ export class ResponseAdditionalDataCommon { * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= */ 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "coBrandedWith", + "baseName": "coBrandedWith", + "type": "string" + }, + { + "name": "cvcResult", + "baseName": "cvcResult", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fraudManualReview", + "baseName": "fraudManualReview", + "type": "string" + }, + { + "name": "fraudResultType", + "baseName": "fraudResultType", + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "isCardCommercial", + "baseName": "isCardCommercial", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "liabilityShift", + "baseName": "liabilityShift", + "type": "string" + }, + { + "name": "mcBankNetReferenceNumber", + "baseName": "mcBankNetReferenceNumber", + "type": "string" + }, + { + "name": "merchantAdviceCode", + "baseName": "merchantAdviceCode", + "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "realtimeAccountUpdaterStatus", + "baseName": "realtimeAccountUpdaterStatus", + "type": "string" + }, + { + "name": "receiptFreeText", + "baseName": "receiptFreeText", + "type": "string" + }, + { + "name": "recurringContractTypes", + "baseName": "recurring.contractTypes", + "type": "string" + }, + { + "name": "recurringFirstPspReference", + "baseName": "recurring.firstPspReference", + "type": "string" + }, + { + "name": "recurringRecurringDetailReference", + "baseName": "recurring.recurringDetailReference", + "type": "string" + }, + { + "name": "recurringShopperReference", + "baseName": "recurring.shopperReference", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" + }, + { + "name": "referred", + "baseName": "referred", + "type": "string" + }, + { + "name": "refusalReasonRaw", + "baseName": "refusalReasonRaw", + "type": "string" + }, + { + "name": "requestAmount", + "baseName": "requestAmount", + "type": "string" + }, + { + "name": "requestCurrencyCode", + "baseName": "requestCurrencyCode", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "visaTransactionId", + "baseName": "visaTransactionId", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } } export namespace ResponseAdditionalDataCommon { export enum FraudResultTypeEnum { - GREEN = 'GREEN', - FRAUD = 'FRAUD' + Green = 'GREEN', + Fraud = 'FRAUD' } export enum MerchantAdviceCodeEnum { _01NewAccountInformationAvailable = '01: New account information available', diff --git a/src/typings/checkout/responseAdditionalDataInstallments.ts b/src/typings/checkout/responseAdditionalDataInstallments.ts index e5329d7..a6b514c 100644 --- a/src/typings/checkout/responseAdditionalDataInstallments.ts +++ b/src/typings/checkout/responseAdditionalDataInstallments.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataInstallments { /** * Type of installment. The value of `installmentType` should be **IssuerFinanced**. @@ -75,5 +57,73 @@ export class ResponseAdditionalDataInstallments { * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. */ 'installmentsValue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts index 1f61f45..3659415 100644 --- a/src/typings/checkout/responseAdditionalDataNetworkTokens.ts +++ b/src/typings/checkout/responseAdditionalDataNetworkTokens.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataNetworkTokens { /** * Indicates whether a network token is available for the specified card. @@ -39,5 +21,28 @@ export class ResponseAdditionalDataNetworkTokens { * The last four digits of a network token. */ 'networkTokenTokenSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokenAvailable", + "baseName": "networkToken.available", + "type": "string" + }, + { + "name": "networkTokenBin", + "baseName": "networkToken.bin", + "type": "string" + }, + { + "name": "networkTokenTokenSummary", + "baseName": "networkToken.tokenSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataNetworkTokens.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataOpi.ts b/src/typings/checkout/responseAdditionalDataOpi.ts index 800cb05..13b0a27 100644 --- a/src/typings/checkout/responseAdditionalDataOpi.ts +++ b/src/typings/checkout/responseAdditionalDataOpi.ts @@ -1,35 +1,30 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataOpi { /** * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). */ 'opiTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiTransToken", + "baseName": "opi.transToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataOpi.attributeTypeMap; + } } diff --git a/src/typings/checkout/responseAdditionalDataSepa.ts b/src/typings/checkout/responseAdditionalDataSepa.ts index 183657a..066e177 100644 --- a/src/typings/checkout/responseAdditionalDataSepa.ts +++ b/src/typings/checkout/responseAdditionalDataSepa.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponseAdditionalDataSepa { /** * The transaction signature date. Format: yyyy-MM-dd @@ -39,5 +21,28 @@ export class ResponseAdditionalDataSepa { * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF */ 'sepadirectdebitSequenceType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sepadirectdebitDateOfSignature", + "baseName": "sepadirectdebit.dateOfSignature", + "type": "string" + }, + { + "name": "sepadirectdebitMandateId", + "baseName": "sepadirectdebit.mandateId", + "type": "string" + }, + { + "name": "sepadirectdebitSequenceType", + "baseName": "sepadirectdebit.sequenceType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSepa.attributeTypeMap; + } } diff --git a/src/typings/checkout/responsePaymentMethod.ts b/src/typings/checkout/responsePaymentMethod.ts index 9f51c1a..4128d0d 100644 --- a/src/typings/checkout/responsePaymentMethod.ts +++ b/src/typings/checkout/responsePaymentMethod.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ResponsePaymentMethod { /** * The payment method brand. @@ -35,5 +17,23 @@ export class ResponsePaymentMethod { * The payment method type. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponsePaymentMethod.attributeTypeMap; + } } diff --git a/src/typings/checkout/riskData.ts b/src/typings/checkout/riskData.ts index d7e610b..6334c8e 100644 --- a/src/typings/checkout/riskData.ts +++ b/src/typings/checkout/riskData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class RiskData { /** * Contains client-side data, like the device fingerprint, cookies, and specific browser settings. @@ -43,5 +25,33 @@ export class RiskData { * The risk profile to assign to this payment. When left empty, the merchant-level account\'s default risk profile will be applied. */ 'profileReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "clientData", + "baseName": "clientData", + "type": "string" + }, + { + "name": "customFields", + "baseName": "customFields", + "type": "{ [key: string]: string; }" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "profileReference", + "baseName": "profileReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RiskData.attributeTypeMap; + } } diff --git a/src/typings/checkout/sDKEphemPubKey.ts b/src/typings/checkout/sDKEphemPubKey.ts index 16f1678..6414d18 100644 --- a/src/typings/checkout/sDKEphemPubKey.ts +++ b/src/typings/checkout/sDKEphemPubKey.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SDKEphemPubKey { /** * The `crv` value as received from the 3D Secure 2 SDK. @@ -43,5 +25,33 @@ export class SDKEphemPubKey { * The `y` value as received from the 3D Secure 2 SDK. */ 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } } diff --git a/src/typings/checkout/samsungPayDetails.ts b/src/typings/checkout/samsungPayDetails.ts index 0bc6ae1..8f56cde 100644 --- a/src/typings/checkout/samsungPayDetails.ts +++ b/src/typings/checkout/samsungPayDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SamsungPayDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -47,6 +29,39 @@ export class SamsungPayDetails { * **samsungpay** */ 'type'?: SamsungPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "SamsungPayDetails.FundingSourceEnum" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "samsungPayToken", + "baseName": "samsungPayToken", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SamsungPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SamsungPayDetails.attributeTypeMap; + } } export namespace SamsungPayDetails { diff --git a/src/typings/checkout/sepaDirectDebitDetails.ts b/src/typings/checkout/sepaDirectDebitDetails.ts index e5cf61f..960dea3 100644 --- a/src/typings/checkout/sepaDirectDebitDetails.ts +++ b/src/typings/checkout/sepaDirectDebitDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SepaDirectDebitDetails { /** * The International Bank Account Number (IBAN). @@ -47,6 +29,39 @@ export class SepaDirectDebitDetails { * **sepadirectdebit** */ 'type'?: SepaDirectDebitDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "SepaDirectDebitDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return SepaDirectDebitDetails.attributeTypeMap; + } } export namespace SepaDirectDebitDetails { diff --git a/src/typings/checkout/serviceError.ts b/src/typings/checkout/serviceError.ts index 497ddda..4417801 100644 --- a/src/typings/checkout/serviceError.ts +++ b/src/typings/checkout/serviceError.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. @@ -51,5 +33,43 @@ export class ServiceError { * The HTTP response status. */ 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } } diff --git a/src/typings/checkout/serviceError2.ts b/src/typings/checkout/serviceError2.ts index 0285d28..2966c0d 100644 --- a/src/typings/checkout/serviceError2.ts +++ b/src/typings/checkout/serviceError2.ts @@ -1,35 +1,45 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError2 { 'errorCode'?: string; 'errorType'?: string; 'message'?: string; 'pspReference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ServiceError2.attributeTypeMap; + } } diff --git a/src/typings/checkout/shopperInput.ts b/src/typings/checkout/shopperInput.ts index 0541642..a4b6c51 100644 --- a/src/typings/checkout/shopperInput.ts +++ b/src/typings/checkout/shopperInput.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ShopperInput { /** * Specifies visibility of billing address fields. Permitted values: * editable * hidden * readOnly @@ -39,6 +21,29 @@ export class ShopperInput { * Specifies visibility of personal details. Permitted values: * editable * hidden * readOnly */ 'personalDetails'?: ShopperInput.PersonalDetailsEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "ShopperInput.BillingAddressEnum" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "ShopperInput.DeliveryAddressEnum" + }, + { + "name": "personalDetails", + "baseName": "personalDetails", + "type": "ShopperInput.PersonalDetailsEnum" + } ]; + + static getAttributeTypeMap() { + return ShopperInput.attributeTypeMap; + } } export namespace ShopperInput { diff --git a/src/typings/checkout/shopperInteractionDevice.ts b/src/typings/checkout/shopperInteractionDevice.ts index 400c074..e28123e 100644 --- a/src/typings/checkout/shopperInteractionDevice.ts +++ b/src/typings/checkout/shopperInteractionDevice.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ShopperInteractionDevice { /** * Locale on the shopper interaction device. @@ -39,5 +21,28 @@ export class ShopperInteractionDevice { * Version of the operating system on the shopper interaction device. */ 'osVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShopperInteractionDevice.attributeTypeMap; + } } diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index ce9e0da..f44eec3 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { SplitAmount } from './splitAmount'; export class Split { @@ -45,6 +27,39 @@ export class Split { * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. */ 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } } export namespace Split { @@ -55,7 +70,7 @@ export namespace Split { MarketPlace = 'MarketPlace', PaymentFee = 'PaymentFee', Remainder = 'Remainder', - VAT = 'VAT', + Vat = 'VAT', Verification = 'Verification' } } diff --git a/src/typings/checkout/splitAmount.ts b/src/typings/checkout/splitAmount.ts index 45cfd57..95d1be6 100644 --- a/src/typings/checkout/splitAmount.ts +++ b/src/typings/checkout/splitAmount.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SplitAmount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. @@ -35,5 +17,23 @@ export class SplitAmount { * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). */ 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return SplitAmount.attributeTypeMap; + } } diff --git a/src/typings/checkout/standalonePaymentCancelResource.ts b/src/typings/checkout/standalonePaymentCancelResource.ts index fea328c..be50f77 100644 --- a/src/typings/checkout/standalonePaymentCancelResource.ts +++ b/src/typings/checkout/standalonePaymentCancelResource.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StandalonePaymentCancelResource { /** * The merchant account that is used to process the payment. @@ -47,6 +29,39 @@ export class StandalonePaymentCancelResource { * The status of your request. This will always have the value **received**. */ 'status': StandalonePaymentCancelResource.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentReference", + "baseName": "paymentReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "StandalonePaymentCancelResource.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return StandalonePaymentCancelResource.attributeTypeMap; + } } export namespace StandalonePaymentCancelResource { diff --git a/src/typings/checkout/storedDetails.ts b/src/typings/checkout/storedDetails.ts index 9aa082d..464f73e 100644 --- a/src/typings/checkout/storedDetails.ts +++ b/src/typings/checkout/storedDetails.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { BankAccount } from './bankAccount'; import { Card } from './card'; @@ -35,5 +17,28 @@ export class StoredDetails { * The email associated with stored payment details. */ 'emailAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "emailAddress", + "baseName": "emailAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredDetails.attributeTypeMap; + } } diff --git a/src/typings/checkout/storedPaymentMethod.ts b/src/typings/checkout/storedPaymentMethod.ts index 84c3a0d..15d9142 100644 --- a/src/typings/checkout/storedPaymentMethod.ts +++ b/src/typings/checkout/storedPaymentMethod.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StoredPaymentMethod { /** * The brand of the card. @@ -79,5 +61,78 @@ export class StoredPaymentMethod { * The type of payment method. */ 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "lastFour", + "baseName": "lastFour", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "supportedShopperInteractions", + "baseName": "supportedShopperInteractions", + "type": "Array" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredPaymentMethod.attributeTypeMap; + } } diff --git a/src/typings/checkout/storedPaymentMethodDetails.ts b/src/typings/checkout/storedPaymentMethodDetails.ts index 124bcd7..ccbc9be 100644 --- a/src/typings/checkout/storedPaymentMethodDetails.ts +++ b/src/typings/checkout/storedPaymentMethodDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class StoredPaymentMethodDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -39,22 +21,45 @@ export class StoredPaymentMethodDetails { * The payment method type. */ 'type'?: StoredPaymentMethodDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "StoredPaymentMethodDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return StoredPaymentMethodDetails.attributeTypeMap; + } } export namespace StoredPaymentMethodDetails { export enum TypeEnum { BcmcMobile = 'bcmc_mobile', - BcmcMobileQR = 'bcmc_mobile_QR', + BcmcMobileQr = 'bcmc_mobile_QR', BcmcMobileApp = 'bcmc_mobile_app', MomoWallet = 'momo_wallet', MomoWalletApp = 'momo_wallet_app', PaymayaWallet = 'paymaya_wallet', - GrabpaySG = 'grabpay_SG', - GrabpayMY = 'grabpay_MY', - GrabpayTH = 'grabpay_TH', - GrabpayID = 'grabpay_ID', - GrabpayVN = 'grabpay_VN', - GrabpayPH = 'grabpay_PH', + GrabpaySg = 'grabpay_SG', + GrabpayMy = 'grabpay_MY', + GrabpayTh = 'grabpay_TH', + GrabpayId = 'grabpay_ID', + GrabpayVn = 'grabpay_VN', + GrabpayPh = 'grabpay_PH', Oxxo = 'oxxo', Gcash = 'gcash', Kakaopay = 'kakaopay', diff --git a/src/typings/checkout/subInputDetail.ts b/src/typings/checkout/subInputDetail.ts index 07a1f1c..c03a0e7 100644 --- a/src/typings/checkout/subInputDetail.ts +++ b/src/typings/checkout/subInputDetail.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { Item } from './item'; export class SubInputDetail { @@ -52,5 +34,43 @@ export class SubInputDetail { * The value can be pre-filled, if available. */ 'value'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configuration", + "baseName": "configuration", + "type": "{ [key: string]: string; }" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "key", + "baseName": "key", + "type": "string" + }, + { + "name": "optional", + "baseName": "optional", + "type": "boolean" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubInputDetail.attributeTypeMap; + } } diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 84cf76b..83b63db 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -1,30 +1,12 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + import { AcctInfo } from './acctInfo'; import { DeviceRenderOptions } from './deviceRenderOptions'; import { Phone } from './phone'; @@ -165,6 +147,209 @@ export class ThreeDS2RequestData { */ 'whiteListStatus'?: string; 'workPhone'?: Phone; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acctInfo", + "baseName": "acctInfo", + "type": "AcctInfo" + }, + { + "name": "acctType", + "baseName": "acctType", + "type": "ThreeDS2RequestData.AcctTypeEnum" + }, + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "addrMatch", + "baseName": "addrMatch", + "type": "ThreeDS2RequestData.AddrMatchEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "Phone" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "Phone" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "payTokenInd", + "baseName": "payTokenInd", + "type": "boolean" + }, + { + "name": "paymentAuthenticationUseCase", + "baseName": "paymentAuthenticationUseCase", + "type": "string" + }, + { + "name": "purchaseInstalData", + "baseName": "purchaseInstalData", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInd", + "baseName": "threeDSRequestorAuthenticationInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInfo", + "baseName": "threeDSRequestorAuthenticationInfo", + "type": "ThreeDSRequestorAuthenticationInfo" + }, + { + "name": "threeDSRequestorChallengeInd", + "baseName": "threeDSRequestorChallengeInd", + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorPriorAuthenticationInfo", + "baseName": "threeDSRequestorPriorAuthenticationInfo", + "type": "ThreeDSRequestorPriorAuthenticationInfo" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transType", + "baseName": "transType", + "type": "ThreeDS2RequestData.TransTypeEnum" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "Phone" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } } export namespace ThreeDS2RequestData { diff --git a/src/typings/checkout/threeDS2ResponseData.ts b/src/typings/checkout/threeDS2ResponseData.ts index f454267..f704a94 100644 --- a/src/typings/checkout/threeDS2ResponseData.ts +++ b/src/typings/checkout/threeDS2ResponseData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDS2ResponseData { 'acsChallengeMandated'?: string; 'acsOperatorID'?: string; @@ -46,5 +28,108 @@ export class ThreeDS2ResponseData { 'threeDSServerTransID'?: string; 'transStatus'?: string; 'transStatusReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acsChallengeMandated", + "baseName": "acsChallengeMandated", + "type": "string" + }, + { + "name": "acsOperatorID", + "baseName": "acsOperatorID", + "type": "string" + }, + { + "name": "acsReferenceNumber", + "baseName": "acsReferenceNumber", + "type": "string" + }, + { + "name": "acsSignedContent", + "baseName": "acsSignedContent", + "type": "string" + }, + { + "name": "acsTransID", + "baseName": "acsTransID", + "type": "string" + }, + { + "name": "acsURL", + "baseName": "acsURL", + "type": "string" + }, + { + "name": "authenticationType", + "baseName": "authenticationType", + "type": "string" + }, + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "string" + }, + { + "name": "dsReferenceNumber", + "baseName": "dsReferenceNumber", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "exemptionIndicator", + "baseName": "exemptionIndicator", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResponseData.attributeTypeMap; + } } diff --git a/src/typings/checkout/threeDS2Result.ts b/src/typings/checkout/threeDS2Result.ts index 6815aa2..a385401 100644 --- a/src/typings/checkout/threeDS2Result.ts +++ b/src/typings/checkout/threeDS2Result.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDS2Result { /** * The `authenticationValue` value as defined in the 3D Secure 2 specification. @@ -83,6 +65,84 @@ export class ThreeDS2Result { * The `whiteListStatus` value as defined in the 3D Secure 2 specification. */ 'whiteListStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationValue", + "baseName": "authenticationValue", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDS2Result.ChallengeCancelEnum" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2Result.ChallengeIndicatorEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "exemptionIndicator", + "baseName": "exemptionIndicator", + "type": "ThreeDS2Result.ExemptionIndicatorEnum" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2Result.attributeTypeMap; + } } export namespace ThreeDS2Result { diff --git a/src/typings/checkout/threeDSRequestData.ts b/src/typings/checkout/threeDSRequestData.ts index b9f5b25..43fb42f 100644 --- a/src/typings/checkout/threeDSRequestData.ts +++ b/src/typings/checkout/threeDSRequestData.ts @@ -1,32 +1,18 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestData { + /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: ThreeDSRequestData.ChallengeWindowSizeEnum; /** * Indicates if [native 3D Secure authentication](https://docs.adyen.com/online-payments/3d-secure/native-3ds2) should be used when available. Possible values: * **preferred**: Use native 3D Secure authentication when available. */ @@ -35,9 +21,39 @@ export class ThreeDSRequestData { * The version of 3D Secure to use. Possible values: * **2.1.0** * **2.2.0** */ 'threeDSVersion'?: ThreeDSRequestData.ThreeDSVersionEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "ThreeDSRequestData.ChallengeWindowSizeEnum" + }, + { + "name": "nativeThreeDS", + "baseName": "nativeThreeDS", + "type": "ThreeDSRequestData.NativeThreeDSEnum" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "ThreeDSRequestData.ThreeDSVersionEnum" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestData.attributeTypeMap; + } } export namespace ThreeDSRequestData { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } export enum NativeThreeDSEnum { Preferred = 'preferred' } diff --git a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts index c7019b1..bac9c9f 100644 --- a/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorAuthenticationInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. @@ -39,6 +21,29 @@ export class ThreeDSRequestorAuthenticationInfo { * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM */ 'threeDSReqAuthTimestamp'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqAuthData", + "baseName": "threeDSReqAuthData", + "type": "string" + }, + { + "name": "threeDSReqAuthMethod", + "baseName": "threeDSReqAuthMethod", + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" + }, + { + "name": "threeDSReqAuthTimestamp", + "baseName": "threeDSReqAuthTimestamp", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; + } } export namespace ThreeDSRequestorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts index 139db88..9aa25bf 100644 --- a/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts +++ b/src/typings/checkout/threeDSRequestorPriorAuthenticationInfo.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSRequestorPriorAuthenticationInfo { /** * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. @@ -43,6 +25,34 @@ export class ThreeDSRequestorPriorAuthenticationInfo { * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. */ 'threeDSReqPriorRef'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqPriorAuthData", + "baseName": "threeDSReqPriorAuthData", + "type": "string" + }, + { + "name": "threeDSReqPriorAuthMethod", + "baseName": "threeDSReqPriorAuthMethod", + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" + }, + { + "name": "threeDSReqPriorAuthTimestamp", + "baseName": "threeDSReqPriorAuthTimestamp", + "type": "string" + }, + { + "name": "threeDSReqPriorRef", + "baseName": "threeDSReqPriorRef", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; + } } export namespace ThreeDSRequestorPriorAuthenticationInfo { diff --git a/src/typings/checkout/threeDSecureData.ts b/src/typings/checkout/threeDSecureData.ts index 22ba1a0..ecad4b8 100644 --- a/src/typings/checkout/threeDSecureData.ts +++ b/src/typings/checkout/threeDSecureData.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ThreeDSecureData { /** * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. @@ -75,6 +57,74 @@ export class ThreeDSecureData { * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). */ 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDSecureData.ChallengeCancelEnum" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "tokenAuthenticationVerificationValue", + "baseName": "tokenAuthenticationVerificationValue", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } } export namespace ThreeDSecureData { diff --git a/src/typings/checkout/updatePaymentLinkRequest.ts b/src/typings/checkout/updatePaymentLinkRequest.ts index 62a206c..985eab3 100644 --- a/src/typings/checkout/updatePaymentLinkRequest.ts +++ b/src/typings/checkout/updatePaymentLinkRequest.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdatePaymentLinkRequest { /** * Status of the payment link. Possible values: * **expired** */ 'status': UpdatePaymentLinkRequest.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "status", + "baseName": "status", + "type": "UpdatePaymentLinkRequest.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return UpdatePaymentLinkRequest.attributeTypeMap; + } } export namespace UpdatePaymentLinkRequest { diff --git a/src/typings/checkout/upiCollectDetails.ts b/src/typings/checkout/upiCollectDetails.ts index 73353ff..bed01e4 100644 --- a/src/typings/checkout/upiCollectDetails.ts +++ b/src/typings/checkout/upiCollectDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpiCollectDetails { /** * The sequence number for the debit. For example, send **2** if this is the second debit for the subscription. The sequence number is included in the notification sent to the shopper. @@ -51,6 +33,44 @@ export class UpiCollectDetails { * The virtual payment address for UPI. */ 'virtualPaymentAddress'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingSequenceNumber", + "baseName": "billingSequenceNumber", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "shopperNotificationReference", + "baseName": "shopperNotificationReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "UpiCollectDetails.TypeEnum" + }, + { + "name": "virtualPaymentAddress", + "baseName": "virtualPaymentAddress", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpiCollectDetails.attributeTypeMap; + } } export namespace UpiCollectDetails { diff --git a/src/typings/checkout/upiIntentDetails.ts b/src/typings/checkout/upiIntentDetails.ts index 4bc395e..17a65b9 100644 --- a/src/typings/checkout/upiIntentDetails.ts +++ b/src/typings/checkout/upiIntentDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpiIntentDetails { /** * **upi_intent** */ 'type': UpiIntentDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "UpiIntentDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UpiIntentDetails.attributeTypeMap; + } } export namespace UpiIntentDetails { diff --git a/src/typings/checkout/vippsDetails.ts b/src/typings/checkout/vippsDetails.ts index bd4456e..77c0c5b 100644 --- a/src/typings/checkout/vippsDetails.ts +++ b/src/typings/checkout/vippsDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class VippsDetails { /** * This is the `recurringDetailReference` returned in the response when you created the token. @@ -40,6 +22,34 @@ export class VippsDetails { * **vipps** */ 'type'?: VippsDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "VippsDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return VippsDetails.attributeTypeMap; + } } export namespace VippsDetails { diff --git a/src/typings/checkout/visaCheckoutDetails.ts b/src/typings/checkout/visaCheckoutDetails.ts index 11fc1be..812b599 100644 --- a/src/typings/checkout/visaCheckoutDetails.ts +++ b/src/typings/checkout/visaCheckoutDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class VisaCheckoutDetails { /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. @@ -39,6 +21,29 @@ export class VisaCheckoutDetails { * The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. */ 'visaCheckoutCallId': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "VisaCheckoutDetails.FundingSourceEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "VisaCheckoutDetails.TypeEnum" + }, + { + "name": "visaCheckoutCallId", + "baseName": "visaCheckoutCallId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return VisaCheckoutDetails.attributeTypeMap; + } } export namespace VisaCheckoutDetails { diff --git a/src/typings/checkout/weChatPayDetails.ts b/src/typings/checkout/weChatPayDetails.ts index 929f0a2..14da3eb 100644 --- a/src/typings/checkout/weChatPayDetails.ts +++ b/src/typings/checkout/weChatPayDetails.ts @@ -1,36 +1,31 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class WeChatPayDetails { /** * **wechatpay** */ 'type'?: WeChatPayDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "WeChatPayDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return WeChatPayDetails.attributeTypeMap; + } } export namespace WeChatPayDetails { diff --git a/src/typings/checkout/weChatPayMiniProgramDetails.ts b/src/typings/checkout/weChatPayMiniProgramDetails.ts index 4b43db1..6c3f825 100644 --- a/src/typings/checkout/weChatPayMiniProgramDetails.ts +++ b/src/typings/checkout/weChatPayMiniProgramDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class WeChatPayMiniProgramDetails { 'appId'?: string; 'openid'?: string; @@ -33,6 +15,29 @@ export class WeChatPayMiniProgramDetails { * **wechatpayMiniProgram** */ 'type'?: WeChatPayMiniProgramDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "appId", + "baseName": "appId", + "type": "string" + }, + { + "name": "openid", + "baseName": "openid", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "WeChatPayMiniProgramDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return WeChatPayMiniProgramDetails.attributeTypeMap; + } } export namespace WeChatPayMiniProgramDetails { diff --git a/src/typings/checkout/zipDetails.ts b/src/typings/checkout/zipDetails.ts index 7d479ee..58a50f5 100644 --- a/src/typings/checkout/zipDetails.ts +++ b/src/typings/checkout/zipDetails.ts @@ -1,31 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2022 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - * - * Adyen Checkout API - * * The version of the OpenAPI document: v69 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ZipDetails { /** * Set this to **true** if the shopper would like to pick up and collect their order, instead of having the goods delivered to them. @@ -43,6 +25,34 @@ export class ZipDetails { * **zip** */ 'type'?: ZipDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "clickAndCollect", + "baseName": "clickAndCollect", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "storedPaymentMethodId", + "baseName": "storedPaymentMethodId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "ZipDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return ZipDetails.attributeTypeMap; + } } export namespace ZipDetails { diff --git a/src/typings/index.ts b/src/typings/index.ts index a4d0105..20d342d 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -1,39 +1,24 @@ -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2021 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - /// /// /// -/// /// /// /// /// -/// /// /// -/// /// +export * as binlookup from './binlookup/models'; export * as checkout from './checkout/models'; export * as notification from './notification/models'; +export * as payouts from './payouts/models'; export * as platformsNotifications from './platformsNotifications/models'; export * as platformsAccount from './platformsAccount/models'; -export * as recurring from './recurring/models' +export * as platformsHostedOnboardingPage from './platformsHostedOnboardingPage/models'; +export * as platformsFund from './platformsFund/models'; +export * as recurring from './recurring/models'; +export * as storedValue from './storedValue/models'; export * as terminal from './terminal/models'; +export * as terminalManagement from './terminalManagement/models'; +export * as management from './management/models'; diff --git a/src/typings/management/additionalSettings.ts b/src/typings/management/additionalSettings.ts new file mode 100644 index 0000000..d098731 --- /dev/null +++ b/src/typings/management/additionalSettings.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalSettings { + /** + * Object containing list of event codes for which the notifcation will be sent. + */ + 'includeEventCodes'?: Array; + /** + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + */ + 'properties'?: { [key: string]: boolean; }; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "includeEventCodes", + "baseName": "includeEventCodes", + "type": "Array" + }, + { + "name": "properties", + "baseName": "properties", + "type": "{ [key: string]: boolean; }" + } ]; + + static getAttributeTypeMap() { + return AdditionalSettings.attributeTypeMap; + } +} + diff --git a/src/typings/management/additionalSettingsResponse.ts b/src/typings/management/additionalSettingsResponse.ts new file mode 100644 index 0000000..be04a20 --- /dev/null +++ b/src/typings/management/additionalSettingsResponse.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalSettingsResponse { + /** + * Object containing list of event codes for which the notifcation will not be sent. + */ + 'excludeEventCodes'?: Array; + /** + * Object containing list of event codes for which the notifcation will be sent. + */ + 'includeEventCodes'?: Array; + /** + * Object containing boolean key-value pairs. The key can be any [standard webhook additional setting](https://docs.adyen.com/development-resources/webhooks/additional-settings), and the value indicates if the setting is enabled. For example, `captureDelayHours`: **true** means the standard notifications you get will contain the number of hours remaining until the payment will be captured. + */ + 'properties'?: { [key: string]: boolean; }; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "excludeEventCodes", + "baseName": "excludeEventCodes", + "type": "Array" + }, + { + "name": "includeEventCodes", + "baseName": "includeEventCodes", + "type": "Array" + }, + { + "name": "properties", + "baseName": "properties", + "type": "{ [key: string]: boolean; }" + } ]; + + static getAttributeTypeMap() { + return AdditionalSettingsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/address.ts b/src/typings/management/address.ts new file mode 100644 index 0000000..da9cb80 --- /dev/null +++ b/src/typings/management/address.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The name of the company. + */ + 'companyName'?: string; + /** + * The two-letter country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + */ + 'country'?: string; + /** + * The postal code. + */ + 'postalCode'?: string; + /** + * The state or province as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Applicable for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + */ + 'stateOrProvince'?: string; + /** + * The name of the street, and the house or building number. + */ + 'streetAddress'?: string; + /** + * Additional address details, if any. + */ + 'streetAddress2'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "companyName", + "baseName": "companyName", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "streetAddress", + "baseName": "streetAddress", + "type": "string" + }, + { + "name": "streetAddress2", + "baseName": "streetAddress2", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/management/address2.ts b/src/typings/management/address2.ts new file mode 100644 index 0000000..ca753a8 --- /dev/null +++ b/src/typings/management/address2.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address2 { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The two-letter country code in [ISO_3166-1_alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. + */ + 'country': string; + /** + * The street address. + */ + 'line1'?: string; + /** + * Second address line. + */ + 'line2'?: string; + /** + * Third address line. + */ + 'line3'?: string; + /** + * The postal code. + */ + 'postalCode'?: string; + /** + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + */ + 'stateOrProvince'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "line3", + "baseName": "line3", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address2.attributeTypeMap; + } +} + diff --git a/src/typings/management/allowedOrigin.ts b/src/typings/management/allowedOrigin.ts new file mode 100644 index 0000000..5c7693a --- /dev/null +++ b/src/typings/management/allowedOrigin.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; + +export class AllowedOrigin { + 'links'?: Links; + /** + * Domain of the allowed origin. + */ + 'domain': string; + /** + * Unique identifier of the allowed origin. + */ + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "domain", + "baseName": "domain", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AllowedOrigin.attributeTypeMap; + } +} + diff --git a/src/typings/management/allowedOriginsResponse.ts b/src/typings/management/allowedOriginsResponse.ts new file mode 100644 index 0000000..f7a8002 --- /dev/null +++ b/src/typings/management/allowedOriginsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; + +export class AllowedOriginsResponse { + /** + * List of allowed origins. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AllowedOriginsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/amount.ts b/src/typings/management/amount.ts new file mode 100644 index 0000000..5505a56 --- /dev/null +++ b/src/typings/management/amount.ts @@ -0,0 +1,36 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency'?: string; + 'value'?: any; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "any" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/management/amount2.ts b/src/typings/management/amount2.ts new file mode 100644 index 0000000..11afd1a --- /dev/null +++ b/src/typings/management/amount2.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount2 { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount2.attributeTypeMap; + } +} + diff --git a/src/typings/management/androidApp.ts b/src/typings/management/androidApp.ts new file mode 100644 index 0000000..393820d --- /dev/null +++ b/src/typings/management/androidApp.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AndroidApp { + /** + * The description that was provided when uploading the app. The description is not shown on the terminal. + */ + 'description'?: string; + /** + * The unique identifier of the app. + */ + 'id': string; + /** + * The app name that is shown on the terminal. + */ + 'label'?: string; + /** + * The package name of the app. + */ + 'packageName'?: string; + /** + * The status of the app. Possible values: * `processing`: The app is being signed and converted to a format that the terminal can handle. * `error`: Something went wrong. Check that the app matches the [requirements](https://docs.adyen.com/point-of-sale/android-terminals/app-requirements). * `invalid`: There is something wrong with the APK file of the app. * `ready`: The app has been signed and converted. * `archived`: The app is no longer available. + */ + 'status': string; + /** + * The internal version number of the app. + */ + 'versionCode'?: number; + /** + * The app version number that is shown on the terminal. + */ + 'versionName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "label", + "baseName": "label", + "type": "string" + }, + { + "name": "packageName", + "baseName": "packageName", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "versionCode", + "baseName": "versionCode", + "type": "number" + }, + { + "name": "versionName", + "baseName": "versionName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AndroidApp.attributeTypeMap; + } +} + diff --git a/src/typings/management/androidAppsResponse.ts b/src/typings/management/androidAppsResponse.ts new file mode 100644 index 0000000..99ca37a --- /dev/null +++ b/src/typings/management/androidAppsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AndroidApp } from './androidApp'; + +export class AndroidAppsResponse { + /** + * Apps uploaded for Android payment terminals. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AndroidAppsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/androidCertificate.ts b/src/typings/management/androidCertificate.ts new file mode 100644 index 0000000..14c6953 --- /dev/null +++ b/src/typings/management/androidCertificate.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AndroidCertificate { + /** + * The description that was provided when uploading the certificate. + */ + 'description'?: string; + /** + * The file format of the certificate, as indicated by the file extension. For example, **.cert** or **.pem**. + */ + 'extension'?: string; + /** + * The unique identifier of the certificate. + */ + 'id': string; + /** + * The file name of the certificate. For example, **mycert**. + */ + 'name'?: string; + /** + * The date when the certificate stops to be valid. + */ + 'notAfter'?: Date; + /** + * The date when the certificate starts to be valid. + */ + 'notBefore'?: Date; + /** + * The status of the certificate. + */ + 'status'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "extension", + "baseName": "extension", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "notAfter", + "baseName": "notAfter", + "type": "Date" + }, + { + "name": "notBefore", + "baseName": "notBefore", + "type": "Date" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AndroidCertificate.attributeTypeMap; + } +} + diff --git a/src/typings/management/androidCertificatesResponse.ts b/src/typings/management/androidCertificatesResponse.ts new file mode 100644 index 0000000..20bb8c7 --- /dev/null +++ b/src/typings/management/androidCertificatesResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AndroidCertificate } from './androidCertificate'; + +export class AndroidCertificatesResponse { + /** + * Uploaded Android certificates for Android payment terminals. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AndroidCertificatesResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/apiCredential.ts b/src/typings/management/apiCredential.ts new file mode 100644 index 0000000..d14681e --- /dev/null +++ b/src/typings/management/apiCredential.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; + +export class ApiCredential { + 'links'?: ApiCredentialLinks; + /** + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + */ + 'active': boolean; + /** + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + */ + 'allowedIpAddresses': Array; + /** + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + */ + 'allowedOrigins'?: Array; + /** + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + */ + 'clientKey': string; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * Unique identifier of the API credential. + */ + 'id': string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles': Array; + /** + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "ApiCredentialLinks" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedIpAddresses", + "baseName": "allowedIpAddresses", + "type": "Array" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ApiCredential.attributeTypeMap; + } +} + diff --git a/src/typings/management/apiCredentialLinks.ts b/src/typings/management/apiCredentialLinks.ts new file mode 100644 index 0000000..0dff6ef --- /dev/null +++ b/src/typings/management/apiCredentialLinks.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class ApiCredentialLinks { + 'allowedOrigins'?: LinksElement; + 'company'?: LinksElement; + 'generateApiKey'?: LinksElement; + 'generateClientKey'?: LinksElement; + 'merchant'?: LinksElement; + 'self': LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "LinksElement" + }, + { + "name": "company", + "baseName": "company", + "type": "LinksElement" + }, + { + "name": "generateApiKey", + "baseName": "generateApiKey", + "type": "LinksElement" + }, + { + "name": "generateClientKey", + "baseName": "generateClientKey", + "type": "LinksElement" + }, + { + "name": "merchant", + "baseName": "merchant", + "type": "LinksElement" + }, + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return ApiCredentialLinks.attributeTypeMap; + } +} + diff --git a/src/typings/management/applePayInfo.ts b/src/typings/management/applePayInfo.ts new file mode 100644 index 0000000..9bd89b6 --- /dev/null +++ b/src/typings/management/applePayInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ApplePayInfo { + /** + * The list of merchant domains. For more information, see [Apple Pay documentation](https://docs.adyen.com/payment-methods/apple-pay/enable-apple-pay#register-merchant-domain). + */ + 'domains': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "domains", + "baseName": "domains", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ApplePayInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/bcmcInfo.ts b/src/typings/management/bcmcInfo.ts new file mode 100644 index 0000000..c77219f --- /dev/null +++ b/src/typings/management/bcmcInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BcmcInfo { + /** + * Indicates if [Bancontact mobile](https://docs.adyen.com/payment-methods/bancontact/bancontact-mobile) is enabled. + */ + 'enableBcmcMobile'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enableBcmcMobile", + "baseName": "enableBcmcMobile", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return BcmcInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/billingEntitiesResponse.ts b/src/typings/management/billingEntitiesResponse.ts new file mode 100644 index 0000000..9360484 --- /dev/null +++ b/src/typings/management/billingEntitiesResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BillingEntity } from './billingEntity'; + +export class BillingEntitiesResponse { + /** + * List of legal entities that can be used for the billing of orders. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return BillingEntitiesResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/billingEntity.ts b/src/typings/management/billingEntity.ts new file mode 100644 index 0000000..00b4206 --- /dev/null +++ b/src/typings/management/billingEntity.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; + +export class BillingEntity { + 'address'?: Address; + /** + * The email address of the billing entity. + */ + 'email'?: string; + /** + * The unique identifier of the billing entity, for use as `billingEntityId` when creating an order. + */ + 'id'?: string; + /** + * The unique name of the billing entity. + */ + 'name'?: string; + /** + * The tax number of the billing entity. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BillingEntity.attributeTypeMap; + } +} + diff --git a/src/typings/management/cardholderReceipt.ts b/src/typings/management/cardholderReceipt.ts new file mode 100644 index 0000000..5525ccc --- /dev/null +++ b/src/typings/management/cardholderReceipt.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CardholderReceipt { + /** + * A custom header to show on the shopper receipt for an authorised transaction. Allows one or two comma-separated header lines, and blank lines. For example, `header,header,filler` + */ + 'headerForAuthorizedReceipt'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "headerForAuthorizedReceipt", + "baseName": "headerForAuthorizedReceipt", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CardholderReceipt.attributeTypeMap; + } +} + diff --git a/src/typings/management/cartesBancairesInfo.ts b/src/typings/management/cartesBancairesInfo.ts new file mode 100644 index 0000000..9cd647f --- /dev/null +++ b/src/typings/management/cartesBancairesInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CartesBancairesInfo { + /** + * Cartes Bancaires SIRET. Format: 14 digits. + */ + 'siret': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "siret", + "baseName": "siret", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CartesBancairesInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/company.ts b/src/typings/management/company.ts new file mode 100644 index 0000000..07e1504 --- /dev/null +++ b/src/typings/management/company.ts @@ -0,0 +1,83 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CompanyLinks } from './companyLinks'; +import { DataCenter } from './dataCenter'; + +export class Company { + 'links'?: CompanyLinks; + /** + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + */ + 'dataCenters'?: Array; + /** + * Your description for the company account, maximum 300 characters + */ + 'description'?: string; + /** + * The unique identifier of the company account. + */ + 'id'?: string; + /** + * The legal or trading name of the company. + */ + 'name'?: string; + /** + * Your reference to the account + */ + 'reference'?: string; + /** + * The status of the company account. Possible values: * **Active**: Users can log in. Processing and payout capabilities depend on the status of the merchant account. * **Inactive**: Users can log in. Payment processing and payouts are disabled. * **Closed**: The company account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + */ + 'status'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "CompanyLinks" + }, + { + "name": "dataCenters", + "baseName": "dataCenters", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Company.attributeTypeMap; + } +} + diff --git a/src/typings/management/companyApiCredential.ts b/src/typings/management/companyApiCredential.ts new file mode 100644 index 0000000..f53ba65 --- /dev/null +++ b/src/typings/management/companyApiCredential.ts @@ -0,0 +1,110 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; + +export class CompanyApiCredential { + 'links'?: ApiCredentialLinks; + /** + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + */ + 'active': boolean; + /** + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + */ + 'allowedIpAddresses': Array; + /** + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + */ + 'allowedOrigins'?: Array; + /** + * List of merchant accounts that the API credential has access to. + */ + 'associatedMerchantAccounts'?: Array; + /** + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + */ + 'clientKey': string; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * Unique identifier of the API credential. + */ + 'id': string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles': Array; + /** + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "ApiCredentialLinks" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedIpAddresses", + "baseName": "allowedIpAddresses", + "type": "Array" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CompanyApiCredential.attributeTypeMap; + } +} + diff --git a/src/typings/management/companyLinks.ts b/src/typings/management/companyLinks.ts new file mode 100644 index 0000000..a5f82c7 --- /dev/null +++ b/src/typings/management/companyLinks.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class CompanyLinks { + 'apiCredentials'?: LinksElement; + 'self': LinksElement; + 'users'?: LinksElement; + 'webhooks'?: LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "apiCredentials", + "baseName": "apiCredentials", + "type": "LinksElement" + }, + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + }, + { + "name": "users", + "baseName": "users", + "type": "LinksElement" + }, + { + "name": "webhooks", + "baseName": "webhooks", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return CompanyLinks.attributeTypeMap; + } +} + diff --git a/src/typings/management/companyUser.ts b/src/typings/management/companyUser.ts new file mode 100644 index 0000000..5807652 --- /dev/null +++ b/src/typings/management/companyUser.ts @@ -0,0 +1,107 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; +import { Name } from './name'; + +export class CompanyUser { + 'links'?: Links; + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Indicates whether this user is active. + */ + 'active'?: boolean; + /** + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + */ + 'associatedMerchantAccounts'?: Array; + /** + * The email address of the user. + */ + 'email': string; + /** + * The unique identifier of the user. + */ + 'id': string; + 'name'?: Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles': Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode': string; + /** + * The username for this user. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CompanyUser.attributeTypeMap; + } +} + diff --git a/src/typings/management/configuration.ts b/src/typings/management/configuration.ts new file mode 100644 index 0000000..6eef6a9 --- /dev/null +++ b/src/typings/management/configuration.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Currency } from './currency'; + +export class Configuration { + /** + * Payment method, like **eftpos_australia** or **mc**. See the [possible values](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + */ + 'brand': string; + /** + * Currency, and surcharge percentage or amount. + */ + 'currencies': Array; + /** + * Funding source. Possible values: * **Credit** * **Debit** + */ + 'sources'?: Configuration.SourcesEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brand", + "baseName": "brand", + "type": "string" + }, + { + "name": "currencies", + "baseName": "currencies", + "type": "Array" + }, + { + "name": "sources", + "baseName": "sources", + "type": "Configuration.SourcesEnum" + } ]; + + static getAttributeTypeMap() { + return Configuration.attributeTypeMap; + } +} + +export namespace Configuration { + export enum SourcesEnum { + } +} diff --git a/src/typings/management/connectivity.ts b/src/typings/management/connectivity.ts new file mode 100644 index 0000000..81ba1e0 --- /dev/null +++ b/src/typings/management/connectivity.ts @@ -0,0 +1,36 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Connectivity { + /** + * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can\'t use cellular connectivity. + */ + 'simcardStatus'?: Connectivity.SimcardStatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "simcardStatus", + "baseName": "simcardStatus", + "type": "Connectivity.SimcardStatusEnum" + } ]; + + static getAttributeTypeMap() { + return Connectivity.attributeTypeMap; + } +} + +export namespace Connectivity { + export enum SimcardStatusEnum { + Activated = 'ACTIVATED', + Inventory = 'INVENTORY' + } +} diff --git a/src/typings/management/contact.ts b/src/typings/management/contact.ts new file mode 100644 index 0000000..55157ff --- /dev/null +++ b/src/typings/management/contact.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Contact { + /** + * The individual\'s email address. + */ + 'email'?: string; + /** + * The individual\'s first name. + */ + 'firstName'?: string; + /** + * The infix in the individual\'s name, if any. + */ + 'infix'?: string; + /** + * The individual\'s last name. + */ + 'lastName'?: string; + /** + * The individual\'s phone number, specified as 10-14 digits with an optional `+` prefix. + */ + 'phoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "infix", + "baseName": "infix", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Contact.attributeTypeMap; + } +} + diff --git a/src/typings/management/createAllowedOriginRequest.ts b/src/typings/management/createAllowedOriginRequest.ts new file mode 100644 index 0000000..01f4213 --- /dev/null +++ b/src/typings/management/createAllowedOriginRequest.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; + +export class CreateAllowedOriginRequest { + 'links'?: Links; + /** + * Domain of the allowed origin. + */ + 'domain': string; + /** + * Unique identifier of the allowed origin. + */ + 'id'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "domain", + "baseName": "domain", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateAllowedOriginRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createApiCredentialResponse.ts b/src/typings/management/createApiCredentialResponse.ts new file mode 100644 index 0000000..e30b783 --- /dev/null +++ b/src/typings/management/createApiCredentialResponse.ts @@ -0,0 +1,119 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; + +export class CreateApiCredentialResponse { + 'links'?: ApiCredentialLinks; + /** + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + */ + 'active': boolean; + /** + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + */ + 'allowedIpAddresses': Array; + /** + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + */ + 'allowedOrigins'?: Array; + /** + * The API key for the API credential that was created. + */ + 'apiKey': string; + /** + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + */ + 'clientKey': string; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * Unique identifier of the API credential. + */ + 'id': string; + /** + * The password for the API credential that was created. + */ + 'password': string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles': Array; + /** + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "ApiCredentialLinks" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedIpAddresses", + "baseName": "allowedIpAddresses", + "type": "Array" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "apiKey", + "baseName": "apiKey", + "type": "string" + }, + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateApiCredentialResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/createCompanyApiCredentialRequest.ts b/src/typings/management/createCompanyApiCredentialRequest.ts new file mode 100644 index 0000000..7502e32 --- /dev/null +++ b/src/typings/management/createCompanyApiCredentialRequest.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateCompanyApiCredentialRequest { + /** + * List of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + */ + 'allowedOrigins'?: Array; + /** + * List of merchant accounts that the API credential has access to. + */ + 'associatedMerchantAccounts'?: Array; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) of the API credential. + */ + 'roles'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreateCompanyApiCredentialRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createCompanyApiCredentialResponse.ts b/src/typings/management/createCompanyApiCredentialResponse.ts new file mode 100644 index 0000000..552a827 --- /dev/null +++ b/src/typings/management/createCompanyApiCredentialResponse.ts @@ -0,0 +1,128 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; + +export class CreateCompanyApiCredentialResponse { + 'links'?: ApiCredentialLinks; + /** + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + */ + 'active': boolean; + /** + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + */ + 'allowedIpAddresses': Array; + /** + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + */ + 'allowedOrigins'?: Array; + /** + * The API key for the API credential that was created. + */ + 'apiKey': string; + /** + * List of merchant accounts that the API credential has access to. + */ + 'associatedMerchantAccounts': Array; + /** + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + */ + 'clientKey': string; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * Unique identifier of the API credential. + */ + 'id': string; + /** + * The password for the API credential that was created. + */ + 'password': string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles': Array; + /** + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "ApiCredentialLinks" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedIpAddresses", + "baseName": "allowedIpAddresses", + "type": "Array" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "apiKey", + "baseName": "apiKey", + "type": "string" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateCompanyApiCredentialResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/createCompanyUserRequest.ts b/src/typings/management/createCompanyUserRequest.ts new file mode 100644 index 0000000..ba24cb5 --- /dev/null +++ b/src/typings/management/createCompanyUserRequest.ts @@ -0,0 +1,82 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Name } from './name'; + +export class CreateCompanyUserRequest { + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + */ + 'associatedMerchantAccounts'?: Array; + /** + * The email address of the user. + */ + 'email': string; + 'name': Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles'?: Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode'?: string; + /** + * The username for this user. Allowed length: 255 alphanumeric characters. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateCompanyUserRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createCompanyUserResponse.ts b/src/typings/management/createCompanyUserResponse.ts new file mode 100644 index 0000000..a1d8108 --- /dev/null +++ b/src/typings/management/createCompanyUserResponse.ts @@ -0,0 +1,107 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; +import { Name } from './name'; + +export class CreateCompanyUserResponse { + 'links'?: Links; + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Indicates whether this user is active. + */ + 'active'?: boolean; + /** + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) associated with this user. + */ + 'associatedMerchantAccounts'?: Array; + /** + * The email address of the user. + */ + 'email': string; + /** + * The unique identifier of the user. + */ + 'id': string; + 'name'?: Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles': Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode': string; + /** + * The username for this user. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateCompanyUserResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts new file mode 100644 index 0000000..e03ea96 --- /dev/null +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -0,0 +1,190 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AdditionalSettings } from './additionalSettings'; + +export class CreateCompanyWebhookRequest { + /** + * Indicates if expired SSL certificates are accepted. Default value: **false**. + */ + 'acceptsExpiredCertificate'?: boolean; + /** + * Indicates if self-signed SSL certificates are accepted. Default value: **false**. + */ + 'acceptsSelfSignedCertificate'?: boolean; + /** + * Indicates if untrusted SSL certificates are accepted. Default value: **false**. + */ + 'acceptsUntrustedRootCertificate'?: boolean; + /** + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + */ + 'active': boolean; + 'additionalSettings'?: AdditionalSettings; + /** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + */ + 'communicationFormat': CreateCompanyWebhookRequest.CommunicationFormatEnum; + /** + * Your description for this webhook configuration. + */ + 'description'?: string; + /** + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + */ + 'filterMerchantAccountType': CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; + /** + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + */ + 'filterMerchantAccounts': Array; + /** + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + */ + 'networkType'?: CreateCompanyWebhookRequest.NetworkTypeEnum; + /** + * Password to access the webhook URL. + */ + 'password'?: string; + /** + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + */ + 'populateSoapActionHeader'?: boolean; + /** + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + */ + 'sslVersion'?: CreateCompanyWebhookRequest.SslVersionEnum; + /** + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + */ + 'type': string; + /** + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + */ + 'url': string; + /** + * Username to access the webhook URL. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptsExpiredCertificate", + "baseName": "acceptsExpiredCertificate", + "type": "boolean" + }, + { + "name": "acceptsSelfSignedCertificate", + "baseName": "acceptsSelfSignedCertificate", + "type": "boolean" + }, + { + "name": "acceptsUntrustedRootCertificate", + "baseName": "acceptsUntrustedRootCertificate", + "type": "boolean" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "additionalSettings", + "baseName": "additionalSettings", + "type": "AdditionalSettings" + }, + { + "name": "communicationFormat", + "baseName": "communicationFormat", + "type": "CreateCompanyWebhookRequest.CommunicationFormatEnum" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "filterMerchantAccountType", + "baseName": "filterMerchantAccountType", + "type": "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum" + }, + { + "name": "filterMerchantAccounts", + "baseName": "filterMerchantAccounts", + "type": "Array" + }, + { + "name": "networkType", + "baseName": "networkType", + "type": "CreateCompanyWebhookRequest.NetworkTypeEnum" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "populateSoapActionHeader", + "baseName": "populateSoapActionHeader", + "type": "boolean" + }, + { + "name": "sslVersion", + "baseName": "sslVersion", + "type": "CreateCompanyWebhookRequest.SslVersionEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateCompanyWebhookRequest.attributeTypeMap; + } +} + +export namespace CreateCompanyWebhookRequest { + export enum CommunicationFormatEnum { + Http = 'HTTP', + Json = 'JSON', + Soap = 'SOAP' + } + export enum FilterMerchantAccountTypeEnum { + ExcludeList = 'EXCLUDE_LIST', + IncludeAll = 'INCLUDE_ALL', + IncludeList = 'INCLUDE_LIST' + } + export enum NetworkTypeEnum { + Local = 'LOCAL', + Public = 'PUBLIC' + } + export enum SslVersionEnum { + Http = 'HTTP', + Ssl = 'SSL', + Sslv3 = 'SSLV3', + SslInsecureCiphers = 'SSL_INSECURE_CIPHERS', + Tls = 'TLS', + Tlsv1 = 'TLSV1', + Tlsv11 = 'TLSV1_1', + Tlsv12 = 'TLSV1_2', + Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' + } +} diff --git a/src/typings/management/createMerchantApiCredentialRequest.ts b/src/typings/management/createMerchantApiCredentialRequest.ts new file mode 100644 index 0000000..a89c699 --- /dev/null +++ b/src/typings/management/createMerchantApiCredentialRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateMerchantApiCredentialRequest { + /** + * The list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the new API credential. + */ + 'allowedOrigins'?: Array; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantApiCredentialRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantRequest.ts b/src/typings/management/createMerchantRequest.ts new file mode 100644 index 0000000..6366ccd --- /dev/null +++ b/src/typings/management/createMerchantRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateMerchantRequest { + /** + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). Required for an Adyen for Platforms Manage integration. + */ + 'businessLineId'?: string; + /** + * The unique identifier of the company account. + */ + 'companyId': string; + /** + * Your description for the merchant account, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). Required for an Adyen for Platforms Manage integration. + */ + 'legalEntityId'?: string; + /** + * Sets the pricing plan for the merchant account. Required for an Adyen for Platforms Manage integration. Your Adyen contact will provide the values that you can use. + */ + 'pricingPlan'?: string; + /** + * Your reference for the merchant account. To make this reference the unique identifier of the merchant account, your Adyen contact can set up a template on your company account. The template can have 6 to 255 characters with upper- and lower-case letters, underscores, and numbers. When your company account has a template, then the `reference` is required and must be unique within the company account. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "pricingPlan", + "baseName": "pricingPlan", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantResponse.ts b/src/typings/management/createMerchantResponse.ts new file mode 100644 index 0000000..eaf2d29 --- /dev/null +++ b/src/typings/management/createMerchantResponse.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CreateMerchantResponse { + /** + * The unique identifier of the [business line](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines). + */ + 'businessLineId'?: string; + /** + * The unique identifier of the company account. + */ + 'companyId'?: string; + /** + * Your description for the merchant account, maximum 300 characters. + */ + 'description'?: string; + /** + * The unique identifier of the merchant account. If Adyen set up a template for the `reference`, then the `id` will have the same value as the `reference` that you sent in the request. Otherwise, the value is generated by Adyen. + */ + 'id'?: string; + /** + * The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities). + */ + 'legalEntityId'?: string; + /** + * Partner pricing plan for the merchant, applicable for merchants under AfP managed company accounts. + */ + 'pricingPlan'?: string; + /** + * Your reference for the merchant account. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "legalEntityId", + "baseName": "legalEntityId", + "type": "string" + }, + { + "name": "pricingPlan", + "baseName": "pricingPlan", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantUserRequest.ts b/src/typings/management/createMerchantUserRequest.ts new file mode 100644 index 0000000..ff4f783 --- /dev/null +++ b/src/typings/management/createMerchantUserRequest.ts @@ -0,0 +1,73 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Name } from './name'; + +export class CreateMerchantUserRequest { + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * The email address of the user. + */ + 'email': string; + 'name': Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles'?: Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode'?: string; + /** + * The username for this user. Allowed length: 255 alphanumeric characters. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantUserRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts new file mode 100644 index 0000000..0c4bad9 --- /dev/null +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -0,0 +1,167 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AdditionalSettings } from './additionalSettings'; + +export class CreateMerchantWebhookRequest { + /** + * Indicates if expired SSL certificates are accepted. Default value: **false**. + */ + 'acceptsExpiredCertificate'?: boolean; + /** + * Indicates if self-signed SSL certificates are accepted. Default value: **false**. + */ + 'acceptsSelfSignedCertificate'?: boolean; + /** + * Indicates if untrusted SSL certificates are accepted. Default value: **false**. + */ + 'acceptsUntrustedRootCertificate'?: boolean; + /** + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + */ + 'active': boolean; + 'additionalSettings'?: AdditionalSettings; + /** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + */ + 'communicationFormat': CreateMerchantWebhookRequest.CommunicationFormatEnum; + /** + * Your description for this webhook configuration. + */ + 'description'?: string; + /** + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + */ + 'networkType'?: CreateMerchantWebhookRequest.NetworkTypeEnum; + /** + * Password to access the webhook URL. + */ + 'password'?: string; + /** + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + */ + 'populateSoapActionHeader'?: boolean; + /** + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + */ + 'sslVersion'?: CreateMerchantWebhookRequest.SslVersionEnum; + /** + * The type of webhook that is being created. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **rreq-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + */ + 'type': string; + /** + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + */ + 'url': string; + /** + * Username to access the webhook URL. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptsExpiredCertificate", + "baseName": "acceptsExpiredCertificate", + "type": "boolean" + }, + { + "name": "acceptsSelfSignedCertificate", + "baseName": "acceptsSelfSignedCertificate", + "type": "boolean" + }, + { + "name": "acceptsUntrustedRootCertificate", + "baseName": "acceptsUntrustedRootCertificate", + "type": "boolean" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "additionalSettings", + "baseName": "additionalSettings", + "type": "AdditionalSettings" + }, + { + "name": "communicationFormat", + "baseName": "communicationFormat", + "type": "CreateMerchantWebhookRequest.CommunicationFormatEnum" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "networkType", + "baseName": "networkType", + "type": "CreateMerchantWebhookRequest.NetworkTypeEnum" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "populateSoapActionHeader", + "baseName": "populateSoapActionHeader", + "type": "boolean" + }, + { + "name": "sslVersion", + "baseName": "sslVersion", + "type": "CreateMerchantWebhookRequest.SslVersionEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateMerchantWebhookRequest.attributeTypeMap; + } +} + +export namespace CreateMerchantWebhookRequest { + export enum CommunicationFormatEnum { + Http = 'HTTP', + Json = 'JSON', + Soap = 'SOAP' + } + export enum NetworkTypeEnum { + Local = 'LOCAL', + Public = 'PUBLIC' + } + export enum SslVersionEnum { + Http = 'HTTP', + Ssl = 'SSL', + Sslv3 = 'SSLV3', + SslInsecureCiphers = 'SSL_INSECURE_CIPHERS', + Tls = 'TLS', + Tlsv1 = 'TLSV1', + Tlsv11 = 'TLSV1_1', + Tlsv12 = 'TLSV1_2', + Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' + } +} diff --git a/src/typings/management/createUserResponse.ts b/src/typings/management/createUserResponse.ts new file mode 100644 index 0000000..58601c6 --- /dev/null +++ b/src/typings/management/createUserResponse.ts @@ -0,0 +1,98 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; +import { Name } from './name'; + +export class CreateUserResponse { + 'links'?: Links; + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Indicates whether this user is active. + */ + 'active'?: boolean; + /** + * The email address of the user. + */ + 'email': string; + /** + * The unique identifier of the user. + */ + 'id': string; + 'name'?: Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles': Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode': string; + /** + * The username for this user. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CreateUserResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/currency.ts b/src/typings/management/currency.ts new file mode 100644 index 0000000..63c2e67 --- /dev/null +++ b/src/typings/management/currency.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Currency { + /** + * Surcharge amount per transaction, in minor units. + */ + 'amount'?: number; + /** + * Three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **AUD**. + */ + 'currencyCode': string; + /** + * Surcharge percentage per transaction. The maximum number of decimal places is two. For example, **1%** or **2.27%**. + */ + 'percentage'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + }, + { + "name": "percentage", + "baseName": "percentage", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Currency.attributeTypeMap; + } +} + diff --git a/src/typings/management/customNotification.ts b/src/typings/management/customNotification.ts new file mode 100644 index 0000000..22bba6d --- /dev/null +++ b/src/typings/management/customNotification.ts @@ -0,0 +1,82 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount2 } from './amount2'; + +export class CustomNotification { + 'amount'?: Amount2; + /** + * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **DEACTIVATE_RECURRING** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** + */ + 'eventCode'?: string; + /** + * The time of the event. Format: [ISO 8601](http://www.w3.org/TR/NOTE-datetime), YYYY-MM-DDThh:mm:ssTZD. + */ + 'eventDate'?: Date; + /** + * Your reference for the custom test notification. + */ + 'merchantReference'?: string; + /** + * The payment method for the payment that the notification is about. Possible values: * **amex** * **visa** * **mc** * **maestro** * **bcmc** * **paypal** * **sms** * **bankTransfer_NL** * **bankTransfer_DE** * **bankTransfer_BE** * **ideal** * **elv** * **sepadirectdebit** + */ + 'paymentMethod'?: string; + /** + * A descripton of what caused the notification. + */ + 'reason'?: string; + /** + * The outcome of the event which the notification is about. Set to either **true** or **false**. + */ + 'success'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount2" + }, + { + "name": "eventCode", + "baseName": "eventCode", + "type": "string" + }, + { + "name": "eventDate", + "baseName": "eventDate", + "type": "Date" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "reason", + "baseName": "reason", + "type": "string" + }, + { + "name": "success", + "baseName": "success", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CustomNotification.attributeTypeMap; + } +} + diff --git a/src/typings/management/dataCenter.ts b/src/typings/management/dataCenter.ts new file mode 100644 index 0000000..b835055 --- /dev/null +++ b/src/typings/management/dataCenter.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DataCenter { + /** + * The unique [live URL prefix](https://docs.adyen.com/development-resources/live-endpoints#live-url-prefix) for your live endpoint. Each data center has its own live URL prefix. This field is empty for requests made in the test environment. + */ + 'livePrefix'?: string; + /** + * The name assigned to a data center, for example **EU** for the European data center. Possible values are: * **default**: the European data center. This value is always returned in the test environment. * **AU** * **EU** * **US** + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "livePrefix", + "baseName": "livePrefix", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DataCenter.attributeTypeMap; + } +} + diff --git a/src/typings/management/eventUrl.ts b/src/typings/management/eventUrl.ts new file mode 100644 index 0000000..5e28494 --- /dev/null +++ b/src/typings/management/eventUrl.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Url } from './url'; + +export class EventUrl { + /** + * One or more local URLs to send event notifications to when using Terminal API. + */ + 'eventLocalUrls'?: Array; + /** + * One or more public URLs to send event notifications to when using Terminal API. + */ + 'eventPublicUrls'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventLocalUrls", + "baseName": "eventLocalUrls", + "type": "Array" + }, + { + "name": "eventPublicUrls", + "baseName": "eventPublicUrls", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return EventUrl.attributeTypeMap; + } +} + diff --git a/src/typings/management/externalTerminalAction.ts b/src/typings/management/externalTerminalAction.ts new file mode 100644 index 0000000..e268e2d --- /dev/null +++ b/src/typings/management/externalTerminalAction.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ExternalTerminalAction { + /** + * The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**. + */ + 'actionType'?: string; + /** + * Technical information about the terminal action. + */ + 'config'?: string; + /** + * The date and time when the action was carried out. + */ + 'confirmedAt'?: Date; + /** + * The unique ID of the terminal action. + */ + 'id'?: string; + /** + * The result message for the action. + */ + 'result'?: string; + /** + * The date and time when the action was scheduled to happen. + */ + 'scheduledAt'?: Date; + /** + * The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**. + */ + 'status'?: string; + /** + * The unique ID of the terminal that the action applies to. + */ + 'terminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "actionType", + "baseName": "actionType", + "type": "string" + }, + { + "name": "config", + "baseName": "config", + "type": "string" + }, + { + "name": "confirmedAt", + "baseName": "confirmedAt", + "type": "Date" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "result", + "baseName": "result", + "type": "string" + }, + { + "name": "scheduledAt", + "baseName": "scheduledAt", + "type": "Date" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalTerminalAction.attributeTypeMap; + } +} + diff --git a/src/typings/management/generateApiKeyResponse.ts b/src/typings/management/generateApiKeyResponse.ts new file mode 100644 index 0000000..0829637 --- /dev/null +++ b/src/typings/management/generateApiKeyResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GenerateApiKeyResponse { + /** + * The generated API key. + */ + 'apiKey': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "apiKey", + "baseName": "apiKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GenerateApiKeyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/generateClientKeyResponse.ts b/src/typings/management/generateClientKeyResponse.ts new file mode 100644 index 0000000..005787d --- /dev/null +++ b/src/typings/management/generateClientKeyResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GenerateClientKeyResponse { + /** + * Generated client key + */ + 'clientKey': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GenerateClientKeyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/generateHmacKeyResponse.ts b/src/typings/management/generateHmacKeyResponse.ts new file mode 100644 index 0000000..f33a444 --- /dev/null +++ b/src/typings/management/generateHmacKeyResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GenerateHmacKeyResponse { + /** + * The HMAC key generated for this webhook. + */ + 'hmacKey': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "hmacKey", + "baseName": "hmacKey", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GenerateHmacKeyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/giroPayInfo.ts b/src/typings/management/giroPayInfo.ts new file mode 100644 index 0000000..6efbee0 --- /dev/null +++ b/src/typings/management/giroPayInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GiroPayInfo { + /** + * The email address of merchant support. + */ + 'supportEmail': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "supportEmail", + "baseName": "supportEmail", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GiroPayInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/gratuity.ts b/src/typings/management/gratuity.ts new file mode 100644 index 0000000..bcb2df3 --- /dev/null +++ b/src/typings/management/gratuity.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Gratuity { + /** + * Indicates whether one of the predefined tipping options is to let the shopper enter a custom tip. If **true**, only three of the other options defined in `predefinedTipEntries` are shown. + */ + 'allowCustomAmount'?: boolean; + /** + * The currency that the tipping settings apply to. + */ + 'currency'?: string; + /** + * Tipping options the shopper can choose from if `usePredefinedTipEntries` is **true**. The maximum number of predefined options is four, or three plus the option to enter a custom tip. The options can be a mix of: - A percentage of the transaction amount. Example: **5%** - A tip amount in minor units. Example: **500** for a EUR 5 tip. + */ + 'predefinedTipEntries'?: Array; + /** + * Indicates whether the terminal shows a prompt to enter a tip (**false**), or predefined tipping options to choose from (**true**). + */ + 'usePredefinedTipEntries'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowCustomAmount", + "baseName": "allowCustomAmount", + "type": "boolean" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "predefinedTipEntries", + "baseName": "predefinedTipEntries", + "type": "Array" + }, + { + "name": "usePredefinedTipEntries", + "baseName": "usePredefinedTipEntries", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return Gratuity.attributeTypeMap; + } +} + diff --git a/src/typings/management/hardware.ts b/src/typings/management/hardware.ts new file mode 100644 index 0000000..e344218 --- /dev/null +++ b/src/typings/management/hardware.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Hardware { + /** + * The brightness of the display when the terminal is being used, expressed as a percentage. + */ + 'displayMaximumBackLight'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "displayMaximumBackLight", + "baseName": "displayMaximumBackLight", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Hardware.attributeTypeMap; + } +} + diff --git a/src/typings/management/idName.ts b/src/typings/management/idName.ts new file mode 100644 index 0000000..cf9ce89 --- /dev/null +++ b/src/typings/management/idName.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class IdName { + /** + * The identifier of the terminal model. + */ + 'id'?: string; + /** + * The name of the terminal model. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return IdName.attributeTypeMap; + } +} + diff --git a/src/typings/management/installAndroidAppDetails.ts b/src/typings/management/installAndroidAppDetails.ts new file mode 100644 index 0000000..770a8a9 --- /dev/null +++ b/src/typings/management/installAndroidAppDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class InstallAndroidAppDetails { + /** + * The unique identifier of the app to be installed. + */ + 'appId'?: string; + /** + * Type of terminal action: Install an Android app. + */ + 'type'?: InstallAndroidAppDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "appId", + "baseName": "appId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "InstallAndroidAppDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return InstallAndroidAppDetails.attributeTypeMap; + } +} + +export namespace InstallAndroidAppDetails { + export enum TypeEnum { + InstallAndroidApp = 'InstallAndroidApp' + } +} diff --git a/src/typings/management/installAndroidCertificateDetails.ts b/src/typings/management/installAndroidCertificateDetails.ts new file mode 100644 index 0000000..04b6d75 --- /dev/null +++ b/src/typings/management/installAndroidCertificateDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class InstallAndroidCertificateDetails { + /** + * The unique identifier of the certificate to be installed. + */ + 'certificateId'?: string; + /** + * Type of terminal action: Install an Android certificate. + */ + 'type'?: InstallAndroidCertificateDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "certificateId", + "baseName": "certificateId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "InstallAndroidCertificateDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return InstallAndroidCertificateDetails.attributeTypeMap; + } +} + +export namespace InstallAndroidCertificateDetails { + export enum TypeEnum { + InstallAndroidCertificate = 'InstallAndroidCertificate' + } +} diff --git a/src/typings/management/invalidField.ts b/src/typings/management/invalidField.ts new file mode 100644 index 0000000..8f5ec6d --- /dev/null +++ b/src/typings/management/invalidField.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class InvalidField { + /** + * Description of the validation error. + */ + 'message': string; + /** + * The field that has an invalid value. + */ + 'name': string; + /** + * The invalid value. + */ + 'value': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return InvalidField.attributeTypeMap; + } +} + diff --git a/src/typings/management/jSONObject.ts b/src/typings/management/jSONObject.ts new file mode 100644 index 0000000..81eccd9 --- /dev/null +++ b/src/typings/management/jSONObject.ts @@ -0,0 +1,34 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { JSONPath } from './jSONPath'; + +export class JSONObject { + 'paths'?: Array; + 'rootPath'?: JSONPath; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "paths", + "baseName": "paths", + "type": "Array" + }, + { + "name": "rootPath", + "baseName": "rootPath", + "type": "JSONPath" + } ]; + + static getAttributeTypeMap() { + return JSONObject.attributeTypeMap; + } +} + diff --git a/src/typings/management/jSONPath.ts b/src/typings/management/jSONPath.ts new file mode 100644 index 0000000..a62c55b --- /dev/null +++ b/src/typings/management/jSONPath.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class JSONPath { + 'content'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "content", + "baseName": "content", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return JSONPath.attributeTypeMap; + } +} + diff --git a/src/typings/management/klarnaInfo.ts b/src/typings/management/klarnaInfo.ts new file mode 100644 index 0000000..94a3b7e --- /dev/null +++ b/src/typings/management/klarnaInfo.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class KlarnaInfo { + /** + * Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**. + */ + 'autoCapture'?: boolean; + /** + * The email address for disputes. + */ + 'disputeEmail': string; + /** + * The region of operation. For example, **NA**, **EU**, **CH**, **AU**. + */ + 'region': KlarnaInfo.RegionEnum; + /** + * The email address of merchant support. + */ + 'supportEmail': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "autoCapture", + "baseName": "autoCapture", + "type": "boolean" + }, + { + "name": "disputeEmail", + "baseName": "disputeEmail", + "type": "string" + }, + { + "name": "region", + "baseName": "region", + "type": "KlarnaInfo.RegionEnum" + }, + { + "name": "supportEmail", + "baseName": "supportEmail", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return KlarnaInfo.attributeTypeMap; + } +} + +export namespace KlarnaInfo { + export enum RegionEnum { + Na = 'NA', + Eu = 'EU', + Ch = 'CH', + Au = 'AU' + } +} diff --git a/src/typings/management/links.ts b/src/typings/management/links.ts new file mode 100644 index 0000000..bd6ce91 --- /dev/null +++ b/src/typings/management/links.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class Links { + 'self': LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return Links.attributeTypeMap; + } +} + diff --git a/src/typings/management/linksElement.ts b/src/typings/management/linksElement.ts new file mode 100644 index 0000000..cf72b5a --- /dev/null +++ b/src/typings/management/linksElement.ts @@ -0,0 +1,27 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class LinksElement { + 'href'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "href", + "baseName": "href", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return LinksElement.attributeTypeMap; + } +} + diff --git a/src/typings/management/listCompanyApiCredentialsResponse.ts b/src/typings/management/listCompanyApiCredentialsResponse.ts new file mode 100644 index 0000000..9f60b54 --- /dev/null +++ b/src/typings/management/listCompanyApiCredentialsResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CompanyApiCredential } from './companyApiCredential'; +import { PaginationLinks } from './paginationLinks'; + +export class ListCompanyApiCredentialsResponse { + 'links'?: PaginationLinks; + /** + * The list of API credentials. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListCompanyApiCredentialsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listCompanyResponse.ts b/src/typings/management/listCompanyResponse.ts new file mode 100644 index 0000000..dbde568 --- /dev/null +++ b/src/typings/management/listCompanyResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Company } from './company'; +import { PaginationLinks } from './paginationLinks'; + +export class ListCompanyResponse { + 'links'?: PaginationLinks; + /** + * The list of companies. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListCompanyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listCompanyUsersResponse.ts b/src/typings/management/listCompanyUsersResponse.ts new file mode 100644 index 0000000..3204d9b --- /dev/null +++ b/src/typings/management/listCompanyUsersResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CompanyUser } from './companyUser'; +import { PaginationLinks } from './paginationLinks'; + +export class ListCompanyUsersResponse { + 'links'?: PaginationLinks; + /** + * The list of users. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListCompanyUsersResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listExternalTerminalActionsResponse.ts b/src/typings/management/listExternalTerminalActionsResponse.ts new file mode 100644 index 0000000..4290cc7 --- /dev/null +++ b/src/typings/management/listExternalTerminalActionsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ExternalTerminalAction } from './externalTerminalAction'; + +export class ListExternalTerminalActionsResponse { + /** + * The list of terminal actions. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ListExternalTerminalActionsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listMerchantApiCredentialsResponse.ts b/src/typings/management/listMerchantApiCredentialsResponse.ts new file mode 100644 index 0000000..8d93b1b --- /dev/null +++ b/src/typings/management/listMerchantApiCredentialsResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ApiCredential } from './apiCredential'; +import { PaginationLinks } from './paginationLinks'; + +export class ListMerchantApiCredentialsResponse { + 'links'?: PaginationLinks; + /** + * The list of API credentials. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListMerchantApiCredentialsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listMerchantResponse.ts b/src/typings/management/listMerchantResponse.ts new file mode 100644 index 0000000..a7cf57f --- /dev/null +++ b/src/typings/management/listMerchantResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Merchant } from './merchant'; +import { PaginationLinks } from './paginationLinks'; + +export class ListMerchantResponse { + 'links'?: PaginationLinks; + /** + * The list of merchant accounts. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListMerchantResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listMerchantUsersResponse.ts b/src/typings/management/listMerchantUsersResponse.ts new file mode 100644 index 0000000..46270cd --- /dev/null +++ b/src/typings/management/listMerchantUsersResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PaginationLinks } from './paginationLinks'; +import { User } from './user'; + +export class ListMerchantUsersResponse { + 'links'?: PaginationLinks; + /** + * The list of users. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListMerchantUsersResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listStoresResponse.ts b/src/typings/management/listStoresResponse.ts new file mode 100644 index 0000000..4e793f8 --- /dev/null +++ b/src/typings/management/listStoresResponse.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PaginationLinks } from './paginationLinks'; +import { Store } from './store'; + +export class ListStoresResponse { + 'links'?: PaginationLinks; + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListStoresResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listTerminalsResponse.ts b/src/typings/management/listTerminalsResponse.ts new file mode 100644 index 0000000..556f2e1 --- /dev/null +++ b/src/typings/management/listTerminalsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Terminal } from './terminal'; + +export class ListTerminalsResponse { + /** + * The list of terminals. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ListTerminalsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/listWebhooksResponse.ts b/src/typings/management/listWebhooksResponse.ts new file mode 100644 index 0000000..c993e5d --- /dev/null +++ b/src/typings/management/listWebhooksResponse.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PaginationLinks } from './paginationLinks'; +import { Webhook } from './webhook'; + +export class ListWebhooksResponse { + 'links'?: PaginationLinks; + /** + * Reference to the account. + */ + 'accountReference'?: string; + /** + * The list of webhooks configured for this account. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "accountReference", + "baseName": "accountReference", + "type": "string" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ListWebhooksResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/logo.ts b/src/typings/management/logo.ts new file mode 100644 index 0000000..204c8d4 --- /dev/null +++ b/src/typings/management/logo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Logo { + /** + * The image file, converted to a Base64-encoded string, of the logo to be shown on the terminal. + */ + 'data'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Logo.attributeTypeMap; + } +} + diff --git a/src/typings/management/meApiCredential.ts b/src/typings/management/meApiCredential.ts new file mode 100644 index 0000000..4e0efd7 --- /dev/null +++ b/src/typings/management/meApiCredential.ts @@ -0,0 +1,119 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AllowedOrigin } from './allowedOrigin'; +import { ApiCredentialLinks } from './apiCredentialLinks'; + +export class MeApiCredential { + 'links'?: ApiCredentialLinks; + /** + * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. + */ + 'active': boolean; + /** + * List of IP addresses from which your client can make requests. If the list is empty, we allow requests from any IP. If the list is not empty and we get a request from an IP which is not on the list, you get a security error. + */ + 'allowedIpAddresses': Array; + /** + * List containing the [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) linked to the API credential. + */ + 'allowedOrigins'?: Array; + /** + * List of merchant accounts that the API credential has access to. + */ + 'associatedMerchantAccounts'?: Array; + /** + * Public key used for [client-side authentication](https://docs.adyen.com/development-resources/client-side-authentication). The client key is required for Drop-in and Components integrations. + */ + 'clientKey': string; + /** + * Name of the company linked to the API credential. + */ + 'companyName'?: string; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * Unique identifier of the API credential. + */ + 'id': string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles': Array; + /** + * The name of the [API credential](https://docs.adyen.com/development-resources/api-credentials), for example **ws@Company.TestCompany**. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "ApiCredentialLinks" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedIpAddresses", + "baseName": "allowedIpAddresses", + "type": "Array" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "clientKey", + "baseName": "clientKey", + "type": "string" + }, + { + "name": "companyName", + "baseName": "companyName", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MeApiCredential.attributeTypeMap; + } +} + diff --git a/src/typings/management/merchant.ts b/src/typings/management/merchant.ts new file mode 100644 index 0000000..e7eecf8 --- /dev/null +++ b/src/typings/management/merchant.ts @@ -0,0 +1,146 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { DataCenter } from './dataCenter'; +import { MerchantLinks } from './merchantLinks'; + +export class Merchant { + 'links'?: MerchantLinks; + /** + * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** + */ + 'captureDelay'?: string; + /** + * The unique identifier of the company account this merchant belongs to + */ + 'companyId'?: string; + /** + * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. + */ + 'dataCenters'?: Array; + /** + * The default [`shopperInteraction`](https://docs.adyen.com/api-explorer/#/CheckoutService/v68/post/payments__reqParam_shopperInteraction) value used when processing payments through this merchant account. + */ + 'defaultShopperInteraction'?: string; + /** + * Your description for the merchant account, maximum 300 characters + */ + 'description'?: string; + /** + * The unique identifier of the merchant account. + */ + 'id'?: string; + /** + * The city where the legal entity of this merchant account is registered. + */ + 'merchantCity'?: string; + /** + * The name of the legal entity associated with the merchant account. + */ + 'name'?: string; + /** + * Only applies to merchant accounts managed by Adyen\'s partners. The name of the pricing plan assigned to the merchant account. + */ + 'pricingPlan'?: string; + /** + * The currency of the country where the legal entity of this merchant account is registered. Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, a legal entity based in the United States has USD as the primary settlement currency. + */ + 'primarySettlementCurrency'?: string; + /** + * Reference of the merchant account. + */ + 'reference'?: string; + /** + * The URL for the ecommerce website used with this merchant account. + */ + 'shopWebAddress'?: string; + /** + * The status of the merchant account. Possible values: * **PreActive**: The merchant account has been created. Users cannot access the merchant account in the Customer Area. The account cannot process payments. * **Active**: Users can access the merchant account in the Customer Area. If the company account is also **Active**, then payment processing and payouts are enabled. * **InactiveWithModifications**: Users can access the merchant account in the Customer Area. You cannot process new payments but you can still modify payments, for example issue refunds. You can still receive payouts. * **Inactive**: Users can access the merchant account in the Customer Area. Payment processing and payouts are disabled. * **Closed**: The account is closed and this cannot be reversed. Users cannot log in. Payment processing and payouts are disabled. + */ + 'status'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "MerchantLinks" + }, + { + "name": "captureDelay", + "baseName": "captureDelay", + "type": "string" + }, + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "dataCenters", + "baseName": "dataCenters", + "type": "Array" + }, + { + "name": "defaultShopperInteraction", + "baseName": "defaultShopperInteraction", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantCity", + "baseName": "merchantCity", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "pricingPlan", + "baseName": "pricingPlan", + "type": "string" + }, + { + "name": "primarySettlementCurrency", + "baseName": "primarySettlementCurrency", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopWebAddress", + "baseName": "shopWebAddress", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Merchant.attributeTypeMap; + } +} + diff --git a/src/typings/management/merchantLinks.ts b/src/typings/management/merchantLinks.ts new file mode 100644 index 0000000..b5436eb --- /dev/null +++ b/src/typings/management/merchantLinks.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class MerchantLinks { + 'apiCredentials'?: LinksElement; + 'self': LinksElement; + 'users'?: LinksElement; + 'webhooks'?: LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "apiCredentials", + "baseName": "apiCredentials", + "type": "LinksElement" + }, + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + }, + { + "name": "users", + "baseName": "users", + "type": "LinksElement" + }, + { + "name": "webhooks", + "baseName": "webhooks", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return MerchantLinks.attributeTypeMap; + } +} + diff --git a/src/typings/management/minorUnitsMonetaryValue.ts b/src/typings/management/minorUnitsMonetaryValue.ts new file mode 100644 index 0000000..ba0bf6e --- /dev/null +++ b/src/typings/management/minorUnitsMonetaryValue.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MinorUnitsMonetaryValue { + /** + * Amount of this monetary value, in minor units + */ + 'amount'?: number; + /** + * Currency of this monetary value, Format: [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currencyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "number" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MinorUnitsMonetaryValue.attributeTypeMap; + } +} + diff --git a/src/typings/management/modelFile.ts b/src/typings/management/modelFile.ts new file mode 100644 index 0000000..12df328 --- /dev/null +++ b/src/typings/management/modelFile.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModelFile { + /** + * The certificate content converted to a Base64-encoded string. + */ + 'data': string; + /** + * The name of the certificate. Must be unique across Wi-Fi profiles. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModelFile.attributeTypeMap; + } +} + diff --git a/src/typings/management/models.ts b/src/typings/management/models.ts new file mode 100644 index 0000000..3dc69ab --- /dev/null +++ b/src/typings/management/models.ts @@ -0,0 +1,596 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './additionalSettings'; +export * from './additionalSettingsResponse'; +export * from './address'; +export * from './address2'; +export * from './allowedOrigin'; +export * from './allowedOriginsResponse'; +export * from './amount'; +export * from './amount2'; +export * from './androidApp'; +export * from './androidAppsResponse'; +export * from './androidCertificate'; +export * from './androidCertificatesResponse'; +export * from './apiCredential'; +export * from './apiCredentialLinks'; +export * from './applePayInfo'; +export * from './bcmcInfo'; +export * from './billingEntitiesResponse'; +export * from './billingEntity'; +export * from './cardholderReceipt'; +export * from './cartesBancairesInfo'; +export * from './company'; +export * from './companyApiCredential'; +export * from './companyLinks'; +export * from './companyUser'; +export * from './configuration'; +export * from './connectivity'; +export * from './contact'; +export * from './createAllowedOriginRequest'; +export * from './createApiCredentialResponse'; +export * from './createCompanyApiCredentialRequest'; +export * from './createCompanyApiCredentialResponse'; +export * from './createCompanyUserRequest'; +export * from './createCompanyUserResponse'; +export * from './createCompanyWebhookRequest'; +export * from './createMerchantApiCredentialRequest'; +export * from './createMerchantRequest'; +export * from './createMerchantResponse'; +export * from './createMerchantUserRequest'; +export * from './createMerchantWebhookRequest'; +export * from './createUserResponse'; +export * from './currency'; +export * from './customNotification'; +export * from './dataCenter'; +export * from './eventUrl'; +export * from './externalTerminalAction'; +export * from './generateApiKeyResponse'; +export * from './generateClientKeyResponse'; +export * from './generateHmacKeyResponse'; +export * from './giroPayInfo'; +export * from './gratuity'; +export * from './hardware'; +export * from './idName'; +export * from './installAndroidAppDetails'; +export * from './installAndroidCertificateDetails'; +export * from './invalidField'; +export * from './jSONObject'; +export * from './jSONPath'; +export * from './klarnaInfo'; +export * from './links'; +export * from './linksElement'; +export * from './listCompanyApiCredentialsResponse'; +export * from './listCompanyResponse'; +export * from './listCompanyUsersResponse'; +export * from './listExternalTerminalActionsResponse'; +export * from './listMerchantApiCredentialsResponse'; +export * from './listMerchantResponse'; +export * from './listMerchantUsersResponse'; +export * from './listStoresResponse'; +export * from './listTerminalsResponse'; +export * from './listWebhooksResponse'; +export * from './logo'; +export * from './meApiCredential'; +export * from './merchant'; +export * from './merchantLinks'; +export * from './minorUnitsMonetaryValue'; +export * from './modelFile'; +export * from './name'; +export * from './name2'; +export * from './nexo'; +export * from './offlineProcessing'; +export * from './opi'; +export * from './orderItem'; +export * from './paginationLinks'; +export * from './payPalInfo'; +export * from './paymentMethod'; +export * from './paymentMethodResponse'; +export * from './paymentMethodSetupInfo'; +export * from './payoutSettings'; +export * from './payoutSettingsRequest'; +export * from './payoutSettingsResponse'; +export * from './profile'; +export * from './receiptOptions'; +export * from './receiptPrinting'; +export * from './releaseUpdateDetails'; +export * from './requestActivationResponse'; +export * from './restServiceError'; +export * from './scheduleTerminalActionsRequest'; +export * from './scheduleTerminalActionsResponse'; +export * from './settings'; +export * from './shippingLocation'; +export * from './shippingLocationsResponse'; +export * from './signature'; +export * from './sofortInfo'; +export * from './store'; +export * from './storeCreationRequest'; +export * from './storeCreationWithMerchantCodeRequest'; +export * from './storeSplitConfiguration'; +export * from './surcharge'; +export * from './swishInfo'; +export * from './terminal'; +export * from './terminalActionScheduleDetail'; +export * from './terminalModelsResponse'; +export * from './terminalOrder'; +export * from './terminalOrderRequest'; +export * from './terminalOrdersResponse'; +export * from './terminalProduct'; +export * from './terminalProductsResponse'; +export * from './terminalSettings'; +export * from './testCompanyWebhookRequest'; +export * from './testOutput'; +export * from './testWebhookRequest'; +export * from './testWebhookResponse'; +export * from './timeouts'; +export * from './uninstallAndroidAppDetails'; +export * from './uninstallAndroidCertificateDetails'; +export * from './updatableAddress'; +export * from './updateCompanyApiCredentialRequest'; +export * from './updateCompanyUserRequest'; +export * from './updateCompanyWebhookRequest'; +export * from './updateMerchantApiCredentialRequest'; +export * from './updateMerchantUserRequest'; +export * from './updateMerchantWebhookRequest'; +export * from './updatePaymentMethodInfo'; +export * from './updatePayoutSettingsRequest'; +export * from './updateStoreRequest'; +export * from './url'; +export * from './user'; +export * from './webhook'; +export * from './webhookLinks'; +export * from './wifiProfiles'; + + +import { AdditionalSettings } from './additionalSettings'; +import { AdditionalSettingsResponse } from './additionalSettingsResponse'; +import { Address } from './address'; +import { Address2 } from './address2'; +import { AllowedOrigin } from './allowedOrigin'; +import { AllowedOriginsResponse } from './allowedOriginsResponse'; +import { Amount } from './amount'; +import { Amount2 } from './amount2'; +import { AndroidApp } from './androidApp'; +import { AndroidAppsResponse } from './androidAppsResponse'; +import { AndroidCertificate } from './androidCertificate'; +import { AndroidCertificatesResponse } from './androidCertificatesResponse'; +import { ApiCredential } from './apiCredential'; +import { ApiCredentialLinks } from './apiCredentialLinks'; +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { BillingEntitiesResponse } from './billingEntitiesResponse'; +import { BillingEntity } from './billingEntity'; +import { CardholderReceipt } from './cardholderReceipt'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { Company } from './company'; +import { CompanyApiCredential } from './companyApiCredential'; +import { CompanyLinks } from './companyLinks'; +import { CompanyUser } from './companyUser'; +import { Configuration } from './configuration'; +import { Connectivity } from './connectivity'; +import { Contact } from './contact'; +import { CreateAllowedOriginRequest } from './createAllowedOriginRequest'; +import { CreateApiCredentialResponse } from './createApiCredentialResponse'; +import { CreateCompanyApiCredentialRequest } from './createCompanyApiCredentialRequest'; +import { CreateCompanyApiCredentialResponse } from './createCompanyApiCredentialResponse'; +import { CreateCompanyUserRequest } from './createCompanyUserRequest'; +import { CreateCompanyUserResponse } from './createCompanyUserResponse'; +import { CreateCompanyWebhookRequest } from './createCompanyWebhookRequest'; +import { CreateMerchantApiCredentialRequest } from './createMerchantApiCredentialRequest'; +import { CreateMerchantRequest } from './createMerchantRequest'; +import { CreateMerchantResponse } from './createMerchantResponse'; +import { CreateMerchantUserRequest } from './createMerchantUserRequest'; +import { CreateMerchantWebhookRequest } from './createMerchantWebhookRequest'; +import { CreateUserResponse } from './createUserResponse'; +import { Currency } from './currency'; +import { CustomNotification } from './customNotification'; +import { DataCenter } from './dataCenter'; +import { EventUrl } from './eventUrl'; +import { ExternalTerminalAction } from './externalTerminalAction'; +import { GenerateApiKeyResponse } from './generateApiKeyResponse'; +import { GenerateClientKeyResponse } from './generateClientKeyResponse'; +import { GenerateHmacKeyResponse } from './generateHmacKeyResponse'; +import { GiroPayInfo } from './giroPayInfo'; +import { Gratuity } from './gratuity'; +import { Hardware } from './hardware'; +import { IdName } from './idName'; +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; +import { JSONPath } from './jSONPath'; +import { KlarnaInfo } from './klarnaInfo'; +import { Links } from './links'; +import { LinksElement } from './linksElement'; +import { ListCompanyApiCredentialsResponse } from './listCompanyApiCredentialsResponse'; +import { ListCompanyResponse } from './listCompanyResponse'; +import { ListCompanyUsersResponse } from './listCompanyUsersResponse'; +import { ListExternalTerminalActionsResponse } from './listExternalTerminalActionsResponse'; +import { ListMerchantApiCredentialsResponse } from './listMerchantApiCredentialsResponse'; +import { ListMerchantResponse } from './listMerchantResponse'; +import { ListMerchantUsersResponse } from './listMerchantUsersResponse'; +import { ListStoresResponse } from './listStoresResponse'; +import { ListTerminalsResponse } from './listTerminalsResponse'; +import { ListWebhooksResponse } from './listWebhooksResponse'; +import { Logo } from './logo'; +import { MeApiCredential } from './meApiCredential'; +import { Merchant } from './merchant'; +import { MerchantLinks } from './merchantLinks'; +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; +import { ModelFile } from './modelFile'; +import { Name } from './name'; +import { Name2 } from './name2'; +import { Nexo } from './nexo'; +import { OfflineProcessing } from './offlineProcessing'; +import { Opi } from './opi'; +import { OrderItem } from './orderItem'; +import { PaginationLinks } from './paginationLinks'; +import { PayPalInfo } from './payPalInfo'; +import { PaymentMethod } from './paymentMethod'; +import { PaymentMethodResponse } from './paymentMethodResponse'; +import { PaymentMethodSetupInfo } from './paymentMethodSetupInfo'; +import { PayoutSettings } from './payoutSettings'; +import { PayoutSettingsRequest } from './payoutSettingsRequest'; +import { PayoutSettingsResponse } from './payoutSettingsResponse'; +import { Profile } from './profile'; +import { ReceiptOptions } from './receiptOptions'; +import { ReceiptPrinting } from './receiptPrinting'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { RequestActivationResponse } from './requestActivationResponse'; +import { RestServiceError } from './restServiceError'; +import { ScheduleTerminalActionsRequest } from './scheduleTerminalActionsRequest'; +import { ScheduleTerminalActionsResponse } from './scheduleTerminalActionsResponse'; +import { Settings } from './settings'; +import { ShippingLocation } from './shippingLocation'; +import { ShippingLocationsResponse } from './shippingLocationsResponse'; +import { Signature } from './signature'; +import { SofortInfo } from './sofortInfo'; +import { Store } from './store'; +import { StoreCreationRequest } from './storeCreationRequest'; +import { StoreCreationWithMerchantCodeRequest } from './storeCreationWithMerchantCodeRequest'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { Surcharge } from './surcharge'; +import { SwishInfo } from './swishInfo'; +import { Terminal } from './terminal'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; +import { TerminalModelsResponse } from './terminalModelsResponse'; +import { TerminalOrder } from './terminalOrder'; +import { TerminalOrderRequest } from './terminalOrderRequest'; +import { TerminalOrdersResponse } from './terminalOrdersResponse'; +import { TerminalProduct } from './terminalProduct'; +import { TerminalProductsResponse } from './terminalProductsResponse'; +import { TerminalSettings } from './terminalSettings'; +import { TestCompanyWebhookRequest } from './testCompanyWebhookRequest'; +import { TestOutput } from './testOutput'; +import { TestWebhookRequest } from './testWebhookRequest'; +import { TestWebhookResponse } from './testWebhookResponse'; +import { Timeouts } from './timeouts'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; +import { UpdatableAddress } from './updatableAddress'; +import { UpdateCompanyApiCredentialRequest } from './updateCompanyApiCredentialRequest'; +import { UpdateCompanyUserRequest } from './updateCompanyUserRequest'; +import { UpdateCompanyWebhookRequest } from './updateCompanyWebhookRequest'; +import { UpdateMerchantApiCredentialRequest } from './updateMerchantApiCredentialRequest'; +import { UpdateMerchantUserRequest } from './updateMerchantUserRequest'; +import { UpdateMerchantWebhookRequest } from './updateMerchantWebhookRequest'; +import { UpdatePaymentMethodInfo } from './updatePaymentMethodInfo'; +import { UpdatePayoutSettingsRequest } from './updatePayoutSettingsRequest'; +import { UpdateStoreRequest } from './updateStoreRequest'; +import { Url } from './url'; +import { User } from './user'; +import { Webhook } from './webhook'; +import { WebhookLinks } from './webhookLinks'; +import { WifiProfiles } from './wifiProfiles'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "Configuration.SourcesEnum": Configuration.SourcesEnum, + "Connectivity.SimcardStatusEnum": Connectivity.SimcardStatusEnum, + "CreateCompanyWebhookRequest.CommunicationFormatEnum": CreateCompanyWebhookRequest.CommunicationFormatEnum, + "CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum": CreateCompanyWebhookRequest.FilterMerchantAccountTypeEnum, + "CreateCompanyWebhookRequest.NetworkTypeEnum": CreateCompanyWebhookRequest.NetworkTypeEnum, + "CreateCompanyWebhookRequest.SslVersionEnum": CreateCompanyWebhookRequest.SslVersionEnum, + "CreateMerchantWebhookRequest.CommunicationFormatEnum": CreateMerchantWebhookRequest.CommunicationFormatEnum, + "CreateMerchantWebhookRequest.NetworkTypeEnum": CreateMerchantWebhookRequest.NetworkTypeEnum, + "CreateMerchantWebhookRequest.SslVersionEnum": CreateMerchantWebhookRequest.SslVersionEnum, + "InstallAndroidAppDetails.TypeEnum": InstallAndroidAppDetails.TypeEnum, + "InstallAndroidCertificateDetails.TypeEnum": InstallAndroidCertificateDetails.TypeEnum, + "KlarnaInfo.RegionEnum": KlarnaInfo.RegionEnum, + "PaymentMethodSetupInfo.ShopperInteractionEnum": PaymentMethodSetupInfo.ShopperInteractionEnum, + "PaymentMethodSetupInfo.TypeEnum": PaymentMethodSetupInfo.TypeEnum, + "PayoutSettings.PriorityEnum": PayoutSettings.PriorityEnum, + "PayoutSettings.VerificationStatusEnum": PayoutSettings.VerificationStatusEnum, + "ReleaseUpdateDetails.TypeEnum": ReleaseUpdateDetails.TypeEnum, + "Store.StatusEnum": Store.StatusEnum, + "UninstallAndroidAppDetails.TypeEnum": UninstallAndroidAppDetails.TypeEnum, + "UninstallAndroidCertificateDetails.TypeEnum": UninstallAndroidCertificateDetails.TypeEnum, + "UpdateCompanyWebhookRequest.CommunicationFormatEnum": UpdateCompanyWebhookRequest.CommunicationFormatEnum, + "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum": UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum, + "UpdateCompanyWebhookRequest.NetworkTypeEnum": UpdateCompanyWebhookRequest.NetworkTypeEnum, + "UpdateCompanyWebhookRequest.SslVersionEnum": UpdateCompanyWebhookRequest.SslVersionEnum, + "UpdateMerchantWebhookRequest.CommunicationFormatEnum": UpdateMerchantWebhookRequest.CommunicationFormatEnum, + "UpdateMerchantWebhookRequest.NetworkTypeEnum": UpdateMerchantWebhookRequest.NetworkTypeEnum, + "UpdateMerchantWebhookRequest.SslVersionEnum": UpdateMerchantWebhookRequest.SslVersionEnum, + "UpdateStoreRequest.StatusEnum": UpdateStoreRequest.StatusEnum, + "Webhook.CommunicationFormatEnum": Webhook.CommunicationFormatEnum, + "Webhook.FilterMerchantAccountTypeEnum": Webhook.FilterMerchantAccountTypeEnum, + "Webhook.NetworkTypeEnum": Webhook.NetworkTypeEnum, + "Webhook.SslVersionEnum": Webhook.SslVersionEnum, +} + +let typeMap: {[index: string]: any} = { + "AdditionalSettings": AdditionalSettings, + "AdditionalSettingsResponse": AdditionalSettingsResponse, + "Address": Address, + "Address2": Address2, + "AllowedOrigin": AllowedOrigin, + "AllowedOriginsResponse": AllowedOriginsResponse, + "Amount": Amount, + "Amount2": Amount2, + "AndroidApp": AndroidApp, + "AndroidAppsResponse": AndroidAppsResponse, + "AndroidCertificate": AndroidCertificate, + "AndroidCertificatesResponse": AndroidCertificatesResponse, + "ApiCredential": ApiCredential, + "ApiCredentialLinks": ApiCredentialLinks, + "ApplePayInfo": ApplePayInfo, + "BcmcInfo": BcmcInfo, + "BillingEntitiesResponse": BillingEntitiesResponse, + "BillingEntity": BillingEntity, + "CardholderReceipt": CardholderReceipt, + "CartesBancairesInfo": CartesBancairesInfo, + "Company": Company, + "CompanyApiCredential": CompanyApiCredential, + "CompanyLinks": CompanyLinks, + "CompanyUser": CompanyUser, + "Configuration": Configuration, + "Connectivity": Connectivity, + "Contact": Contact, + "CreateAllowedOriginRequest": CreateAllowedOriginRequest, + "CreateApiCredentialResponse": CreateApiCredentialResponse, + "CreateCompanyApiCredentialRequest": CreateCompanyApiCredentialRequest, + "CreateCompanyApiCredentialResponse": CreateCompanyApiCredentialResponse, + "CreateCompanyUserRequest": CreateCompanyUserRequest, + "CreateCompanyUserResponse": CreateCompanyUserResponse, + "CreateCompanyWebhookRequest": CreateCompanyWebhookRequest, + "CreateMerchantApiCredentialRequest": CreateMerchantApiCredentialRequest, + "CreateMerchantRequest": CreateMerchantRequest, + "CreateMerchantResponse": CreateMerchantResponse, + "CreateMerchantUserRequest": CreateMerchantUserRequest, + "CreateMerchantWebhookRequest": CreateMerchantWebhookRequest, + "CreateUserResponse": CreateUserResponse, + "Currency": Currency, + "CustomNotification": CustomNotification, + "DataCenter": DataCenter, + "EventUrl": EventUrl, + "ExternalTerminalAction": ExternalTerminalAction, + "GenerateApiKeyResponse": GenerateApiKeyResponse, + "GenerateClientKeyResponse": GenerateClientKeyResponse, + "GenerateHmacKeyResponse": GenerateHmacKeyResponse, + "GiroPayInfo": GiroPayInfo, + "Gratuity": Gratuity, + "Hardware": Hardware, + "IdName": IdName, + "InstallAndroidAppDetails": InstallAndroidAppDetails, + "InstallAndroidCertificateDetails": InstallAndroidCertificateDetails, + "InvalidField": InvalidField, + "JSONObject": JSONObject, + "JSONPath": JSONPath, + "KlarnaInfo": KlarnaInfo, + "Links": Links, + "LinksElement": LinksElement, + "ListCompanyApiCredentialsResponse": ListCompanyApiCredentialsResponse, + "ListCompanyResponse": ListCompanyResponse, + "ListCompanyUsersResponse": ListCompanyUsersResponse, + "ListExternalTerminalActionsResponse": ListExternalTerminalActionsResponse, + "ListMerchantApiCredentialsResponse": ListMerchantApiCredentialsResponse, + "ListMerchantResponse": ListMerchantResponse, + "ListMerchantUsersResponse": ListMerchantUsersResponse, + "ListStoresResponse": ListStoresResponse, + "ListTerminalsResponse": ListTerminalsResponse, + "ListWebhooksResponse": ListWebhooksResponse, + "Logo": Logo, + "MeApiCredential": MeApiCredential, + "Merchant": Merchant, + "MerchantLinks": MerchantLinks, + "MinorUnitsMonetaryValue": MinorUnitsMonetaryValue, + "ModelFile": ModelFile, + "Name": Name, + "Name2": Name2, + "Nexo": Nexo, + "OfflineProcessing": OfflineProcessing, + "Opi": Opi, + "OrderItem": OrderItem, + "PaginationLinks": PaginationLinks, + "PayPalInfo": PayPalInfo, + "PaymentMethod": PaymentMethod, + "PaymentMethodResponse": PaymentMethodResponse, + "PaymentMethodSetupInfo": PaymentMethodSetupInfo, + "PayoutSettings": PayoutSettings, + "PayoutSettingsRequest": PayoutSettingsRequest, + "PayoutSettingsResponse": PayoutSettingsResponse, + "Profile": Profile, + "ReceiptOptions": ReceiptOptions, + "ReceiptPrinting": ReceiptPrinting, + "ReleaseUpdateDetails": ReleaseUpdateDetails, + "RequestActivationResponse": RequestActivationResponse, + "RestServiceError": RestServiceError, + "ScheduleTerminalActionsRequest": ScheduleTerminalActionsRequest, + "ScheduleTerminalActionsResponse": ScheduleTerminalActionsResponse, + "Settings": Settings, + "ShippingLocation": ShippingLocation, + "ShippingLocationsResponse": ShippingLocationsResponse, + "Signature": Signature, + "SofortInfo": SofortInfo, + "Store": Store, + "StoreCreationRequest": StoreCreationRequest, + "StoreCreationWithMerchantCodeRequest": StoreCreationWithMerchantCodeRequest, + "StoreSplitConfiguration": StoreSplitConfiguration, + "Surcharge": Surcharge, + "SwishInfo": SwishInfo, + "Terminal": Terminal, + "TerminalActionScheduleDetail": TerminalActionScheduleDetail, + "TerminalModelsResponse": TerminalModelsResponse, + "TerminalOrder": TerminalOrder, + "TerminalOrderRequest": TerminalOrderRequest, + "TerminalOrdersResponse": TerminalOrdersResponse, + "TerminalProduct": TerminalProduct, + "TerminalProductsResponse": TerminalProductsResponse, + "TerminalSettings": TerminalSettings, + "TestCompanyWebhookRequest": TestCompanyWebhookRequest, + "TestOutput": TestOutput, + "TestWebhookRequest": TestWebhookRequest, + "TestWebhookResponse": TestWebhookResponse, + "Timeouts": Timeouts, + "UninstallAndroidAppDetails": UninstallAndroidAppDetails, + "UninstallAndroidCertificateDetails": UninstallAndroidCertificateDetails, + "UpdatableAddress": UpdatableAddress, + "UpdateCompanyApiCredentialRequest": UpdateCompanyApiCredentialRequest, + "UpdateCompanyUserRequest": UpdateCompanyUserRequest, + "UpdateCompanyWebhookRequest": UpdateCompanyWebhookRequest, + "UpdateMerchantApiCredentialRequest": UpdateMerchantApiCredentialRequest, + "UpdateMerchantUserRequest": UpdateMerchantUserRequest, + "UpdateMerchantWebhookRequest": UpdateMerchantWebhookRequest, + "UpdatePaymentMethodInfo": UpdatePaymentMethodInfo, + "UpdatePayoutSettingsRequest": UpdatePayoutSettingsRequest, + "UpdateStoreRequest": UpdateStoreRequest, + "Url": Url, + "User": User, + "Webhook": Webhook, + "WebhookLinks": WebhookLinks, + "WifiProfiles": WifiProfiles, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/management/name.ts b/src/typings/management/name.ts new file mode 100644 index 0000000..58ce525 --- /dev/null +++ b/src/typings/management/name.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name { + /** + * The first name. + */ + 'firstName': string; + /** + * The last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/management/name2.ts b/src/typings/management/name2.ts new file mode 100644 index 0000000..dba6bc4 --- /dev/null +++ b/src/typings/management/name2.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name2 { + /** + * The first name. + */ + 'firstName'?: string; + /** + * The last name. + */ + 'lastName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name2.attributeTypeMap; + } +} + diff --git a/src/typings/management/nexo.ts b/src/typings/management/nexo.ts new file mode 100644 index 0000000..53b406e --- /dev/null +++ b/src/typings/management/nexo.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { EventUrl } from './eventUrl'; + +export class Nexo { + 'eventUrls'?: EventUrl; + /** + * @deprecated One or more URLs to send event messages to when using Terminal API. + */ + 'nexoEventUrls'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventUrls", + "baseName": "eventUrls", + "type": "EventUrl" + }, + { + "name": "nexoEventUrls", + "baseName": "nexoEventUrls", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return Nexo.attributeTypeMap; + } +} + diff --git a/src/typings/management/offlineProcessing.ts b/src/typings/management/offlineProcessing.ts new file mode 100644 index 0000000..9e58aff --- /dev/null +++ b/src/typings/management/offlineProcessing.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MinorUnitsMonetaryValue } from './minorUnitsMonetaryValue'; + +export class OfflineProcessing { + /** + * The (inclusive) limit for accepting chip cards offline, in the processing currency, in minor units + */ + 'chipFloorLimit'?: number; + /** + * The maximum amount up to which swiped credit cards can be accepted offline, in the specified currency + */ + 'offlineSwipeLimits'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chipFloorLimit", + "baseName": "chipFloorLimit", + "type": "number" + }, + { + "name": "offlineSwipeLimits", + "baseName": "offlineSwipeLimits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return OfflineProcessing.attributeTypeMap; + } +} + diff --git a/src/typings/management/opi.ts b/src/typings/management/opi.ts new file mode 100644 index 0000000..4590312 --- /dev/null +++ b/src/typings/management/opi.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Opi { + /** + * Indicates if Pay at Table is enabled. + */ + 'enablePayAtTable'?: boolean; + /** + * The store number to use for Pay at Table. + */ + 'payAtTableStoreNumber'?: string; + /** + * The URL and port number used for Pay at Table communication. + */ + 'payAtTableURL'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enablePayAtTable", + "baseName": "enablePayAtTable", + "type": "boolean" + }, + { + "name": "payAtTableStoreNumber", + "baseName": "payAtTableStoreNumber", + "type": "string" + }, + { + "name": "payAtTableURL", + "baseName": "payAtTableURL", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Opi.attributeTypeMap; + } +} + diff --git a/src/typings/management/orderItem.ts b/src/typings/management/orderItem.ts new file mode 100644 index 0000000..12264f9 --- /dev/null +++ b/src/typings/management/orderItem.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class OrderItem { + /** + * The unique identifier of the product. + */ + 'id'?: string; + /** + * The name of the product. + */ + 'name'?: string; + /** + * The number of items with the specified product `id` included in the order. + */ + 'quantity'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "quantity", + "baseName": "quantity", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return OrderItem.attributeTypeMap; + } +} + diff --git a/src/typings/management/paginationLinks.ts b/src/typings/management/paginationLinks.ts new file mode 100644 index 0000000..b2bc641 --- /dev/null +++ b/src/typings/management/paginationLinks.ts @@ -0,0 +1,52 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class PaginationLinks { + 'first': LinksElement; + 'last': LinksElement; + 'next'?: LinksElement; + 'prev'?: LinksElement; + 'self': LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "first", + "baseName": "first", + "type": "LinksElement" + }, + { + "name": "last", + "baseName": "last", + "type": "LinksElement" + }, + { + "name": "next", + "baseName": "next", + "type": "LinksElement" + }, + { + "name": "prev", + "baseName": "prev", + "type": "LinksElement" + }, + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return PaginationLinks.attributeTypeMap; + } +} + diff --git a/src/typings/management/payPalInfo.ts b/src/typings/management/payPalInfo.ts new file mode 100644 index 0000000..8c335d0 --- /dev/null +++ b/src/typings/management/payPalInfo.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PayPalInfo { + /** + * Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**. + */ + 'directCapture'?: boolean; + /** + * Must be set to **true** to confirm that the settlement to your bank account is performed directly by PayPal. Default value: **null**. + */ + 'directSettlement': boolean; + /** + * PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters. + */ + 'payerId': string; + /** + * Your business email address. + */ + 'subject': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "directCapture", + "baseName": "directCapture", + "type": "boolean" + }, + { + "name": "directSettlement", + "baseName": "directSettlement", + "type": "boolean" + }, + { + "name": "payerId", + "baseName": "payerId", + "type": "string" + }, + { + "name": "subject", + "baseName": "subject", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayPalInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts new file mode 100644 index 0000000..5875d37 --- /dev/null +++ b/src/typings/management/paymentMethod.ts @@ -0,0 +1,140 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { GiroPayInfo } from './giroPayInfo'; +import { KlarnaInfo } from './klarnaInfo'; +import { PayPalInfo } from './payPalInfo'; +import { SofortInfo } from './sofortInfo'; +import { SwishInfo } from './swishInfo'; + +export class PaymentMethod { + 'applePay'?: ApplePayInfo; + 'bcmc'?: BcmcInfo; + /** + * The unique identifier of the business line. + */ + 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo; + /** + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + */ + 'countries'?: Array; + /** + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + */ + 'currencies'?: Array; + /** + * Indicates whether the payment method is enabled (**true**) or disabled (**false**). + */ + 'enabled'?: boolean; + 'giroPay'?: GiroPayInfo; + /** + * The identifier of the resource. + */ + 'id': string; + 'klarna'?: KlarnaInfo; + 'paypal'?: PayPalInfo; + 'sofort'?: SofortInfo; + /** + * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. + */ + 'storeId'?: string; + 'swish'?: SwishInfo; + /** + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "applePay", + "baseName": "applePay", + "type": "ApplePayInfo" + }, + { + "name": "bcmc", + "baseName": "bcmc", + "type": "BcmcInfo" + }, + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "cartesBancaires", + "baseName": "cartesBancaires", + "type": "CartesBancairesInfo" + }, + { + "name": "countries", + "baseName": "countries", + "type": "Array" + }, + { + "name": "currencies", + "baseName": "currencies", + "type": "Array" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "giroPay", + "baseName": "giroPay", + "type": "GiroPayInfo" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "klarna", + "baseName": "klarna", + "type": "KlarnaInfo" + }, + { + "name": "paypal", + "baseName": "paypal", + "type": "PayPalInfo" + }, + { + "name": "sofort", + "baseName": "sofort", + "type": "SofortInfo" + }, + { + "name": "storeId", + "baseName": "storeId", + "type": "string" + }, + { + "name": "swish", + "baseName": "swish", + "type": "SwishInfo" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PaymentMethod.attributeTypeMap; + } +} + diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts new file mode 100644 index 0000000..1e747a0 --- /dev/null +++ b/src/typings/management/paymentMethodResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PaginationLinks } from './paginationLinks'; +import { PaymentMethod } from './paymentMethod'; + +export class PaymentMethodResponse { + 'links'?: PaginationLinks; + /** + * Payment methods details. + */ + 'data'?: Array; + /** + * Total number of items. + */ + 'itemsTotal': number; + /** + * Total number of pages. + */ + 'pagesTotal': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "PaginationLinks" + }, + { + "name": "data", + "baseName": "data", + "type": "Array" + }, + { + "name": "itemsTotal", + "baseName": "itemsTotal", + "type": "number" + }, + { + "name": "pagesTotal", + "baseName": "pagesTotal", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts new file mode 100644 index 0000000..97e840a --- /dev/null +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -0,0 +1,174 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ApplePayInfo } from './applePayInfo'; +import { BcmcInfo } from './bcmcInfo'; +import { CartesBancairesInfo } from './cartesBancairesInfo'; +import { GiroPayInfo } from './giroPayInfo'; +import { KlarnaInfo } from './klarnaInfo'; +import { PayPalInfo } from './payPalInfo'; +import { SofortInfo } from './sofortInfo'; +import { SwishInfo } from './swishInfo'; + +export class PaymentMethodSetupInfo { + 'applePay'?: ApplePayInfo; + 'bcmc'?: BcmcInfo; + /** + * The unique identifier of the business line. + */ + 'businessLineId'?: string; + 'cartesBancaires'?: CartesBancairesInfo; + /** + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + */ + 'countries'?: Array; + /** + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + */ + 'currencies'?: Array; + 'giroPay'?: GiroPayInfo; + 'klarna'?: KlarnaInfo; + 'paypal'?: PayPalInfo; + /** + * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. + */ + 'shopperInteraction'?: PaymentMethodSetupInfo.ShopperInteractionEnum; + 'sofort'?: SofortInfo; + /** + * The ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/post/stores__resParam_id), if any. + */ + 'storeId'?: string; + 'swish'?: SwishInfo; + /** + * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). + */ + 'type': PaymentMethodSetupInfo.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "applePay", + "baseName": "applePay", + "type": "ApplePayInfo" + }, + { + "name": "bcmc", + "baseName": "bcmc", + "type": "BcmcInfo" + }, + { + "name": "businessLineId", + "baseName": "businessLineId", + "type": "string" + }, + { + "name": "cartesBancaires", + "baseName": "cartesBancaires", + "type": "CartesBancairesInfo" + }, + { + "name": "countries", + "baseName": "countries", + "type": "Array" + }, + { + "name": "currencies", + "baseName": "currencies", + "type": "Array" + }, + { + "name": "giroPay", + "baseName": "giroPay", + "type": "GiroPayInfo" + }, + { + "name": "klarna", + "baseName": "klarna", + "type": "KlarnaInfo" + }, + { + "name": "paypal", + "baseName": "paypal", + "type": "PayPalInfo" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentMethodSetupInfo.ShopperInteractionEnum" + }, + { + "name": "sofort", + "baseName": "sofort", + "type": "SofortInfo" + }, + { + "name": "storeId", + "baseName": "storeId", + "type": "string" + }, + { + "name": "swish", + "baseName": "swish", + "type": "SwishInfo" + }, + { + "name": "type", + "baseName": "type", + "type": "PaymentMethodSetupInfo.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentMethodSetupInfo.attributeTypeMap; + } +} + +export namespace PaymentMethodSetupInfo { + export enum ShopperInteractionEnum { + ECommerce = 'eCommerce', + Pos = 'pos', + Moto = 'moto', + ContAuth = 'contAuth' + } + export enum TypeEnum { + Alipay = 'alipay', + Amex = 'amex', + Applepay = 'applepay', + Bcmc = 'bcmc', + Blik = 'blik', + Cartebancaire = 'cartebancaire', + Cup = 'cup', + Diners = 'diners', + DirectEbanking = 'directEbanking', + DirectdebitGb = 'directdebit_GB', + Discover = 'discover', + EbankingFi = 'ebanking_FI', + EftposAustralia = 'eftpos_australia', + Girocard = 'girocard', + Giropay = 'giropay', + Ideal = 'ideal', + InteracCard = 'interac_card', + Jcb = 'jcb', + Klarna = 'klarna', + KlarnaAccount = 'klarna_account', + KlarnaPaynow = 'klarna_paynow', + Maestro = 'maestro', + Mbway = 'mbway', + Mc = 'mc', + Mobilepay = 'mobilepay', + Multibanco = 'multibanco', + Paypal = 'paypal', + Payshop = 'payshop', + Swish = 'swish', + Trustly = 'trustly', + Visa = 'visa', + Wechatpay = 'wechatpay', + WechatpayPos = 'wechatpay_pos' + } +} diff --git a/src/typings/management/payoutSettings.ts b/src/typings/management/payoutSettings.ts new file mode 100644 index 0000000..8366336 --- /dev/null +++ b/src/typings/management/payoutSettings.ts @@ -0,0 +1,97 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PayoutSettings { + /** + * Indicates if payouts to the bank account are allowed. This value is set automatically based on the status of the verification process. The value is: * **true** if `verificationStatus` is **valid**. * **false** for all other values. + */ + 'allowed'?: boolean; + /** + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + */ + 'enabled'?: boolean; + /** + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + */ + 'enabledFromDate'?: string; + /** + * The unique identifier of the payout setting. + */ + 'id': string; + /** + * Determines how long it takes for the funds to reach the bank account. Adyen pays out based on the [payout frequency](https://docs.adyen.com/account/getting-paid#payout-frequency). Depending on the currencies and banks involved in transferring the money, it may take up to three days for the payout funds to arrive in the bank account. Possible values: * **first**: same day. * **urgent**: the next day. * **normal**: between 1 and 3 days. + */ + 'priority'?: PayoutSettings.PriorityEnum; + /** + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + */ + 'transferInstrumentId': string; + /** + * The status of the verification process for the bank account. Possible values: * **valid**: the verification was successful. * **pending**: the verification is in progress. * **invalid**: the information provided is not complete. * **rejected**: there are reasons to refuse working with this entity. + */ + 'verificationStatus'?: PayoutSettings.VerificationStatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allowed", + "baseName": "allowed", + "type": "boolean" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "enabledFromDate", + "baseName": "enabledFromDate", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "priority", + "baseName": "priority", + "type": "PayoutSettings.PriorityEnum" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + }, + { + "name": "verificationStatus", + "baseName": "verificationStatus", + "type": "PayoutSettings.VerificationStatusEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutSettings.attributeTypeMap; + } +} + +export namespace PayoutSettings { + export enum PriorityEnum { + First = 'first', + Normal = 'normal', + Urgent = 'urgent' + } + export enum VerificationStatusEnum { + Invalid = 'invalid', + Pending = 'pending', + Rejected = 'rejected', + Valid = 'valid' + } +} diff --git a/src/typings/management/payoutSettingsRequest.ts b/src/typings/management/payoutSettingsRequest.ts new file mode 100644 index 0000000..519bc35 --- /dev/null +++ b/src/typings/management/payoutSettingsRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PayoutSettingsRequest { + /** + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + */ + 'enabled'?: boolean; + /** + * The date when Adyen starts paying out to this bank account. Format: [ISO 8601](https://www.w3.org/TR/NOTE-datetime), for example, **2019-11-23T12:25:28Z** or **2020-05-27T20:25:28+08:00**. If not specified, the `enabled` field indicates if payouts are enabled for this bank account. If a date is specified and: * `enabled`: **true**, payouts are enabled starting the specified date. * `enabled`: **false**, payouts are disabled until the specified date. On the specified date, `enabled` changes to **true** and this field is reset to **null**. + */ + 'enabledFromDate'?: string; + /** + * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments) that contains the details of the bank account. + */ + 'transferInstrumentId': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + }, + { + "name": "enabledFromDate", + "baseName": "enabledFromDate", + "type": "string" + }, + { + "name": "transferInstrumentId", + "baseName": "transferInstrumentId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutSettingsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/payoutSettingsResponse.ts b/src/typings/management/payoutSettingsResponse.ts new file mode 100644 index 0000000..cf4dbf0 --- /dev/null +++ b/src/typings/management/payoutSettingsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PayoutSettings } from './payoutSettings'; + +export class PayoutSettingsResponse { + /** + * The list of payout accounts. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return PayoutSettingsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/profile.ts b/src/typings/management/profile.ts new file mode 100644 index 0000000..e863f28 --- /dev/null +++ b/src/typings/management/profile.ts @@ -0,0 +1,171 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Profile { + /** + * The type of Wi-Fi network. Possible values: **wpa-psk**, **wpa2-psk**, **wpa-eap**, **wpa2-eap**. + */ + 'authType': string; + /** + * Indicates whether to automatically select the best authentication method available. Does not work on older terminal models. + */ + 'autoWifi'?: boolean; + /** + * Use **infra** for infrastructure-based networks. This applies to most networks. Use **adhoc** only if the communication is p2p-based between base stations. + */ + 'bssType': string; + /** + * The channel number of the Wi-Fi network. The recommended setting is **0** for automatic channel selection. + */ + 'channel'?: number; + /** + * Indicates whether this is your preferred wireless network. If **true**, the terminal will try connecting to this network first. + */ + 'defaultProfile'?: boolean; + /** + * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** + */ + 'eap'?: string; + 'eapCaCert'?: any; + 'eapClientCert'?: any; + 'eapClientKey'?: any; + /** + * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. + */ + 'eapClientPwd'?: string; + /** + * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. + */ + 'eapIdentity'?: string; + 'eapIntermediateCert'?: any; + /** + * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. + */ + 'eapPwd'?: string; + /** + * Indicates if the network doesn\'t broadcast its SSID. Mandatory for Android terminals, because these terminals rely on this setting to be able to connect to any network. + */ + 'hiddenSsid'?: boolean; + /** + * Your name for the Wi-Fi profile. + */ + 'name'?: string; + /** + * For `authType` **wpa-psk or **wpa2-psk**. The password to the wireless network. + */ + 'psk'?: string; + /** + * The name of the wireless network. + */ + 'ssid': string; + /** + * The type of encryption. Possible values: **auto**, **ccmp** (recommended), **tkip** + */ + 'wsec': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authType", + "baseName": "authType", + "type": "string" + }, + { + "name": "autoWifi", + "baseName": "autoWifi", + "type": "boolean" + }, + { + "name": "bssType", + "baseName": "bssType", + "type": "string" + }, + { + "name": "channel", + "baseName": "channel", + "type": "number" + }, + { + "name": "defaultProfile", + "baseName": "defaultProfile", + "type": "boolean" + }, + { + "name": "eap", + "baseName": "eap", + "type": "string" + }, + { + "name": "eapCaCert", + "baseName": "eapCaCert", + "type": "any" + }, + { + "name": "eapClientCert", + "baseName": "eapClientCert", + "type": "any" + }, + { + "name": "eapClientKey", + "baseName": "eapClientKey", + "type": "any" + }, + { + "name": "eapClientPwd", + "baseName": "eapClientPwd", + "type": "string" + }, + { + "name": "eapIdentity", + "baseName": "eapIdentity", + "type": "string" + }, + { + "name": "eapIntermediateCert", + "baseName": "eapIntermediateCert", + "type": "any" + }, + { + "name": "eapPwd", + "baseName": "eapPwd", + "type": "string" + }, + { + "name": "hiddenSsid", + "baseName": "hiddenSsid", + "type": "boolean" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "psk", + "baseName": "psk", + "type": "string" + }, + { + "name": "ssid", + "baseName": "ssid", + "type": "string" + }, + { + "name": "wsec", + "baseName": "wsec", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Profile.attributeTypeMap; + } +} + diff --git a/src/typings/management/receiptOptions.ts b/src/typings/management/receiptOptions.ts new file mode 100644 index 0000000..8ac5ace --- /dev/null +++ b/src/typings/management/receiptOptions.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ReceiptOptions { + /** + * The receipt logo converted to a Base64-encoded string. The image must be a .bmp file of < 256 KB, dimensions 240 (H) x 384 (W) px. + */ + 'logo'?: string; + /** + * Data to print on the receipt as a QR code. This can include static text and the following variables: - `${merchantreference}`: the merchant reference of the transaction. - `${pspreference}`: the PSP reference of the transaction. For example, **http://www.example.com/order/${pspreference}/${merchantreference}**. + */ + 'qrCodeData'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "logo", + "baseName": "logo", + "type": "string" + }, + { + "name": "qrCodeData", + "baseName": "qrCodeData", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ReceiptOptions.attributeTypeMap; + } +} + diff --git a/src/typings/management/receiptPrinting.ts b/src/typings/management/receiptPrinting.ts new file mode 100644 index 0000000..3fab520 --- /dev/null +++ b/src/typings/management/receiptPrinting.ts @@ -0,0 +1,165 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ReceiptPrinting { + /** + * Print a merchant receipt when the payment is approved. + */ + 'merchantApproved'?: boolean; + /** + * Print a merchant receipt when the transaction is cancelled. + */ + 'merchantCancelled'?: boolean; + /** + * Print a merchant receipt when capturing the payment is approved. + */ + 'merchantCaptureApproved'?: boolean; + /** + * Print a merchant receipt when capturing the payment is refused. + */ + 'merchantCaptureRefused'?: boolean; + /** + * Print a merchant receipt when the refund is approved. + */ + 'merchantRefundApproved'?: boolean; + /** + * Print a merchant receipt when the refund is refused. + */ + 'merchantRefundRefused'?: boolean; + /** + * Print a merchant receipt when the payment is refused. + */ + 'merchantRefused'?: boolean; + /** + * Print a merchant receipt when a previous transaction is voided. + */ + 'merchantVoid'?: boolean; + /** + * Print a shopper receipt when the payment is approved. + */ + 'shopperApproved'?: boolean; + /** + * Print a shopper receipt when the transaction is cancelled. + */ + 'shopperCancelled'?: boolean; + /** + * Print a shopper receipt when capturing the payment is approved. + */ + 'shopperCaptureApproved'?: boolean; + /** + * Print a shopper receipt when capturing the payment is refused. + */ + 'shopperCaptureRefused'?: boolean; + /** + * Print a shopper receipt when the refund is approved. + */ + 'shopperRefundApproved'?: boolean; + /** + * Print a shopper receipt when the refund is refused. + */ + 'shopperRefundRefused'?: boolean; + /** + * Print a shopper receipt when the payment is refused. + */ + 'shopperRefused'?: boolean; + /** + * Print a shopper receipt when a previous transaction is voided. + */ + 'shopperVoid'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantApproved", + "baseName": "merchantApproved", + "type": "boolean" + }, + { + "name": "merchantCancelled", + "baseName": "merchantCancelled", + "type": "boolean" + }, + { + "name": "merchantCaptureApproved", + "baseName": "merchantCaptureApproved", + "type": "boolean" + }, + { + "name": "merchantCaptureRefused", + "baseName": "merchantCaptureRefused", + "type": "boolean" + }, + { + "name": "merchantRefundApproved", + "baseName": "merchantRefundApproved", + "type": "boolean" + }, + { + "name": "merchantRefundRefused", + "baseName": "merchantRefundRefused", + "type": "boolean" + }, + { + "name": "merchantRefused", + "baseName": "merchantRefused", + "type": "boolean" + }, + { + "name": "merchantVoid", + "baseName": "merchantVoid", + "type": "boolean" + }, + { + "name": "shopperApproved", + "baseName": "shopperApproved", + "type": "boolean" + }, + { + "name": "shopperCancelled", + "baseName": "shopperCancelled", + "type": "boolean" + }, + { + "name": "shopperCaptureApproved", + "baseName": "shopperCaptureApproved", + "type": "boolean" + }, + { + "name": "shopperCaptureRefused", + "baseName": "shopperCaptureRefused", + "type": "boolean" + }, + { + "name": "shopperRefundApproved", + "baseName": "shopperRefundApproved", + "type": "boolean" + }, + { + "name": "shopperRefundRefused", + "baseName": "shopperRefundRefused", + "type": "boolean" + }, + { + "name": "shopperRefused", + "baseName": "shopperRefused", + "type": "boolean" + }, + { + "name": "shopperVoid", + "baseName": "shopperVoid", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ReceiptPrinting.attributeTypeMap; + } +} + diff --git a/src/typings/management/releaseUpdateDetails.ts b/src/typings/management/releaseUpdateDetails.ts new file mode 100644 index 0000000..c6cfc54 --- /dev/null +++ b/src/typings/management/releaseUpdateDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ReleaseUpdateDetails { + /** + * Type of terminal action: Update Release. + */ + 'type'?: ReleaseUpdateDetails.TypeEnum; + /** + * Boolean flag that tells if the terminal should update at the first next maintenance call. If false, terminal will update on its configured reboot time. + */ + 'updateAtFirstMaintenanceCall'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "type", + "baseName": "type", + "type": "ReleaseUpdateDetails.TypeEnum" + }, + { + "name": "updateAtFirstMaintenanceCall", + "baseName": "updateAtFirstMaintenanceCall", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ReleaseUpdateDetails.attributeTypeMap; + } +} + +export namespace ReleaseUpdateDetails { + export enum TypeEnum { + ReleaseUpdate = 'ReleaseUpdate' + } +} diff --git a/src/typings/management/requestActivationResponse.ts b/src/typings/management/requestActivationResponse.ts new file mode 100644 index 0000000..8ba6845 --- /dev/null +++ b/src/typings/management/requestActivationResponse.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RequestActivationResponse { + /** + * The unique identifier of the company account. + */ + 'companyId'?: string; + /** + * The unique identifier of the merchant account you requested to activate. + */ + 'merchantId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyId", + "baseName": "companyId", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RequestActivationResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/restServiceError.ts b/src/typings/management/restServiceError.ts new file mode 100644 index 0000000..06c1285 --- /dev/null +++ b/src/typings/management/restServiceError.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { InvalidField } from './invalidField'; +import { JSONObject } from './jSONObject'; + +export class RestServiceError { + /** + * A human-readable explanation specific to this occurrence of the problem. + */ + 'detail': string; + /** + * A code that identifies the problem type. + */ + 'errorCode': string; + /** + * A unique URI that identifies the specific occurrence of the problem. + */ + 'instance'?: string; + /** + * Detailed explanation of each validation error, when applicable. + */ + 'invalidFields'?: Array; + /** + * A unique reference for the request, essentially the same as `pspReference`. + */ + 'requestId'?: string; + 'response'?: JSONObject; + /** + * The HTTP status code. + */ + 'status': number; + /** + * A short, human-readable summary of the problem type. + */ + 'title': string; + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + */ + 'type': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "detail", + "baseName": "detail", + "type": "string" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "instance", + "baseName": "instance", + "type": "string" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "requestId", + "baseName": "requestId", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "JSONObject" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + }, + { + "name": "title", + "baseName": "title", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RestServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/management/scheduleTerminalActionsRequest.ts b/src/typings/management/scheduleTerminalActionsRequest.ts new file mode 100644 index 0000000..14992d9 --- /dev/null +++ b/src/typings/management/scheduleTerminalActionsRequest.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; + +export class ScheduleTerminalActionsRequest { + /** + * Information about the action to take. + */ + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + /** + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+01:00** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + */ + 'scheduledAt'?: string; + /** + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + */ + 'storeId'?: string; + /** + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + */ + 'terminalIds'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "actionDetails", + "baseName": "actionDetails", + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" + }, + { + "name": "scheduledAt", + "baseName": "scheduledAt", + "type": "string" + }, + { + "name": "storeId", + "baseName": "storeId", + "type": "string" + }, + { + "name": "terminalIds", + "baseName": "terminalIds", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ScheduleTerminalActionsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/scheduleTerminalActionsResponse.ts b/src/typings/management/scheduleTerminalActionsResponse.ts new file mode 100644 index 0000000..c3a9665 --- /dev/null +++ b/src/typings/management/scheduleTerminalActionsResponse.ts @@ -0,0 +1,96 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { InstallAndroidAppDetails } from './installAndroidAppDetails'; +import { InstallAndroidCertificateDetails } from './installAndroidCertificateDetails'; +import { ReleaseUpdateDetails } from './releaseUpdateDetails'; +import { TerminalActionScheduleDetail } from './terminalActionScheduleDetail'; +import { UninstallAndroidAppDetails } from './uninstallAndroidAppDetails'; +import { UninstallAndroidCertificateDetails } from './uninstallAndroidCertificateDetails'; + +export class ScheduleTerminalActionsResponse { + /** + * Information about the action to take. + */ + 'actionDetails'?: InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails; + 'items'?: Array; + /** + * The date and time when the action should happen. Format: [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339), but without the **Z** before the time offset. For example, **2021-11-15T12:16:21+01:00** The action is sent with the first [maintenance call](https://docs.adyen.com/point-of-sale/automating-terminal-management/terminal-actions-api#when-actions-take-effect) after the specified date and time in the time zone of the terminal. An empty value causes the action to be sent as soon as possible: at the next maintenance call. + */ + 'scheduledAt'?: string; + /** + * The unique ID of the [store](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/stores). If present, all terminals in the `terminalIds` list must be assigned to this store. + */ + 'storeId'?: string; + /** + * A list of unique IDs of the terminals to apply the action to. You can extract the IDs from the [GET `/terminals`](https://docs.adyen.com/api-explorer/#/ManagementService/latest/get/terminals) response. Maximum length: 100 IDs. + */ + 'terminalIds'?: Array; + /** + * The validation errors that occurred in the list of terminals, and for each error the IDs of the terminals that the error applies to. + */ + 'terminalsWithErrors'?: { [key: string]: Array; }; + /** + * The number of terminals for which scheduling the action failed. + */ + 'totalErrors'?: number; + /** + * The number of terminals for which the action was successfully scheduled. This doesn\'t mean the action has happened yet. + */ + 'totalScheduled'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "actionDetails", + "baseName": "actionDetails", + "type": "InstallAndroidAppDetails | InstallAndroidCertificateDetails | ReleaseUpdateDetails | UninstallAndroidAppDetails | UninstallAndroidCertificateDetails" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "scheduledAt", + "baseName": "scheduledAt", + "type": "string" + }, + { + "name": "storeId", + "baseName": "storeId", + "type": "string" + }, + { + "name": "terminalIds", + "baseName": "terminalIds", + "type": "Array" + }, + { + "name": "terminalsWithErrors", + "baseName": "terminalsWithErrors", + "type": "{ [key: string]: Array; }" + }, + { + "name": "totalErrors", + "baseName": "totalErrors", + "type": "number" + }, + { + "name": "totalScheduled", + "baseName": "totalScheduled", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ScheduleTerminalActionsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/settings.ts b/src/typings/management/settings.ts new file mode 100644 index 0000000..3248b34 --- /dev/null +++ b/src/typings/management/settings.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Settings { + /** + * The preferred Wi-Fi Band, for use if the terminals support multiple bands. Possible values: All, 2.4GHz, 5GHz. + */ + 'band'?: string; + /** + * Indicates whether roaming is enabled on the terminals. + */ + 'roaming'?: boolean; + /** + * The connection time-out in seconds. Minimum value: 0 + */ + 'timeout'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "band", + "baseName": "band", + "type": "string" + }, + { + "name": "roaming", + "baseName": "roaming", + "type": "boolean" + }, + { + "name": "timeout", + "baseName": "timeout", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Settings.attributeTypeMap; + } +} + diff --git a/src/typings/management/shippingLocation.ts b/src/typings/management/shippingLocation.ts new file mode 100644 index 0000000..e496f61 --- /dev/null +++ b/src/typings/management/shippingLocation.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Contact } from './contact'; + +export class ShippingLocation { + 'address'?: Address; + 'contact'?: Contact; + /** + * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. + */ + 'id'?: string; + /** + * The unique name of the shipping location. + */ + 'name'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address" + }, + { + "name": "contact", + "baseName": "contact", + "type": "Contact" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShippingLocation.attributeTypeMap; + } +} + diff --git a/src/typings/management/shippingLocationsResponse.ts b/src/typings/management/shippingLocationsResponse.ts new file mode 100644 index 0000000..c7004d9 --- /dev/null +++ b/src/typings/management/shippingLocationsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ShippingLocation } from './shippingLocation'; + +export class ShippingLocationsResponse { + /** + * Physical locations where orders can be shipped to. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ShippingLocationsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/signature.ts b/src/typings/management/signature.ts new file mode 100644 index 0000000..06fd335 --- /dev/null +++ b/src/typings/management/signature.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Signature { + /** + * If `skipSignature` is false, indicates whether the shopper should provide a signature on the display (**true**) or on the merchant receipt (**false**). + */ + 'askSignatureOnScreen'?: boolean; + /** + * Name that identifies the terminal. + */ + 'deviceName'?: string; + /** + * Skip asking for a signature. This is possible because all global card schemes (American Express, Diners, Discover, JCB, MasterCard, VISA, and UnionPay) regard a signature as optional. + */ + 'skipSignature'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "askSignatureOnScreen", + "baseName": "askSignatureOnScreen", + "type": "boolean" + }, + { + "name": "deviceName", + "baseName": "deviceName", + "type": "string" + }, + { + "name": "skipSignature", + "baseName": "skipSignature", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return Signature.attributeTypeMap; + } +} + diff --git a/src/typings/management/sofortInfo.ts b/src/typings/management/sofortInfo.ts new file mode 100644 index 0000000..46b9f93 --- /dev/null +++ b/src/typings/management/sofortInfo.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SofortInfo { + /** + * Sofort currency code. For example, **EUR**. + */ + 'currencyCode': string; + /** + * Sofort logo. Format: Base64-encoded string. + */ + 'logo': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + }, + { + "name": "logo", + "baseName": "logo", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SofortInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/store.ts b/src/typings/management/store.ts new file mode 100644 index 0000000..b9bf3a5 --- /dev/null +++ b/src/typings/management/store.ts @@ -0,0 +1,130 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address2 } from './address2'; +import { Links } from './links'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; + +export class Store { + 'links'?: Links; + 'address'?: Address2; + /** + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + */ + 'businessLineIds'?: Array; + /** + * The description of the store. + */ + 'description'?: string; + /** + * When using the Zip payment method: The location ID that Zip has assigned to your store. + */ + 'externalReferenceId'?: string; + /** + * The unique identifier of the store. This value is generated by Adyen. + */ + 'id'?: string; + /** + * The unique identifier of the merchant account that the store belongs to. + */ + 'merchantId'?: string; + /** + * The phone number of the store, including \'+\' and country code. + */ + 'phoneNumber'?: string; + /** + * A reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_) + */ + 'reference'?: string; + /** + * The store name shown on the shopper\'s bank or credit card statement and on the shopper receipt. + */ + 'shopperStatement'?: string; + 'splitConfiguration'?: StoreSplitConfiguration; + /** + * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. + */ + 'status'?: Store.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "address", + "baseName": "address", + "type": "Address2" + }, + { + "name": "businessLineIds", + "baseName": "businessLineIds", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "externalReferenceId", + "baseName": "externalReferenceId", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "splitConfiguration", + "baseName": "splitConfiguration", + "type": "StoreSplitConfiguration" + }, + { + "name": "status", + "baseName": "status", + "type": "Store.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return Store.attributeTypeMap; + } +} + +export namespace Store { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive' + } +} diff --git a/src/typings/management/storeCreationRequest.ts b/src/typings/management/storeCreationRequest.ts new file mode 100644 index 0000000..6589595 --- /dev/null +++ b/src/typings/management/storeCreationRequest.ts @@ -0,0 +1,89 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address2 } from './address2'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; + +export class StoreCreationRequest { + 'address': Address2; + /** + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + */ + 'businessLineIds'?: Array; + /** + * Your description of the store. + */ + 'description': string; + /** + * When using the Zip payment method: The location ID that Zip has assigned to your store. + */ + 'externalReferenceId'?: string; + /** + * The phone number of the store, including \'+\' and country code. + */ + 'phoneNumber': string; + /** + * Your reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). + */ + 'reference'?: string; + /** + * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. + */ + 'shopperStatement': string; + 'splitConfiguration'?: StoreSplitConfiguration; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address2" + }, + { + "name": "businessLineIds", + "baseName": "businessLineIds", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "externalReferenceId", + "baseName": "externalReferenceId", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "splitConfiguration", + "baseName": "splitConfiguration", + "type": "StoreSplitConfiguration" + } ]; + + static getAttributeTypeMap() { + return StoreCreationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/storeCreationWithMerchantCodeRequest.ts b/src/typings/management/storeCreationWithMerchantCodeRequest.ts new file mode 100644 index 0000000..02e576a --- /dev/null +++ b/src/typings/management/storeCreationWithMerchantCodeRequest.ts @@ -0,0 +1,98 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address2 } from './address2'; +import { StoreSplitConfiguration } from './storeSplitConfiguration'; + +export class StoreCreationWithMerchantCodeRequest { + 'address': Address2; + /** + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. + */ + 'businessLineIds'?: Array; + /** + * Your description of the store. + */ + 'description': string; + /** + * When using the Zip payment method: The location ID that Zip has assigned to your store. + */ + 'externalReferenceId'?: string; + /** + * The unique identifier of the merchant account that the store belongs to. + */ + 'merchantId': string; + /** + * The phone number of the store, including \'+\' and country code. + */ + 'phoneNumber': string; + /** + * Your reference to recognize the store by. Also known as the store code. Allowed characters: Lowercase and uppercase letters without diacritics, numbers 0 through 9, hyphen (-), and underscore (_). + */ + 'reference'?: string; + /** + * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. + */ + 'shopperStatement': string; + 'splitConfiguration'?: StoreSplitConfiguration; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address2" + }, + { + "name": "businessLineIds", + "baseName": "businessLineIds", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "externalReferenceId", + "baseName": "externalReferenceId", + "type": "string" + }, + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + }, + { + "name": "phoneNumber", + "baseName": "phoneNumber", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "splitConfiguration", + "baseName": "splitConfiguration", + "type": "StoreSplitConfiguration" + } ]; + + static getAttributeTypeMap() { + return StoreCreationWithMerchantCodeRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/storeSplitConfiguration.ts b/src/typings/management/storeSplitConfiguration.ts new file mode 100644 index 0000000..016c8b3 --- /dev/null +++ b/src/typings/management/storeSplitConfiguration.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoreSplitConfiguration { + /** + * The [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__queryParam_id) linked to the account holder. + */ + 'balanceAccountId'?: string; + /** + * The UUID of the [split configuration](https://docs.adyen.com/platforms/split-configuration-for-stores) from the Customer Area. + */ + 'splitConfigurationId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string" + }, + { + "name": "splitConfigurationId", + "baseName": "splitConfigurationId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreSplitConfiguration.attributeTypeMap; + } +} + diff --git a/src/typings/management/surcharge.ts b/src/typings/management/surcharge.ts new file mode 100644 index 0000000..be7452f --- /dev/null +++ b/src/typings/management/surcharge.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Configuration } from './configuration'; + +export class Surcharge { + /** + * Show the surcharge details on the terminal, so the shopper can confirm. + */ + 'askConfirmation'?: boolean; + /** + * Surcharge fees or percentages for specific payment methods, funding sources (credit or debit), and currencies. + */ + 'configurations'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "askConfirmation", + "baseName": "askConfirmation", + "type": "boolean" + }, + { + "name": "configurations", + "baseName": "configurations", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return Surcharge.attributeTypeMap; + } +} + diff --git a/src/typings/management/swishInfo.ts b/src/typings/management/swishInfo.ts new file mode 100644 index 0000000..efb5187 --- /dev/null +++ b/src/typings/management/swishInfo.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SwishInfo { + /** + * Swish number. Format: 10 digits without spaces. For example, **1231111111**. + */ + 'swishNumber': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "swishNumber", + "baseName": "swishNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SwishInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminal.ts b/src/typings/management/terminal.ts new file mode 100644 index 0000000..18f03ec --- /dev/null +++ b/src/typings/management/terminal.ts @@ -0,0 +1,219 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Terminal { + /** + * The [assignment status](https://docs.adyen.com/point-of-sale/automating-terminal-management/assign-terminals-api) of the terminal. If true, the terminal is assigned. If false, the terminal is in inventory and can\'t be boarded. + */ + 'assigned'?: boolean; + /** + * The Bluetooth IP address of the terminal. + */ + 'bluetoothIp'?: string; + /** + * The Bluetooth MAC address of the terminal. + */ + 'bluetoothMac'?: string; + /** + * The city where the terminal is located. + */ + 'city'?: string; + /** + * The company account of the terminal. + */ + 'companyAccount'?: string; + /** + * The country code where the terminal is located. + */ + 'countryCode'?: string; + /** + * The terminal model of the device. + */ + 'deviceModel'?: string; + /** + * The ethernet IP address of the terminal. + */ + 'ethernetIp'?: string; + /** + * The ethernet MAC address of the terminal. + */ + 'ethernetMac'?: string; + /** + * The firmware Version of the terminal. + */ + 'firmwareVersion'?: string; + /** + * The ICCID number of the cellular communications card. + */ + 'iccid'?: string; + /** + * The unique identifier of the terminal. + */ + 'id'?: string; + /** + * The last Activity Date and Time of the terminal. + */ + 'lastActivityDateTime'?: Date; + /** + * The last Transaction Date and Time of the terminal. + */ + 'lastTransactionDateTime'?: Date; + /** + * The ethernet link speed of the terminal that was negotiated. + */ + 'linkNegotiation'?: string; + /** + * The serial number of the terminal. + */ + 'serialNumber'?: string; + /** + * On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY. + */ + 'simStatus'?: string; + /** + * Indicates when the terminal was last online, whether the terminal is being reassigned, or whether the terminal is turned off. If the terminal was last online more that a week ago, it is also shown as turned off. + */ + 'status'?: string; + /** + * The Status of store where the terminal is located. + */ + 'storeStatus'?: string; + /** + * The WiFi IP address of the terminal. + */ + 'wifiIp'?: string; + /** + * The WiFi MAC address of the terminal. + */ + 'wifiMac'?: string; + /** + * The WIFI SSID of the terminal. + */ + 'wifiSsid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "assigned", + "baseName": "assigned", + "type": "boolean" + }, + { + "name": "bluetoothIp", + "baseName": "bluetoothIp", + "type": "string" + }, + { + "name": "bluetoothMac", + "baseName": "bluetoothMac", + "type": "string" + }, + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "deviceModel", + "baseName": "deviceModel", + "type": "string" + }, + { + "name": "ethernetIp", + "baseName": "ethernetIp", + "type": "string" + }, + { + "name": "ethernetMac", + "baseName": "ethernetMac", + "type": "string" + }, + { + "name": "firmwareVersion", + "baseName": "firmwareVersion", + "type": "string" + }, + { + "name": "iccid", + "baseName": "iccid", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "lastActivityDateTime", + "baseName": "lastActivityDateTime", + "type": "Date" + }, + { + "name": "lastTransactionDateTime", + "baseName": "lastTransactionDateTime", + "type": "Date" + }, + { + "name": "linkNegotiation", + "baseName": "linkNegotiation", + "type": "string" + }, + { + "name": "serialNumber", + "baseName": "serialNumber", + "type": "string" + }, + { + "name": "simStatus", + "baseName": "simStatus", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "storeStatus", + "baseName": "storeStatus", + "type": "string" + }, + { + "name": "wifiIp", + "baseName": "wifiIp", + "type": "string" + }, + { + "name": "wifiMac", + "baseName": "wifiMac", + "type": "string" + }, + { + "name": "wifiSsid", + "baseName": "wifiSsid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Terminal.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalActionScheduleDetail.ts b/src/typings/management/terminalActionScheduleDetail.ts new file mode 100644 index 0000000..9001630 --- /dev/null +++ b/src/typings/management/terminalActionScheduleDetail.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TerminalActionScheduleDetail { + 'id'?: string; + 'terminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TerminalActionScheduleDetail.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalModelsResponse.ts b/src/typings/management/terminalModelsResponse.ts new file mode 100644 index 0000000..5b2d0dc --- /dev/null +++ b/src/typings/management/terminalModelsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { IdName } from './idName'; + +export class TerminalModelsResponse { + /** + * The terminal models that the API credential has access to. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TerminalModelsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalOrder.ts b/src/typings/management/terminalOrder.ts new file mode 100644 index 0000000..767a32d --- /dev/null +++ b/src/typings/management/terminalOrder.ts @@ -0,0 +1,90 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { BillingEntity } from './billingEntity'; +import { OrderItem } from './orderItem'; +import { ShippingLocation } from './shippingLocation'; + +export class TerminalOrder { + 'billingEntity'?: BillingEntity; + /** + * The merchant-defined purchase order number. This will be printed on the packing list. + */ + 'customerOrderReference'?: string; + /** + * The unique identifier of the order. + */ + 'id'?: string; + /** + * The products included in the order. + */ + 'items'?: Array; + /** + * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". + */ + 'orderDate'?: string; + 'shippingLocation'?: ShippingLocation; + /** + * The processing status of the order. + */ + 'status'?: string; + /** + * The URL, provided by the carrier company, where the shipment can be tracked. + */ + 'trackingUrl'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingEntity", + "baseName": "billingEntity", + "type": "BillingEntity" + }, + { + "name": "customerOrderReference", + "baseName": "customerOrderReference", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "orderDate", + "baseName": "orderDate", + "type": "string" + }, + { + "name": "shippingLocation", + "baseName": "shippingLocation", + "type": "ShippingLocation" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "trackingUrl", + "baseName": "trackingUrl", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TerminalOrder.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalOrderRequest.ts b/src/typings/management/terminalOrderRequest.ts new file mode 100644 index 0000000..cad5f34 --- /dev/null +++ b/src/typings/management/terminalOrderRequest.ts @@ -0,0 +1,67 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { OrderItem } from './orderItem'; + +export class TerminalOrderRequest { + /** + * The identification of the billing entity to use for the order. + */ + 'billingEntityId'?: string; + /** + * The merchant-defined purchase order reference. + */ + 'customerOrderReference'?: string; + /** + * The products included in the order. + */ + 'items'?: Array; + /** + * The identification of the shipping location to use for the order. + */ + 'shippingLocationId'?: string; + /** + * The tax number of the billing entity. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingEntityId", + "baseName": "billingEntityId", + "type": "string" + }, + { + "name": "customerOrderReference", + "baseName": "customerOrderReference", + "type": "string" + }, + { + "name": "items", + "baseName": "items", + "type": "Array" + }, + { + "name": "shippingLocationId", + "baseName": "shippingLocationId", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TerminalOrderRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalOrdersResponse.ts b/src/typings/management/terminalOrdersResponse.ts new file mode 100644 index 0000000..c87fa3e --- /dev/null +++ b/src/typings/management/terminalOrdersResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TerminalOrder } from './terminalOrder'; + +export class TerminalOrdersResponse { + /** + * List of orders for payment terminal packages and parts. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TerminalOrdersResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalProduct.ts b/src/typings/management/terminalProduct.ts new file mode 100644 index 0000000..e66bb7a --- /dev/null +++ b/src/typings/management/terminalProduct.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class TerminalProduct { + /** + * Information about items included and integration options. + */ + 'description'?: string; + /** + * The unique identifier of the product. + */ + 'id'?: string; + /** + * A list of parts included in the terminal package. + */ + 'itemsIncluded'?: Array; + /** + * The descriptive name of the product. + */ + 'name'?: string; + 'price'?: Amount; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "itemsIncluded", + "baseName": "itemsIncluded", + "type": "Array" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "price", + "baseName": "price", + "type": "Amount" + } ]; + + static getAttributeTypeMap() { + return TerminalProduct.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalProductsResponse.ts b/src/typings/management/terminalProductsResponse.ts new file mode 100644 index 0000000..10fbde7 --- /dev/null +++ b/src/typings/management/terminalProductsResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TerminalProduct } from './terminalProduct'; + +export class TerminalProductsResponse { + /** + * Terminal products that can be ordered. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TerminalProductsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/terminalSettings.ts b/src/typings/management/terminalSettings.ts new file mode 100644 index 0000000..5858250 --- /dev/null +++ b/src/typings/management/terminalSettings.ts @@ -0,0 +1,115 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CardholderReceipt } from './cardholderReceipt'; +import { Connectivity } from './connectivity'; +import { Gratuity } from './gratuity'; +import { Hardware } from './hardware'; +import { Nexo } from './nexo'; +import { OfflineProcessing } from './offlineProcessing'; +import { Opi } from './opi'; +import { ReceiptOptions } from './receiptOptions'; +import { ReceiptPrinting } from './receiptPrinting'; +import { Signature } from './signature'; +import { Surcharge } from './surcharge'; +import { Timeouts } from './timeouts'; +import { WifiProfiles } from './wifiProfiles'; + +export class TerminalSettings { + 'cardholderReceipt'?: CardholderReceipt; + 'connectivity'?: Connectivity; + /** + * Settings for tipping with or without predefined options to choose from. The maximum number of predefined options is four, or three plus the option to enter a custom tip. + */ + 'gratuities'?: Array; + 'hardware'?: Hardware; + 'nexo'?: Nexo; + 'offlineProcessing'?: OfflineProcessing; + 'opi'?: Opi; + 'receiptOptions'?: ReceiptOptions; + 'receiptPrinting'?: ReceiptPrinting; + 'signature'?: Signature; + 'surcharge'?: Surcharge; + 'timeouts'?: Timeouts; + 'wifiProfiles'?: WifiProfiles; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardholderReceipt", + "baseName": "cardholderReceipt", + "type": "CardholderReceipt" + }, + { + "name": "connectivity", + "baseName": "connectivity", + "type": "Connectivity" + }, + { + "name": "gratuities", + "baseName": "gratuities", + "type": "Array" + }, + { + "name": "hardware", + "baseName": "hardware", + "type": "Hardware" + }, + { + "name": "nexo", + "baseName": "nexo", + "type": "Nexo" + }, + { + "name": "offlineProcessing", + "baseName": "offlineProcessing", + "type": "OfflineProcessing" + }, + { + "name": "opi", + "baseName": "opi", + "type": "Opi" + }, + { + "name": "receiptOptions", + "baseName": "receiptOptions", + "type": "ReceiptOptions" + }, + { + "name": "receiptPrinting", + "baseName": "receiptPrinting", + "type": "ReceiptPrinting" + }, + { + "name": "signature", + "baseName": "signature", + "type": "Signature" + }, + { + "name": "surcharge", + "baseName": "surcharge", + "type": "Surcharge" + }, + { + "name": "timeouts", + "baseName": "timeouts", + "type": "Timeouts" + }, + { + "name": "wifiProfiles", + "baseName": "wifiProfiles", + "type": "WifiProfiles" + } ]; + + static getAttributeTypeMap() { + return TerminalSettings.attributeTypeMap; + } +} + diff --git a/src/typings/management/testCompanyWebhookRequest.ts b/src/typings/management/testCompanyWebhookRequest.ts new file mode 100644 index 0000000..5f7fef7 --- /dev/null +++ b/src/typings/management/testCompanyWebhookRequest.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CustomNotification } from './customNotification'; + +export class TestCompanyWebhookRequest { + /** + * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. + */ + 'merchantIds'?: Array; + 'notification'?: CustomNotification; + /** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + */ + 'types'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantIds", + "baseName": "merchantIds", + "type": "Array" + }, + { + "name": "notification", + "baseName": "notification", + "type": "CustomNotification" + }, + { + "name": "types", + "baseName": "types", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TestCompanyWebhookRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/testOutput.ts b/src/typings/management/testOutput.ts new file mode 100644 index 0000000..62af53d --- /dev/null +++ b/src/typings/management/testOutput.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TestOutput { + /** + * Unique identifier of the merchant account that the notification is about. + */ + 'merchantId'?: string; + /** + * The response your server returned for the test webhook. Your server must respond with **[accepted]** for the test webhook to be successful (`data.status`: **success**). Find out more about [accepting notifications](https://docs.adyen.com/development-resources/webhooks#accept-notifications) You can use the value of this field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot unsuccessful test webhooks. + */ + 'output'?: string; + /** + * The [body of the notification webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#notification-structure) that was sent to your server. + */ + 'requestSent'?: string; + /** + * The HTTP response code for your server\'s response to the test webhook. You can use the value of this field together with the the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field value to troubleshoot failed test webhooks. + */ + 'responseCode'?: string; + /** + * The time between sending the test webhook and receiving the response from your server. You can use it as an indication of how long your server takes to process a webhook notification. Measured in milliseconds, for example **304 ms**. + */ + 'responseTime'?: string; + /** + * The status of the test request. Possible values are: * **success**, if `data.output`: **[accepted]** and `data.responseCode`: **200**. * **failed**, in all other cases. You can use the value of the [`output`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-output) field together with the [`responseCode`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/merchants/{merchantId}/webhooks/{id}/test__resParam_data-responseCode) value to troubleshoot failed test webhooks. + */ + 'status': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantId", + "baseName": "merchantId", + "type": "string" + }, + { + "name": "output", + "baseName": "output", + "type": "string" + }, + { + "name": "requestSent", + "baseName": "requestSent", + "type": "string" + }, + { + "name": "responseCode", + "baseName": "responseCode", + "type": "string" + }, + { + "name": "responseTime", + "baseName": "responseTime", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TestOutput.attributeTypeMap; + } +} + diff --git a/src/typings/management/testWebhookRequest.ts b/src/typings/management/testWebhookRequest.ts new file mode 100644 index 0000000..2ee59e2 --- /dev/null +++ b/src/typings/management/testWebhookRequest.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CustomNotification } from './customNotification'; + +export class TestWebhookRequest { + 'notification'?: CustomNotification; + /** + * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** + */ + 'types'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notification", + "baseName": "notification", + "type": "CustomNotification" + }, + { + "name": "types", + "baseName": "types", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TestWebhookRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/testWebhookResponse.ts b/src/typings/management/testWebhookResponse.ts new file mode 100644 index 0000000..7ef7752 --- /dev/null +++ b/src/typings/management/testWebhookResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TestOutput } from './testOutput'; + +export class TestWebhookResponse { + /** + * List with test results. Each test webhook we send has a list element with the result. + */ + 'data'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "data", + "baseName": "data", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return TestWebhookResponse.attributeTypeMap; + } +} + diff --git a/src/typings/management/timeouts.ts b/src/typings/management/timeouts.ts new file mode 100644 index 0000000..dfc3a4e --- /dev/null +++ b/src/typings/management/timeouts.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Timeouts { + /** + * Indicates the number of seconds of inactivity after which the terminal display goes into sleep mode. + */ + 'fromActiveToSleep'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "fromActiveToSleep", + "baseName": "fromActiveToSleep", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Timeouts.attributeTypeMap; + } +} + diff --git a/src/typings/management/uninstallAndroidAppDetails.ts b/src/typings/management/uninstallAndroidAppDetails.ts new file mode 100644 index 0000000..df5bdff --- /dev/null +++ b/src/typings/management/uninstallAndroidAppDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UninstallAndroidAppDetails { + /** + * The unique identifier of the app to be uninstalled. + */ + 'appId'?: string; + /** + * Type of terminal action: Uninstall an Android app. + */ + 'type'?: UninstallAndroidAppDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "appId", + "baseName": "appId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "UninstallAndroidAppDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UninstallAndroidAppDetails.attributeTypeMap; + } +} + +export namespace UninstallAndroidAppDetails { + export enum TypeEnum { + UninstallAndroidApp = 'UninstallAndroidApp' + } +} diff --git a/src/typings/management/uninstallAndroidCertificateDetails.ts b/src/typings/management/uninstallAndroidCertificateDetails.ts new file mode 100644 index 0000000..9a4e1a7 --- /dev/null +++ b/src/typings/management/uninstallAndroidCertificateDetails.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UninstallAndroidCertificateDetails { + /** + * The unique identifier of the certificate to be uninstalled. + */ + 'certificateId'?: string; + /** + * Type of terminal action: Uninstall an Android certificate. + */ + 'type'?: UninstallAndroidCertificateDetails.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "certificateId", + "baseName": "certificateId", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "UninstallAndroidCertificateDetails.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UninstallAndroidCertificateDetails.attributeTypeMap; + } +} + +export namespace UninstallAndroidCertificateDetails { + export enum TypeEnum { + UninstallAndroidCertificate = 'UninstallAndroidCertificate' + } +} diff --git a/src/typings/management/updatableAddress.ts b/src/typings/management/updatableAddress.ts new file mode 100644 index 0000000..e02841b --- /dev/null +++ b/src/typings/management/updatableAddress.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdatableAddress { + /** + * The name of the city. + */ + 'city'?: string; + /** + * The street address. + */ + 'line1'?: string; + /** + * Second address line. + */ + 'line2'?: string; + /** + * Third address line. + */ + 'line3'?: string; + /** + * The postal code. + */ + 'postalCode'?: string; + /** + * The state or province code as defined in [ISO 3166-2](https://www.iso.org/standard/72483.html). For example, **ON** for Ontario, Canada. Required for the following countries: - Australia - Brazil - Canada - India - Mexico - New Zealand - United States + */ + 'stateOrProvince'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "line1", + "baseName": "line1", + "type": "string" + }, + { + "name": "line2", + "baseName": "line2", + "type": "string" + }, + { + "name": "line3", + "baseName": "line3", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpdatableAddress.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateCompanyApiCredentialRequest.ts b/src/typings/management/updateCompanyApiCredentialRequest.ts new file mode 100644 index 0000000..a3e482a --- /dev/null +++ b/src/typings/management/updateCompanyApiCredentialRequest.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdateCompanyApiCredentialRequest { + /** + * Indicates if the API credential is enabled. + */ + 'active'?: boolean; + /** + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + */ + 'allowedOrigins'?: Array; + /** + * List of merchant accounts that the API credential has access to. + */ + 'associatedMerchantAccounts'?: Array; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) of the API credential. + */ + 'roles'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return UpdateCompanyApiCredentialRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateCompanyUserRequest.ts b/src/typings/management/updateCompanyUserRequest.ts new file mode 100644 index 0000000..94f3412 --- /dev/null +++ b/src/typings/management/updateCompanyUserRequest.ts @@ -0,0 +1,82 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Name2 } from './name2'; + +export class UpdateCompanyUserRequest { + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Indicates whether this user is active. + */ + 'active'?: boolean; + /** + * The list of [merchant accounts](https://docs.adyen.com/account/account-structure#merchant-accounts) to associate the user with. + */ + 'associatedMerchantAccounts'?: Array; + /** + * The email address of the user. + */ + 'email'?: string; + 'name'?: Name2; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles'?: Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "associatedMerchantAccounts", + "baseName": "associatedMerchantAccounts", + "type": "Array" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name2" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpdateCompanyUserRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateCompanyWebhookRequest.ts b/src/typings/management/updateCompanyWebhookRequest.ts new file mode 100644 index 0000000..e41ba41 --- /dev/null +++ b/src/typings/management/updateCompanyWebhookRequest.ts @@ -0,0 +1,181 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AdditionalSettings } from './additionalSettings'; + +export class UpdateCompanyWebhookRequest { + /** + * Indicates if expired SSL certificates are accepted. Default value: **false**. + */ + 'acceptsExpiredCertificate'?: boolean; + /** + * Indicates if self-signed SSL certificates are accepted. Default value: **false**. + */ + 'acceptsSelfSignedCertificate'?: boolean; + /** + * Indicates if untrusted SSL certificates are accepted. Default value: **false**. + */ + 'acceptsUntrustedRootCertificate'?: boolean; + /** + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + */ + 'active'?: boolean; + 'additionalSettings'?: AdditionalSettings; + /** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + */ + 'communicationFormat'?: UpdateCompanyWebhookRequest.CommunicationFormatEnum; + /** + * Your description for this webhook configuration. + */ + 'description'?: string; + /** + * Shows how merchant accounts are filtered when configuring the webhook. Possible values: * **includeAccounts**: The webhook is configured for the merchant accounts listed in `filterMerchantAccounts`. * **excludeAccounts**: The webhook is not configured for the merchant accounts listed in `filterMerchantAccounts`. * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + */ + 'filterMerchantAccountType'?: UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum; + /** + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + */ + 'filterMerchantAccounts'?: Array; + /** + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + */ + 'networkType'?: UpdateCompanyWebhookRequest.NetworkTypeEnum; + /** + * Password to access the webhook URL. + */ + 'password'?: string; + /** + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + */ + 'populateSoapActionHeader'?: boolean; + /** + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + */ + 'sslVersion'?: UpdateCompanyWebhookRequest.SslVersionEnum; + /** + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + */ + 'url': string; + /** + * Username to access the webhook URL. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptsExpiredCertificate", + "baseName": "acceptsExpiredCertificate", + "type": "boolean" + }, + { + "name": "acceptsSelfSignedCertificate", + "baseName": "acceptsSelfSignedCertificate", + "type": "boolean" + }, + { + "name": "acceptsUntrustedRootCertificate", + "baseName": "acceptsUntrustedRootCertificate", + "type": "boolean" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "additionalSettings", + "baseName": "additionalSettings", + "type": "AdditionalSettings" + }, + { + "name": "communicationFormat", + "baseName": "communicationFormat", + "type": "UpdateCompanyWebhookRequest.CommunicationFormatEnum" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "filterMerchantAccountType", + "baseName": "filterMerchantAccountType", + "type": "UpdateCompanyWebhookRequest.FilterMerchantAccountTypeEnum" + }, + { + "name": "filterMerchantAccounts", + "baseName": "filterMerchantAccounts", + "type": "Array" + }, + { + "name": "networkType", + "baseName": "networkType", + "type": "UpdateCompanyWebhookRequest.NetworkTypeEnum" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "populateSoapActionHeader", + "baseName": "populateSoapActionHeader", + "type": "boolean" + }, + { + "name": "sslVersion", + "baseName": "sslVersion", + "type": "UpdateCompanyWebhookRequest.SslVersionEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpdateCompanyWebhookRequest.attributeTypeMap; + } +} + +export namespace UpdateCompanyWebhookRequest { + export enum CommunicationFormatEnum { + Http = 'HTTP', + Json = 'JSON', + Soap = 'SOAP' + } + export enum FilterMerchantAccountTypeEnum { + ExcludeList = 'EXCLUDE_LIST', + IncludeAll = 'INCLUDE_ALL', + IncludeList = 'INCLUDE_LIST' + } + export enum NetworkTypeEnum { + Local = 'LOCAL', + Public = 'PUBLIC' + } + export enum SslVersionEnum { + Http = 'HTTP', + Ssl = 'SSL', + Sslv3 = 'SSLV3', + SslInsecureCiphers = 'SSL_INSECURE_CIPHERS', + Tls = 'TLS', + Tlsv1 = 'TLSV1', + Tlsv11 = 'TLSV1_1', + Tlsv12 = 'TLSV1_2', + Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' + } +} diff --git a/src/typings/management/updateMerchantApiCredentialRequest.ts b/src/typings/management/updateMerchantApiCredentialRequest.ts new file mode 100644 index 0000000..d8c7b67 --- /dev/null +++ b/src/typings/management/updateMerchantApiCredentialRequest.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdateMerchantApiCredentialRequest { + /** + * Indicates if the API credential is enabled. + */ + 'active'?: boolean; + /** + * The new list of [allowed origins](https://docs.adyen.com/development-resources/client-side-authentication#allowed-origins) for the API credential. + */ + 'allowedOrigins'?: Array; + /** + * Description of the API credential. + */ + 'description'?: string; + /** + * List of [roles](https://docs.adyen.com/development-resources/api-credentials#roles-1) for the API credential. + */ + 'roles'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "allowedOrigins", + "baseName": "allowedOrigins", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return UpdateMerchantApiCredentialRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateMerchantUserRequest.ts b/src/typings/management/updateMerchantUserRequest.ts new file mode 100644 index 0000000..69bc9df --- /dev/null +++ b/src/typings/management/updateMerchantUserRequest.ts @@ -0,0 +1,73 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Name2 } from './name2'; + +export class UpdateMerchantUserRequest { + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Sets the status of the user to active (**true**) or inactive (**false**). + */ + 'active'?: boolean; + /** + * The email address of the user. + */ + 'email'?: string; + 'name'?: Name2; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles'?: Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name2" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpdateMerchantUserRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateMerchantWebhookRequest.ts b/src/typings/management/updateMerchantWebhookRequest.ts new file mode 100644 index 0000000..7ddb5d0 --- /dev/null +++ b/src/typings/management/updateMerchantWebhookRequest.ts @@ -0,0 +1,158 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AdditionalSettings } from './additionalSettings'; + +export class UpdateMerchantWebhookRequest { + /** + * Indicates if expired SSL certificates are accepted. Default value: **false**. + */ + 'acceptsExpiredCertificate'?: boolean; + /** + * Indicates if self-signed SSL certificates are accepted. Default value: **false**. + */ + 'acceptsSelfSignedCertificate'?: boolean; + /** + * Indicates if untrusted SSL certificates are accepted. Default value: **false**. + */ + 'acceptsUntrustedRootCertificate'?: boolean; + /** + * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. + */ + 'active': boolean; + 'additionalSettings'?: AdditionalSettings; + /** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + */ + 'communicationFormat': UpdateMerchantWebhookRequest.CommunicationFormatEnum; + /** + * Your description for this webhook configuration. + */ + 'description'?: string; + /** + * Network type for Terminal API notification webhooks. Possible values: * **public** * **local** Default Value: **public**. + */ + 'networkType'?: UpdateMerchantWebhookRequest.NetworkTypeEnum; + /** + * Password to access the webhook URL. + */ + 'password'?: string; + /** + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + */ + 'populateSoapActionHeader'?: boolean; + /** + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + */ + 'sslVersion'?: UpdateMerchantWebhookRequest.SslVersionEnum; + /** + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + */ + 'url': string; + /** + * Username to access the webhook URL. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptsExpiredCertificate", + "baseName": "acceptsExpiredCertificate", + "type": "boolean" + }, + { + "name": "acceptsSelfSignedCertificate", + "baseName": "acceptsSelfSignedCertificate", + "type": "boolean" + }, + { + "name": "acceptsUntrustedRootCertificate", + "baseName": "acceptsUntrustedRootCertificate", + "type": "boolean" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "additionalSettings", + "baseName": "additionalSettings", + "type": "AdditionalSettings" + }, + { + "name": "communicationFormat", + "baseName": "communicationFormat", + "type": "UpdateMerchantWebhookRequest.CommunicationFormatEnum" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "networkType", + "baseName": "networkType", + "type": "UpdateMerchantWebhookRequest.NetworkTypeEnum" + }, + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "populateSoapActionHeader", + "baseName": "populateSoapActionHeader", + "type": "boolean" + }, + { + "name": "sslVersion", + "baseName": "sslVersion", + "type": "UpdateMerchantWebhookRequest.SslVersionEnum" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UpdateMerchantWebhookRequest.attributeTypeMap; + } +} + +export namespace UpdateMerchantWebhookRequest { + export enum CommunicationFormatEnum { + Http = 'HTTP', + Json = 'JSON', + Soap = 'SOAP' + } + export enum NetworkTypeEnum { + Local = 'LOCAL', + Public = 'PUBLIC' + } + export enum SslVersionEnum { + Http = 'HTTP', + Ssl = 'SSL', + Sslv3 = 'SSLV3', + SslInsecureCiphers = 'SSL_INSECURE_CIPHERS', + Tls = 'TLS', + Tlsv1 = 'TLSV1', + Tlsv11 = 'TLSV1_1', + Tlsv12 = 'TLSV1_2', + Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' + } +} diff --git a/src/typings/management/updatePaymentMethodInfo.ts b/src/typings/management/updatePaymentMethodInfo.ts new file mode 100644 index 0000000..fdfeb80 --- /dev/null +++ b/src/typings/management/updatePaymentMethodInfo.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdatePaymentMethodInfo { + /** + * The list of countries where a payment method is available. By default, all countries supported by the payment method. + */ + 'countries'?: Array; + /** + * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. + */ + 'currencies'?: Array; + /** + * Indicates whether the payment method is enabled (**true**) or disabled (**false**). + */ + 'enabled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "countries", + "baseName": "countries", + "type": "Array" + }, + { + "name": "currencies", + "baseName": "currencies", + "type": "Array" + }, + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return UpdatePaymentMethodInfo.attributeTypeMap; + } +} + diff --git a/src/typings/management/updatePayoutSettingsRequest.ts b/src/typings/management/updatePayoutSettingsRequest.ts new file mode 100644 index 0000000..164ee5c --- /dev/null +++ b/src/typings/management/updatePayoutSettingsRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdatePayoutSettingsRequest { + /** + * Indicates if payouts to this bank account are enabled. Default: **true**. To receive payouts into this bank account, both `enabled` and `allowed` must be **true**. + */ + 'enabled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enabled", + "baseName": "enabled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return UpdatePayoutSettingsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/management/updateStoreRequest.ts b/src/typings/management/updateStoreRequest.ts new file mode 100644 index 0000000..14be402 --- /dev/null +++ b/src/typings/management/updateStoreRequest.ts @@ -0,0 +1,78 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { StoreSplitConfiguration } from './storeSplitConfiguration'; +import { UpdatableAddress } from './updatableAddress'; + +export class UpdateStoreRequest { + 'address'?: UpdatableAddress; + /** + * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. + */ + 'businessLineIds'?: Array; + /** + * The description of the store. + */ + 'description'?: string; + /** + * When using the Zip payment method: The location ID that Zip has assigned to your store. + */ + 'externalReferenceId'?: string; + 'splitConfiguration'?: StoreSplitConfiguration; + /** + * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can\'t process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can\'t be reopened. + */ + 'status'?: UpdateStoreRequest.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "UpdatableAddress" + }, + { + "name": "businessLineIds", + "baseName": "businessLineIds", + "type": "Array" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "externalReferenceId", + "baseName": "externalReferenceId", + "type": "string" + }, + { + "name": "splitConfiguration", + "baseName": "splitConfiguration", + "type": "StoreSplitConfiguration" + }, + { + "name": "status", + "baseName": "status", + "type": "UpdateStoreRequest.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return UpdateStoreRequest.attributeTypeMap; + } +} + +export namespace UpdateStoreRequest { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive' + } +} diff --git a/src/typings/management/url.ts b/src/typings/management/url.ts new file mode 100644 index 0000000..fed0148 --- /dev/null +++ b/src/typings/management/url.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Url { + /** + * The password for authentication of the event notifications. + */ + 'password'?: string; + /** + * The URL in the format: http(s)://domain.com. + */ + 'url'?: string; + /** + * The username for authentication of the event notifications. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "password", + "baseName": "password", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Url.attributeTypeMap; + } +} + diff --git a/src/typings/management/user.ts b/src/typings/management/user.ts new file mode 100644 index 0000000..e694b80 --- /dev/null +++ b/src/typings/management/user.ts @@ -0,0 +1,98 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Links } from './links'; +import { Name } from './name'; + +export class User { + 'links'?: Links; + /** + * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. + */ + 'accountGroups'?: Array; + /** + * Indicates whether this user is active. + */ + 'active'?: boolean; + /** + * The email address of the user. + */ + 'email': string; + /** + * The unique identifier of the user. + */ + 'id': string; + 'name'?: Name; + /** + * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. + */ + 'roles': Array; + /** + * The [tz database name](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) of the time zone of the user. For example, **Europe/Amsterdam**. + */ + 'timeZoneCode': string; + /** + * The username for this user. + */ + 'username': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "Links" + }, + { + "name": "accountGroups", + "baseName": "accountGroups", + "type": "Array" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "email", + "baseName": "email", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "Name" + }, + { + "name": "roles", + "baseName": "roles", + "type": "Array" + }, + { + "name": "timeZoneCode", + "baseName": "timeZoneCode", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return User.attributeTypeMap; + } +} + diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts new file mode 100644 index 0000000..2711e6e --- /dev/null +++ b/src/typings/management/webhook.ts @@ -0,0 +1,242 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AdditionalSettingsResponse } from './additionalSettingsResponse'; +import { WebhookLinks } from './webhookLinks'; + +export class Webhook { + 'links'?: WebhookLinks; + /** + * Indicates if expired SSL certificates are accepted. Default value: **false**. + */ + 'acceptsExpiredCertificate'?: boolean; + /** + * Indicates if self-signed SSL certificates are accepted. Default value: **false**. + */ + 'acceptsSelfSignedCertificate'?: boolean; + /** + * Indicates if untrusted SSL certificates are accepted. Default value: **false**. + */ + 'acceptsUntrustedRootCertificate'?: boolean; + /** + * Reference to the account the webook is set on. + */ + 'accountReference'?: string; + /** + * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. + */ + 'active': boolean; + 'additionalSettings'?: AdditionalSettingsResponse; + /** + * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. + */ + 'certificateAlias'?: string; + /** + * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** + */ + 'communicationFormat': Webhook.CommunicationFormatEnum; + /** + * Your description for this webhook configuration. + */ + 'description'?: string; + /** + * Shows how merchant accounts are included in company-level webhooks. Possible values: * **includeAccounts** * **excludeAccounts** * **allAccounts**: Includes all merchant accounts, and does not require specifying `filterMerchantAccounts`. + */ + 'filterMerchantAccountType'?: Webhook.FilterMerchantAccountTypeEnum; + /** + * A list of merchant account names that are included or excluded from receiving the webhook. Inclusion or exclusion is based on the value defined for `filterMerchantAccountType`. Required if `filterMerchantAccountType` is either: * **includeAccounts** * **excludeAccounts** Not needed for `filterMerchantAccountType`: **allAccounts**. + */ + 'filterMerchantAccounts'?: Array; + /** + * Indicates if the webhook configuration has errors that need troubleshooting. If the value is **true**, troubleshoot the configuration using the [testing endpoint](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookid}/test). + */ + 'hasError'?: boolean; + /** + * Indicates if the webhook is password protected. + */ + 'hasPassword'?: boolean; + /** + * The [checksum](https://en.wikipedia.org/wiki/Key_checksum_value) of the HMAC key generated for this webhook. You can use this value to uniquely identify the HMAC key configured for this webhook. + */ + 'hmacKeyCheckValue'?: string; + /** + * Unique identifier for this webhook. + */ + 'id'?: string; + /** + * Network type for Terminal API details webhooks. + */ + 'networkType'?: Webhook.NetworkTypeEnum; + /** + * Indicates if the SOAP action header needs to be populated. Default value: **false**. Only applies if `communicationFormat`: **soap**. + */ + 'populateSoapActionHeader'?: boolean; + /** + * SSL version to access the public webhook URL specified in the `url` field. Possible values: * **TLSv1.2** * **HTTP** - Only allowed on Test environment. If not specified, the webhook will use `sslVersion`: **TLSv1.2**. + */ + 'sslVersion'?: Webhook.SslVersionEnum; + /** + * The type of webhook. Possible values are: - **standard** - **account-settings-notification** - **banktransfer-notification** - **boletobancario-notification** - **directdebit-notification** - **pending-notification** - **ideal-notification** - **ideal-pending-notification** - **report-notification** - **terminal-api-notification** Find out more about [standard notification webhooks](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes) and [other types of notifications](https://docs.adyen.com/development-resources/webhooks/understand-notifications#other-notifications). + */ + 'type': string; + /** + * Public URL where webhooks will be sent, for example **https://www.domain.com/webhook-endpoint**. + */ + 'url': string; + /** + * Username to access the webhook URL. + */ + 'username'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "links", + "baseName": "_links", + "type": "WebhookLinks" + }, + { + "name": "acceptsExpiredCertificate", + "baseName": "acceptsExpiredCertificate", + "type": "boolean" + }, + { + "name": "acceptsSelfSignedCertificate", + "baseName": "acceptsSelfSignedCertificate", + "type": "boolean" + }, + { + "name": "acceptsUntrustedRootCertificate", + "baseName": "acceptsUntrustedRootCertificate", + "type": "boolean" + }, + { + "name": "accountReference", + "baseName": "accountReference", + "type": "string" + }, + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "additionalSettings", + "baseName": "additionalSettings", + "type": "AdditionalSettingsResponse" + }, + { + "name": "certificateAlias", + "baseName": "certificateAlias", + "type": "string" + }, + { + "name": "communicationFormat", + "baseName": "communicationFormat", + "type": "Webhook.CommunicationFormatEnum" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "filterMerchantAccountType", + "baseName": "filterMerchantAccountType", + "type": "Webhook.FilterMerchantAccountTypeEnum" + }, + { + "name": "filterMerchantAccounts", + "baseName": "filterMerchantAccounts", + "type": "Array" + }, + { + "name": "hasError", + "baseName": "hasError", + "type": "boolean" + }, + { + "name": "hasPassword", + "baseName": "hasPassword", + "type": "boolean" + }, + { + "name": "hmacKeyCheckValue", + "baseName": "hmacKeyCheckValue", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "networkType", + "baseName": "networkType", + "type": "Webhook.NetworkTypeEnum" + }, + { + "name": "populateSoapActionHeader", + "baseName": "populateSoapActionHeader", + "type": "boolean" + }, + { + "name": "sslVersion", + "baseName": "sslVersion", + "type": "Webhook.SslVersionEnum" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "url", + "baseName": "url", + "type": "string" + }, + { + "name": "username", + "baseName": "username", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Webhook.attributeTypeMap; + } +} + +export namespace Webhook { + export enum CommunicationFormatEnum { + Http = 'HTTP', + Json = 'JSON', + Soap = 'SOAP' + } + export enum FilterMerchantAccountTypeEnum { + ExcludeList = 'EXCLUDE_LIST', + IncludeAll = 'INCLUDE_ALL', + IncludeList = 'INCLUDE_LIST' + } + export enum NetworkTypeEnum { + Local = 'LOCAL', + Public = 'PUBLIC' + } + export enum SslVersionEnum { + Http = 'HTTP', + Ssl = 'SSL', + Sslv3 = 'SSLV3', + SslInsecureCiphers = 'SSL_INSECURE_CIPHERS', + Tls = 'TLS', + Tlsv1 = 'TLSV1', + Tlsv11 = 'TLSV1_1', + Tlsv12 = 'TLSV1_2', + Tlsv1InsecureCiphers = 'TLSV1_INSECURE_CIPHERS' + } +} diff --git a/src/typings/management/webhookLinks.ts b/src/typings/management/webhookLinks.ts new file mode 100644 index 0000000..9fdab2a --- /dev/null +++ b/src/typings/management/webhookLinks.ts @@ -0,0 +1,52 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { LinksElement } from './linksElement'; + +export class WebhookLinks { + 'company'?: LinksElement; + 'generateHmac': LinksElement; + 'merchant'?: LinksElement; + 'self': LinksElement; + 'testWebhook': LinksElement; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "company", + "baseName": "company", + "type": "LinksElement" + }, + { + "name": "generateHmac", + "baseName": "generateHmac", + "type": "LinksElement" + }, + { + "name": "merchant", + "baseName": "merchant", + "type": "LinksElement" + }, + { + "name": "self", + "baseName": "self", + "type": "LinksElement" + }, + { + "name": "testWebhook", + "baseName": "testWebhook", + "type": "LinksElement" + } ]; + + static getAttributeTypeMap() { + return WebhookLinks.attributeTypeMap; + } +} + diff --git a/src/typings/management/wifiProfiles.ts b/src/typings/management/wifiProfiles.ts new file mode 100644 index 0000000..a5ae1d3 --- /dev/null +++ b/src/typings/management/wifiProfiles.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Profile } from './profile'; +import { Settings } from './settings'; + +export class WifiProfiles { + /** + * List of remote Wi-Fi profiles + */ + 'profiles'?: Array; + 'settings'?: Settings; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "profiles", + "baseName": "profiles", + "type": "Array" + }, + { + "name": "settings", + "baseName": "settings", + "type": "Settings" + } ]; + + static getAttributeTypeMap() { + return WifiProfiles.attributeTypeMap; + } +} + diff --git a/src/typings/payments/accountInfo.ts b/src/typings/payments/accountInfo.ts new file mode 100644 index 0000000..5bc957b --- /dev/null +++ b/src/typings/payments/accountInfo.ts @@ -0,0 +1,232 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AccountInfo { + /** + * Indicator for the length of time since this shopper account was created in the merchant\'s environment. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountAgeIndicator'?: AccountInfo.AccountAgeIndicatorEnum; + /** + * Date when the shopper\'s account was last changed. + */ + 'accountChangeDate'?: Date; + /** + * Indicator for the length of time since the shopper\'s account was last updated. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'accountChangeIndicator'?: AccountInfo.AccountChangeIndicatorEnum; + /** + * Date when the shopper\'s account was created. + */ + 'accountCreationDate'?: Date; + /** + * Indicates the type of account. For example, for a multi-account card product. Allowed values: * notApplicable * credit * debit + */ + 'accountType'?: AccountInfo.AccountTypeEnum; + /** + * Number of attempts the shopper tried to add a card to their account in the last day. + */ + 'addCardAttemptsDay'?: number; + /** + * Date the selected delivery address was first used. + */ + 'deliveryAddressUsageDate'?: Date; + /** + * Indicator for the length of time since this delivery address was first used. Allowed values: * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'deliveryAddressUsageIndicator'?: AccountInfo.DeliveryAddressUsageIndicatorEnum; + /** + * Shopper\'s home phone number (including the country code). + */ + 'homePhone'?: string; + /** + * Shopper\'s mobile phone number (including the country code). + */ + 'mobilePhone'?: string; + /** + * Date when the shopper last changed their password. + */ + 'passwordChangeDate'?: Date; + /** + * Indicator when the shopper has changed their password. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'passwordChangeIndicator'?: AccountInfo.PasswordChangeIndicatorEnum; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. + */ + 'pastTransactionsDay'?: number; + /** + * Number of all transactions (successful and abandoned) from this shopper in the past year. + */ + 'pastTransactionsYear'?: number; + /** + * Date this payment method was added to the shopper\'s account. + */ + 'paymentAccountAge'?: Date; + /** + * Indicator for the length of time since this payment method was added to this shopper\'s account. Allowed values: * notApplicable * thisTransaction * lessThan30Days * from30To60Days * moreThan60Days + */ + 'paymentAccountIndicator'?: AccountInfo.PaymentAccountIndicatorEnum; + /** + * Number of successful purchases in the last six months. + */ + 'purchasesLast6Months'?: number; + /** + * Whether suspicious activity was recorded on this account. + */ + 'suspiciousActivity'?: boolean; + /** + * Shopper\'s work phone number (including the country code). + */ + 'workPhone'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountAgeIndicator", + "baseName": "accountAgeIndicator", + "type": "AccountInfo.AccountAgeIndicatorEnum" + }, + { + "name": "accountChangeDate", + "baseName": "accountChangeDate", + "type": "Date" + }, + { + "name": "accountChangeIndicator", + "baseName": "accountChangeIndicator", + "type": "AccountInfo.AccountChangeIndicatorEnum" + }, + { + "name": "accountCreationDate", + "baseName": "accountCreationDate", + "type": "Date" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "AccountInfo.AccountTypeEnum" + }, + { + "name": "addCardAttemptsDay", + "baseName": "addCardAttemptsDay", + "type": "number" + }, + { + "name": "deliveryAddressUsageDate", + "baseName": "deliveryAddressUsageDate", + "type": "Date" + }, + { + "name": "deliveryAddressUsageIndicator", + "baseName": "deliveryAddressUsageIndicator", + "type": "AccountInfo.DeliveryAddressUsageIndicatorEnum" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "string" + }, + { + "name": "passwordChangeDate", + "baseName": "passwordChangeDate", + "type": "Date" + }, + { + "name": "passwordChangeIndicator", + "baseName": "passwordChangeIndicator", + "type": "AccountInfo.PasswordChangeIndicatorEnum" + }, + { + "name": "pastTransactionsDay", + "baseName": "pastTransactionsDay", + "type": "number" + }, + { + "name": "pastTransactionsYear", + "baseName": "pastTransactionsYear", + "type": "number" + }, + { + "name": "paymentAccountAge", + "baseName": "paymentAccountAge", + "type": "Date" + }, + { + "name": "paymentAccountIndicator", + "baseName": "paymentAccountIndicator", + "type": "AccountInfo.PaymentAccountIndicatorEnum" + }, + { + "name": "purchasesLast6Months", + "baseName": "purchasesLast6Months", + "type": "number" + }, + { + "name": "suspiciousActivity", + "baseName": "suspiciousActivity", + "type": "boolean" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountInfo.attributeTypeMap; + } +} + +export namespace AccountInfo { + export enum AccountAgeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountChangeIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum AccountTypeEnum { + NotApplicable = 'notApplicable', + Credit = 'credit', + Debit = 'debit' + } + export enum DeliveryAddressUsageIndicatorEnum { + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PasswordChangeIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } + export enum PaymentAccountIndicatorEnum { + NotApplicable = 'notApplicable', + ThisTransaction = 'thisTransaction', + LessThan30Days = 'lessThan30Days', + From30To60Days = 'from30To60Days', + MoreThan60Days = 'moreThan60Days' + } +} diff --git a/src/typings/payments/acctInfo.ts b/src/typings/payments/acctInfo.ts new file mode 100644 index 0000000..82a9271 --- /dev/null +++ b/src/typings/payments/acctInfo.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AcctInfo { + /** + * Length of time that the cardholder has had the account with the 3DS Requestor. Allowed values: * **01** — No account * **02** — Created during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + */ + 'chAccAgeInd'?: AcctInfo.ChAccAgeIndEnum; + /** + * Date that the cardholder’s account with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Format: **YYYYMMDD** + */ + 'chAccChange'?: string; + /** + * Length of time since the cardholder’s account information with the 3DS Requestor was last changed, including Billing or Shipping address, new payment account, or new user(s) added. Allowed values: * **01** — Changed during this transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + */ + 'chAccChangeInd'?: AcctInfo.ChAccChangeIndEnum; + /** + * Date that cardholder’s account with the 3DS Requestor had a password change or account reset. Format: **YYYYMMDD** + */ + 'chAccPwChange'?: string; + /** + * Indicates the length of time since the cardholder’s account with the 3DS Requestor had a password change or account reset. Allowed values: * **01** — No change * **02** — Changed during this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + */ + 'chAccPwChangeInd'?: AcctInfo.ChAccPwChangeIndEnum; + /** + * Date that the cardholder opened the account with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'chAccString'?: string; + /** + * Number of purchases with this cardholder account during the previous six months. Max length: 4 characters. + */ + 'nbPurchaseAccount'?: string; + /** + * String that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'paymentAccAge'?: string; + /** + * Indicates the length of time that the payment account was enrolled in the cardholder’s account with the 3DS Requestor. Allowed values: * **01** — No account (guest checkout) * **02** — During this transaction * **03** — Less than 30 days * **04** — 30–60 days * **05** — More than 60 days + */ + 'paymentAccInd'?: AcctInfo.PaymentAccIndEnum; + /** + * Number of Add Card attempts in the last 24 hours. Max length: 3 characters. + */ + 'provisionAttemptsDay'?: string; + /** + * String when the shipping address used for this transaction was first used with the 3DS Requestor. Format: **YYYYMMDD** + */ + 'shipAddressUsage'?: string; + /** + * Indicates when the shipping address used for this transaction was first used with the 3DS Requestor. Allowed values: * **01** — This transaction * **02** — Less than 30 days * **03** — 30–60 days * **04** — More than 60 days + */ + 'shipAddressUsageInd'?: AcctInfo.ShipAddressUsageIndEnum; + /** + * Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. Allowed values: * **01** — Account Name identical to shipping Name * **02** — Account Name different to shipping Name + */ + 'shipNameIndicator'?: AcctInfo.ShipNameIndicatorEnum; + /** + * Indicates whether the 3DS Requestor has experienced suspicious activity (including previous fraud) on the cardholder account. Allowed values: * **01** — No suspicious activity has been observed * **02** — Suspicious activity has been observed + */ + 'suspiciousAccActivity'?: AcctInfo.SuspiciousAccActivityEnum; + /** + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous 24 hours. Max length: 3 characters. + */ + 'txnActivityDay'?: string; + /** + * Number of transactions (successful and abandoned) for this cardholder account with the 3DS Requestor across all payment accounts in the previous year. Max length: 3 characters. + */ + 'txnActivityYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "chAccAgeInd", + "baseName": "chAccAgeInd", + "type": "AcctInfo.ChAccAgeIndEnum" + }, + { + "name": "chAccChange", + "baseName": "chAccChange", + "type": "string" + }, + { + "name": "chAccChangeInd", + "baseName": "chAccChangeInd", + "type": "AcctInfo.ChAccChangeIndEnum" + }, + { + "name": "chAccPwChange", + "baseName": "chAccPwChange", + "type": "string" + }, + { + "name": "chAccPwChangeInd", + "baseName": "chAccPwChangeInd", + "type": "AcctInfo.ChAccPwChangeIndEnum" + }, + { + "name": "chAccString", + "baseName": "chAccString", + "type": "string" + }, + { + "name": "nbPurchaseAccount", + "baseName": "nbPurchaseAccount", + "type": "string" + }, + { + "name": "paymentAccAge", + "baseName": "paymentAccAge", + "type": "string" + }, + { + "name": "paymentAccInd", + "baseName": "paymentAccInd", + "type": "AcctInfo.PaymentAccIndEnum" + }, + { + "name": "provisionAttemptsDay", + "baseName": "provisionAttemptsDay", + "type": "string" + }, + { + "name": "shipAddressUsage", + "baseName": "shipAddressUsage", + "type": "string" + }, + { + "name": "shipAddressUsageInd", + "baseName": "shipAddressUsageInd", + "type": "AcctInfo.ShipAddressUsageIndEnum" + }, + { + "name": "shipNameIndicator", + "baseName": "shipNameIndicator", + "type": "AcctInfo.ShipNameIndicatorEnum" + }, + { + "name": "suspiciousAccActivity", + "baseName": "suspiciousAccActivity", + "type": "AcctInfo.SuspiciousAccActivityEnum" + }, + { + "name": "txnActivityDay", + "baseName": "txnActivityDay", + "type": "string" + }, + { + "name": "txnActivityYear", + "baseName": "txnActivityYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AcctInfo.attributeTypeMap; + } +} + +export namespace AcctInfo { + export enum ChAccAgeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum ChAccChangeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } + export enum ChAccPwChangeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum PaymentAccIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum ShipAddressUsageIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } + export enum ShipNameIndicatorEnum { + _01 = '01', + _02 = '02' + } + export enum SuspiciousAccActivityEnum { + _01 = '01', + _02 = '02' + } +} diff --git a/src/typings/payments/additionalData3DSecure.ts b/src/typings/payments/additionalData3DSecure.ts new file mode 100644 index 0000000..9637062 --- /dev/null +++ b/src/typings/payments/additionalData3DSecure.ts @@ -0,0 +1,84 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalData3DSecure { + /** + * Indicates if you are able to process 3D Secure 2 transactions natively on your payment page. Send this parameter when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/online-payments/3d-secure/native-3ds2). > This parameter only indicates readiness to support native 3D Secure 2 authentication. To specify if you _want_ to perform 3D Secure, use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) or send the `executeThreeD` parameter. Possible values: * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper\'s experience. * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. + */ + 'allow3DS2'?: string; + /** + * Dimensions of the 3DS2 challenge window to be displayed to the cardholder. Possible values: * **01** - size of 250x400 * **02** - size of 390x400 * **03** - size of 500x600 * **04** - size of 600x400 * **05** - Fullscreen + */ + 'challengeWindowSize'?: AdditionalData3DSecure.ChallengeWindowSizeEnum; + /** + * Indicates if you want to perform 3D Secure authentication on a transaction. > Alternatively, you can use [Dynamic 3D Secure](/risk-management/dynamic-3d-secure) to configure rules for applying 3D Secure. Possible values: * **true** – Perform 3D Secure authentication. * **false** – Don\'t perform 3D Secure authentication. Note that this setting results in refusals if the issuer mandates 3D Secure because of the PSD2 directive or other, national regulations. + */ + 'executeThreeD'?: string; + /** + * In case of Secure+, this field must be set to **CUPSecurePlus**. + */ + 'mpiImplementationType'?: string; + /** + * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + */ + 'scaExemption'?: string; + /** + * Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error. + */ + 'threeDSVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "allow3DS2", + "baseName": "allow3DS2", + "type": "string" + }, + { + "name": "challengeWindowSize", + "baseName": "challengeWindowSize", + "type": "AdditionalData3DSecure.ChallengeWindowSizeEnum" + }, + { + "name": "executeThreeD", + "baseName": "executeThreeD", + "type": "string" + }, + { + "name": "mpiImplementationType", + "baseName": "mpiImplementationType", + "type": "string" + }, + { + "name": "scaExemption", + "baseName": "scaExemption", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalData3DSecure.attributeTypeMap; + } +} + +export namespace AdditionalData3DSecure { + export enum ChallengeWindowSizeEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } +} diff --git a/src/typings/payments/additionalDataAirline.ts b/src/typings/payments/additionalDataAirline.ts new file mode 100644 index 0000000..edcb9bf --- /dev/null +++ b/src/typings/payments/additionalDataAirline.ts @@ -0,0 +1,273 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataAirline { + /** + * Reference number for the invoice, issued by the agency. * minLength: 1 * maxLength: 6 + */ + 'airlineAgencyInvoiceNumber'?: string; + /** + * 2-letter agency plan identifier; alphabetical. * minLength: 2 * maxLength: 2 + */ + 'airlineAgencyPlanName'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 * maxLength: 3 + */ + 'airlineAirlineCode'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineAirlineDesignatorCode'?: string; + /** + * Chargeable amount for boarding the plane. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 18 + */ + 'airlineBoardingFee'?: string; + /** + * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Format: alphanumeric. * minLength: 4 * maxLength: 4 + */ + 'airlineComputerizedReservationSystem'?: string; + /** + * Reference number; alphanumeric. * minLength: 0 * maxLength: 20 + */ + 'airlineCustomerReferenceNumber'?: string; + /** + * Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. * Format: 2-digit code * Example: Passenger ticket = 01 * minLength: 2 * maxLength: 2 + */ + 'airlineDocumentType'?: string; + /** + * Flight departure date. Local time `(HH:mm)` is optional. * Date format: `yyyy-MM-dd` * Date and time format: `yyyy-MM-dd HH:mm` * minLength: 10 * maxLength: 16 + */ + 'airlineFlightDate'?: string; + /** + * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. This field is required/mandatory if the airline data includes leg details. * Format: IATA 2-letter airline code * Example: KLM = KL * minLength: 2 * maxLength: 2 + */ + 'airlineLegCarrierCode'?: string; + /** + * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: * F: first class * J: business class * Y: economy class * W: premium economy Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegClassOfTravel'?: string; + /** + * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. * Format: `yyyy-MM-dd HH:mm` * minLength: 16 * maxLength: 16 + */ + 'airlineLegDateOfTravel'?: string; + /** + * Alphabetical identifier of the departure airport. This field is required if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDepartAirport'?: string; + /** + * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). * minLength: 1 * maxLength: 12 + */ + 'airlineLegDepartTax'?: string; + /** + * Alphabetical identifier of the destination/arrival airport. This field is required/mandatory if the airline data includes leg details. * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. * Example: Amsterdam = AMS * minLength: 3 * maxLength: 3 + */ + 'airlineLegDestinationCode'?: string; + /** + * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. * minLength: 1 * maxLength: 7 + */ + 'airlineLegFareBaseCode'?: string; + /** + * The flight identifier. * minLength: 1 * maxLength: 5 + */ + 'airlineLegFlightNumber'?: string; + /** + * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: * O: Stopover allowed * X: Stopover not allowed Limitations: * minLength: 1 * maxLength: 1 + */ + 'airlineLegStopOverCode'?: string; + /** + * Date of birth of the passenger. Date format: `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + */ + 'airlinePassengerDateOfBirth'?: string; + /** + * Passenger first name/given name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerFirstName'?: string; + /** + * Passenger last name/family name. > This field is required/mandatory if the airline data includes passenger details or leg details. + */ + 'airlinePassengerLastName'?: string; + /** + * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the \'+\' and \'-\' signs. * minLength: 3 * maxLength: 30 + */ + 'airlinePassengerTelephoneNumber'?: string; + /** + * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. * minLength: 3 * maxLength: 6 + */ + 'airlinePassengerTravellerType'?: string; + /** + * Passenger name, initials, and a title. * Format: last name + first name or initials + title. * Example: *FLYER / MARY MS*. * minLength: 1 * maxLength: 49 + */ + 'airlinePassengerName': string; + /** + * Address of the place/agency that issued the ticket. * minLength: 0 * maxLength: 16 + */ + 'airlineTicketIssueAddress'?: string; + /** + * The ticket\'s unique identifier. * minLength: 1 * maxLength: 150 + */ + 'airlineTicketNumber'?: string; + /** + * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. * minLength: 1 * maxLength: 8 + */ + 'airlineTravelAgencyCode'?: string; + /** + * The name of the travel agency. * minLength: 1 * maxLength: 25 + */ + 'airlineTravelAgencyName'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "airlineAgencyInvoiceNumber", + "baseName": "airline.agency_invoice_number", + "type": "string" + }, + { + "name": "airlineAgencyPlanName", + "baseName": "airline.agency_plan_name", + "type": "string" + }, + { + "name": "airlineAirlineCode", + "baseName": "airline.airline_code", + "type": "string" + }, + { + "name": "airlineAirlineDesignatorCode", + "baseName": "airline.airline_designator_code", + "type": "string" + }, + { + "name": "airlineBoardingFee", + "baseName": "airline.boarding_fee", + "type": "string" + }, + { + "name": "airlineComputerizedReservationSystem", + "baseName": "airline.computerized_reservation_system", + "type": "string" + }, + { + "name": "airlineCustomerReferenceNumber", + "baseName": "airline.customer_reference_number", + "type": "string" + }, + { + "name": "airlineDocumentType", + "baseName": "airline.document_type", + "type": "string" + }, + { + "name": "airlineFlightDate", + "baseName": "airline.flight_date", + "type": "string" + }, + { + "name": "airlineLegCarrierCode", + "baseName": "airline.leg.carrier_code", + "type": "string" + }, + { + "name": "airlineLegClassOfTravel", + "baseName": "airline.leg.class_of_travel", + "type": "string" + }, + { + "name": "airlineLegDateOfTravel", + "baseName": "airline.leg.date_of_travel", + "type": "string" + }, + { + "name": "airlineLegDepartAirport", + "baseName": "airline.leg.depart_airport", + "type": "string" + }, + { + "name": "airlineLegDepartTax", + "baseName": "airline.leg.depart_tax", + "type": "string" + }, + { + "name": "airlineLegDestinationCode", + "baseName": "airline.leg.destination_code", + "type": "string" + }, + { + "name": "airlineLegFareBaseCode", + "baseName": "airline.leg.fare_base_code", + "type": "string" + }, + { + "name": "airlineLegFlightNumber", + "baseName": "airline.leg.flight_number", + "type": "string" + }, + { + "name": "airlineLegStopOverCode", + "baseName": "airline.leg.stop_over_code", + "type": "string" + }, + { + "name": "airlinePassengerDateOfBirth", + "baseName": "airline.passenger.date_of_birth", + "type": "string" + }, + { + "name": "airlinePassengerFirstName", + "baseName": "airline.passenger.first_name", + "type": "string" + }, + { + "name": "airlinePassengerLastName", + "baseName": "airline.passenger.last_name", + "type": "string" + }, + { + "name": "airlinePassengerTelephoneNumber", + "baseName": "airline.passenger.telephone_number", + "type": "string" + }, + { + "name": "airlinePassengerTravellerType", + "baseName": "airline.passenger.traveller_type", + "type": "string" + }, + { + "name": "airlinePassengerName", + "baseName": "airline.passenger_name", + "type": "string" + }, + { + "name": "airlineTicketIssueAddress", + "baseName": "airline.ticket_issue_address", + "type": "string" + }, + { + "name": "airlineTicketNumber", + "baseName": "airline.ticket_number", + "type": "string" + }, + { + "name": "airlineTravelAgencyCode", + "baseName": "airline.travel_agency_code", + "type": "string" + }, + { + "name": "airlineTravelAgencyName", + "baseName": "airline.travel_agency_name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataAirline.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataCarRental.ts b/src/typings/payments/additionalDataCarRental.ts new file mode 100644 index 0000000..7371d12 --- /dev/null +++ b/src/typings/payments/additionalDataCarRental.ts @@ -0,0 +1,228 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataCarRental { + /** + * Pick-up date. * Date format: `yyyyMMdd` + */ + 'carRentalCheckOutDate'?: string; + /** + * The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 + */ + 'carRentalCustomerServiceTollFreeNumber'?: string; + /** + * Number of days for which the car is being rented. * Format: Numeric * maxLength: 19 + */ + 'carRentalDaysRented'?: string; + /** + * Any fuel charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalFuelCharges'?: string; + /** + * Any insurance charges associated with the rental. * Format: Numeric * maxLength: 12 + */ + 'carRentalInsuranceCharges'?: string; + /** + * The city from which the car is rented. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalLocationCity'?: string; + /** + * The country from which the car is rented. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalLocationCountry'?: string; + /** + * The state or province from where the car is rented. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalLocationStateProvince'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). * Y - Customer was a no show. * N - Not applicable. + */ + 'carRentalNoShowIndicator'?: string; + /** + * Charge associated with not returning a vehicle to the original rental location. + */ + 'carRentalOneWayDropOffCharges'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRate'?: string; + /** + * Specifies whether the given rate is applied daily or weekly. * D - Daily rate. * W - Weekly rate. + */ + 'carRentalRateIndicator'?: string; + /** + * The rental agreement number associated with this car rental. * Format: Alphanumeric * maxLength: 9 + */ + 'carRentalRentalAgreementNumber'?: string; + /** + * Daily rental rate. * Format: Alphanumeric * maxLength: 12 + */ + 'carRentalRentalClassId'?: string; + /** + * The name of the person renting the car. * Format: Alphanumeric * maxLength: 26 + */ + 'carRentalRenterName'?: string; + /** + * The city where the car must be returned. * Format: Alphanumeric * maxLength: 18 + */ + 'carRentalReturnCity'?: string; + /** + * The country where the car must be returned. * Format: Alphanumeric * maxLength: 2 + */ + 'carRentalReturnCountry'?: string; + /** + * The last date to return the car by. * Date format: `yyyyMMdd` + */ + 'carRentalReturnDate'?: string; + /** + * Agency code, phone number, or address abbreviation * Format: Alphanumeric * maxLength: 10 + */ + 'carRentalReturnLocationId'?: string; + /** + * The state or province where the car must be returned. * Format: Alphanumeric * maxLength: 3 + */ + 'carRentalReturnStateProvince'?: string; + /** + * Indicates whether the goods or services were tax-exempt, or tax was not collected. Values: * Y - Goods or services were tax exempt * N - Tax was not collected + */ + 'carRentalTaxExemptIndicator'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"A\" for Car rental. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "carRentalCheckOutDate", + "baseName": "carRental.checkOutDate", + "type": "string" + }, + { + "name": "carRentalCustomerServiceTollFreeNumber", + "baseName": "carRental.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "carRentalDaysRented", + "baseName": "carRental.daysRented", + "type": "string" + }, + { + "name": "carRentalFuelCharges", + "baseName": "carRental.fuelCharges", + "type": "string" + }, + { + "name": "carRentalInsuranceCharges", + "baseName": "carRental.insuranceCharges", + "type": "string" + }, + { + "name": "carRentalLocationCity", + "baseName": "carRental.locationCity", + "type": "string" + }, + { + "name": "carRentalLocationCountry", + "baseName": "carRental.locationCountry", + "type": "string" + }, + { + "name": "carRentalLocationStateProvince", + "baseName": "carRental.locationStateProvince", + "type": "string" + }, + { + "name": "carRentalNoShowIndicator", + "baseName": "carRental.noShowIndicator", + "type": "string" + }, + { + "name": "carRentalOneWayDropOffCharges", + "baseName": "carRental.oneWayDropOffCharges", + "type": "string" + }, + { + "name": "carRentalRate", + "baseName": "carRental.rate", + "type": "string" + }, + { + "name": "carRentalRateIndicator", + "baseName": "carRental.rateIndicator", + "type": "string" + }, + { + "name": "carRentalRentalAgreementNumber", + "baseName": "carRental.rentalAgreementNumber", + "type": "string" + }, + { + "name": "carRentalRentalClassId", + "baseName": "carRental.rentalClassId", + "type": "string" + }, + { + "name": "carRentalRenterName", + "baseName": "carRental.renterName", + "type": "string" + }, + { + "name": "carRentalReturnCity", + "baseName": "carRental.returnCity", + "type": "string" + }, + { + "name": "carRentalReturnCountry", + "baseName": "carRental.returnCountry", + "type": "string" + }, + { + "name": "carRentalReturnDate", + "baseName": "carRental.returnDate", + "type": "string" + }, + { + "name": "carRentalReturnLocationId", + "baseName": "carRental.returnLocationId", + "type": "string" + }, + { + "name": "carRentalReturnStateProvince", + "baseName": "carRental.returnStateProvince", + "type": "string" + }, + { + "name": "carRentalTaxExemptIndicator", + "baseName": "carRental.taxExemptIndicator", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCarRental.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataCommon.ts b/src/typings/payments/additionalDataCommon.ts new file mode 100644 index 0000000..7eccf0c --- /dev/null +++ b/src/typings/payments/additionalDataCommon.ts @@ -0,0 +1,153 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataCommon { + /** + * Triggers test scenarios that allow to replicate certain communication errors. Allowed values: * **NO_CONNECTION_AVAILABLE** – There wasn\'t a connection available to service the outgoing communication. This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. + */ + 'requestedTestErrorResponseCode'?: string; + /** + * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/online-payments/adjust-authorisation#authorisation-types). Allowed values: * **PreAuth** – flags the payment request to be handled as a pre-authorisation. * **FinalAuth** – flags the payment request to be handled as a final authorisation. + */ + 'authorisationType'?: string; + /** + * Allows you to determine or override the acquirer account that should be used for the transaction. If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request\'s additional data to target a specific acquirer. To enable this functionality, contact [Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'customRoutingFlag'?: string; + /** + * In case of [asynchronous authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#adjust-authorisation), this field denotes why the additional payment is made. Possible values: * **NoShow**: An incremental charge is carried out because of a no-show for a guaranteed reservation. * **DelayedCharge**: An incremental charge is carried out to process an additional payment after the original services have been rendered and the respective payment has been processed. + */ + 'industryUsage'?: AdditionalDataCommon.IndustryUsageEnum; + /** + * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. + */ + 'networkTxReference'?: string; + /** + * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. + */ + 'overwriteBrand'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 13 characters. + */ + 'subMerchantCity'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant\'s address. * Format: alpha-numeric. * Fixed length: 3 characters. + */ + 'subMerchantCountry'?: string; + /** + * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. * Format: alpha-numeric. * Fixed length: 15 characters. + */ + 'subMerchantID'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. * Format: alpha-numeric. * Maximum length: 22 characters. + */ + 'subMerchantName'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 10 characters. + */ + 'subMerchantPostalCode'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 3 characters. + */ + 'subMerchantState'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant\'s address. * Format: alpha-numeric. * Maximum length: 60 characters. + */ + 'subMerchantStreet'?: string; + /** + * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. * Format: alpha-numeric. * Fixed length: 11 or 14 characters. + */ + 'subMerchantTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "requestedTestErrorResponseCode", + "baseName": "RequestedTestErrorResponseCode", + "type": "string" + }, + { + "name": "authorisationType", + "baseName": "authorisationType", + "type": "string" + }, + { + "name": "customRoutingFlag", + "baseName": "customRoutingFlag", + "type": "string" + }, + { + "name": "industryUsage", + "baseName": "industryUsage", + "type": "AdditionalDataCommon.IndustryUsageEnum" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "overwriteBrand", + "baseName": "overwriteBrand", + "type": "string" + }, + { + "name": "subMerchantCity", + "baseName": "subMerchantCity", + "type": "string" + }, + { + "name": "subMerchantCountry", + "baseName": "subMerchantCountry", + "type": "string" + }, + { + "name": "subMerchantID", + "baseName": "subMerchantID", + "type": "string" + }, + { + "name": "subMerchantName", + "baseName": "subMerchantName", + "type": "string" + }, + { + "name": "subMerchantPostalCode", + "baseName": "subMerchantPostalCode", + "type": "string" + }, + { + "name": "subMerchantState", + "baseName": "subMerchantState", + "type": "string" + }, + { + "name": "subMerchantStreet", + "baseName": "subMerchantStreet", + "type": "string" + }, + { + "name": "subMerchantTaxId", + "baseName": "subMerchantTaxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataCommon.attributeTypeMap; + } +} + +export namespace AdditionalDataCommon { + export enum IndustryUsageEnum { + NoShow = 'NoShow', + DelayedCharge = 'DelayedCharge' + } +} diff --git a/src/typings/payments/additionalDataLevel23.ts b/src/typings/payments/additionalDataLevel23.ts new file mode 100644 index 0000000..80bb517 --- /dev/null +++ b/src/typings/payments/additionalDataLevel23.ts @@ -0,0 +1,174 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataLevel23 { + /** + * Customer code, if supplied by a customer. Encoding: ASCII. Max length: 25 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Destination country code. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationCountryCode'?: string; + /** + * The postal code of a destination address. Encoding: ASCII. Max length: 10 characters. > Required for American Express. + */ + 'enhancedSchemeDataDestinationPostalCode'?: string; + /** + * Destination state or province code. Encoding: ASCII.Max length: 3 characters. + */ + 'enhancedSchemeDataDestinationStateProvinceCode'?: string; + /** + * Duty amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataDutyAmount'?: string; + /** + * Shipping amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataFreightAmount'?: string; + /** + * Item commodity code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrCommodityCode'?: string; + /** + * Item description. Encoding: ASCII. Max length: 26 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDescription'?: string; + /** + * Discount amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrDiscountAmount'?: string; + /** + * Product code. Encoding: ASCII. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrProductCode'?: string; + /** + * Quantity, specified as an integer value. Value must be greater than 0. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrQuantity'?: string; + /** + * Total amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrTotalAmount'?: string; + /** + * Item unit of measurement. Encoding: ASCII. Max length: 3 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure'?: string; + /** + * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). Max length: 12 characters. + */ + 'enhancedSchemeDataItemDetailLineItemNrUnitPrice'?: string; + /** + * Order date. * Format: `ddMMyy` Encoding: ASCII. Max length: 6 characters. + */ + 'enhancedSchemeDataOrderDate'?: string; + /** + * The postal code of a \"ship-from\" address. Encoding: ASCII. Max length: 10 characters. + */ + 'enhancedSchemeDataShipFromPostalCode'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00. Max length: 12 characters. > Required for Level 2 and Level 3 data. + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationCountryCode", + "baseName": "enhancedSchemeData.destinationCountryCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationPostalCode", + "baseName": "enhancedSchemeData.destinationPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDestinationStateProvinceCode", + "baseName": "enhancedSchemeData.destinationStateProvinceCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataDutyAmount", + "baseName": "enhancedSchemeData.dutyAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataFreightAmount", + "baseName": "enhancedSchemeData.freightAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrCommodityCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].commodityCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDescription", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].description", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrDiscountAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].discountAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrProductCode", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].productCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrQuantity", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].quantity", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrTotalAmount", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].totalAmount", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitOfMeasure", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure", + "type": "string" + }, + { + "name": "enhancedSchemeDataItemDetailLineItemNrUnitPrice", + "baseName": "enhancedSchemeData.itemDetailLine[itemNr].unitPrice", + "type": "string" + }, + { + "name": "enhancedSchemeDataOrderDate", + "baseName": "enhancedSchemeData.orderDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataShipFromPostalCode", + "baseName": "enhancedSchemeData.shipFromPostalCode", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLevel23.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataLodging.ts b/src/typings/payments/additionalDataLodging.ts new file mode 100644 index 0000000..ee2352c --- /dev/null +++ b/src/typings/payments/additionalDataLodging.ts @@ -0,0 +1,174 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataLodging { + /** + * The arrival date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckInDate'?: string; + /** + * The departure date. * Date format: `yyyyMMdd` + */ + 'lodgingCheckOutDate'?: string; + /** + * The toll free phone number for the hotel/lodgings. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingCustomerServiceTollFreeNumber'?: string; + /** + * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: \'Y\' or \'N\'. * Format: Alphabetic * maxLength: 1 + */ + 'lodgingFireSafetyActIndicator'?: string; + /** + * The folio cash advances. * Format: Numeric * maxLength: 12 + */ + 'lodgingFolioCashAdvances'?: string; + /** + * Card acceptor’s internal invoice or billing ID reference number. * Format: Alphanumeric * maxLength: 25 + */ + 'lodgingFolioNumber'?: string; + /** + * Any charges for food and beverages associated with the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingFoodBeverageCharges'?: string; + /** + * Indicates if the customer was a \"no-show\" (neither keeps nor cancels their booking). Value should be Y or N. * Format: Numeric * maxLength: 1 + */ + 'lodgingNoShowIndicator'?: string; + /** + * Prepaid expenses for the booking. * Format: Numeric * maxLength: 12 + */ + 'lodgingPrepaidExpenses'?: string; + /** + * Identifies specific lodging property location by its local phone number. * Format: Alphanumeric * maxLength: 17 + */ + 'lodgingPropertyPhoneNumber'?: string; + /** + * Total number of nights the room will be rented. * Format: Numeric * maxLength: 4 + */ + 'lodgingRoom1NumberOfNights'?: string; + /** + * The rate of the room. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Rate'?: string; + /** + * The total amount of tax to be paid. * Format: Numeric * maxLength: 12 + */ + 'lodgingRoom1Tax'?: string; + /** + * Total room tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalRoomTax'?: string; + /** + * Total tax amount. * Format: Numeric * maxLength: 12 + */ + 'lodgingTotalTax'?: string; + /** + * Number of nights. This should be included in the auth message. * Format: Numeric * maxLength: 2 + */ + 'travelEntertainmentAuthDataDuration'?: string; + /** + * Indicates what market-specific dataset will be submitted or is being submitted. Value should be \"H\" for Hotel. This should be included in the auth message. * Format: Alphanumeric * maxLength: 1 + */ + 'travelEntertainmentAuthDataMarket'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "lodgingCheckInDate", + "baseName": "lodging.checkInDate", + "type": "string" + }, + { + "name": "lodgingCheckOutDate", + "baseName": "lodging.checkOutDate", + "type": "string" + }, + { + "name": "lodgingCustomerServiceTollFreeNumber", + "baseName": "lodging.customerServiceTollFreeNumber", + "type": "string" + }, + { + "name": "lodgingFireSafetyActIndicator", + "baseName": "lodging.fireSafetyActIndicator", + "type": "string" + }, + { + "name": "lodgingFolioCashAdvances", + "baseName": "lodging.folioCashAdvances", + "type": "string" + }, + { + "name": "lodgingFolioNumber", + "baseName": "lodging.folioNumber", + "type": "string" + }, + { + "name": "lodgingFoodBeverageCharges", + "baseName": "lodging.foodBeverageCharges", + "type": "string" + }, + { + "name": "lodgingNoShowIndicator", + "baseName": "lodging.noShowIndicator", + "type": "string" + }, + { + "name": "lodgingPrepaidExpenses", + "baseName": "lodging.prepaidExpenses", + "type": "string" + }, + { + "name": "lodgingPropertyPhoneNumber", + "baseName": "lodging.propertyPhoneNumber", + "type": "string" + }, + { + "name": "lodgingRoom1NumberOfNights", + "baseName": "lodging.room1.numberOfNights", + "type": "string" + }, + { + "name": "lodgingRoom1Rate", + "baseName": "lodging.room1.rate", + "type": "string" + }, + { + "name": "lodgingRoom1Tax", + "baseName": "lodging.room1.tax", + "type": "string" + }, + { + "name": "lodgingTotalRoomTax", + "baseName": "lodging.totalRoomTax", + "type": "string" + }, + { + "name": "lodgingTotalTax", + "baseName": "lodging.totalTax", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataDuration", + "baseName": "travelEntertainmentAuthData.duration", + "type": "string" + }, + { + "name": "travelEntertainmentAuthDataMarket", + "baseName": "travelEntertainmentAuthData.market", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataLodging.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataModifications.ts b/src/typings/payments/additionalDataModifications.ts new file mode 100644 index 0000000..1ddf4c6 --- /dev/null +++ b/src/typings/payments/additionalDataModifications.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataModifications { + /** + * This is the installment option selected by the shopper. It is required only if specified by the user. + */ + 'installmentPaymentDataSelectedInstallmentOption'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataSelectedInstallmentOption", + "baseName": "installmentPaymentData.selectedInstallmentOption", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataModifications.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataOpenInvoice.ts b/src/typings/payments/additionalDataOpenInvoice.ts new file mode 100644 index 0000000..1a6e5fd --- /dev/null +++ b/src/typings/payments/additionalDataOpenInvoice.ts @@ -0,0 +1,183 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataOpenInvoice { + /** + * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. Since the field is optional, if it\'s not included it does not impact computing the merchant signature. Applies only to Klarna. You can contact Klarna for the format and structure of the string. + */ + 'openinvoicedataMerchantData'?: string; + /** + * The number of invoice lines included in `openinvoicedata`. There needs to be at least one line, so `numberOfLines` needs to be at least 1. + */ + 'openinvoicedataNumberOfLines'?: string; + /** + * First name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientFirstName'?: string; + /** + * Last name of the recipient. If the delivery address and the billing address are different, specify the `recipientFirstName` and `recipientLastName` to share the delivery address with Klarna. Otherwise, only the billing address is shared with Klarna. + */ + 'openinvoicedataRecipientLastName'?: string; + /** + * The three-character ISO currency code. + */ + 'openinvoicedataLineItemNrCurrencyCode'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'openinvoicedataLineItemNrDescription'?: string; + /** + * The price for one item in the invoice line, represented in minor units. The due amount for the item, VAT excluded. + */ + 'openinvoicedataLineItemNrItemAmount'?: string; + /** + * A unique id for this item. Required for RatePay if the description of each item is not unique. + */ + 'openinvoicedataLineItemNrItemId'?: string; + /** + * The VAT due for one item in the invoice line, represented in minor units. + */ + 'openinvoicedataLineItemNrItemVatAmount'?: string; + /** + * The VAT percentage for one item in the invoice line, represented in minor units. For example, 19% VAT is specified as 1900. + */ + 'openinvoicedataLineItemNrItemVatPercentage'?: string; + /** + * The number of units purchased of a specific product. + */ + 'openinvoicedataLineItemNrNumberOfItems'?: string; + /** + * Name of the shipping company handling the the return shipment. + */ + 'openinvoicedataLineItemNrReturnShippingCompany'?: string; + /** + * The tracking number for the return of the shipment. + */ + 'openinvoicedataLineItemNrReturnTrackingNumber'?: string; + /** + * URI where the customer can track the return of their shipment. + */ + 'openinvoicedataLineItemNrReturnTrackingUri'?: string; + /** + * Name of the shipping company handling the delivery. + */ + 'openinvoicedataLineItemNrShippingCompany'?: string; + /** + * Shipping method. + */ + 'openinvoicedataLineItemNrShippingMethod'?: string; + /** + * The tracking number for the shipment. + */ + 'openinvoicedataLineItemNrTrackingNumber'?: string; + /** + * URI where the customer can track their shipment. + */ + 'openinvoicedataLineItemNrTrackingUri'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "openinvoicedataMerchantData", + "baseName": "openinvoicedata.merchantData", + "type": "string" + }, + { + "name": "openinvoicedataNumberOfLines", + "baseName": "openinvoicedata.numberOfLines", + "type": "string" + }, + { + "name": "openinvoicedataRecipientFirstName", + "baseName": "openinvoicedata.recipientFirstName", + "type": "string" + }, + { + "name": "openinvoicedataRecipientLastName", + "baseName": "openinvoicedata.recipientLastName", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrCurrencyCode", + "baseName": "openinvoicedataLine[itemNr].currencyCode", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrDescription", + "baseName": "openinvoicedataLine[itemNr].description", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemAmount", + "baseName": "openinvoicedataLine[itemNr].itemAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemId", + "baseName": "openinvoicedataLine[itemNr].itemId", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatAmount", + "baseName": "openinvoicedataLine[itemNr].itemVatAmount", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrItemVatPercentage", + "baseName": "openinvoicedataLine[itemNr].itemVatPercentage", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrNumberOfItems", + "baseName": "openinvoicedataLine[itemNr].numberOfItems", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnShippingCompany", + "baseName": "openinvoicedataLine[itemNr].returnShippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].returnTrackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrReturnTrackingUri", + "baseName": "openinvoicedataLine[itemNr].returnTrackingUri", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingCompany", + "baseName": "openinvoicedataLine[itemNr].shippingCompany", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrShippingMethod", + "baseName": "openinvoicedataLine[itemNr].shippingMethod", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingNumber", + "baseName": "openinvoicedataLine[itemNr].trackingNumber", + "type": "string" + }, + { + "name": "openinvoicedataLineItemNrTrackingUri", + "baseName": "openinvoicedataLine[itemNr].trackingUri", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpenInvoice.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataOpi.ts b/src/typings/payments/additionalDataOpi.ts new file mode 100644 index 0000000..69af200 --- /dev/null +++ b/src/typings/payments/additionalDataOpi.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataOpi { + /** + * Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + */ + 'opiIncludeTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiIncludeTransToken", + "baseName": "opi.includeTransToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataOpi.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRatepay.ts b/src/typings/payments/additionalDataRatepay.ts new file mode 100644 index 0000000..99e5f83 --- /dev/null +++ b/src/typings/payments/additionalDataRatepay.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRatepay { + /** + * Amount the customer has to pay each month. + */ + 'ratepayInstallmentAmount'?: string; + /** + * Interest rate of this installment. + */ + 'ratepayInterestRate'?: string; + /** + * Amount of the last installment. + */ + 'ratepayLastInstallmentAmount'?: string; + /** + * Calendar day of the first payment. + */ + 'ratepayPaymentFirstday'?: string; + /** + * Date the merchant delivered the goods to the customer. + */ + 'ratepaydataDeliveryDate'?: string; + /** + * Date by which the customer must settle the payment. + */ + 'ratepaydataDueDate'?: string; + /** + * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. + */ + 'ratepaydataInvoiceDate'?: string; + /** + * Identification name or number for the invoice, defined by the merchant. + */ + 'ratepaydataInvoiceId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "ratepayInstallmentAmount", + "baseName": "ratepay.installmentAmount", + "type": "string" + }, + { + "name": "ratepayInterestRate", + "baseName": "ratepay.interestRate", + "type": "string" + }, + { + "name": "ratepayLastInstallmentAmount", + "baseName": "ratepay.lastInstallmentAmount", + "type": "string" + }, + { + "name": "ratepayPaymentFirstday", + "baseName": "ratepay.paymentFirstday", + "type": "string" + }, + { + "name": "ratepaydataDeliveryDate", + "baseName": "ratepaydata.deliveryDate", + "type": "string" + }, + { + "name": "ratepaydataDueDate", + "baseName": "ratepaydata.dueDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceDate", + "baseName": "ratepaydata.invoiceDate", + "type": "string" + }, + { + "name": "ratepaydataInvoiceId", + "baseName": "ratepaydata.invoiceId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRatepay.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRetry.ts b/src/typings/payments/additionalDataRetry.ts new file mode 100644 index 0000000..80a8143 --- /dev/null +++ b/src/typings/payments/additionalDataRetry.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRetry { + /** + * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryChainAttemptNumber'?: string; + /** + * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retryOrderAttemptNumber'?: string; + /** + * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. + */ + 'retrySkipRetry'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "retryChainAttemptNumber", + "baseName": "retry.chainAttemptNumber", + "type": "string" + }, + { + "name": "retryOrderAttemptNumber", + "baseName": "retry.orderAttemptNumber", + "type": "string" + }, + { + "name": "retrySkipRetry", + "baseName": "retry.skipRetry", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRetry.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRisk.ts b/src/typings/payments/additionalDataRisk.ts new file mode 100644 index 0000000..8ab476b --- /dev/null +++ b/src/typings/payments/additionalDataRisk.ts @@ -0,0 +1,210 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRisk { + /** + * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). + */ + 'riskdataCustomFieldName'?: string; + /** + * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataBasketItemItemNrAmountPerItem'?: string; + /** + * Brand of the item. + */ + 'riskdataBasketItemItemNrBrand'?: string; + /** + * Category of the item. + */ + 'riskdataBasketItemItemNrCategory'?: string; + /** + * Color of the item. + */ + 'riskdataBasketItemItemNrColor'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataBasketItemItemNrCurrency'?: string; + /** + * ID of the item. + */ + 'riskdataBasketItemItemNrItemID'?: string; + /** + * Manufacturer of the item. + */ + 'riskdataBasketItemItemNrManufacturer'?: string; + /** + * A text description of the product the invoice line refers to. + */ + 'riskdataBasketItemItemNrProductTitle'?: string; + /** + * Quantity of the item purchased. + */ + 'riskdataBasketItemItemNrQuantity'?: string; + /** + * Email associated with the given product in the basket (usually in electronic gift cards). + */ + 'riskdataBasketItemItemNrReceiverEmail'?: string; + /** + * Size of the item. + */ + 'riskdataBasketItemItemNrSize'?: string; + /** + * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). + */ + 'riskdataBasketItemItemNrSku'?: string; + /** + * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). + */ + 'riskdataBasketItemItemNrUpc'?: string; + /** + * Code of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionCode'?: string; + /** + * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountAmount'?: string; + /** + * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountCurrency'?: string; + /** + * Promotion\'s percentage discount. It is represented in percentage value and there is no need to include the \'%\' sign. e.g. for a promotion discount of 30%, the value of the field should be 30. + */ + 'riskdataPromotionsPromotionItemNrPromotionDiscountPercentage'?: string; + /** + * Name of the promotion. + */ + 'riskdataPromotionsPromotionItemNrPromotionName'?: string; + /** + * Reference number of the risk profile that you want to apply to the payment. If not provided or left blank, the merchant-level account\'s default risk profile will be applied to the payment. For more information, see [dynamically assign a risk profile to a payment](https://docs.adyen.com/risk-management/create-and-use-risk-profiles#dynamically-assign-a-risk-profile-to-a-payment). + */ + 'riskdataRiskProfileReference'?: string; + /** + * If this parameter is provided with the value **true**, risk checks for the payment request are skipped and the transaction will not get a risk score. + */ + 'riskdataSkipRisk'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "riskdataCustomFieldName", + "baseName": "riskdata.[customFieldName]", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrAmountPerItem", + "baseName": "riskdata.basket.item[itemNr].amountPerItem", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrBrand", + "baseName": "riskdata.basket.item[itemNr].brand", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCategory", + "baseName": "riskdata.basket.item[itemNr].category", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrColor", + "baseName": "riskdata.basket.item[itemNr].color", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrCurrency", + "baseName": "riskdata.basket.item[itemNr].currency", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrItemID", + "baseName": "riskdata.basket.item[itemNr].itemID", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrManufacturer", + "baseName": "riskdata.basket.item[itemNr].manufacturer", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrProductTitle", + "baseName": "riskdata.basket.item[itemNr].productTitle", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrQuantity", + "baseName": "riskdata.basket.item[itemNr].quantity", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrReceiverEmail", + "baseName": "riskdata.basket.item[itemNr].receiverEmail", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSize", + "baseName": "riskdata.basket.item[itemNr].size", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrSku", + "baseName": "riskdata.basket.item[itemNr].sku", + "type": "string" + }, + { + "name": "riskdataBasketItemItemNrUpc", + "baseName": "riskdata.basket.item[itemNr].upc", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionCode", + "baseName": "riskdata.promotions.promotion[itemNr].promotionCode", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountAmount", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountAmount", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountCurrency", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionDiscountPercentage", + "baseName": "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage", + "type": "string" + }, + { + "name": "riskdataPromotionsPromotionItemNrPromotionName", + "baseName": "riskdata.promotions.promotion[itemNr].promotionName", + "type": "string" + }, + { + "name": "riskdataRiskProfileReference", + "baseName": "riskdata.riskProfileReference", + "type": "string" + }, + { + "name": "riskdataSkipRisk", + "baseName": "riskdata.skipRisk", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRisk.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataRiskStandalone.ts b/src/typings/payments/additionalDataRiskStandalone.ts new file mode 100644 index 0000000..2650796 --- /dev/null +++ b/src/typings/payments/additionalDataRiskStandalone.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataRiskStandalone { + /** + * Shopper\'s country of residence in the form of ISO standard 3166 2-character country codes. + */ + 'payPalCountryCode'?: string; + /** + * Shopper\'s email. + */ + 'payPalEmailId'?: string; + /** + * Shopper\'s first name. + */ + 'payPalFirstName'?: string; + /** + * Shopper\'s last name. + */ + 'payPalLastName'?: string; + /** + * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. + */ + 'payPalPayerId'?: string; + /** + * Shopper\'s phone number. + */ + 'payPalPhone'?: string; + /** + * Allowed values: * **Eligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Unauthorized Payments and Item Not Received. * **PartiallyEligible** — Merchant is protected by PayPal\'s Seller Protection Policy for Item Not Received. * **Ineligible** — Merchant is not protected under the Seller Protection Policy. + */ + 'payPalProtectionEligibility'?: string; + /** + * Unique transaction ID of the payment. + */ + 'payPalTransactionId'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/risk-management/standalone-risk#tokenised-pan-request). + */ + 'bin'?: string; + /** + * Raw CVC result received from the acquirer, where available. Example: 1 + */ + 'cvcResultRaw'?: string; + /** + * Unique identifier or token for the shopper\'s card details. + */ + 'riskToken'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * Required for PayPal payments only. The only supported value is: **paypal**. + */ + 'tokenDataType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "payPalCountryCode", + "baseName": "PayPal.CountryCode", + "type": "string" + }, + { + "name": "payPalEmailId", + "baseName": "PayPal.EmailId", + "type": "string" + }, + { + "name": "payPalFirstName", + "baseName": "PayPal.FirstName", + "type": "string" + }, + { + "name": "payPalLastName", + "baseName": "PayPal.LastName", + "type": "string" + }, + { + "name": "payPalPayerId", + "baseName": "PayPal.PayerId", + "type": "string" + }, + { + "name": "payPalPhone", + "baseName": "PayPal.Phone", + "type": "string" + }, + { + "name": "payPalProtectionEligibility", + "baseName": "PayPal.ProtectionEligibility", + "type": "string" + }, + { + "name": "payPalTransactionId", + "baseName": "PayPal.TransactionId", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bin", + "baseName": "bin", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "riskToken", + "baseName": "riskToken", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataRiskStandalone.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataSubMerchant.ts b/src/typings/payments/additionalDataSubMerchant.ts new file mode 100644 index 0000000..6037771 --- /dev/null +++ b/src/typings/payments/additionalDataSubMerchant.ts @@ -0,0 +1,111 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataSubMerchant { + /** + * Required for transactions performed by registered payment facilitators. Indicates the number of sub-merchants contained in the request. For example, **3**. + */ + 'subMerchantNumberOfSubSellers'?: string; + /** + * Required for transactions performed by registered payment facilitators. The city of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 13 characters + */ + 'subMerchantSubSellerSubSellerNrCity'?: string; + /** + * Required for transactions performed by registered payment facilitators. The three-letter country code of the sub-merchant\'s address. For example, **BRA** for Brazil. * Format: [ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) * Fixed length: 3 characters + */ + 'subMerchantSubSellerSubSellerNrCountry'?: string; + /** + * Required for transactions performed by registered payment facilitators. A unique identifier that you create for the sub-merchant, used by schemes to identify the sub-merchant. * Format: Alphanumeric * Maximum length: 15 characters + */ + 'subMerchantSubSellerSubSellerNrId'?: string; + /** + * Required for transactions performed by registered payment facilitators. The sub-merchant\'s 4-digit Merchant Category Code (MCC). * Format: Numeric * Fixed length: 4 digits + */ + 'subMerchantSubSellerSubSellerNrMcc'?: string; + /** + * Required for transactions performed by registered payment facilitators. The name of the sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters + */ + 'subMerchantSubSellerSubSellerNrName'?: string; + /** + * Required for transactions performed by registered payment facilitators. The postal code of the sub-merchant\'s address, without dashes. * Format: Numeric * Fixed length: 8 digits + */ + 'subMerchantSubSellerSubSellerNrPostalCode'?: string; + /** + * Required for transactions performed by registered payment facilitators. The state code of the sub-merchant\'s address, if applicable to the country. * Format: Alphanumeric * Maximum length: 2 characters + */ + 'subMerchantSubSellerSubSellerNrState'?: string; + /** + * Required for transactions performed by registered payment facilitators. The street name and house number of the sub-merchant\'s address. * Format: Alphanumeric * Maximum length: 60 characters + */ + 'subMerchantSubSellerSubSellerNrStreet'?: string; + /** + * Required for transactions performed by registered payment facilitators. The tax ID of the sub-merchant. * Format: Numeric * Fixed length: 11 digits for the CPF or 14 digits for the CNPJ + */ + 'subMerchantSubSellerSubSellerNrTaxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "subMerchantNumberOfSubSellers", + "baseName": "subMerchant.numberOfSubSellers", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCity", + "baseName": "subMerchant.subSeller[subSellerNr].city", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrCountry", + "baseName": "subMerchant.subSeller[subSellerNr].country", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrId", + "baseName": "subMerchant.subSeller[subSellerNr].id", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrMcc", + "baseName": "subMerchant.subSeller[subSellerNr].mcc", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrName", + "baseName": "subMerchant.subSeller[subSellerNr].name", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrPostalCode", + "baseName": "subMerchant.subSeller[subSellerNr].postalCode", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrState", + "baseName": "subMerchant.subSeller[subSellerNr].state", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrStreet", + "baseName": "subMerchant.subSeller[subSellerNr].street", + "type": "string" + }, + { + "name": "subMerchantSubSellerSubSellerNrTaxId", + "baseName": "subMerchant.subSeller[subSellerNr].taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataSubMerchant.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataTemporaryServices.ts b/src/typings/payments/additionalDataTemporaryServices.ts new file mode 100644 index 0000000..b5c3824 --- /dev/null +++ b/src/typings/payments/additionalDataTemporaryServices.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataTemporaryServices { + /** + * Customer code, if supplied by a customer. * Encoding: ASCII * maxLength: 25 + */ + 'enhancedSchemeDataCustomerReference'?: string; + /** + * Name or ID associated with the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataEmployeeName'?: string; + /** + * Description of the job or task of the individual working in a temporary capacity. * maxLength: 40 + */ + 'enhancedSchemeDataJobDescription'?: string; + /** + * Amount paid per regular hours worked, minor units. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursRate'?: string; + /** + * Amount of time worked during a normal operation for the task or job. * maxLength: 7 + */ + 'enhancedSchemeDataRegularHoursWorked'?: string; + /** + * Name of the individual requesting temporary services. * maxLength: 40 + */ + 'enhancedSchemeDataRequestName'?: string; + /** + * Date for the beginning of the pay period. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempStartDate'?: string; + /** + * Date of the end of the billing cycle. * Format: ddMMyy * maxLength: 6 + */ + 'enhancedSchemeDataTempWeekEnding'?: string; + /** + * Total tax amount, in minor units. For example, 2000 means USD 20.00 * maxLength: 12 + */ + 'enhancedSchemeDataTotalTaxAmount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "enhancedSchemeDataCustomerReference", + "baseName": "enhancedSchemeData.customerReference", + "type": "string" + }, + { + "name": "enhancedSchemeDataEmployeeName", + "baseName": "enhancedSchemeData.employeeName", + "type": "string" + }, + { + "name": "enhancedSchemeDataJobDescription", + "baseName": "enhancedSchemeData.jobDescription", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursRate", + "baseName": "enhancedSchemeData.regularHoursRate", + "type": "string" + }, + { + "name": "enhancedSchemeDataRegularHoursWorked", + "baseName": "enhancedSchemeData.regularHoursWorked", + "type": "string" + }, + { + "name": "enhancedSchemeDataRequestName", + "baseName": "enhancedSchemeData.requestName", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempStartDate", + "baseName": "enhancedSchemeData.tempStartDate", + "type": "string" + }, + { + "name": "enhancedSchemeDataTempWeekEnding", + "baseName": "enhancedSchemeData.tempWeekEnding", + "type": "string" + }, + { + "name": "enhancedSchemeDataTotalTaxAmount", + "baseName": "enhancedSchemeData.totalTaxAmount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataTemporaryServices.attributeTypeMap; + } +} + diff --git a/src/typings/payments/additionalDataWallets.ts b/src/typings/payments/additionalDataWallets.ts new file mode 100644 index 0000000..672b9cb --- /dev/null +++ b/src/typings/payments/additionalDataWallets.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AdditionalDataWallets { + /** + * The Android Pay token retrieved from the SDK. + */ + 'androidpayToken'?: string; + /** + * The Mastercard Masterpass Transaction ID retrieved from the SDK. + */ + 'masterpassTransactionId'?: string; + /** + * The Apple Pay token retrieved from the SDK. + */ + 'paymentToken'?: string; + /** + * The Google Pay token retrieved from the SDK. + */ + 'paywithgoogleToken'?: string; + /** + * The Samsung Pay token retrieved from the SDK. + */ + 'samsungpayToken'?: string; + /** + * The Visa Checkout Call ID retrieved from the SDK. + */ + 'visacheckoutCallId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "androidpayToken", + "baseName": "androidpay.token", + "type": "string" + }, + { + "name": "masterpassTransactionId", + "baseName": "masterpass.transactionId", + "type": "string" + }, + { + "name": "paymentToken", + "baseName": "payment.token", + "type": "string" + }, + { + "name": "paywithgoogleToken", + "baseName": "paywithgoogle.token", + "type": "string" + }, + { + "name": "samsungpayToken", + "baseName": "samsungpay.token", + "type": "string" + }, + { + "name": "visacheckoutCallId", + "baseName": "visacheckout.callId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdditionalDataWallets.attributeTypeMap; + } +} + diff --git a/src/typings/payments/address.ts b/src/typings/payments/address.ts new file mode 100644 index 0000000..41b5bf0 --- /dev/null +++ b/src/typings/payments/address.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + /** + * The name of the city. Maximum length: 3000 characters. + */ + 'city': string; + /** + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + */ + 'country': string; + /** + * The number or name of the house. Maximum length: 3000 characters. + */ + 'houseNumberOrName': string; + /** + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; + /** + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; + /** + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/payments/adjustAuthorisationRequest.ts b/src/typings/payments/adjustAuthorisationRequest.ts new file mode 100644 index 0000000..2263ea9 --- /dev/null +++ b/src/typings/payments/adjustAuthorisationRequest.ts @@ -0,0 +1,108 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class AdjustAuthorisationRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AdjustAuthorisationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/amount.ts b/src/typings/payments/amount.ts new file mode 100644 index 0000000..4ef042f --- /dev/null +++ b/src/typings/payments/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/payments/applicationInfo.ts b/src/typings/payments/applicationInfo.ts new file mode 100644 index 0000000..11bb365 --- /dev/null +++ b/src/typings/payments/applicationInfo.ts @@ -0,0 +1,61 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CommonField } from './commonField'; +import { ExternalPlatform } from './externalPlatform'; +import { MerchantDevice } from './merchantDevice'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; + +export class ApplicationInfo { + 'adyenLibrary'?: CommonField; + 'adyenPaymentSource'?: CommonField; + 'externalPlatform'?: ExternalPlatform; + 'merchantApplication'?: CommonField; + 'merchantDevice'?: MerchantDevice; + 'shopperInteractionDevice'?: ShopperInteractionDevice; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "adyenLibrary", + "baseName": "adyenLibrary", + "type": "CommonField" + }, + { + "name": "adyenPaymentSource", + "baseName": "adyenPaymentSource", + "type": "CommonField" + }, + { + "name": "externalPlatform", + "baseName": "externalPlatform", + "type": "ExternalPlatform" + }, + { + "name": "merchantApplication", + "baseName": "merchantApplication", + "type": "CommonField" + }, + { + "name": "merchantDevice", + "baseName": "merchantDevice", + "type": "MerchantDevice" + }, + { + "name": "shopperInteractionDevice", + "baseName": "shopperInteractionDevice", + "type": "ShopperInteractionDevice" + } ]; + + static getAttributeTypeMap() { + return ApplicationInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payments/authenticationResultRequest.ts b/src/typings/payments/authenticationResultRequest.ts new file mode 100644 index 0000000..0a2a239 --- /dev/null +++ b/src/typings/payments/authenticationResultRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AuthenticationResultRequest { + /** + * The merchant account identifier, with which the authentication was processed. + */ + 'merchantAccount': string; + /** + * The pspReference identifier for the transaction. + */ + 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AuthenticationResultRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/authenticationResultResponse.ts b/src/typings/payments/authenticationResultResponse.ts new file mode 100644 index 0000000..009d251 --- /dev/null +++ b/src/typings/payments/authenticationResultResponse.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ThreeDS1Result } from './threeDS1Result'; +import { ThreeDS2Result } from './threeDS2Result'; + +export class AuthenticationResultResponse { + 'threeDS1Result'?: ThreeDS1Result; + 'threeDS2Result'?: ThreeDS2Result; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDS1Result", + "baseName": "threeDS1Result", + "type": "ThreeDS1Result" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + } ]; + + static getAttributeTypeMap() { + return AuthenticationResultResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/bankAccount.ts b/src/typings/payments/bankAccount.ts new file mode 100644 index 0000000..e9f6e28 --- /dev/null +++ b/src/typings/payments/bankAccount.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BankAccount { + /** + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; + /** + * The bank city. + */ + 'bankCity'?: string; + /** + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; + /** + * The name of the bank. + */ + 'bankName'?: string; + /** + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; + /** + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; + /** + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; + /** + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * ·12 is converted to ch12. * ÃŧA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; + /** + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/payments/browserInfo.ts b/src/typings/payments/browserInfo.ts new file mode 100644 index 0000000..a21b855 --- /dev/null +++ b/src/typings/payments/browserInfo.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BrowserInfo { + /** + * The accept header value of the shopper\'s browser. + */ + 'acceptHeader': string; + /** + * The color depth of the shopper\'s browser in bits per pixel. This should be obtained by using the browser\'s `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. + */ + 'colorDepth': number; + /** + * Boolean value indicating if the shopper\'s browser is able to execute Java. + */ + 'javaEnabled': boolean; + /** + * Boolean value indicating if the shopper\'s browser is able to execute JavaScript. A default \'true\' value is assumed if the field is not present. + */ + 'javaScriptEnabled'?: boolean; + /** + * The `navigator.language` value of the shopper\'s browser (as defined in IETF BCP 47). + */ + 'language': string; + /** + * The total height of the shopper\'s device screen in pixels. + */ + 'screenHeight': number; + /** + * The total width of the shopper\'s device screen in pixels. + */ + 'screenWidth': number; + /** + * Time difference between UTC time and the shopper\'s browser local time, in minutes. + */ + 'timeZoneOffset': number; + /** + * The user agent value of the shopper\'s browser. + */ + 'userAgent': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acceptHeader", + "baseName": "acceptHeader", + "type": "string" + }, + { + "name": "colorDepth", + "baseName": "colorDepth", + "type": "number" + }, + { + "name": "javaEnabled", + "baseName": "javaEnabled", + "type": "boolean" + }, + { + "name": "javaScriptEnabled", + "baseName": "javaScriptEnabled", + "type": "boolean" + }, + { + "name": "language", + "baseName": "language", + "type": "string" + }, + { + "name": "screenHeight", + "baseName": "screenHeight", + "type": "number" + }, + { + "name": "screenWidth", + "baseName": "screenWidth", + "type": "number" + }, + { + "name": "timeZoneOffset", + "baseName": "timeZoneOffset", + "type": "number" + }, + { + "name": "userAgent", + "baseName": "userAgent", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BrowserInfo.attributeTypeMap; + } +} + diff --git a/src/typings/payments/cancelOrRefundRequest.ts b/src/typings/payments/cancelOrRefundRequest.ts new file mode 100644 index 0000000..9760620 --- /dev/null +++ b/src/typings/payments/cancelOrRefundRequest.ts @@ -0,0 +1,91 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ThreeDSecureData } from './threeDSecureData'; + +export class CancelOrRefundRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CancelOrRefundRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/cancelRequest.ts b/src/typings/payments/cancelRequest.ts new file mode 100644 index 0000000..6c1291b --- /dev/null +++ b/src/typings/payments/cancelRequest.ts @@ -0,0 +1,101 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class CancelRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CancelRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/captureRequest.ts b/src/typings/payments/captureRequest.ts new file mode 100644 index 0000000..fe588af --- /dev/null +++ b/src/typings/payments/captureRequest.ts @@ -0,0 +1,108 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class CaptureRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CaptureRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/card.ts b/src/typings/payments/card.ts new file mode 100644 index 0000000..4faa202 --- /dev/null +++ b/src/typings/payments/card.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Card { + /** + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; + /** + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; + /** + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; + /** + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; + /** + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; + /** + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; + /** + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; + /** + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/payments/commonField.ts b/src/typings/payments/commonField.ts new file mode 100644 index 0000000..618f18e --- /dev/null +++ b/src/typings/payments/commonField.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CommonField { + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return CommonField.attributeTypeMap; + } +} + diff --git a/src/typings/payments/deviceRenderOptions.ts b/src/typings/payments/deviceRenderOptions.ts new file mode 100644 index 0000000..93159f0 --- /dev/null +++ b/src/typings/payments/deviceRenderOptions.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DeviceRenderOptions { + /** + * Supported SDK interface types. Allowed values: * native * html * both + */ + 'sdkInterface'?: DeviceRenderOptions.SdkInterfaceEnum; + /** + * UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect + */ + 'sdkUiType'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sdkInterface", + "baseName": "sdkInterface", + "type": "DeviceRenderOptions.SdkInterfaceEnum" + }, + { + "name": "sdkUiType", + "baseName": "sdkUiType", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeviceRenderOptions.attributeTypeMap; + } +} + +export namespace DeviceRenderOptions { + export enum SdkInterfaceEnum { + Native = 'native', + Html = 'html', + Both = 'both' + } + export enum SdkUiTypeEnum { + MultiSelect = 'multiSelect', + OtherHtml = 'otherHtml', + OutOfBand = 'outOfBand', + SingleSelect = 'singleSelect', + Text = 'text' + } +} diff --git a/src/typings/payments/donationRequest.ts b/src/typings/payments/donationRequest.ts new file mode 100644 index 0000000..64acce7 --- /dev/null +++ b/src/typings/payments/donationRequest.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class DonationRequest { + /** + * The Adyen account name of the charity. + */ + 'donationAccount': string; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount': Amount; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference'?: string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "donationAccount", + "baseName": "donationAccount", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DonationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/externalPlatform.ts b/src/typings/payments/externalPlatform.ts new file mode 100644 index 0000000..f877b6d --- /dev/null +++ b/src/typings/payments/externalPlatform.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ExternalPlatform { + /** + * External platform integrator. + */ + 'integrator'?: string; + /** + * Name of the field. For example, Name of External Platform. + */ + 'name'?: string; + /** + * Version of the field. For example, Version of External Platform. + */ + 'version'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "integrator", + "baseName": "integrator", + "type": "string" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + }, + { + "name": "version", + "baseName": "version", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExternalPlatform.attributeTypeMap; + } +} + diff --git a/src/typings/payments/forexQuote.ts b/src/typings/payments/forexQuote.ts new file mode 100644 index 0000000..4a6646b --- /dev/null +++ b/src/typings/payments/forexQuote.ts @@ -0,0 +1,118 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class ForexQuote { + /** + * The account name. + */ + 'account'?: string; + /** + * The account type. + */ + 'accountType'?: string; + 'baseAmount'?: Amount; + /** + * The base points. + */ + 'basePoints': number; + 'buy'?: Amount; + 'interbank'?: Amount; + /** + * The reference assigned to the forex quote request. + */ + 'reference'?: string; + 'sell'?: Amount; + /** + * The signature to validate the integrity. + */ + 'signature'?: string; + /** + * The source of the forex quote. + */ + 'source'?: string; + /** + * The type of forex. + */ + 'type'?: string; + /** + * The date until which the forex quote is valid. + */ + 'validTill': Date; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "baseAmount", + "baseName": "baseAmount", + "type": "Amount" + }, + { + "name": "basePoints", + "baseName": "basePoints", + "type": "number" + }, + { + "name": "buy", + "baseName": "buy", + "type": "Amount" + }, + { + "name": "interbank", + "baseName": "interbank", + "type": "Amount" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "sell", + "baseName": "sell", + "type": "Amount" + }, + { + "name": "signature", + "baseName": "signature", + "type": "string" + }, + { + "name": "source", + "baseName": "source", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + }, + { + "name": "validTill", + "baseName": "validTill", + "type": "Date" + } ]; + + static getAttributeTypeMap() { + return ForexQuote.attributeTypeMap; + } +} + diff --git a/src/typings/payments/fraudCheckResult.ts b/src/typings/payments/fraudCheckResult.ts new file mode 100644 index 0000000..756b1f3 --- /dev/null +++ b/src/typings/payments/fraudCheckResult.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + 'accountScore': number; + /** + * The ID of the risk check. + */ + 'checkId': number; + /** + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/payments/fraudResult.ts b/src/typings/payments/fraudResult.ts new file mode 100644 index 0000000..00d3b44 --- /dev/null +++ b/src/typings/payments/fraudResult.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FraudCheckResult } from './fraudCheckResult'; + +export class FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; + /** + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/payments/installments.ts b/src/typings/payments/installments.ts new file mode 100644 index 0000000..cdbda01 --- /dev/null +++ b/src/typings/payments/installments.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Installments { + /** + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving** + */ + 'plan'?: Installments.PlanEnum; + /** + * Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "plan", + "baseName": "plan", + "type": "Installments.PlanEnum" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Installments.attributeTypeMap; + } +} + +export namespace Installments { + export enum PlanEnum { + Regular = 'regular', + Revolving = 'revolving' + } +} diff --git a/src/typings/payments/mandate.ts b/src/typings/payments/mandate.ts new file mode 100644 index 0000000..0ea3d49 --- /dev/null +++ b/src/typings/payments/mandate.ts @@ -0,0 +1,114 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Mandate { + /** + * The billing amount (in minor units) of the recurring transactions. + */ + 'amount': string; + /** + * The limitation rule of the billing amount. Possible values: * **max**: The transaction amount can not exceed the `amount`. * **exact**: The transaction amount should be the same as the `amount`. + */ + 'amountRule'?: Mandate.AmountRuleEnum; + /** + * The rule to specify the period, within which the recurring debit can happen, relative to the mandate recurring date. Possible values: * **on**: On a specific date. * **before**: Before and on a specific date. * **after**: On and after a specific date. + */ + 'billingAttemptsRule'?: Mandate.BillingAttemptsRuleEnum; + /** + * The number of the day, on which the recurring debit can happen. Should be within the same calendar month as the mandate recurring date. Possible values: 1-31 based on the `frequency`. + */ + 'billingDay'?: string; + /** + * End date of the billing plan, in YYYY-MM-DD format. + */ + 'endsAt': string; + /** + * The frequency with which a shopper should be charged. Possible values: **daily**, **weekly**, **biWeekly**, **monthly**, **quarterly**, **halfYearly**, **yearly**. + */ + 'frequency': Mandate.FrequencyEnum; + /** + * The message shown by UPI to the shopper on the approval screen. + */ + 'remarks'?: string; + /** + * Start date of the billing plan, in YYYY-MM-DD format. By default, the transaction date. + */ + 'startsAt'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "string" + }, + { + "name": "amountRule", + "baseName": "amountRule", + "type": "Mandate.AmountRuleEnum" + }, + { + "name": "billingAttemptsRule", + "baseName": "billingAttemptsRule", + "type": "Mandate.BillingAttemptsRuleEnum" + }, + { + "name": "billingDay", + "baseName": "billingDay", + "type": "string" + }, + { + "name": "endsAt", + "baseName": "endsAt", + "type": "string" + }, + { + "name": "frequency", + "baseName": "frequency", + "type": "Mandate.FrequencyEnum" + }, + { + "name": "remarks", + "baseName": "remarks", + "type": "string" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Mandate.attributeTypeMap; + } +} + +export namespace Mandate { + export enum AmountRuleEnum { + Max = 'max', + Exact = 'exact' + } + export enum BillingAttemptsRuleEnum { + On = 'on', + Before = 'before', + After = 'after' + } + export enum FrequencyEnum { + Adhoc = 'adhoc', + Daily = 'daily', + Weekly = 'weekly', + BiWeekly = 'biWeekly', + Monthly = 'monthly', + Quarterly = 'quarterly', + HalfYearly = 'halfYearly', + Yearly = 'yearly' + } +} diff --git a/src/typings/payments/merchantDevice.ts b/src/typings/payments/merchantDevice.ts new file mode 100644 index 0000000..704a668 --- /dev/null +++ b/src/typings/payments/merchantDevice.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MerchantDevice { + /** + * Operating system running on the merchant device. + */ + 'os'?: string; + /** + * Version of the operating system on the merchant device. + */ + 'osVersion'?: string; + /** + * Merchant device reference. + */ + 'reference'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payments/merchantRiskIndicator.ts b/src/typings/payments/merchantRiskIndicator.ts new file mode 100644 index 0000000..d2dc361 --- /dev/null +++ b/src/typings/payments/merchantRiskIndicator.ts @@ -0,0 +1,162 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class MerchantRiskIndicator { + /** + * Whether the chosen delivery address is identical to the billing address. + */ + 'addressMatch'?: boolean; + /** + * Indicator regarding the delivery address. Allowed values: * `shipToBillingAddress` * `shipToVerifiedAddress` * `shipToNewAddress` * `shipToStore` * `digitalGoods` * `goodsNotShipped` * `other` + */ + 'deliveryAddressIndicator'?: MerchantRiskIndicator.DeliveryAddressIndicatorEnum; + /** + * The delivery email address (for digital goods). + */ + 'deliveryEmail'?: string; + /** + * For Electronic delivery, the email address to which the merchandise was delivered. Maximum length: 254 characters. + */ + 'deliveryEmailAddress'?: string; + /** + * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` + */ + 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; + 'giftCardAmount'?: Amount; + /** + * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. + */ + 'giftCardCount'?: number; + /** + * For prepaid or gift card purchase, [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) three-digit currency code of the gift card, other than those listed in Table A.5 of the EMVCo 3D Secure Protocol and Core Functions Specification. + */ + 'giftCardCurr'?: string; + /** + * For pre-order purchases, the expected date this product will be available to the shopper. + */ + 'preOrderDate'?: Date; + /** + * Indicator for whether this transaction is for pre-ordering a product. + */ + 'preOrderPurchase'?: boolean; + /** + * Indicates whether Cardholder is placing an order for merchandise with a future availability or release date. + */ + 'preOrderPurchaseInd'?: string; + /** + * Indicator for whether the shopper has already purchased the same items in the past. + */ + 'reorderItems'?: boolean; + /** + * Indicates whether the cardholder is reordering previously purchased merchandise. + */ + 'reorderItemsInd'?: string; + /** + * Indicates shipping method chosen for the transaction. + */ + 'shipIndicator'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "addressMatch", + "baseName": "addressMatch", + "type": "boolean" + }, + { + "name": "deliveryAddressIndicator", + "baseName": "deliveryAddressIndicator", + "type": "MerchantRiskIndicator.DeliveryAddressIndicatorEnum" + }, + { + "name": "deliveryEmail", + "baseName": "deliveryEmail", + "type": "string" + }, + { + "name": "deliveryEmailAddress", + "baseName": "deliveryEmailAddress", + "type": "string" + }, + { + "name": "deliveryTimeframe", + "baseName": "deliveryTimeframe", + "type": "MerchantRiskIndicator.DeliveryTimeframeEnum" + }, + { + "name": "giftCardAmount", + "baseName": "giftCardAmount", + "type": "Amount" + }, + { + "name": "giftCardCount", + "baseName": "giftCardCount", + "type": "number" + }, + { + "name": "giftCardCurr", + "baseName": "giftCardCurr", + "type": "string" + }, + { + "name": "preOrderDate", + "baseName": "preOrderDate", + "type": "Date" + }, + { + "name": "preOrderPurchase", + "baseName": "preOrderPurchase", + "type": "boolean" + }, + { + "name": "preOrderPurchaseInd", + "baseName": "preOrderPurchaseInd", + "type": "string" + }, + { + "name": "reorderItems", + "baseName": "reorderItems", + "type": "boolean" + }, + { + "name": "reorderItemsInd", + "baseName": "reorderItemsInd", + "type": "string" + }, + { + "name": "shipIndicator", + "baseName": "shipIndicator", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return MerchantRiskIndicator.attributeTypeMap; + } +} + +export namespace MerchantRiskIndicator { + export enum DeliveryAddressIndicatorEnum { + ShipToBillingAddress = 'shipToBillingAddress', + ShipToVerifiedAddress = 'shipToVerifiedAddress', + ShipToNewAddress = 'shipToNewAddress', + ShipToStore = 'shipToStore', + DigitalGoods = 'digitalGoods', + GoodsNotShipped = 'goodsNotShipped', + Other = 'other' + } + export enum DeliveryTimeframeEnum { + ElectronicDelivery = 'electronicDelivery', + SameDayShipping = 'sameDayShipping', + OvernightShipping = 'overnightShipping', + TwoOrMoreDaysShipping = 'twoOrMoreDaysShipping' + } +} diff --git a/src/typings/payments/models.ts b/src/typings/payments/models.ts new file mode 100644 index 0000000..42646cf --- /dev/null +++ b/src/typings/payments/models.ts @@ -0,0 +1,416 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './accountInfo'; +export * from './acctInfo'; +export * from './additionalData3DSecure'; +export * from './additionalDataAirline'; +export * from './additionalDataCarRental'; +export * from './additionalDataCommon'; +export * from './additionalDataLevel23'; +export * from './additionalDataLodging'; +export * from './additionalDataModifications'; +export * from './additionalDataOpenInvoice'; +export * from './additionalDataOpi'; +export * from './additionalDataRatepay'; +export * from './additionalDataRetry'; +export * from './additionalDataRisk'; +export * from './additionalDataRiskStandalone'; +export * from './additionalDataSubMerchant'; +export * from './additionalDataTemporaryServices'; +export * from './additionalDataWallets'; +export * from './address'; +export * from './adjustAuthorisationRequest'; +export * from './amount'; +export * from './applicationInfo'; +export * from './authenticationResultRequest'; +export * from './authenticationResultResponse'; +export * from './bankAccount'; +export * from './browserInfo'; +export * from './cancelOrRefundRequest'; +export * from './cancelRequest'; +export * from './captureRequest'; +export * from './card'; +export * from './commonField'; +export * from './deviceRenderOptions'; +export * from './donationRequest'; +export * from './externalPlatform'; +export * from './forexQuote'; +export * from './fraudCheckResult'; +export * from './fraudResult'; +export * from './installments'; +export * from './mandate'; +export * from './merchantDevice'; +export * from './merchantRiskIndicator'; +export * from './modificationResult'; +export * from './name'; +export * from './paymentRequest'; +export * from './paymentRequest3d'; +export * from './paymentRequest3ds2'; +export * from './paymentResult'; +export * from './phone'; +export * from './recurring'; +export * from './refundRequest'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './sDKEphemPubKey'; +export * from './serviceError'; +export * from './shopperInteractionDevice'; +export * from './split'; +export * from './splitAmount'; +export * from './technicalCancelRequest'; +export * from './threeDS1Result'; +export * from './threeDS2RequestData'; +export * from './threeDS2Result'; +export * from './threeDS2ResultRequest'; +export * from './threeDS2ResultResponse'; +export * from './threeDSRequestorAuthenticationInfo'; +export * from './threeDSRequestorPriorAuthenticationInfo'; +export * from './threeDSecureData'; +export * from './voidPendingRefundRequest'; + + +import { AccountInfo } from './accountInfo'; +import { AcctInfo } from './acctInfo'; +import { AdditionalData3DSecure } from './additionalData3DSecure'; +import { AdditionalDataAirline } from './additionalDataAirline'; +import { AdditionalDataCarRental } from './additionalDataCarRental'; +import { AdditionalDataCommon } from './additionalDataCommon'; +import { AdditionalDataLevel23 } from './additionalDataLevel23'; +import { AdditionalDataLodging } from './additionalDataLodging'; +import { AdditionalDataModifications } from './additionalDataModifications'; +import { AdditionalDataOpenInvoice } from './additionalDataOpenInvoice'; +import { AdditionalDataOpi } from './additionalDataOpi'; +import { AdditionalDataRatepay } from './additionalDataRatepay'; +import { AdditionalDataRetry } from './additionalDataRetry'; +import { AdditionalDataRisk } from './additionalDataRisk'; +import { AdditionalDataRiskStandalone } from './additionalDataRiskStandalone'; +import { AdditionalDataSubMerchant } from './additionalDataSubMerchant'; +import { AdditionalDataTemporaryServices } from './additionalDataTemporaryServices'; +import { AdditionalDataWallets } from './additionalDataWallets'; +import { Address } from './address'; +import { AdjustAuthorisationRequest } from './adjustAuthorisationRequest'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { AuthenticationResultRequest } from './authenticationResultRequest'; +import { AuthenticationResultResponse } from './authenticationResultResponse'; +import { BankAccount } from './bankAccount'; +import { BrowserInfo } from './browserInfo'; +import { CancelOrRefundRequest } from './cancelOrRefundRequest'; +import { CancelRequest } from './cancelRequest'; +import { CaptureRequest } from './captureRequest'; +import { Card } from './card'; +import { CommonField } from './commonField'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { DonationRequest } from './donationRequest'; +import { ExternalPlatform } from './externalPlatform'; +import { ForexQuote } from './forexQuote'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { Installments } from './installments'; +import { Mandate } from './mandate'; +import { MerchantDevice } from './merchantDevice'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { ModificationResult } from './modificationResult'; +import { Name } from './name'; +import { PaymentRequest } from './paymentRequest'; +import { PaymentRequest3d } from './paymentRequest3d'; +import { PaymentRequest3ds2 } from './paymentRequest3ds2'; +import { PaymentResult } from './paymentResult'; +import { Phone } from './phone'; +import { Recurring } from './recurring'; +import { RefundRequest } from './refundRequest'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ServiceError } from './serviceError'; +import { ShopperInteractionDevice } from './shopperInteractionDevice'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { TechnicalCancelRequest } from './technicalCancelRequest'; +import { ThreeDS1Result } from './threeDS1Result'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2Result } from './threeDS2Result'; +import { ThreeDS2ResultRequest } from './threeDS2ResultRequest'; +import { ThreeDS2ResultResponse } from './threeDS2ResultResponse'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; +import { ThreeDSecureData } from './threeDSecureData'; +import { VoidPendingRefundRequest } from './voidPendingRefundRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountInfo.AccountAgeIndicatorEnum": AccountInfo.AccountAgeIndicatorEnum, + "AccountInfo.AccountChangeIndicatorEnum": AccountInfo.AccountChangeIndicatorEnum, + "AccountInfo.AccountTypeEnum": AccountInfo.AccountTypeEnum, + "AccountInfo.DeliveryAddressUsageIndicatorEnum": AccountInfo.DeliveryAddressUsageIndicatorEnum, + "AccountInfo.PasswordChangeIndicatorEnum": AccountInfo.PasswordChangeIndicatorEnum, + "AccountInfo.PaymentAccountIndicatorEnum": AccountInfo.PaymentAccountIndicatorEnum, + "AcctInfo.ChAccAgeIndEnum": AcctInfo.ChAccAgeIndEnum, + "AcctInfo.ChAccChangeIndEnum": AcctInfo.ChAccChangeIndEnum, + "AcctInfo.ChAccPwChangeIndEnum": AcctInfo.ChAccPwChangeIndEnum, + "AcctInfo.PaymentAccIndEnum": AcctInfo.PaymentAccIndEnum, + "AcctInfo.ShipAddressUsageIndEnum": AcctInfo.ShipAddressUsageIndEnum, + "AcctInfo.ShipNameIndicatorEnum": AcctInfo.ShipNameIndicatorEnum, + "AcctInfo.SuspiciousAccActivityEnum": AcctInfo.SuspiciousAccActivityEnum, + "AdditionalData3DSecure.ChallengeWindowSizeEnum": AdditionalData3DSecure.ChallengeWindowSizeEnum, + "AdditionalDataCommon.IndustryUsageEnum": AdditionalDataCommon.IndustryUsageEnum, + "DeviceRenderOptions.SdkInterfaceEnum": DeviceRenderOptions.SdkInterfaceEnum, + "DeviceRenderOptions.SdkUiTypeEnum": DeviceRenderOptions.SdkUiTypeEnum, + "Installments.PlanEnum": Installments.PlanEnum, + "Mandate.AmountRuleEnum": Mandate.AmountRuleEnum, + "Mandate.BillingAttemptsRuleEnum": Mandate.BillingAttemptsRuleEnum, + "Mandate.FrequencyEnum": Mandate.FrequencyEnum, + "MerchantRiskIndicator.DeliveryAddressIndicatorEnum": MerchantRiskIndicator.DeliveryAddressIndicatorEnum, + "MerchantRiskIndicator.DeliveryTimeframeEnum": MerchantRiskIndicator.DeliveryTimeframeEnum, + "ModificationResult.ResponseEnum": ModificationResult.ResponseEnum, + "PaymentRequest.EntityTypeEnum": PaymentRequest.EntityTypeEnum, + "PaymentRequest.FundingSourceEnum": PaymentRequest.FundingSourceEnum, + "PaymentRequest.RecurringProcessingModelEnum": PaymentRequest.RecurringProcessingModelEnum, + "PaymentRequest.ShopperInteractionEnum": PaymentRequest.ShopperInteractionEnum, + "PaymentRequest3d.RecurringProcessingModelEnum": PaymentRequest3d.RecurringProcessingModelEnum, + "PaymentRequest3d.ShopperInteractionEnum": PaymentRequest3d.ShopperInteractionEnum, + "PaymentRequest3ds2.RecurringProcessingModelEnum": PaymentRequest3ds2.RecurringProcessingModelEnum, + "PaymentRequest3ds2.ShopperInteractionEnum": PaymentRequest3ds2.ShopperInteractionEnum, + "PaymentResult.ResultCodeEnum": PaymentResult.ResultCodeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "Split.TypeEnum": Split.TypeEnum, + "ThreeDS2RequestData.AcctTypeEnum": ThreeDS2RequestData.AcctTypeEnum, + "ThreeDS2RequestData.AddrMatchEnum": ThreeDS2RequestData.AddrMatchEnum, + "ThreeDS2RequestData.ChallengeIndicatorEnum": ThreeDS2RequestData.ChallengeIndicatorEnum, + "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum": ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum, + "ThreeDS2RequestData.TransTypeEnum": ThreeDS2RequestData.TransTypeEnum, + "ThreeDS2RequestData.TransactionTypeEnum": ThreeDS2RequestData.TransactionTypeEnum, + "ThreeDS2Result.ChallengeCancelEnum": ThreeDS2Result.ChallengeCancelEnum, + "ThreeDS2Result.ChallengeIndicatorEnum": ThreeDS2Result.ChallengeIndicatorEnum, + "ThreeDS2Result.ExemptionIndicatorEnum": ThreeDS2Result.ExemptionIndicatorEnum, + "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum": ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum, + "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum": ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum, + "ThreeDSecureData.AuthenticationResponseEnum": ThreeDSecureData.AuthenticationResponseEnum, + "ThreeDSecureData.ChallengeCancelEnum": ThreeDSecureData.ChallengeCancelEnum, + "ThreeDSecureData.DirectoryResponseEnum": ThreeDSecureData.DirectoryResponseEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountInfo": AccountInfo, + "AcctInfo": AcctInfo, + "AdditionalData3DSecure": AdditionalData3DSecure, + "AdditionalDataAirline": AdditionalDataAirline, + "AdditionalDataCarRental": AdditionalDataCarRental, + "AdditionalDataCommon": AdditionalDataCommon, + "AdditionalDataLevel23": AdditionalDataLevel23, + "AdditionalDataLodging": AdditionalDataLodging, + "AdditionalDataModifications": AdditionalDataModifications, + "AdditionalDataOpenInvoice": AdditionalDataOpenInvoice, + "AdditionalDataOpi": AdditionalDataOpi, + "AdditionalDataRatepay": AdditionalDataRatepay, + "AdditionalDataRetry": AdditionalDataRetry, + "AdditionalDataRisk": AdditionalDataRisk, + "AdditionalDataRiskStandalone": AdditionalDataRiskStandalone, + "AdditionalDataSubMerchant": AdditionalDataSubMerchant, + "AdditionalDataTemporaryServices": AdditionalDataTemporaryServices, + "AdditionalDataWallets": AdditionalDataWallets, + "Address": Address, + "AdjustAuthorisationRequest": AdjustAuthorisationRequest, + "Amount": Amount, + "ApplicationInfo": ApplicationInfo, + "AuthenticationResultRequest": AuthenticationResultRequest, + "AuthenticationResultResponse": AuthenticationResultResponse, + "BankAccount": BankAccount, + "BrowserInfo": BrowserInfo, + "CancelOrRefundRequest": CancelOrRefundRequest, + "CancelRequest": CancelRequest, + "CaptureRequest": CaptureRequest, + "Card": Card, + "CommonField": CommonField, + "DeviceRenderOptions": DeviceRenderOptions, + "DonationRequest": DonationRequest, + "ExternalPlatform": ExternalPlatform, + "ForexQuote": ForexQuote, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "Installments": Installments, + "Mandate": Mandate, + "MerchantDevice": MerchantDevice, + "MerchantRiskIndicator": MerchantRiskIndicator, + "ModificationResult": ModificationResult, + "Name": Name, + "PaymentRequest": PaymentRequest, + "PaymentRequest3d": PaymentRequest3d, + "PaymentRequest3ds2": PaymentRequest3ds2, + "PaymentResult": PaymentResult, + "Phone": Phone, + "Recurring": Recurring, + "RefundRequest": RefundRequest, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "SDKEphemPubKey": SDKEphemPubKey, + "ServiceError": ServiceError, + "ShopperInteractionDevice": ShopperInteractionDevice, + "Split": Split, + "SplitAmount": SplitAmount, + "TechnicalCancelRequest": TechnicalCancelRequest, + "ThreeDS1Result": ThreeDS1Result, + "ThreeDS2RequestData": ThreeDS2RequestData, + "ThreeDS2Result": ThreeDS2Result, + "ThreeDS2ResultRequest": ThreeDS2ResultRequest, + "ThreeDS2ResultResponse": ThreeDS2ResultResponse, + "ThreeDSRequestorAuthenticationInfo": ThreeDSRequestorAuthenticationInfo, + "ThreeDSRequestorPriorAuthenticationInfo": ThreeDSRequestorPriorAuthenticationInfo, + "ThreeDSecureData": ThreeDSecureData, + "VoidPendingRefundRequest": VoidPendingRefundRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/payments/modificationResult.ts b/src/typings/payments/modificationResult.ts new file mode 100644 index 0000000..ae038ab --- /dev/null +++ b/src/typings/payments/modificationResult.ts @@ -0,0 +1,60 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModificationResult { + /** + * This field contains additional data, which may be returned in a particular modification response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference': string; + /** + * Indicates if the modification request has been received for processing. + */ + 'response': ModificationResult.ResponseEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "ModificationResult.ResponseEnum" + } ]; + + static getAttributeTypeMap() { + return ModificationResult.attributeTypeMap; + } +} + +export namespace ModificationResult { + export enum ResponseEnum { + CaptureReceived = '[capture-received]', + CancelReceived = '[cancel-received]', + RefundReceived = '[refund-received]', + CancelOrRefundReceived = '[cancelOrRefund-received]', + AdjustAuthorisationReceived = '[adjustAuthorisation-received]', + DonationReceived = '[donation-received]', + TechnicalCancelReceived = '[technical-cancel-received]', + VoidPendingRefundReceived = '[voidPendingRefund-received]' + } +} diff --git a/src/typings/payments/name.ts b/src/typings/payments/name.ts new file mode 100644 index 0000000..e0ca497 --- /dev/null +++ b/src/typings/payments/name.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name { + /** + * The first name. + */ + 'firstName': string; + /** + * The last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/payments/paymentRequest.ts b/src/typings/payments/paymentRequest.ts new file mode 100644 index 0000000..bc695dd --- /dev/null +++ b/src/typings/payments/paymentRequest.ts @@ -0,0 +1,447 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BankAccount } from './bankAccount'; +import { BrowserInfo } from './browserInfo'; +import { Card } from './card'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { Mandate } from './mandate'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class PaymentRequest { + 'accountInfo'?: AccountInfo; + 'additionalAmount'?: Amount; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'bankAccount'?: BankAccount; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + 'card'?: Card; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * The type of the entity the payment is processed for. + */ + 'entityType'?: PaymentRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. + */ + 'fundingSource'?: PaymentRequest.FundingSourceEnum; + 'installments'?: Installments; + 'mandate'?: Mandate; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + */ + 'metadata'?: { [key: string]: string; }; + 'mpiData'?: ThreeDSecureData; + /** + * The two-character country code of the shopper\'s nationality. + */ + 'nationality'?: string; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + 'recurring'?: Recurring; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PaymentRequest.RecurringProcessingModelEnum; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + */ + 'selectedBrand'?: string; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * A session ID used to identify a payment session. + */ + 'sessionId'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentRequest.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + */ + 'splits'?: Array; + /** + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + */ + 'store'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + */ + 'totalsGroup'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "bankAccount", + "baseName": "bankAccount", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "PaymentRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "PaymentRequest.FundingSourceEnum" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest.attributeTypeMap; + } +} + +export namespace PaymentRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + CompanyName = 'CompanyName' + } + export enum FundingSourceEnum { + Debit = 'debit' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/payments/paymentRequest3d.ts b/src/typings/payments/paymentRequest3d.ts new file mode 100644 index 0000000..63cfc2e --- /dev/null +++ b/src/typings/payments/paymentRequest3d.ts @@ -0,0 +1,403 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BrowserInfo } from './browserInfo'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; + +export class PaymentRequest3d { + 'accountInfo'?: AccountInfo; + 'additionalAmount'?: Amount; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount'?: Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The payment session identifier returned by the card issuer. + */ + 'md': string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + */ + 'metadata'?: { [key: string]: string; }; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + /** + * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. + */ + 'paResponse': string; + 'recurring'?: Recurring; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PaymentRequest3d.RecurringProcessingModelEnum; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + */ + 'selectedBrand'?: string; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * A session ID used to identify a payment session. + */ + 'sessionId'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentRequest3d.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + */ + 'splits'?: Array; + /** + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + */ + 'store'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + */ + 'totalsGroup'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "paResponse", + "baseName": "paResponse", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest3d.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest3d.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest3d.attributeTypeMap; + } +} + +export namespace PaymentRequest3d { + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/payments/paymentRequest3ds2.ts b/src/typings/payments/paymentRequest3ds2.ts new file mode 100644 index 0000000..af81838 --- /dev/null +++ b/src/typings/payments/paymentRequest3ds2.ts @@ -0,0 +1,401 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountInfo } from './accountInfo'; +import { Address } from './address'; +import { Amount } from './amount'; +import { ApplicationInfo } from './applicationInfo'; +import { BrowserInfo } from './browserInfo'; +import { ForexQuote } from './forexQuote'; +import { Installments } from './installments'; +import { MerchantRiskIndicator } from './merchantRiskIndicator'; +import { Name } from './name'; +import { Recurring } from './recurring'; +import { Split } from './split'; +import { ThreeDS2RequestData } from './threeDS2RequestData'; +import { ThreeDS2Result } from './threeDS2Result'; + +export class PaymentRequest3ds2 { + 'accountInfo'?: AccountInfo; + 'additionalAmount'?: Amount; + /** + * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'applicationInfo'?: ApplicationInfo; + 'billingAddress'?: Address; + 'browserInfo'?: BrowserInfo; + /** + * The delay between the authorisation and scheduled auto-capture, specified in hours. + */ + 'captureDelayHours'?: number; + /** + * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD + */ + 'dateOfBirth'?: Date; + 'dccQuote'?: ForexQuote; + 'deliveryAddress'?: Address; + /** + * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 + */ + 'deliveryDate'?: Date; + /** + * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). + */ + 'deviceFingerprint'?: string; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'installments'?: Installments; + /** + * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. + */ + 'mcc'?: string; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. + */ + 'merchantOrderReference'?: string; + 'merchantRiskIndicator'?: MerchantRiskIndicator; + /** + * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. + */ + 'metadata'?: { [key: string]: string; }; + /** + * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. + */ + 'orderReference'?: string; + 'recurring'?: Recurring; + /** + * Defines a recurring payment type. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. + */ + 'recurringProcessingModel'?: PaymentRequest3ds2.RecurringProcessingModelEnum; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. + */ + 'selectedBrand'?: string; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * A session ID used to identify a payment session. + */ + 'sessionId'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + */ + 'shopperEmail'?: string; + /** + * The shopper\'s IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). > For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'shopperIP'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PaymentRequest3ds2.ShopperInteractionEnum; + /** + * The combination of a language code and a country code to specify the language to be used in the payment. + */ + 'shopperLocale'?: string; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * The text to be shown on the shopper\'s bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , \' _ - ? + * /_**. + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/manage-funds#split). + */ + 'splits'?: Array; + /** + * The ecommerce or point-of-sale store that is processing the payment. Used in [partner arrangement integrations](https://docs.adyen.com/platforms/platforms-for-partners#route-payments) for Adyen for Platforms. + */ + 'store'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + 'threeDS2RequestData'?: ThreeDS2RequestData; + 'threeDS2Result'?: ThreeDS2Result; + /** + * The ThreeDS2Token that was returned in the /authorise call. + */ + 'threeDS2Token'?: string; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + */ + 'threeDSAuthenticationOnly'?: boolean; + /** + * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). + */ + 'totalsGroup'?: string; + /** + * Set to true if the payment should be routed to a trusted MID. + */ + 'trustedShopper'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountInfo", + "baseName": "accountInfo", + "type": "AccountInfo" + }, + { + "name": "additionalAmount", + "baseName": "additionalAmount", + "type": "Amount" + }, + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "applicationInfo", + "baseName": "applicationInfo", + "type": "ApplicationInfo" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "browserInfo", + "baseName": "browserInfo", + "type": "BrowserInfo" + }, + { + "name": "captureDelayHours", + "baseName": "captureDelayHours", + "type": "number" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "dccQuote", + "baseName": "dccQuote", + "type": "ForexQuote" + }, + { + "name": "deliveryAddress", + "baseName": "deliveryAddress", + "type": "Address" + }, + { + "name": "deliveryDate", + "baseName": "deliveryDate", + "type": "Date" + }, + { + "name": "deviceFingerprint", + "baseName": "deviceFingerprint", + "type": "string" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "installments", + "baseName": "installments", + "type": "Installments" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantOrderReference", + "baseName": "merchantOrderReference", + "type": "string" + }, + { + "name": "merchantRiskIndicator", + "baseName": "merchantRiskIndicator", + "type": "MerchantRiskIndicator" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "orderReference", + "baseName": "orderReference", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "PaymentRequest3ds2.RecurringProcessingModelEnum" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "sessionId", + "baseName": "sessionId", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperIP", + "baseName": "shopperIP", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PaymentRequest3ds2.ShopperInteractionEnum" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + }, + { + "name": "threeDS2RequestData", + "baseName": "threeDS2RequestData", + "type": "ThreeDS2RequestData" + }, + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + }, + { + "name": "threeDS2Token", + "baseName": "threeDS2Token", + "type": "string" + }, + { + "name": "threeDSAuthenticationOnly", + "baseName": "threeDSAuthenticationOnly", + "type": "boolean" + }, + { + "name": "totalsGroup", + "baseName": "totalsGroup", + "type": "string" + }, + { + "name": "trustedShopper", + "baseName": "trustedShopper", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return PaymentRequest3ds2.attributeTypeMap; + } +} + +export namespace PaymentRequest3ds2 { + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/payments/paymentResult.ts b/src/typings/payments/paymentResult.ts new file mode 100644 index 0000000..a2e3f1a --- /dev/null +++ b/src/typings/payments/paymentResult.ts @@ -0,0 +1,132 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; + +export class PaymentResult { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'dccAmount'?: Amount; + /** + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'dccSignature'?: string; + 'fraudResult'?: FraudResult; + /** + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + */ + 'issuerUrl'?: string; + /** + * The payment session. + */ + 'md'?: string; + /** + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + */ + 'paRequest'?: string; + /** + * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReason'?: string; + /** + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PaymentResult.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "dccAmount", + "baseName": "dccAmount", + "type": "Amount" + }, + { + "name": "dccSignature", + "baseName": "dccSignature", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "issuerUrl", + "baseName": "issuerUrl", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "type": "string" + }, + { + "name": "paRequest", + "baseName": "paRequest", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PaymentResult.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PaymentResult.attributeTypeMap; + } +} + +export namespace PaymentResult { + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused', + Success = 'Success' + } +} diff --git a/src/typings/payments/phone.ts b/src/typings/payments/phone.ts new file mode 100644 index 0000000..aab0bae --- /dev/null +++ b/src/typings/payments/phone.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Phone { + /** + * Country code. Length: 1–3 characters. + */ + 'cc'?: string; + /** + * Subscriber number. Maximum length: 15 characters. + */ + 'subscriber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cc", + "baseName": "cc", + "type": "string" + }, + { + "name": "subscriber", + "baseName": "subscriber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Phone.attributeTypeMap; + } +} + diff --git a/src/typings/payments/recurring.ts b/src/typings/payments/recurring.ts new file mode 100644 index 0000000..1d80454 --- /dev/null +++ b/src/typings/payments/recurring.ts @@ -0,0 +1,77 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Recurring { + /** + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; + /** + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } +} + +export namespace Recurring { + export enum ContractEnum { + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' + } + export enum TokenServiceEnum { + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/payments/refundRequest.ts b/src/typings/payments/refundRequest.ts new file mode 100644 index 0000000..5b0c673 --- /dev/null +++ b/src/typings/payments/refundRequest.ts @@ -0,0 +1,108 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class RefundRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount': Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RefundRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalData3DSecure.ts b/src/typings/payments/responseAdditionalData3DSecure.ts new file mode 100644 index 0000000..0c4bd7d --- /dev/null +++ b/src/typings/payments/responseAdditionalData3DSecure.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalData3DSecure { + /** + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + */ + 'cardHolderInfo'?: string; + /** + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. + */ + 'cavvAlgorithm'?: string; + /** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + */ + 'scaExemptionRequested'?: string; + /** + * Indicates whether a card is enrolled for 3D Secure 2. + */ + 'threeds2CardEnrolled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "scaExemptionRequested", + "baseName": "scaExemptionRequested", + "type": "string" + }, + { + "name": "threeds2CardEnrolled", + "baseName": "threeds2.cardEnrolled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataBillingAddress.ts b/src/typings/payments/responseAdditionalDataBillingAddress.ts new file mode 100644 index 0000000..d8eeff5 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataBillingAddress.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataBillingAddress { + /** + * The billing address city passed in the payment request. + */ + 'billingAddressCity'?: string; + /** + * The billing address country passed in the payment request. Example: NL + */ + 'billingAddressCountry'?: string; + /** + * The billing address house number or name passed in the payment request. + */ + 'billingAddressHouseNumberOrName'?: string; + /** + * The billing address postal code passed in the payment request. Example: 1011 DJ + */ + 'billingAddressPostalCode'?: string; + /** + * The billing address state or province passed in the payment request. Example: NH + */ + 'billingAddressStateOrProvince'?: string; + /** + * The billing address street passed in the payment request. + */ + 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataCard.ts b/src/typings/payments/responseAdditionalDataCard.ts new file mode 100644 index 0000000..b61f91e --- /dev/null +++ b/src/typings/payments/responseAdditionalDataCard.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataCard { + /** + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + */ + 'cardBin'?: string; + /** + * The cardholder name passed in the payment request. + */ + 'cardHolderName'?: string; + /** + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + */ + 'cardIssuingBank'?: string; + /** + * The country where the card was issued. Example: US + */ + 'cardIssuingCountry'?: string; + /** + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + */ + 'cardIssuingCurrency'?: string; + /** + * The card payment method used for the transaction. Example: amex + */ + 'cardPaymentMethod'?: string; + /** + * The last four digits of a card number. > Returned only in case of a card payment. + */ + 'cardSummary'?: string; + /** + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + */ + 'issuerBin'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + }, + { + "name": "issuerBin", + "baseName": "issuerBin", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataCommon.ts b/src/typings/payments/responseAdditionalDataCommon.ts new file mode 100644 index 0000000..5e1e876 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataCommon.ts @@ -0,0 +1,570 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataCommon { + /** + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + */ + 'acquirerAccountCode'?: string; + /** + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + */ + 'acquirerCode'?: string; + /** + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + */ + 'acquirerReference'?: string; + /** + * The Adyen alias of the card. Example: H167852639363479 + */ + 'alias'?: string; + /** + * The type of the card alias. Example: Default + */ + 'aliasType'?: string; + /** + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + */ + 'authCode'?: string; + /** + * Merchant ID known by the acquirer. + */ + 'authorisationMid'?: string; + /** + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountCurrency'?: string; + /** + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountValue'?: string; + /** + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + */ + 'avsResult'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + */ + 'bic'?: string; + /** + * Includes the co-branded card information. + */ + 'coBrandedWith'?: string; + /** + * The result of CVC verification. + */ + 'cvcResult'?: string; + /** + * The raw result of CVC verification. + */ + 'cvcResultRaw'?: string; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + */ + 'eci'?: string; + /** + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + */ + 'expiryDate'?: string; + /** + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + */ + 'extraCostsCurrency'?: string; + /** + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + */ + 'extraCostsValue'?: string; + /** + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + */ + 'fraudCheckItemNrFraudCheckname'?: string; + /** + * Indicates if the payment is sent to manual review. + */ + 'fraudManualReview'?: string; + /** + * The fraud result properties of the payment. + */ + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + /** + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + */ + 'fundingSource'?: string; + /** + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + */ + 'fundsAvailability'?: string; + /** + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + */ + 'inferredRefusalReason'?: string; + /** + * Indicates if the card is used for business purposes only. + */ + 'isCardCommercial'?: string; + /** + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + */ + 'issuerCountry'?: string; + /** + * A Boolean value indicating whether a liability shift was offered for this payment. + */ + 'liabilityShift'?: string; + /** + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + */ + 'mcBankNetReferenceNumber'?: string; + /** + * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + */ + 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + /** + * The reference provided for the transaction. + */ + 'merchantReference'?: string; + /** + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + */ + 'networkTxReference'?: string; + /** + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + */ + 'ownerName'?: string; + /** + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + */ + 'paymentAccountReference'?: string; + /** + * The payment method used in the transaction. + */ + 'paymentMethod'?: string; + /** + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + */ + 'paymentMethodVariant'?: string; + /** + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + */ + 'payoutEligible'?: string; + /** + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + */ + 'realtimeAccountUpdaterStatus'?: string; + /** + * Message to be displayed on the terminal. + */ + 'receiptFreeText'?: string; + /** + * The recurring contract types applicable to the transaction. + */ + 'recurringContractTypes'?: string; + /** + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. + */ + 'recurringFirstPspReference'?: string; + /** + * The reference that uniquely identifies the recurring transaction. + */ + 'recurringRecurringDetailReference'?: string; + /** + * The provided reference of the shopper for a recurring transaction. + */ + 'recurringShopperReference'?: string; + /** + * The processing model used for the recurring transaction. + */ + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + /** + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + */ + 'referred'?: string; + /** + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + */ + 'refusalReasonRaw'?: string; + /** + * The amount of the payment request. + */ + 'requestAmount'?: string; + /** + * The currency of the payment request. + */ + 'requestCurrencyCode'?: string; + /** + * The shopper interaction type of the payment request. Example: Ecommerce + */ + 'shopperInteraction'?: string; + /** + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + */ + 'shopperReference'?: string; + /** + * The terminal ID used in a point-of-sale payment. Example: 06022622 + */ + 'terminalId'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * The raw 3DS authentication result from the card issuer. Example: N + */ + 'threeDAuthenticatedResponse'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + */ + 'threeDOfferedResponse'?: string; + /** + * The 3D Secure 2 version. + */ + 'threeDSVersion'?: string; + /** + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + */ + 'visaTransactionId'?: string; + /** + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "coBrandedWith", + "baseName": "coBrandedWith", + "type": "string" + }, + { + "name": "cvcResult", + "baseName": "cvcResult", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fraudManualReview", + "baseName": "fraudManualReview", + "type": "string" + }, + { + "name": "fraudResultType", + "baseName": "fraudResultType", + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "isCardCommercial", + "baseName": "isCardCommercial", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "liabilityShift", + "baseName": "liabilityShift", + "type": "string" + }, + { + "name": "mcBankNetReferenceNumber", + "baseName": "mcBankNetReferenceNumber", + "type": "string" + }, + { + "name": "merchantAdviceCode", + "baseName": "merchantAdviceCode", + "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "realtimeAccountUpdaterStatus", + "baseName": "realtimeAccountUpdaterStatus", + "type": "string" + }, + { + "name": "receiptFreeText", + "baseName": "receiptFreeText", + "type": "string" + }, + { + "name": "recurringContractTypes", + "baseName": "recurring.contractTypes", + "type": "string" + }, + { + "name": "recurringFirstPspReference", + "baseName": "recurring.firstPspReference", + "type": "string" + }, + { + "name": "recurringRecurringDetailReference", + "baseName": "recurring.recurringDetailReference", + "type": "string" + }, + { + "name": "recurringShopperReference", + "baseName": "recurring.shopperReference", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" + }, + { + "name": "referred", + "baseName": "referred", + "type": "string" + }, + { + "name": "refusalReasonRaw", + "baseName": "refusalReasonRaw", + "type": "string" + }, + { + "name": "requestAmount", + "baseName": "requestAmount", + "type": "string" + }, + { + "name": "requestCurrencyCode", + "baseName": "requestCurrencyCode", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "visaTransactionId", + "baseName": "visaTransactionId", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } +} + +export namespace ResponseAdditionalDataCommon { + export enum FraudResultTypeEnum { + Green = 'GREEN', + Fraud = 'FRAUD' + } + export enum MerchantAdviceCodeEnum { + _01NewAccountInformationAvailable = '01: New account information available', + _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', + _03DoNotTryAgain = '03: Do not try again', + _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', + _21PaymentCancellation = '21: Payment Cancellation' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } +} diff --git a/src/typings/payments/responseAdditionalDataInstallments.ts b/src/typings/payments/responseAdditionalDataInstallments.ts new file mode 100644 index 0000000..9f4163c --- /dev/null +++ b/src/typings/payments/responseAdditionalDataInstallments.ts @@ -0,0 +1,129 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataInstallments { + /** + * Type of installment. The value of `installmentType` should be **IssuerFinanced**. + */ + 'installmentPaymentDataInstallmentType'?: string; + /** + * Annual interest rate. + */ + 'installmentPaymentDataOptionItemNrAnnualPercentageRate'?: string; + /** + * First Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrFirstInstallmentAmount'?: string; + /** + * Installment fee amount in minor units. + */ + 'installmentPaymentDataOptionItemNrInstallmentFee'?: string; + /** + * Interest rate for the installment period. + */ + 'installmentPaymentDataOptionItemNrInterestRate'?: string; + /** + * Maximum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMaximumNumberOfInstallments'?: string; + /** + * Minimum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMinimumNumberOfInstallments'?: string; + /** + * Total number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrNumberOfInstallments'?: string; + /** + * Subsequent Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrSubsequentInstallmentAmount'?: string; + /** + * Total amount in minor units. + */ + 'installmentPaymentDataOptionItemNrTotalAmountDue'?: string; + /** + * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + */ + 'installmentPaymentDataPaymentOptions'?: string; + /** + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + */ + 'installmentsValue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataNetworkTokens.ts b/src/typings/payments/responseAdditionalDataNetworkTokens.ts new file mode 100644 index 0000000..b016c90 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataNetworkTokens.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataNetworkTokens { + /** + * Indicates whether a network token is available for the specified card. + */ + 'networkTokenAvailable'?: string; + /** + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + */ + 'networkTokenBin'?: string; + /** + * The last four digits of a network token. + */ + 'networkTokenTokenSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokenAvailable", + "baseName": "networkToken.available", + "type": "string" + }, + { + "name": "networkTokenBin", + "baseName": "networkToken.bin", + "type": "string" + }, + { + "name": "networkTokenTokenSummary", + "baseName": "networkToken.tokenSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataNetworkTokens.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataOpi.ts b/src/typings/payments/responseAdditionalDataOpi.ts new file mode 100644 index 0000000..5ab76d3 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataOpi.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataOpi { + /** + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + */ + 'opiTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiTransToken", + "baseName": "opi.transToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataOpi.attributeTypeMap; + } +} + diff --git a/src/typings/payments/responseAdditionalDataSepa.ts b/src/typings/payments/responseAdditionalDataSepa.ts new file mode 100644 index 0000000..b7cabf4 --- /dev/null +++ b/src/typings/payments/responseAdditionalDataSepa.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataSepa { + /** + * The transaction signature date. Format: yyyy-MM-dd + */ + 'sepadirectdebitDateOfSignature'?: string; + /** + * Its value corresponds to the pspReference value of the transaction. + */ + 'sepadirectdebitMandateId'?: string; + /** + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + */ + 'sepadirectdebitSequenceType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sepadirectdebitDateOfSignature", + "baseName": "sepadirectdebit.dateOfSignature", + "type": "string" + }, + { + "name": "sepadirectdebitMandateId", + "baseName": "sepadirectdebit.mandateId", + "type": "string" + }, + { + "name": "sepadirectdebitSequenceType", + "baseName": "sepadirectdebit.sequenceType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSepa.attributeTypeMap; + } +} + diff --git a/src/typings/payments/sDKEphemPubKey.ts b/src/typings/payments/sDKEphemPubKey.ts new file mode 100644 index 0000000..ffe46b8 --- /dev/null +++ b/src/typings/payments/sDKEphemPubKey.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SDKEphemPubKey { + /** + * The `crv` value as received from the 3D Secure 2 SDK. + */ + 'crv'?: string; + /** + * The `kty` value as received from the 3D Secure 2 SDK. + */ + 'kty'?: string; + /** + * The `x` value as received from the 3D Secure 2 SDK. + */ + 'x'?: string; + /** + * The `y` value as received from the 3D Secure 2 SDK. + */ + 'y'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "crv", + "baseName": "crv", + "type": "string" + }, + { + "name": "kty", + "baseName": "kty", + "type": "string" + }, + { + "name": "x", + "baseName": "x", + "type": "string" + }, + { + "name": "y", + "baseName": "y", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SDKEphemPubKey.attributeTypeMap; + } +} + diff --git a/src/typings/payments/serviceError.ts b/src/typings/payments/serviceError.ts new file mode 100644 index 0000000..551936c --- /dev/null +++ b/src/typings/payments/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/payments/shopperInteractionDevice.ts b/src/typings/payments/shopperInteractionDevice.ts new file mode 100644 index 0000000..ce8e982 --- /dev/null +++ b/src/typings/payments/shopperInteractionDevice.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ShopperInteractionDevice { + /** + * Locale on the shopper interaction device. + */ + 'locale'?: string; + /** + * Operating system running on the shopper interaction device. + */ + 'os'?: string; + /** + * Version of the operating system on the shopper interaction device. + */ + 'osVersion'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "locale", + "baseName": "locale", + "type": "string" + }, + { + "name": "os", + "baseName": "os", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ShopperInteractionDevice.attributeTypeMap; + } +} + diff --git a/src/typings/payments/split.ts b/src/typings/payments/split.ts new file mode 100644 index 0000000..76b0992 --- /dev/null +++ b/src/typings/payments/split.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { SplitAmount } from './splitAmount'; + +export class Split { + /** + * Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. + */ + 'account'?: string; + 'amount': SplitAmount; + /** + * A description of this split. + */ + 'description'?: string; + /** + * Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. + */ + 'reference'?: string; + /** + * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } +} + +export namespace Split { + export enum TypeEnum { + BalanceAccount = 'BalanceAccount', + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + Remainder = 'Remainder', + Vat = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/payments/splitAmount.ts b/src/typings/payments/splitAmount.ts new file mode 100644 index 0000000..c1ababd --- /dev/null +++ b/src/typings/payments/splitAmount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SplitAmount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; + /** + * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/payments/technicalCancelRequest.ts b/src/typings/payments/technicalCancelRequest.ts new file mode 100644 index 0000000..4b38f67 --- /dev/null +++ b/src/typings/payments/technicalCancelRequest.ts @@ -0,0 +1,99 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class TechnicalCancelRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount'?: Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TechnicalCancelRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS1Result.ts b/src/typings/payments/threeDS1Result.ts new file mode 100644 index 0000000..a14c1e8 --- /dev/null +++ b/src/typings/payments/threeDS1Result.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDS1Result { + /** + * The cardholder authentication value (base64 encoded). + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. + */ + 'cavvAlgorithm'?: string; + /** + * 3D Secure Electronic Commerce Indicator (ECI). + */ + 'eci'?: string; + /** + * The authentication response from the ACS. + */ + 'threeDAuthenticatedResponse'?: string; + /** + * Whether 3D Secure was offered or not. + */ + 'threeDOfferedResponse'?: string; + /** + * A unique transaction identifier generated by the MPI on behalf of the merchant to identify the 3D Secure transaction, in `Base64` encoding. + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS1Result.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2RequestData.ts b/src/typings/payments/threeDS2RequestData.ts new file mode 100644 index 0000000..ef0f123 --- /dev/null +++ b/src/typings/payments/threeDS2RequestData.ts @@ -0,0 +1,392 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AcctInfo } from './acctInfo'; +import { DeviceRenderOptions } from './deviceRenderOptions'; +import { Phone } from './phone'; +import { SDKEphemPubKey } from './sDKEphemPubKey'; +import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthenticationInfo'; +import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; + +export class ThreeDS2RequestData { + 'acctInfo'?: AcctInfo; + /** + * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit + */ + 'acctType'?: ThreeDS2RequestData.AcctTypeEnum; + /** + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerBIN'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant\'s acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. + */ + 'acquirerMerchantID'?: string; + /** + * Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address. + */ + 'addrMatch'?: ThreeDS2RequestData.AddrMatchEnum; + /** + * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. + */ + 'authenticationOnly'?: boolean; + /** + * Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2RequestData.ChallengeIndicatorEnum; + /** + * The environment of the shopper. Allowed values: * `app` * `browser` + */ + 'deviceChannel': string; + 'deviceRenderOptions'?: DeviceRenderOptions; + 'homePhone'?: Phone; + /** + * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. + */ + 'mcc'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. + */ + 'merchantName'?: string; + /** + * The `messageVersion` value indicating the 3D Secure 2 protocol version. + */ + 'messageVersion'?: string; + 'mobilePhone'?: Phone; + /** + * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. + */ + 'notificationURL'?: string; + /** + * Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS. + */ + 'payTokenInd'?: boolean; + /** + * Indicates the type of payment for which an authentication is requested (message extension) + */ + 'paymentAuthenticationUseCase'?: string; + /** + * Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters. + */ + 'purchaseInstalData'?: string; + /** + * Date after which no further authorisations shall be performed. Format: YYYYMMDD + */ + 'recurringExpiry'?: string; + /** + * Indicates the minimum number of days between authorisations. Maximum length: 4 characters. + */ + 'recurringFrequency'?: string; + /** + * The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkAppID'?: string; + /** + * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. + */ + 'sdkEncData'?: string; + 'sdkEphemPubKey'?: SDKEphemPubKey; + /** + * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. + */ + 'sdkMaxTimeout'?: number; + /** + * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkReferenceNumber'?: string; + /** + * The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkTransID'?: string; + /** + * Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**. + */ + 'sdkVersion'?: string; + /** + * Completion indicator for the device fingerprinting. + */ + 'threeDSCompInd'?: string; + /** + * Indicates the type of Authentication request. + */ + 'threeDSRequestorAuthenticationInd'?: string; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; + /** + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) + */ + 'threeDSRequestorChallengeInd'?: ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; + /** + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorID'?: string; + /** + * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. + */ + 'threeDSRequestorName'?: string; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo; + /** + * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. + */ + 'threeDSRequestorURL'?: string; + /** + * Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load + */ + 'transType'?: ThreeDS2RequestData.TransTypeEnum; + /** + * Identify the type of the transaction being authenticated. + */ + 'transactionType'?: ThreeDS2RequestData.TransactionTypeEnum; + /** + * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. + */ + 'whiteListStatus'?: string; + 'workPhone'?: Phone; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acctInfo", + "baseName": "acctInfo", + "type": "AcctInfo" + }, + { + "name": "acctType", + "baseName": "acctType", + "type": "ThreeDS2RequestData.AcctTypeEnum" + }, + { + "name": "acquirerBIN", + "baseName": "acquirerBIN", + "type": "string" + }, + { + "name": "acquirerMerchantID", + "baseName": "acquirerMerchantID", + "type": "string" + }, + { + "name": "addrMatch", + "baseName": "addrMatch", + "type": "ThreeDS2RequestData.AddrMatchEnum" + }, + { + "name": "authenticationOnly", + "baseName": "authenticationOnly", + "type": "boolean" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2RequestData.ChallengeIndicatorEnum" + }, + { + "name": "deviceChannel", + "baseName": "deviceChannel", + "type": "string" + }, + { + "name": "deviceRenderOptions", + "baseName": "deviceRenderOptions", + "type": "DeviceRenderOptions" + }, + { + "name": "homePhone", + "baseName": "homePhone", + "type": "Phone" + }, + { + "name": "mcc", + "baseName": "mcc", + "type": "string" + }, + { + "name": "merchantName", + "baseName": "merchantName", + "type": "string" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "mobilePhone", + "baseName": "mobilePhone", + "type": "Phone" + }, + { + "name": "notificationURL", + "baseName": "notificationURL", + "type": "string" + }, + { + "name": "payTokenInd", + "baseName": "payTokenInd", + "type": "boolean" + }, + { + "name": "paymentAuthenticationUseCase", + "baseName": "paymentAuthenticationUseCase", + "type": "string" + }, + { + "name": "purchaseInstalData", + "baseName": "purchaseInstalData", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "string" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "sdkAppID", + "baseName": "sdkAppID", + "type": "string" + }, + { + "name": "sdkEncData", + "baseName": "sdkEncData", + "type": "string" + }, + { + "name": "sdkEphemPubKey", + "baseName": "sdkEphemPubKey", + "type": "SDKEphemPubKey" + }, + { + "name": "sdkMaxTimeout", + "baseName": "sdkMaxTimeout", + "type": "number" + }, + { + "name": "sdkReferenceNumber", + "baseName": "sdkReferenceNumber", + "type": "string" + }, + { + "name": "sdkTransID", + "baseName": "sdkTransID", + "type": "string" + }, + { + "name": "sdkVersion", + "baseName": "sdkVersion", + "type": "string" + }, + { + "name": "threeDSCompInd", + "baseName": "threeDSCompInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInd", + "baseName": "threeDSRequestorAuthenticationInd", + "type": "string" + }, + { + "name": "threeDSRequestorAuthenticationInfo", + "baseName": "threeDSRequestorAuthenticationInfo", + "type": "ThreeDSRequestorAuthenticationInfo" + }, + { + "name": "threeDSRequestorChallengeInd", + "baseName": "threeDSRequestorChallengeInd", + "type": "ThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum" + }, + { + "name": "threeDSRequestorID", + "baseName": "threeDSRequestorID", + "type": "string" + }, + { + "name": "threeDSRequestorName", + "baseName": "threeDSRequestorName", + "type": "string" + }, + { + "name": "threeDSRequestorPriorAuthenticationInfo", + "baseName": "threeDSRequestorPriorAuthenticationInfo", + "type": "ThreeDSRequestorPriorAuthenticationInfo" + }, + { + "name": "threeDSRequestorURL", + "baseName": "threeDSRequestorURL", + "type": "string" + }, + { + "name": "transType", + "baseName": "transType", + "type": "ThreeDS2RequestData.TransTypeEnum" + }, + { + "name": "transactionType", + "baseName": "transactionType", + "type": "ThreeDS2RequestData.TransactionTypeEnum" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + }, + { + "name": "workPhone", + "baseName": "workPhone", + "type": "Phone" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2RequestData.attributeTypeMap; + } +} + +export namespace ThreeDS2RequestData { + export enum AcctTypeEnum { + _01 = '01', + _02 = '02', + _03 = '03' + } + export enum AddrMatchEnum { + Y = 'Y', + N = 'N' + } + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum ThreeDSRequestorChallengeIndEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05' + } + export enum TransTypeEnum { + _01 = '01', + _03 = '03', + _10 = '10', + _11 = '11', + _28 = '28' + } + export enum TransactionTypeEnum { + GoodsOrServicePurchase = 'goodsOrServicePurchase', + CheckAcceptance = 'checkAcceptance', + AccountFunding = 'accountFunding', + QuasiCashTransaction = 'quasiCashTransaction', + PrepaidActivationAndLoad = 'prepaidActivationAndLoad' + } +} diff --git a/src/typings/payments/threeDS2Result.ts b/src/typings/payments/threeDS2Result.ts new file mode 100644 index 0000000..e0d0542 --- /dev/null +++ b/src/typings/payments/threeDS2Result.ts @@ -0,0 +1,170 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDS2Result { + /** + * The `authenticationValue` value as defined in the 3D Secure 2 specification. + */ + 'authenticationValue'?: string; + /** + * The algorithm used by the ACS to calculate the authentication value, only for Cartes Bancaires integrations. + */ + 'cavvAlgorithm'?: string; + /** + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + */ + 'challengeCancel'?: ThreeDS2Result.ChallengeCancelEnum; + /** + * Specifies a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate` + */ + 'challengeIndicator'?: ThreeDS2Result.ChallengeIndicatorEnum; + /** + * The `dsTransID` value as defined in the 3D Secure 2 specification. + */ + 'dsTransID'?: string; + /** + * The `eci` value as defined in the 3D Secure 2 specification. + */ + 'eci'?: string; + /** + * Indicates the exemption type that was applied by the issuer to the authentication, if exemption applied. Allowed values: * `lowValue` * `secureCorporate` * `trustedBeneficiary` * `transactionRiskAnalysis` + */ + 'exemptionIndicator'?: ThreeDS2Result.ExemptionIndicatorEnum; + /** + * The `messageVersion` value as defined in the 3D Secure 2 specification. + */ + 'messageVersion'?: string; + /** + * Risk score calculated by Cartes Bancaires Directory Server (DS). + */ + 'riskScore'?: string; + /** + * The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. + */ + 'threeDSServerTransID'?: string; + /** + * The `timestamp` value of the 3D Secure 2 authentication. + */ + 'timestamp'?: string; + /** + * The `transStatus` value as defined in the 3D Secure 2 specification. + */ + 'transStatus'?: string; + /** + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + */ + 'transStatusReason'?: string; + /** + * The `whiteListStatus` value as defined in the 3D Secure 2 specification. + */ + 'whiteListStatus'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationValue", + "baseName": "authenticationValue", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDS2Result.ChallengeCancelEnum" + }, + { + "name": "challengeIndicator", + "baseName": "challengeIndicator", + "type": "ThreeDS2Result.ChallengeIndicatorEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "exemptionIndicator", + "baseName": "exemptionIndicator", + "type": "ThreeDS2Result.ExemptionIndicatorEnum" + }, + { + "name": "messageVersion", + "baseName": "messageVersion", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSServerTransID", + "baseName": "threeDSServerTransID", + "type": "string" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "string" + }, + { + "name": "transStatus", + "baseName": "transStatus", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "whiteListStatus", + "baseName": "whiteListStatus", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2Result.attributeTypeMap; + } +} + +export namespace ThreeDS2Result { + export enum ChallengeCancelEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05', + _06 = '06', + _07 = '07' + } + export enum ChallengeIndicatorEnum { + NoPreference = 'noPreference', + RequestNoChallenge = 'requestNoChallenge', + RequestChallenge = 'requestChallenge', + RequestChallengeAsMandate = 'requestChallengeAsMandate' + } + export enum ExemptionIndicatorEnum { + LowValue = 'lowValue', + SecureCorporate = 'secureCorporate', + TrustedBeneficiary = 'trustedBeneficiary', + TransactionRiskAnalysis = 'transactionRiskAnalysis' + } +} diff --git a/src/typings/payments/threeDS2ResultRequest.ts b/src/typings/payments/threeDS2ResultRequest.ts new file mode 100644 index 0000000..12d90e4 --- /dev/null +++ b/src/typings/payments/threeDS2ResultRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDS2ResultRequest { + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The pspReference returned in the /authorise call. + */ + 'pspReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResultRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDS2ResultResponse.ts b/src/typings/payments/threeDS2ResultResponse.ts new file mode 100644 index 0000000..61f5c36 --- /dev/null +++ b/src/typings/payments/threeDS2ResultResponse.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ThreeDS2Result } from './threeDS2Result'; + +export class ThreeDS2ResultResponse { + 'threeDS2Result'?: ThreeDS2Result; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDS2Result", + "baseName": "threeDS2Result", + "type": "ThreeDS2Result" + } ]; + + static getAttributeTypeMap() { + return ThreeDS2ResultResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payments/threeDSRequestorAuthenticationInfo.ts b/src/typings/payments/threeDSRequestorAuthenticationInfo.ts new file mode 100644 index 0000000..dcb19ef --- /dev/null +++ b/src/typings/payments/threeDSRequestorAuthenticationInfo.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSRequestorAuthenticationInfo { + /** + * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + */ + 'threeDSReqAuthData'?: string; + /** + * Mechanism used by the Cardholder to authenticate to the 3DS Requestor. Allowed values: * **01** — No 3DS Requestor authentication occurred (for example, cardholder “logged in” as guest). * **02** — Login to the cardholder account at the 3DS Requestor system using 3DS Requestor’s own credentials. * **03** — Login to the cardholder account at the 3DS Requestor system using federated ID. * **04** — Login to the cardholder account at the 3DS Requestor system using issuer credentials. * **05** — Login to the cardholder account at the 3DS Requestor system using third-party authentication. * **06** — Login to the cardholder account at the 3DS Requestor system using FIDO Authenticator. + */ + 'threeDSReqAuthMethod'?: ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum; + /** + * Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM + */ + 'threeDSReqAuthTimestamp'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqAuthData", + "baseName": "threeDSReqAuthData", + "type": "string" + }, + { + "name": "threeDSReqAuthMethod", + "baseName": "threeDSReqAuthMethod", + "type": "ThreeDSRequestorAuthenticationInfo.ThreeDSReqAuthMethodEnum" + }, + { + "name": "threeDSReqAuthTimestamp", + "baseName": "threeDSReqAuthTimestamp", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorAuthenticationInfo.attributeTypeMap; + } +} + +export namespace ThreeDSRequestorAuthenticationInfo { + export enum ThreeDSReqAuthMethodEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05', + _06 = '06' + } +} diff --git a/src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts b/src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts new file mode 100644 index 0000000..622f63b --- /dev/null +++ b/src/typings/payments/threeDSRequestorPriorAuthenticationInfo.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSRequestorPriorAuthenticationInfo { + /** + * Data that documents and supports a specific authentication process. Maximum length: 2048 bytes. + */ + 'threeDSReqPriorAuthData'?: string; + /** + * Mechanism used by the Cardholder to previously authenticate to the 3DS Requestor. Allowed values: * **01** — Frictionless authentication occurred by ACS. * **02** — Cardholder challenge occurred by ACS. * **03** — AVS verified. * **04** — Other issuer methods. + */ + 'threeDSReqPriorAuthMethod'?: ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum; + /** + * Date and time in UTC of the prior cardholder authentication. Format: YYYYMMDDHHMM + */ + 'threeDSReqPriorAuthTimestamp'?: string; + /** + * This data element provides additional information to the ACS to determine the best approach for handing a request. This data element contains an ACS Transaction ID for a prior authenticated transaction. For example, the first recurring transaction that was authenticated with the cardholder. Length: 30 characters. + */ + 'threeDSReqPriorRef'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "threeDSReqPriorAuthData", + "baseName": "threeDSReqPriorAuthData", + "type": "string" + }, + { + "name": "threeDSReqPriorAuthMethod", + "baseName": "threeDSReqPriorAuthMethod", + "type": "ThreeDSRequestorPriorAuthenticationInfo.ThreeDSReqPriorAuthMethodEnum" + }, + { + "name": "threeDSReqPriorAuthTimestamp", + "baseName": "threeDSReqPriorAuthTimestamp", + "type": "string" + }, + { + "name": "threeDSReqPriorRef", + "baseName": "threeDSReqPriorRef", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSRequestorPriorAuthenticationInfo.attributeTypeMap; + } +} + +export namespace ThreeDSRequestorPriorAuthenticationInfo { + export enum ThreeDSReqPriorAuthMethodEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04' + } +} diff --git a/src/typings/payments/threeDSecureData.ts b/src/typings/payments/threeDSecureData.ts new file mode 100644 index 0000000..c746dee --- /dev/null +++ b/src/typings/payments/threeDSecureData.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ThreeDSecureData { + /** + * In 3D Secure 1, the authentication response if the shopper was redirected. In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. + */ + 'authenticationResponse'?: ThreeDSecureData.AuthenticationResponseEnum; + /** + * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. Include this only for 3D Secure 1. + */ + 'cavvAlgorithm'?: string; + /** + * Indicator informing the Access Control Server (ACS) and the Directory Server (DS) that the authentication has been cancelled. For possible values, refer to [3D Secure API reference](https://docs.adyen.com/online-payments/3d-secure/api-reference#mpidata). + */ + 'challengeCancel'?: ThreeDSecureData.ChallengeCancelEnum; + /** + * In 3D Secure 1, this is the enrollment response from the 3D directory server. In 3D Secure 2, this is the `transStatus` from the `ARes`. + */ + 'directoryResponse'?: ThreeDSecureData.DirectoryResponseEnum; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The electronic commerce indicator. + */ + 'eci'?: string; + /** + * Risk score calculated by Directory Server (DS). Required for Cartes Bancaires integrations. + */ + 'riskScore'?: string; + /** + * The version of the 3D Secure protocol. + */ + 'threeDSVersion'?: string; + /** + * Network token authentication verification value (TAVV). The network token cryptogram. + */ + 'tokenAuthenticationVerificationValue'?: string; + /** + * Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values). + */ + 'transStatusReason'?: string; + /** + * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authenticationResponse", + "baseName": "authenticationResponse", + "type": "ThreeDSecureData.AuthenticationResponseEnum" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "challengeCancel", + "baseName": "challengeCancel", + "type": "ThreeDSecureData.ChallengeCancelEnum" + }, + { + "name": "directoryResponse", + "baseName": "directoryResponse", + "type": "ThreeDSecureData.DirectoryResponseEnum" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "riskScore", + "baseName": "riskScore", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "tokenAuthenticationVerificationValue", + "baseName": "tokenAuthenticationVerificationValue", + "type": "string" + }, + { + "name": "transStatusReason", + "baseName": "transStatusReason", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ThreeDSecureData.attributeTypeMap; + } +} + +export namespace ThreeDSecureData { + export enum AuthenticationResponseEnum { + Y = 'Y', + N = 'N', + U = 'U', + A = 'A' + } + export enum ChallengeCancelEnum { + _01 = '01', + _02 = '02', + _03 = '03', + _04 = '04', + _05 = '05', + _06 = '06', + _07 = '07' + } + export enum DirectoryResponseEnum { + A = 'A', + C = 'C', + D = 'D', + I = 'I', + N = 'N', + R = 'R', + U = 'U', + Y = 'Y' + } +} diff --git a/src/typings/payments/voidPendingRefundRequest.ts b/src/typings/payments/voidPendingRefundRequest.ts new file mode 100644 index 0000000..3877452 --- /dev/null +++ b/src/typings/payments/voidPendingRefundRequest.ts @@ -0,0 +1,108 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; +import { ThreeDSecureData } from './threeDSecureData'; + +export class VoidPendingRefundRequest { + /** + * This field contains additional data, which may be required for a particular modification request. The additionalData object consists of entries, each of which includes the key and value. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account that is used to process the payment. + */ + 'merchantAccount': string; + 'modificationAmount'?: Amount; + 'mpiData'?: ThreeDSecureData; + /** + * The original merchant reference to cancel. + */ + 'originalMerchantReference'?: string; + /** + * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification + */ + 'originalReference'?: string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/platforms/processing-payments#providing-split-information). + */ + 'splits'?: Array; + /** + * The transaction reference provided by the PED. For point-of-sale integrations only. + */ + 'tenderReference'?: string; + /** + * Unique terminal ID for the PED that originally processed the request. For point-of-sale integrations only. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "modificationAmount", + "baseName": "modificationAmount", + "type": "Amount" + }, + { + "name": "mpiData", + "baseName": "mpiData", + "type": "ThreeDSecureData" + }, + { + "name": "originalMerchantReference", + "baseName": "originalMerchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return VoidPendingRefundRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payouts.ts b/src/typings/payouts.ts deleted file mode 100644 index 2a730ab..0000000 --- a/src/typings/payouts.ts +++ /dev/null @@ -1,3185 +0,0 @@ - -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * - * Adyen NodeJS API Library - * - * Version of Payouts: v64 - * - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - - -declare namespace IPayouts { - export interface AccountInfo { - /** - * Indicator for the length of time since this shopper account was created in the merchant's environment. - * Allowed values: - * * notApplicable - * * thisTransaction - * * lessThan30Days - * * from30To60Days - * * moreThan60Days - */ - accountAgeIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; - /** - * Date when the shopper's account was last changed. - */ - accountChangeDate?: string; // date-time - /** - * Indicator for the length of time since the shopper's account was last updated. - * Allowed values: - * * thisTransaction - * * lessThan30Days - * * from30To60Days - * * moreThan60Days - */ - accountChangeIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; - /** - * Date when the shopper's account was created. - */ - accountCreationDate?: string; // date-time - /** - * Indicates the type of account. For example, for a multi-account card product. - * Allowed values: - * * notApplicable - * * credit - * * debit - */ - accountType?: "notApplicable" | "credit" | "debit"; - /** - * Number of attempts the shopper tried to add a card to their account in the last day. - */ - addCardAttemptsDay?: number; // int32 - /** - * Date the selected delivery address was first used. - */ - deliveryAddressUsageDate?: string; // date-time - /** - * Indicator for the length of time since this delivery address was first used. - * Allowed values: - * * thisTransaction - * * lessThan30Days - * * from30To60Days - * * moreThan60Days - */ - deliveryAddressUsageIndicator?: "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; - /** - * Shopper's home phone number (including the country code). - */ - homePhone?: string; - /** - * Shopper's mobile phone number (including the country code). - */ - mobilePhone?: string; - /** - * Date when the shopper last changed their password. - */ - passwordChangeDate?: string; // date-time - /** - * Indicator when the shopper has changed their password. - * Allowed values: - * * notApplicable - * * thisTransaction - * * lessThan30Days - * * from30To60Days - * * moreThan60Days - */ - passwordChangeIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; - /** - * Number of all transactions (successful and abandoned) from this shopper in the past 24 hours. - */ - pastTransactionsDay?: number; // int32 - /** - * Number of all transactions (successful and abandoned) from this shopper in the past year. - */ - pastTransactionsYear?: number; // int32 - /** - * Date this payment method was added to the shopper's account. - */ - paymentAccountAge?: string; // date-time - /** - * Indicator for the length of time since this payment method was added to this shopper's account. - * Allowed values: - * * notApplicable - * * thisTransaction - * * lessThan30Days - * * from30To60Days - * * moreThan60Days - */ - paymentAccountIndicator?: "notApplicable" | "thisTransaction" | "lessThan30Days" | "from30To60Days" | "moreThan60Days"; - /** - * Number of successful purchases in the last six months. - */ - purchasesLast6Months?: number; // int32 - /** - * Whether suspicious activity was recorded on this account. - */ - suspiciousActivity?: boolean; - /** - * Shopper's work phone number (including the country code). - */ - workPhone?: string; - } - export interface AdditionalData3DSecure { - /** - * This parameter indicates that you are able to process 3D Secure 2 transactions natively on your payment page. Send this field when you are using `/payments` endpoint with any of our [native 3D Secure 2 solutions](https://docs.adyen.com/checkout/3d-secure/native-3ds2), such as Components or Drop-in. Possible values: - * * **true** - Ready to support native 3D Secure 2 authentication. Setting this to true does not mean always applying 3D Secure 2. Adyen still selects the version of 3D Secure based on configuration to optimize authorisation rates and improve the shopper's experience. - * * **false** – Not ready to support native 3D Secure 2 authentication. Adyen will not offer 3D Secure 2 to your shopper regardless of your configuration. - * > This parameter only indicates your readiness to support 3D Secure 2 natively on Drop-in or Components. To specify that you want to perform 3D Secure on a transaction, use Dynamic 3D Secure or send the `executeThreeD` parameter. - */ - allow3DS2?: string; - /** - * This parameter indicates if you want to perform 3D Secure authentication on a transaction or not. Allowed values: - * * **true** – Perform 3D Secure authentication. - * * **false** – Don't perform 3D Secure authentication. - * > Alternatively, you can also use Dynamic 3D Secure to configure rules for applying 3D Secure. - */ - executeThreeD?: string; - /** - * In case of Secure+, this field must be set to **CUPSecurePlus**. - */ - mpiImplementationType?: string; - /** - * Indicates the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that you want to request for the transaction. Possible values: - * * **lowValue** - * * **secureCorporate** - * * **trustedBeneficiary** - * * **transactionRiskAnalysis** - */ - scaExemption?: string; - } - export interface AdditionalDataAirline { - /** - * Reference number for the invoice, issued by the agency. - * * minLength: 1 - * * maxLength: 6 - */ - "airline.agency_invoice_number"?: string; - /** - * 2-letter agency plan identifier; alphabetical. - * * minLength: 2 - * * maxLength: 2 - */ - "airline.agency_plan_name"?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX); numeric. It identifies the carrier. - * * Format: IATA 3-digit accounting code (PAX) - * * Example: KLM = 074 - * * minLength: 3 - * * maxLength: 3 - */ - "airline.airline_code"?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. - * * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter airline code - * * Example: KLM = KL - * * minLength: 2 - * * maxLength: 2 - */ - "airline.airline_designator_code"?: string; - /** - * Chargeable amount for boarding the plane. - * The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - * * minLength: 1 - * * maxLength: 18 - */ - "airline.boarding_fee"?: string; - /** - * The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. - * * Format: alphanumeric. - * * minLength: 4 - * * maxLength: 4 - */ - "airline.computerized_reservation_system"?: string; - /** - * Reference number; alphanumeric. - * * minLength: 0 - * * maxLength: 20 - */ - "airline.customer_reference_number"?: string; - /** - * Optional 2-digit code; alphanumeric. It identifies the type of product of the transaction. The description of the code may appear on credit card statements. - * * Format: 2-digit code - * * Example: Passenger ticket = 01 - * * minLength: 2 - * * maxLength: 2 - */ - "airline.document_type"?: string; - /** - * Flight departure date. Local time `(HH:mm)` is optional. - * * Date format: `yyyy-MM-dd` - * * Date and time format: `yyyy-MM-dd HH:mm` - * * minLength: 10 - * * maxLength: 16 - */ - "airline.flight_date"?: string; - /** - * [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX); alphabetical. It identifies the carrier. - * This field is required/mandatory if the airline data includes leg details. - * * Format: IATA 2-letter airline code - * * Example: KLM = KL - * * minLength: 2 - * * maxLength: 2 - */ - "airline.leg.carrier_code"?: string; - /** - * 1-letter travel class identifier; alphabetical. There is no standard; however, the following codes are used rather consistently: - * * F: first class - * * J: business class - * * Y: economy class - * * W: premium economy - * - * Limitations: - * * minLength: 1 - * * maxLength: 1 - */ - "airline.leg.class_of_travel"?: string; - /** - * - * Date and time of travel. [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)-compliant. - * * Format: `yyyy-MM-dd HH:mm` - * * minLength: 16 - * * maxLength: 16 - */ - "airline.leg.date_of_travel"?: string; - /** - * Alphabetical identifier of the departure airport. - * This field is required if the airline data includes leg details. - * * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. - * * Example: Amsterdam = AMS - * * minLength: 3 - * * maxLength: 3 - */ - "airline.leg.depart_airport"?: string; - /** - * [Departure tax](https://en.wikipedia.org/wiki/Departure_tax). Amount charged by a country to an individual upon their leaving. The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - * * minLength: 1 - * * maxLength: 12 - */ - "airline.leg.depart_tax"?: string; - /** - * Alphabetical identifier of the destination/arrival airport. - * This field is required/mandatory if the airline data includes leg details. - * * Format: [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code. - * * Example: Amsterdam = AMS - * * minLength: 3 - * * maxLength: 3 - */ - "airline.leg.destination_code"?: string; - /** - * [Fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code); alphanumeric. - * * minLength: 1 - * * maxLength: 7 - */ - "airline.leg.fare_base_code"?: string; - /** - * The flight identifier. - * * minLength: 1 - * * maxLength: 5 - */ - "airline.leg.flight_number"?: string; - /** - * 1-letter code that indicates whether the passenger is entitled to make a stopover. Only two types of characters are allowed: - * * O: Stopover allowed - * * X: Stopover not allowed - * - * Limitations: - * * minLength: 1 - * * maxLength: 1 - */ - "airline.leg.stop_over_code"?: string; - /** - * Date of birth of the passenger. - * - * Date format: `yyyy-MM-dd` - * * minLength: 10 - * * maxLength: 10 - */ - "airline.passenger.date_of_birth"?: string; - /** - * Passenger first name/given name. - * > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - "airline.passenger.first_name"?: string; - /** - * Passenger last name/family name. - * > This field is required/mandatory if the airline data includes passenger details or leg details. - */ - "airline.passenger.last_name"?: string; - /** - * Telephone number of the passenger, including country code. This is an alphanumeric field that can include the '+' and '-' signs. - * * minLength: 3 - * * maxLength: 30 - */ - "airline.passenger.telephone_number"?: string; - /** - * Passenger type code (PTC). IATA PTC values are 3-letter alphabetical. Example: ADT, SRC, CNN, INS. - * - * However, several carriers use non-standard codes that can be up to 5 alphanumeric characters. - * * minLength: 3 - * * maxLength: 6 - */ - "airline.passenger.traveller_type"?: string; - /** - * Passenger name, initials, and a title. - * * Format: last name + first name or initials + title. - * * Example: *FLYER / MARY MS*. - * * minLength: 1 - * * maxLength: 49 - */ - "airline.passenger_name": string; - /** - * Address of the place/agency that issued the ticket. - * * minLength: 0 - * * maxLength: 16 - */ - "airline.ticket_issue_address"?: string; - /** - * The ticket's unique identifier. - * * minLength: 1 - * * maxLength: 150 - */ - "airline.ticket_number"?: string; - /** - * IATA number, also ARC number or ARC/IATA number. Unique identifier number for travel agencies. - * * minLength: 1 - * * maxLength: 8 - */ - "airline.travel_agency_code"?: string; - /** - * The name of the travel agency. - * * minLength: 1 - * * maxLength: 25 - */ - "airline.travel_agency_name"?: string; - } - export interface AdditionalDataCarRental { - /** - * Pick-up date. - * * Date format: `yyyyMMdd` - */ - "carRental.checkOutDate"?: string; - /** - * The customer service phone number of the car rental company. - * * Format: Alphanumeric - * * maxLength: 17 - */ - "carRental.customerServiceTollFreeNumber"?: string; - /** - * Number of days for which the car is being rented. - * * Format: Numeric - * * maxLength: 19 - */ - "carRental.daysRented"?: string; - /** - * Any fuel charges associated with the rental. - * * Format: Numeric - * * maxLength: 12 - */ - "carRental.fuelCharges"?: string; - /** - * Any insurance charges associated with the rental. - * * Format: Numeric - * * maxLength: 12 - */ - "carRental.insuranceCharges"?: string; - /** - * The city from which the car is rented. - * * Format: Alphanumeric - * * maxLength: 18 - */ - "carRental.locationCity"?: string; - /** - * The country from which the car is rented. - * * Format: Alphanumeric - * * maxLength: 2 - */ - "carRental.locationCountry"?: string; - /** - * The state or province from where the car is rented. - * * Format: Alphanumeric - * * maxLength: 3 - */ - "carRental.locationStateProvince"?: string; - /** - * Indicates if the customer was a "no-show" (neither keeps nor cancels their booking). - * * Y - Customer was a no show. - * * N - Not applicable. - */ - "carRental.noShowIndicator"?: string; - /** - * Charge associated with not returning a vehicle to the original rental location. - */ - "carRental.oneWayDropOffCharges"?: string; - /** - * Daily rental rate. - * * Format: Alphanumeric - * * maxLength: 12 - */ - "carRental.rate"?: string; - /** - * Specifies whether the given rate is applied daily or weekly. - * * D - Daily rate. - * * W - Weekly rate. - */ - "carRental.rateIndicator"?: string; - /** - * The rental agreement number associated with this car rental. - * * Format: Alphanumeric - * * maxLength: 9 - */ - "carRental.rentalAgreementNumber"?: string; - /** - * Daily rental rate. - * * Format: Alphanumeric - * * maxLength: 12 - */ - "carRental.rentalClassId"?: string; - /** - * The name of the person renting the car. - * * Format: Alphanumeric - * * maxLength: 26 - */ - "carRental.renterName"?: string; - /** - * The city where the car must be returned. - * * Format: Alphanumeric - * * maxLength: 18 - */ - "carRental.returnCity"?: string; - /** - * The country where the car must be returned. - * * Format: Alphanumeric - * * maxLength: 2 - */ - "carRental.returnCountry"?: string; - /** - * The last date to return the car by. - * * Date format: `yyyyMMdd` - */ - "carRental.returnDate"?: string; - /** - * Agency code, phone number, or address abbreviation - * * Format: Alphanumeric - * * maxLength: 10 - */ - "carRental.returnLocationId"?: string; - /** - * The state or province where the car must be returned. - * * Format: Alphanumeric - * * maxLength: 3 - */ - "carRental.returnStateProvince"?: string; - /** - * Indicates whether the goods or services were tax-exempt, or tax was not collected. - * - * Values: - * * Y - Goods or services were tax exempt - * * N - Tax was not collected - */ - "carRental.taxExemptIndicator"?: string; - /** - * Number of nights. This should be included in the auth message. - * * Format: Numeric - * * maxLength: 2 - */ - "travelEntertainmentAuthData.duration"?: string; - /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be "A" for Car rental. This should be included in the auth message. - * * Format: Alphanumeric - * * maxLength: 1 - */ - "travelEntertainmentAuthData.market"?: string; - } - export interface AdditionalDataCommon { - /** - * Triggers test scenarios that allow to replicate certain communication errors. - * - * Allowed values: - * * **NO_CONNECTION_AVAILABLE** – There wasn't a connection available to service the outgoing communication. - * This is a transient, retriable error since no messaging could be initiated to an issuing system (or third-party acquiring system). Therefore, the header Transient-Error: true is returned in the response. A subsequent request using the same idempotency key will be processed as if it was the first request. - * * **IOEXCEPTION_RECEIVED** – Something went wrong during transmission of the message or receiving the response. - * This is a classified as non-transient because the message could have been received by the issuing party and been acted upon. No transient error header is returned. If using idempotency, the (error) response is stored as the final result for the idempotency key. Subsequent messages with the same idempotency key not be processed beyond returning the stored response. - */ - RequestedTestErrorResponseCode?: string; - /** - * Flags a card payment request for either pre-authorisation or final authorisation. For more information, refer to [Authorisation types](https://docs.adyen.com/checkout/adjust-authorisation#authorisation-types). - * - * Allowed values: - * * **PreAuth** – flags the payment request to be handled as a pre-authorisation. - * * **FinalAuth** – flags the payment request to be handled as a final authorisation. - */ - authorisationType?: string; - /** - * Allows you to determine or override the acquirer account that should be used for the transaction. - * - * If you need to process a payment with an acquirer different from a default one, you can set up a corresponding configuration on the Adyen payments platform. Then you can pass a custom routing flag in a payment request's additional data to target a specific acquirer. - * - * To enable this functionality, contact [Support](https://support.adyen.com/hc/en-us/requests/new). - */ - customRoutingFlag?: string; - /** - * Allows you to link the transaction to the original or previous one in a subscription/card-on-file chain. This field is required for token-based transactions where Adyen does not tokenize the card. - * - * Transaction identifier from card schemes, for example, Mastercard Trace ID or the Visa Transaction ID. - * - * Submit the original transaction ID of the contract in your payment request if you are not tokenizing card details with Adyen and are making a merchant-initiated transaction (MIT) for subsequent charges. - * - * Make sure you are sending `shopperInteraction` **ContAuth** and `recurringProcessingModel` **Subscription** or **UnscheduledCardOnFile** to ensure that the transaction is classified as MIT. - */ - networkTxReference?: string; - /** - * Boolean indicator that can be optionally used for performing debit transactions on combo cards (for example, combo cards in Brazil). This is not mandatory but we recommend that you set this to true if you want to use the `selectedBrand` value to specify how to process the transaction. - */ - overwriteBrand?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the city of the actual merchant's address. - * * Format: alpha-numeric. - * * Maximum length: 13 characters. - */ - subMerchantCity?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the three-letter country code of the actual merchant's address. - * * Format: alpha-numeric. - * * Fixed length: 3 characters. - */ - subMerchantCountry?: string; - /** - * This field contains an identifier of the actual merchant when a transaction is submitted via a payment facilitator. The payment facilitator must send in this unique ID. - * - * A unique identifier per submerchant that is required if the transaction is performed by a registered payment facilitator. - * * Format: alpha-numeric. - * * Fixed length: 15 characters. - */ - subMerchantID?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the name of the actual merchant. - * * Format: alpha-numeric. - * * Maximum length: 22 characters. - */ - subMerchantName?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the postal code of the actual merchant's address. - * * Format: alpha-numeric. - * * Maximum length: 10 characters. - */ - subMerchantPostalCode?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator, and if applicable to the country. This field must contain the state code of the actual merchant's address. - * * Format: alpha-numeric. - * * Maximum length: 3 characters. - */ - subMerchantState?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the street of the actual merchant's address. - * * Format: alpha-numeric. - * * Maximum length: 60 characters. - */ - subMerchantStreet?: string; - /** - * This field is required if the transaction is performed by a registered payment facilitator. This field must contain the tax ID of the actual merchant. - * * Format: alpha-numeric. - * * Fixed length: 11 or 14 characters. - */ - subMerchantTaxId?: string; - } - export interface AdditionalDataLevel23 { - /** - * Customer code, if supplied by a customer. - * - * Encoding: ASCII. - * - * Max length: 25 characters. - * - * > Required for Level 2 and Level 3 data. - */ - "enhancedSchemeData.customerReference"?: string; - /** - * Destination country code. - * - * Encoding: ASCII. - * - * Max length: 3 characters. - */ - "enhancedSchemeData.destinationCountryCode"?: string; - /** - * The postal code of a destination address. - * - * Encoding: ASCII. - * - * Max length: 10 characters. - * - * > Required for American Express. - */ - "enhancedSchemeData.destinationPostalCode"?: string; - /** - * Destination state or province code. - * - * Encoding: ASCII.Max length: 3 characters. - */ - "enhancedSchemeData.destinationStateProvinceCode"?: string; - /** - * Duty amount, in minor units. - * - * For example, 2000 means USD 20.00. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.dutyAmount"?: string; - /** - * Shipping amount, in minor units. - * - * For example, 2000 means USD 20.00. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.freightAmount"?: string; - /** - * Item commodity code. - * - * Encoding: ASCII. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].commodityCode"?: string; - /** - * Item description. - * - * Encoding: ASCII. - * - * Max length: 26 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].description"?: string; - /** - * Discount amount, in minor units. - * - * For example, 2000 means USD 20.00. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].discountAmount"?: string; - /** - * Product code. - * - * Encoding: ASCII. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].productCode"?: string; - /** - * Quantity, specified as an integer value. - * - * Value must be greater than 0. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].quantity"?: string; - /** - * Total amount, in minor units. - * - * For example, 2000 means USD 20.00. - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].totalAmount"?: string; - /** - * Item unit of measurement. - * - * Encoding: ASCII. - * - * Max length: 3 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].unitOfMeasure"?: string; - /** - * Unit price, specified in [minor units](https://docs.adyen.com/development-resources/currency-codes). - * - * Max length: 12 characters. - */ - "enhancedSchemeData.itemDetailLine[itemNr].unitPrice"?: string; - /** - * Order date. - * * Format: `ddMMyy` - * - * Encoding: ASCII. - * - * Max length: 6 characters. - */ - "enhancedSchemeData.orderDate"?: string; - /** - * The postal code of a "ship-from" address. - * - * Encoding: ASCII. - * - * Max length: 10 characters. - */ - "enhancedSchemeData.shipFromPostalCode"?: string; - /** - * Total tax amount, in minor units. - * - * For example, 2000 means USD 20.00. - * - * Max length: 12 characters. - * - * > Required for Level 2 and Level 3 data. - */ - "enhancedSchemeData.totalTaxAmount"?: string; - } - export interface AdditionalDataLodging { - /** - * The arrival date. - * * Date format: `yyyyMMdd` - */ - "lodging.checkInDate"?: string; - /** - * The departure date. - * * Date format: `yyyyMMdd` - */ - "lodging.checkOutDate"?: string; - /** - * The toll free phone number for the hotel/lodgings. - * * Format: Alphanumeric - * * maxLength: 17 - */ - "lodging.customerServiceTollFreeNumber"?: string; - /** - * Identifies that the facility complies with the Hotel and Motel Fire Safety Act of 1990. Values can be: 'Y' or 'N'. - * * Format: Alphabetic - * * maxLength: 1 - */ - "lodging.fireSafetyActIndicator"?: string; - /** - * The folio cash advances. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.folioCashAdvances"?: string; - /** - * Card acceptor’s internal invoice or billing ID reference number. - * * Format: Alphanumeric - * * maxLength: 25 - */ - "lodging.folioNumber"?: string; - /** - * Any charges for food and beverages associated with the booking. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.foodBeverageCharges"?: string; - /** - * Indicates if the customer was a "no-show" (neither keeps nor cancels their booking). - * - * Value should be Y or N. - * * Format: Numeric - * * maxLength: 1 - */ - "lodging.noShowIndicator"?: string; - /** - * Prepaid expenses for the booking. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.prepaidExpenses"?: string; - /** - * Identifies specific lodging property location by its local phone number. - * * Format: Alphanumeric - * * maxLength: 17 - */ - "lodging.propertyPhoneNumber"?: string; - /** - * Total number of nights the room will be rented. - * * Format: Numeric - * * maxLength: 4 - */ - "lodging.room1.numberOfNights"?: string; - /** - * The rate of the room. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.room1.rate"?: string; - /** - * The total amount of tax to be paid. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.room1.tax"?: string; - /** - * Total room tax amount. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.totalRoomTax"?: string; - /** - * Total tax amount. - * * Format: Numeric - * * maxLength: 12 - */ - "lodging.totalTax"?: string; - /** - * Number of nights. This should be included in the auth message. - * * Format: Numeric - * * maxLength: 2 - */ - "travelEntertainmentAuthData.duration"?: string; - /** - * Indicates what market-specific dataset will be submitted or is being submitted. Value should be "H" for Hotel. This should be included in the auth message. - * - * * Format: Alphanumeric - * * maxLength: 1 - */ - "travelEntertainmentAuthData.market"?: string; - } - export interface AdditionalDataOpenInvoice { - /** - * Holds different merchant data points like product, purchase, customer, and so on. It takes data in a Base64 encoded string. - * - * The `merchantData` parameter needs to be added to the `openinvoicedata` signature at the end. - * - * Since the field is optional, if it's not included it does not impact computing the merchant signature. - * - * Applies only to Klarna. - * - * You can contact Klarna for the format and structure of the string. - */ - "openinvoicedata.merchantData"?: string; - /** - * The number of invoice lines included in `openinvoicedata`. - * - * There needs to be at least one line, so `numberOfLines` needs to be at least 1. - */ - "openinvoicedata.numberOfLines"?: string; - /** - * The three-character ISO currency code. - */ - "openinvoicedataLine[itemNr].currencyCode"?: string; - /** - * A text description of the product the invoice line refers to. - */ - "openinvoicedataLine[itemNr].description"?: string; - /** - * The price for one item in the invoice line, represented in minor units. - * - * The due amount for the item, VAT excluded. - */ - "openinvoicedataLine[itemNr].itemAmount"?: string; - /** - * A unique id for this item. Required for RatePay if the description of each item is not unique. - */ - "openinvoicedataLine[itemNr].itemId"?: string; - /** - * The VAT due for one item in the invoice line, represented in minor units. - */ - "openinvoicedataLine[itemNr].itemVatAmount"?: string; - /** - * The VAT percentage for one item in the invoice line, represented in minor units. - * - * For example, 19% VAT is specified as 1900. - */ - "openinvoicedataLine[itemNr].itemVatPercentage"?: string; - /** - * The number of units purchased of a specific product. - */ - "openinvoicedataLine[itemNr].numberOfItems"?: string; - /** - * Required for AfterPay. The country-specific VAT category a product falls under. - * - * Allowed values: - * * High - * * Low - * * None. - */ - "openinvoicedataLine[itemNr].vatCategory"?: string; - } - export interface AdditionalDataRatepay { - /** - * Amount the customer has to pay each month. - */ - "ratepay.installmentAmount"?: string; - /** - * Interest rate of this installment. - */ - "ratepay.interestRate"?: string; - /** - * Amount of the last installment. - */ - "ratepay.lastInstallmentAmount"?: string; - /** - * Calendar day of the first payment. - */ - "ratepay.paymentFirstday"?: string; - /** - * Date the merchant delivered the goods to the customer. - */ - "ratepaydata.deliveryDate"?: string; - /** - * Date by which the customer must settle the payment. - */ - "ratepaydata.dueDate"?: string; - /** - * Invoice date, defined by the merchant. If not included, the invoice date is set to the delivery date. - */ - "ratepaydata.invoiceDate"?: string; - /** - * Identification name or number for the invoice, defined by the merchant. - */ - "ratepaydata.invoiceId"?: string; - } - export interface AdditionalDataRetry { - /** - * The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. - * - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - */ - "retry.chainAttemptNumber"?: string; - /** - * The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. - * - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - */ - "retry.orderAttemptNumber"?: string; - /** - * The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. - * - * > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together. - */ - "retry.skipRetry"?: string; - } - export interface AdditionalDataRisk { - /** - * The data for your custom risk field. For more information, refer to [Create custom risk fields](https://docs.adyen.com/risk-management/configure-custom-risk-rules#step-1-create-custom-risk-fields). - */ - "riskdata.[customFieldName]"?: string; - /** - * The price of item in the basket, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - "riskdata.basket.item[itemNr].amountPerItem"?: string; - /** - * Brand of the item. - */ - "riskdata.basket.item[itemNr].brand"?: string; - /** - * Category of the item. - */ - "riskdata.basket.item[itemNr].category"?: string; - /** - * Color of the item. - */ - "riskdata.basket.item[itemNr].color"?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - "riskdata.basket.item[itemNr].currency"?: string; - /** - * ID of the item. - */ - "riskdata.basket.item[itemNr].itemID"?: string; - /** - * Manufacturer of the item. - */ - "riskdata.basket.item[itemNr].manufacturer"?: string; - /** - * A text description of the product the invoice line refers to. - */ - "riskdata.basket.item[itemNr].productTitle"?: string; - /** - * Quantity of the item purchased. - */ - "riskdata.basket.item[itemNr].quantity"?: string; - /** - * Email associated with the given product in the basket (usually in electronic gift cards). - */ - "riskdata.basket.item[itemNr].receiverEmail"?: string; - /** - * Size of the item. - */ - "riskdata.basket.item[itemNr].size"?: string; - /** - * [Stock keeping unit](https://en.wikipedia.org/wiki/Stock_keeping_unit). - */ - "riskdata.basket.item[itemNr].sku"?: string; - /** - * [Universal Product Code](https://en.wikipedia.org/wiki/Universal_Product_Code). - */ - "riskdata.basket.item[itemNr].upc"?: string; - /** - * Code of the promotion. - */ - "riskdata.promotions.promotion[itemNr].promotionCode"?: string; - /** - * The discount amount of the promotion, represented in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ - "riskdata.promotions.promotion[itemNr].promotionDiscountAmount"?: string; - /** - * The three-character [ISO currency code](https://en.wikipedia.org/wiki/ISO_4217). - */ - "riskdata.promotions.promotion[itemNr].promotionDiscountCurrency"?: string; - /** - * Promotion's percentage discount. It is represented in percentage value and there is no need to include the '%' sign. - * - * e.g. for a promotion discount of 30%, the value of the field should be 30. - */ - "riskdata.promotions.promotion[itemNr].promotionDiscountPercentage"?: string; - /** - * Name of the promotion. - */ - "riskdata.promotions.promotion[itemNr].promotionName"?: string; - } - export interface AdditionalDataRiskStandalone { - /** - * Shopper's country of residence in the form of ISO standard 3166 2-character country codes. - */ - "PayPal.CountryCode"?: string; - /** - * Shopper's email. - */ - "PayPal.EmailId"?: string; - /** - * Shopper's first name. - */ - "PayPal.FirstName"?: string; - /** - * Shopper's last name. - */ - "PayPal.LastName"?: string; - /** - * Unique PayPal Customer Account identification number. Character length and limitations: 13 single-byte alphanumeric characters. - */ - "PayPal.PayerId"?: string; - /** - * Shopper's phone number. - */ - "PayPal.Phone"?: string; - /** - * Allowed values: - * * **Eligible** — Merchant is protected by PayPal's Seller Protection Policy for Unauthorized Payments and Item Not Received. - * - * * **PartiallyEligible** — Merchant is protected by PayPal's Seller Protection Policy for Item Not Received. - * - * * **Ineligible** — Merchant is not protected under the Seller Protection Policy. - */ - "PayPal.ProtectionEligibility"?: string; - /** - * Unique transaction ID of the payment. - */ - "PayPal.TransactionId"?: string; - /** - * Raw AVS result received from the acquirer, where available. Example: D - */ - avsResultRaw?: string; - /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. Required for [tokenized card request](https://docs.adyen.com/risk-management/standalone-risk#tokenised-pan-request). - */ - bin?: string; - /** - * Raw CVC result received from the acquirer, where available. Example: 1 - */ - cvcResultRaw?: string; - /** - * Unique identifier or token for the shopper's card details. - */ - riskToken?: string; - /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true - */ - threeDAuthenticated?: string; - /** - * A Boolean value indicating whether 3DS was offered for this payment. Example: true - */ - threeDOffered?: string; - /** - * Required for PayPal payments only. The only supported value is: **paypal**. - */ - tokenDataType?: string; - } - export interface AdditionalDataTemporaryServices { - /** - * Customer code, if supplied by a customer. - * * Encoding: ASCII - * * maxLength: 25 - */ - "enhancedSchemeData.customerReference"?: string; - /** - * Name or ID associated with the individual working in a temporary capacity. - * * maxLength: 40 - */ - "enhancedSchemeData.employeeName"?: string; - /** - * Description of the job or task of the individual working in a temporary capacity. - * * maxLength: 40 - */ - "enhancedSchemeData.jobDescription"?: string; - /** - * Amount paid per regular hours worked, minor units. - * * maxLength: 7 - */ - "enhancedSchemeData.regularHoursRate"?: string; - /** - * Amount of time worked during a normal operation for the task or job. - * * maxLength: 7 - */ - "enhancedSchemeData.regularHoursWorked"?: string; - /** - * Name of the individual requesting temporary services. - * * maxLength: 40 - */ - "enhancedSchemeData.requestName"?: string; - /** - * Date for the beginning of the pay period. - * * Format: ddMMyy - * * maxLength: 6 - */ - "enhancedSchemeData.tempStartDate"?: string; - /** - * Date of the end of the billing cycle. - * * Format: ddMMyy - * * maxLength: 6 - */ - "enhancedSchemeData.tempWeekEnding"?: string; - /** - * Total tax amount, in minor units. For example, 2000 means USD 20.00 - * * maxLength: 12 - */ - "enhancedSchemeData.totalTaxAmount"?: string; - } - export interface AdditionalDataWallets { - /** - * The Android Pay token retrieved from the SDK. - */ - "androidpay.token"?: string; - /** - * The Mastercard Masterpass Transaction ID retrieved from the SDK. - */ - "masterpass.transactionId"?: string; - /** - * The Apple Pay token retrieved from the SDK. - */ - "payment.token"?: string; - /** - * The Google Pay token retrieved from the SDK. - */ - "paywithgoogle.token"?: string; - /** - * The Samsung Pay token retrieved from the SDK. - */ - "samsungpay.token"?: string; - /** - * The Visa Checkout Call ID retrieved from the SDK. - */ - "visacheckout.callId"?: string; - } - export interface Address { - /** - * The name of the city. - */ - city: string; - /** - * The two-character country code as defined in ISO-3166-1 alpha-2. For example, **US**. - * > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. - */ - country: string; - /** - * The number or name of the house. - */ - houseNumberOrName: string; - /** - * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. - */ - postalCode: string; - /** - * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in Canada. - * > Required for the US and Canada. - */ - stateOrProvince?: string; - /** - * The name of the street. - * > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. - */ - street: string; - } - export interface Amount { - /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - currency: string; - /** - * The payable amount that can be charged for the transaction. - * - * The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; // int64 - } - export interface ApplicationInfo { - /** - * Adyen-developed software, such as libraries and plugins, used to interact with the Adyen API. For example, Magento plugin, Java API library, etc. - */ - adyenLibrary?: CommonField; - /** - * Adyen-developed software to get payment details. For example, Checkout SDK, Secured Fields SDK, etc. - */ - adyenPaymentSource?: CommonField; - /** - * Third-party developed platform used to initiate payment requests. For example, Magento, Zuora, etc. - */ - externalPlatform?: ExternalPlatform; - /** - * Merchant developed software, such as cashier application, used to interact with the Adyen API. - */ - merchantApplication?: CommonField; - /** - * Merchant device information. - */ - merchantDevice?: MerchantDevice; - /** - * Shopper interaction device, such as terminal, mobile device or web browser, to initiate payment requests. - */ - shopperInteractionDevice?: ShopperInteractionDevice; - } - export interface BankAccount { - /** - * The bank account number (without separators). - */ - bankAccountNumber?: string; - /** - * The bank city. - */ - bankCity?: string; - /** - * The location id of the bank. The field value is `nil` in most cases. - */ - bankLocationId?: string; - /** - * The name of the bank. - */ - bankName?: string; - /** - * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. - */ - bic?: string; - /** - * Country code where the bank is located. - * - * A valid value is an ISO two-character country code (e.g. 'NL'). - */ - countryCode?: string; - /** - * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). - */ - iban?: string; - /** - * The name of the bank account holder. - * If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: - * * ·12 is converted to ch12. - * * ÃŧA is converted to euA. - * * Peter Møller is converted to Peter Mller, because banks don't accept 'ø'. - * After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: - * * John17 - allowed. - * * J17 - allowed. - * * 171 - not allowed. - * * John-7 - allowed. - * > If provided details don't match the required format, the response returns the error message: 203 'Invalid bank account holder name'. - */ - ownerName?: string; - /** - * The bank account holder's tax ID. - */ - taxId?: string; - } - export interface BrowserInfo { - /** - * The accept header value of the shopper's browser. - */ - acceptHeader: string; - /** - * The color depth of the shopper's browser in bits per pixel. This should be obtained by using the browser's `screen.colorDepth` property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32 or 48 bit color depth. - */ - colorDepth: number; // int32 - /** - * Boolean value indicating if the shopper's browser is able to execute Java. - */ - javaEnabled: boolean; - /** - * Boolean value indicating if the shopper's browser is able to execute JavaScript. A default 'true' value is assumed if the field is not present. - */ - javaScriptEnabled?: boolean; - /** - * The `navigator.language` value of the shopper's browser (as defined in IETF BCP 47). - */ - language: string; - /** - * The total height of the shopper's device screen in pixels. - */ - screenHeight: number; // int32 - /** - * The total width of the shopper's device screen in pixels. - */ - screenWidth: number; // int32 - /** - * Time difference between UTC time and the shopper's browser local time, in minutes. - */ - timeZoneOffset: number; // int32 - /** - * The user agent value of the shopper's browser. - */ - userAgent: string; - } - export interface Card { - /** - * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: - * * CVV2/CVC2 – length: 3 digits - * * CID – length: 4 digits - * > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. - * > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). - * > When this value is returned in a response, it is always empty because it is not stored. - */ - cvc?: string; - /** - * The card expiry month. - * Format: 2 digits, zero-padded for single digits. For example: - * * 03 = March - * * 11 = November - */ - expiryMonth: string; - /** - * The card expiry year. - * Format: 4 digits. For example: 2020 - */ - expiryYear: string; - /** - * The name of the cardholder, as printed on the card. - */ - holderName: string; - /** - * The issue number of the card (for some UK debit cards only). - */ - issueNumber?: string; - /** - * The card number (4-19 characters). Do not use any separators. - * When this value is returned in a response, only the last 4 digits of the card number are returned. - */ - number: string; - /** - * The month component of the start date (for some UK debit cards only). - */ - startMonth?: string; - /** - * The year component of the start date (for some UK debit cards only). - */ - startYear?: string; - } - export interface CommonField { - /** - * Name of the field. For example, Name of External Platform. - */ - name?: string; - /** - * Version of the field. For example, Version of External Platform. - */ - version?: string; - } - export interface DeviceRenderOptions { - /** - * Supported SDK interface types. - * Allowed values: - * * native - * * html - * * both - */ - sdkInterface?: "native" | "html" | "both"; - /** - * UI types supported for displaying specific challenges. - * Allowed values: - * * text - * * singleSelect - * * outOfBand - * * otherHtml - * * multiSelect - */ - sdkUiType?: ("multiSelect" | "otherHtml" | "outOfBand" | "singleSelect" | "text")[]; - } - export interface ExternalPlatform { - /** - * External platform integrator. - */ - integrator?: string; - /** - * Name of the field. For example, Name of External Platform. - */ - name?: string; - /** - * Version of the field. For example, Version of External Platform. - */ - version?: string; - } - export interface ForexQuote { - /** - * The account name. - */ - account?: string; - /** - * The account type. - */ - accountType?: string; - /** - * The base amount. - */ - baseAmount?: Amount; - /** - * The base points. - */ - basePoints: number; // int32 - /** - * The buy rate. - */ - buy?: Amount; - /** - * The interbank amount. - */ - interbank?: Amount; - /** - * The reference assigned to the forex quote request. - */ - reference?: string; - /** - * The sell rate. - */ - sell?: Amount; - /** - * The signature to validate the integrity. - */ - signature?: string; - /** - * The source of the forex quote. - */ - source?: string; - /** - * The type of forex. - */ - type?: string; - /** - * The date until which the forex quote is valid. - */ - validTill: string; // date-time - } - export interface FraudCheckResult { - /** - * The fraud score generated by the risk check. - */ - accountScore: number; // int32 - /** - * The ID of the risk check. - */ - checkId: number; // int32 - /** - * The name of the risk check. - */ - name: string; - } - export interface FraudResult { - /** - * The total fraud score generated by the risk checks. - */ - accountScore: number; // int32 - /** - * The result of the individual risk checks. - */ - results?: FraudCheckResult[]; - } - export interface FundSource { - /** - * a map of name/value pairs for passing in additional/industry-specific data - */ - additionalData?: { - [name: string]: string; - }; - /** - * the address where to send the invoice - */ - billingAddress?: Address; - /** - * a representation of a (credit or debit) card - */ - card?: Card; - /** - * the email address of the person - */ - shopperEmail?: string; - /** - * the name of the person - */ - shopperName?: Name; - /** - * the telephone number of the person - */ - telephoneNumber?: string; - } - export interface Installments { - /** - * Defines the type of installment plan. If not set, defaults to **regular**. - * - * Possible values: - * * **regular** - * * **revolving** - */ - plan?: "regular" | "revolving"; - /** - * Defines the number of installments. Its value needs to be greater than zero. - * - * Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. - */ - value: number; // int32 - } - export interface MerchantDevice { - /** - * Operating system running on the merchant device. - */ - os?: string; - /** - * Version of the operating system on the merchant device. - */ - osVersion?: string; - /** - * Merchant device reference. - */ - reference?: string; - } - export interface MerchantRiskIndicator { - /** - * Whether the chosen delivery address is identical to the billing address. - */ - addressMatch?: boolean; - /** - * Indicator regarding the delivery address. - * Allowed values: - * * `shipToBillingAddress` - * * `shipToVerifiedAddress` - * * `shipToNewAddress` - * * `shipToStore` - * * `digitalGoods` - * * `goodsNotShipped` - * * `other` - */ - deliveryAddressIndicator?: "shipToBillingAddress" | "shipToVerifiedAddress" | "shipToNewAddress" | "shipToStore" | "digitalGoods" | "goodsNotShipped" | "other"; - /** - * The delivery email address (for digital goods). - */ - deliveryEmail?: string; - /** - * The estimated delivery time for the shopper to receive the goods. - * Allowed values: - * * `electronicDelivery` - * * `sameDayShipping` - * * `overnightShipping` - * * `twoOrMoreDaysShipping` - */ - deliveryTimeframe?: "electronicDelivery" | "sameDayShipping" | "overnightShipping" | "twoOrMoreDaysShipping"; - /** - * For prepaid or gift card purchase, the purchase amount total of prepaid or gift card(s). - */ - giftCardAmount?: Amount; - /** - * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. - */ - giftCardCount?: number; // int32 - /** - * For pre-order purchases, the expected date this product will be available to the shopper. - */ - preOrderDate?: string; // date-time - /** - * Indicator for whether this transaction is for pre-ordering a product. - */ - preOrderPurchase?: boolean; - /** - * Indicator for whether the shopper has already purchased the same items in the past. - */ - reorderItems?: boolean; - } - export interface ModifyRequest { - /** - * This field contains additional data, which may be required for a particular payout request. - */ - additionalData?: { - [name: string]: string; - }; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * The PSP reference received in the `/submitThirdParty` response. - */ - originalReference: string; - } - export interface ModifyResponse { - /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: { - [name: string]: string; - }; - /** - * Adyen's 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. - */ - pspReference: string; - /** - * The response: - * * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. - * * In case of an error, an informational message is returned. - */ - response: string; - } - export interface Name { - /** - * The first name. - */ - firstName: string; - /** - * The gender. - * >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`. - */ - gender: "MALE" | "FEMALE" | "UNKNOWN"; - /** - * The name's infix, if applicable. - * >A maximum length of twenty (20) characters is imposed. - */ - infix?: string; - /** - * The last name. - */ - lastName: string; - } - export interface PayoutRequest { - /** - * Shopper account information for 3D Secure 2. - * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. - */ - accountInfo?: AccountInfo; - /** - * If you want a [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) request to use a non-zero value, assign this value to `additionalAmount` (while the amount must be still set to 0 to trigger BIN or card verification). - * Required to be in the same currency as the `amount`. - */ - additionalAmount?: Amount; - /** - * This field contains additional data, which may be required for a particular payment request. - * - * The `additionalData` object consists of entries, each of which includes the key and value. - */ - additionalData?: /** - * This field contains additional data, which may be required for a particular payment request. - * - * The `additionalData` object consists of entries, each of which includes the key and value. - */ - AdditionalDataCommon | AdditionalData3DSecure | AdditionalDataAirline | AdditionalDataCarRental | AdditionalDataLevel23 | AdditionalDataLodging | AdditionalDataOpenInvoice | AdditionalDataRatepay | AdditionalDataRetry | AdditionalDataRisk | AdditionalDataRiskStandalone | AdditionalDataTemporaryServices | AdditionalDataWallets; - /** - * The amount information for the transaction (in [minor units](https://docs.adyen.com/development-resources/currency-codes)). For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero). - */ - amount: Amount; - /** - * Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions). - */ - applicationInfo?: ApplicationInfo; - /** - * The details of the bank account, from which the payment should be made. - * > Either `bankAccount` or `card` field must be provided in a payment request. - */ - bankAccount?: BankAccount; - /** - * The address where to send the invoice. - * > For 3D Secure 2 transactions, schemes require the `billingAddress` for both `deviceChannel` **browser** and **app**. Include all of the fields within this object. - */ - billingAddress?: Address; - /** - * The shopper's browser information. - * > For 3D Secure transactions, `browserInfo` is required for `channel` **web** (or `deviceChannel` **browser**). - */ - browserInfo?: BrowserInfo; - /** - * The delay between the authorisation and scheduled auto-capture, specified in hours. - */ - captureDelayHours?: number; // int32 - /** - * A container for card data. - * > Either `bankAccount` or `card` field must be provided in a payment request. - */ - card?: Card; - /** - * The shopper's date of birth. - * - * Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD - */ - dateOfBirth?: string; // date-time - /** - * The forex quote as returned in the response of the forex service. - */ - dccQuote?: ForexQuote; - /** - * The address where the purchased goods should be delivered. - */ - deliveryAddress?: Address; - /** - * The date and time the purchased goods should be delivered. - * - * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD - * - * Example: 2017-07-17T13:42:40.428+01:00 - */ - deliveryDate?: string; // date-time - /** - * A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). - */ - deviceFingerprint?: string; - /** - * Choose if a specific transaction should use the Real-time Account Updater, regardless of other settings. - */ - enableRealTimeUpdate?: boolean; - /** - * The type of the entity the payment is processed for. - */ - entityType?: "NaturalPerson" | "CompanyName"; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; // int32 - /** - * The person or entity funding the money. - */ - fundSource?: FundSource; - /** - * How to process a combo card (for some Brazilian cards only). - * Allowed values: - * * debit - * * credit - */ - fundingSource?: "debit" | "credit"; - /** - * Contains installment settings. For more information, refer to [Installments](https://docs.adyen.com/payment-methods/cards/credit-card-installments). - */ - installments?: Installments; - /** - * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. - */ - mcc?: string; - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. - * The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. - * > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. - */ - merchantOrderReference?: string; - /** - * Additional risk fields for 3D Secure 2. - * > For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow. - */ - merchantRiskIndicator?: MerchantRiskIndicator; - /** - * Metadata consists of entries, each of which includes a key and a value. - * Limitations: Maximum 20 key-value pairs per request. When exceeding, the "177" error occurs: "Metadata size exceeds limit". - */ - metadata?: { - [name: string]: string; - }; - /** - * Authentication data produced by an MPI (Mastercard SecureCode or Visa Secure). - */ - mpiData?: ThreeDSecureData; - /** - * The two-character country code of the shopper's nationality. - */ - nationality?: string; - /** - * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. - */ - orderReference?: string; - /** - * The recurring settings for the payment. Use this property when you want to enable [recurring payments](https://docs.adyen.com/classic-integration/recurring-payments). - */ - recurring?: Recurring; - /** - * Defines a recurring payment type. - * Allowed values: - * * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. - * * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. - * * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount. - * - */ - recurringProcessingModel?: "CardOnFile" | "Subscription" | "UnscheduledCardOnFile"; - /** - * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. - * If you need to provide multiple references for a transaction, separate them with hyphens ("-"). - * Maximum length: 80 characters. - */ - reference: string; - /** - * Some payment methods require defining a value for this field to specify how to process the transaction. - * - * For the Bancontact payment method, it can be set to: - * * `maestro` (default), to be processed like a Maestro card, or - * * `bcmc`, to be processed like a Bancontact card. - */ - selectedBrand?: string; - /** - * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. - */ - selectedRecurringDetailReference?: string; - /** - * A session ID used to identify a payment session. - */ - sessionId?: string; - /** - * The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. - * > For 3D Secure 2 transactions, schemes require the `shopperEmail` for both `deviceChannel` **browser** and **app**. - */ - shopperEmail?: string; - /** - * The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks). - * > Required for 3D Secure 2 transactions. This field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - shopperIP?: string; - /** - * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. - * For the web service API, Adyen assumes Ecommerce shopper interaction by default. - * - * This field has the following possible values: - * * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. - * * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). - * * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. - * * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. - */ - shopperInteraction?: "Ecommerce" | "ContAuth" | "Moto" | "POS"; - /** - * The combination of a language code and a country code to specify the language to be used in the payment. - */ - shopperLocale?: string; - /** - * The shopper's full name and gender (if specified). - */ - shopperName?: Name; - /** - * The shopper's reference to uniquely identify this shopper (e.g. user ID or account ID). - * > This field is required for recurring payments. - */ - shopperReference?: string; - /** - * The text to be shown on the shopper's bank statement. To enable this field, contact our [Support Team](https://support.adyen.com/hc/en-us/requests/new). - * We recommend sending a maximum of 25 characters, otherwise banks might truncate the string. - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * Information on how the payment should be split between accounts when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information). - */ - splits?: Split[]; - /** - * The physical store, for which this payment is processed. - */ - store?: string; - /** - * The shopper's telephone number. - */ - telephoneNumber?: string; - /** - * Request fields for 3D Secure 2. - */ - threeDS2RequestData?: ThreeDS2RequestData; - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - */ - threeDSAuthenticationOnly?: boolean; - /** - * The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available). - */ - totalsGroup?: string; - /** - * Set to true if the payment should be routed to a trusted MID. - */ - trustedShopper?: boolean; - } - export interface PayoutResponse { - /** - * This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. - */ - additionalData?: /* This field contains additional data, which may be required to return in a particular payment response. To choose data fields to be returned, go to **Customer Area** > **Account** > **API URLs** > **Additional data settings**. */ ResponseAdditionalDataCommon | ResponseAdditionalDataBillingAddress | ResponseAdditionalDataCard | ResponseAdditionalDataDeliveryAddress | ResponseAdditionalDataInstallments | ResponseAdditionalDataNetworkTokens | ResponseAdditionalDataPayPal | ResponseAdditionalDataSepa; - /** - * Authorisation code: - * * When the payment is authorised successfully, this field holds the authorisation code for the payment. - * * When the payment is not authorised, this field is empty. - */ - authCode?: string; - /** - * Includes the currency of the conversion and the value of the transaction. - * > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - dccAmount?: Amount; - /** - * Cryptographic signature used to verify `dccQuote`. - * > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://support.adyen.com/hc/en-us/requests/new). - */ - dccSignature?: string; - /** - * The fraud result properties of the payment. - */ - fraudResult?: FraudResult; - /** - * The URL to direct the shopper to. - * > In case of SecurePlus, do not redirect a shopper to this URL. - */ - issuerUrl?: string; - /** - * The payment session. - */ - md?: string; - /** - * The 3D request data for the issuer. - * - * If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). - */ - paRequest?: string; - /** - * Adyen's 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. - * - * > `pspReference` is returned only for non-redirect payment methods. - */ - pspReference?: string; - /** - * If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. - * - * For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). - */ - refusalReason?: string; - /** - * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/checkout/payment-result-codes). - * - * Possible values: - * - * * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. - * * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. - * * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. - * * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. - * * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. - * * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. - * * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. - * * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. - * * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. - * * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. - */ - resultCode?: "AuthenticationFinished" | "Authorised" | "Cancelled" | "ChallengeShopper" | "Error" | "IdentifyShopper" | "Pending" | "PresentToShopper" | "Received" | "RedirectShopper" | "Refused"; - } - export interface Recurring { - /** - * The type of recurring contract to be used. - * Possible values: - * * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). - * * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). - * * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. - * * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/checkout/online-payouts). - */ - contract?: "ONECLICK" | "RECURRING" | "PAYOUT"; - /** - * A descriptive name for this detail. - */ - recurringDetailName?: string; - /** - * Date after which no further authorisations shall be performed. Only for 3D Secure 2. - */ - recurringExpiry?: string; // date-time - /** - * Minimum number of days between authorisations. Only for 3D Secure 2. - */ - recurringFrequency?: string; - /** - * The name of the token service. - */ - tokenService?: "VISATOKENSERVICE" | "MCTOKENSERVICE"; - } - export interface ResponseAdditionalDataBillingAddress { - /** - * The billing address city passed in the payment request. - */ - "billingAddress.city"?: string; - /** - * The billing address country passed in the payment request. - * - * Example: NL - */ - "billingAddress.country"?: string; - /** - * The billing address house number or name passed in the payment request. - */ - "billingAddress.houseNumberOrName"?: string; - /** - * The billing address postal code passed in the payment request. - * - * Example: 1011 DJ - */ - "billingAddress.postalCode"?: string; - /** - * The billing address state or province passed in the payment request. - * - * Example: NH - */ - "billingAddress.stateOrProvince"?: string; - /** - * The billing address street passed in the payment request. - */ - "billingAddress.street"?: string; - } - export interface ResponseAdditionalDataCard { - /** - * The Bank Identification Number of a credit card, which is the first six digits of a card number. - * - * Example: 521234 - */ - cardBin?: string; - /** - * The cardholder name passed in the payment request. - */ - cardHolderName?: string; - /** - * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. - */ - cardIssuingBank?: string; - /** - * The country where the card was issued. - * - * Example: US - */ - cardIssuingCountry?: string; - /** - * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. - * - * Example: USD - */ - cardIssuingCurrency?: string; - /** - * The card payment method used for the transaction. - * - * Example: amex - */ - cardPaymentMethod?: string; - /** - * The last four digits of a card number. - * - * > Returned only in case of a card payment. - */ - cardSummary?: string; - } - export interface ResponseAdditionalDataCommon { - /** - * The name of the Adyen acquirer account. - * - * Example: PayPalSandbox_TestAcquirer - * - * > Only relevant for PayPal transactions. - */ - acquirerAccountCode?: string; - /** - * The name of the acquirer processing the payment request. - * - * Example: TestPmmAcquirer - */ - acquirerCode?: string; - /** - * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. - * - * Example: 7C9N3FNBKT9 - */ - acquirerReference?: string; - /** - * The Adyen alias of the card. - * - * Example: H167852639363479 - */ - alias?: string; - /** - * The type of the card alias. - * - * Example: Default - */ - aliasType?: string; - /** - * Authorisation code: - * * When the payment is authorised successfully, this field holds the authorisation code for the payment. - * * When the payment is not authorised, this field is empty. - * - * Example: 58747 - */ - authCode?: string; - /** - * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ - authorisedAmountCurrency?: string; - /** - * Value of the amount authorised. - * - * This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - authorisedAmountValue?: string; - /** - * The AVS result code of the payment, which provides information about the outcome of the AVS check. - * - * For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). - */ - avsResult?: string; - /** - * Raw AVS result received from the acquirer, where available. - * - * Example: D - */ - avsResultRaw?: string; - /** - * BIC of a bank account. - * - * Example: TESTNL01 - * - * > Only relevant for SEPA Direct Debit transactions. - */ - bic?: string; - /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. - */ - dsTransID?: string; - /** - * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. - * - * Example: 02 - */ - eci?: string; - /** - * The expiry date on the card. - * - * Example: 6/2016 - * - * > Returned only in case of a card payment. - */ - expiryDate?: string; - /** - * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. - * - * Example: EUR - */ - extraCostsCurrency?: string; - /** - * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. - */ - extraCostsValue?: string; - /** - * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. - */ - "fraudCheck-[itemNr]-[FraudCheckname]"?: string; - /** - * Information regarding the funding type of the card. The possible return values are: - * * CHARGE - * * CREDIT - * * DEBIT - * * PREPAID - * * PREPAID_RELOADABLE - * - * * PREPAID_NONRELOADABLE - * * DEFFERED_DEBIT - * - * > This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. - * - * For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. - */ - fundingSource?: string; - /** - * Indicates availability of funds. - * - * Visa: - * * "I" (fast funds are supported) - * * "N" (otherwise) - * - * Mastercard: - * * "I" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) - * * "N" (otherwise) - * - * > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is "Y" or "D". - */ - fundsAvailability?: string; - /** - * Provides the more granular indication of why a transaction was refused. When a transaction fails with either "Refused", "Restricted Card", "Transaction Not Permitted", "Not supported" or "DeclinedNon Generic" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to "Not Supported". - * - * Possible values: - * - * * 3D Secure Mandated - * * Closed Account - * * ContAuth Not Supported - * * CVC Mandated - * * Ecommerce Not Allowed - * * Crossborder Not Supported - * * Card Updated - * - * * Low Authrate Bin - * * Non-reloadable prepaid card - */ - inferredRefusalReason?: string; - /** - * The issuing country of the card based on the BIN list that Adyen maintains. - * - * Example: JP - */ - issuerCountry?: string; - /** - * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. - * - * > Contact Support Team to enable this field. - */ - mcBankNetReferenceNumber?: string; - /** - * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. - * - * This contains either the Mastercard Trace ID or the Visa Transaction ID. - */ - networkTxReference?: string; - /** - * The owner name of a bank account. - * - * Only relevant for SEPA Direct Debit transactions. - */ - ownerName?: string; - /** - * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. - */ - paymentAccountReference?: string; - /** - * The Adyen sub-variant of the payment method used for the payment request. - * - * For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). - * - * Example: mcpro - */ - paymentMethodVariant?: string; - /** - * Indicates whether a payout is eligible or not for this card. - * - * Visa: - * * "Y" - * * "N" - * - * Mastercard: - * * "Y" (domestic and cross-border) - * - * * "D" (only domestic) - * * "N" (no MoneySend) - * * "U" (unknown) - */ - payoutEligible?: string; - /** - * The response code from the Real Time Account Updater service. - * - * Possible return values are: - * * CardChanged - * * CardExpiryChanged - * * CloseAccount - * - * * ContactCardAccountHolder - */ - realtimeAccountUpdaterStatus?: string; - /** - * Message to be displayed on the terminal. - */ - receiptFreeText?: string; - /** - * The `pspReference`, of the first recurring payment that created the recurring detail. - * - * This functionality requires additional configuration on Adyen's end. To enable it, contact the Support Team. - */ - "recurring.firstPspReference"?: string; - /** - * The reference that uniquely identifies the recurring transaction. - */ - "recurring.recurringDetailReference"?: string; - /** - * If the payment is referred, this field is set to true. - * - * This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. - * - * Example: true - */ - referred?: string; - /** - * Raw refusal reason received from the acquirer, where available. - * - * Example: AUTHORISED - */ - refusalReasonRaw?: string; - /** - * The shopper interaction type of the payment request. - * - * Example: Ecommerce - */ - shopperInteraction?: string; - /** - * The shopperReference passed in the payment request. - * - * Example: AdyenTestShopperXX - */ - shopperReference?: string; - /** - * The terminal ID used in a point-of-sale payment. - * - * Example: 06022622 - */ - terminalId?: string; - /** - * A Boolean value indicating whether 3DS authentication was completed on this payment. - * - * Example: true - */ - threeDAuthenticated?: string; - /** - * The raw 3DS authentication result from the card issuer. - * - * Example: N - */ - threeDAuthenticatedResponse?: string; - /** - * A Boolean value indicating whether 3DS was offered for this payment. - * - * Example: true - */ - threeDOffered?: string; - /** - * The raw enrollment result from the 3DS directory services of the card schemes. - * - * Example: Y - */ - threeDOfferedResponse?: string; - /** - * The 3D Secure 2 version. - */ - threeDSVersion?: string; - /** - * The `visaTransactionId`, has a fixed length of 15 numeric characters. - * - * > Contact Support Team to enable this field. - */ - visaTransactionId?: string; - /** - * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse 'N' or 'Y'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. - * - * Example: ODgxNDc2MDg2MDExODk5MAAAAAA= - */ - xid?: string; - } - export interface ResponseAdditionalDataDeliveryAddress { - /** - * The delivery address city passed in the payment request. - */ - "deliveryAddress.city"?: string; - /** - * The delivery address country passed in the payment request. - * - * Example: NL - */ - "deliveryAddress.country"?: string; - /** - * The delivery address house number or name passed in the payment request. - */ - "deliveryAddress.houseNumberOrName"?: string; - /** - * The delivery address postal code passed in the payment request. - * - * Example: 1011 DJ - */ - "deliveryAddress.postalCode"?: string; - /** - * The delivery address state or province passed in the payment request. - * - * Example: NH - */ - "deliveryAddress.stateOrProvince"?: string; - /** - * The delivery address street passed in the payment request. - */ - "deliveryAddress.street"?: string; - } - export interface ResponseAdditionalDataInstallments { - /** - * Type of installment. The value of `installmentType` should be **IssuerFinanced**. - */ - "installmentPaymentData.installmentType"?: string; - /** - * Annual interest rate. - */ - "installmentPaymentData.option[itemNr].annualPercentageRate"?: string; - /** - * First Installment Amount in minor units. - */ - "installmentPaymentData.option[itemNr].firstInstallmentAmount"?: string; - /** - * Installment fee amount in minor units. - */ - "installmentPaymentData.option[itemNr].installmentFee"?: string; - /** - * Interest rate for the installment period. - */ - "installmentPaymentData.option[itemNr].interestRate"?: string; - /** - * Maximum number of installments possible for this payment. - */ - "installmentPaymentData.option[itemNr].maximumNumberOfInstallments"?: string; - /** - * Minimum number of installments possible for this payment. - */ - "installmentPaymentData.option[itemNr].minimumNumberOfInstallments"?: string; - /** - * Total number of installments possible for this payment. - */ - "installmentPaymentData.option[itemNr].numberOfInstallments"?: string; - /** - * Subsequent Installment Amount in minor units. - */ - "installmentPaymentData.option[itemNr].subsequentInstallmentAmount"?: string; - /** - * Total amount in minor units. - */ - "installmentPaymentData.option[itemNr].totalAmountDue"?: string; - /** - * Possible values: - * * PayInInstallmentsOnly - * * PayInFullOnly - * * PayInFullOrInstallments - */ - "installmentPaymentData.paymentOptions"?: string; - /** - * The number of installments that the payment amount should be charged with. - * - * Example: 5 - * > Only relevant for card payments in countries that support installments. - */ - "installments.value"?: string; - } - export interface ResponseAdditionalDataNetworkTokens { - /** - * Indicates whether a network token is available for the specified card. - */ - "networkToken.available"?: string; - /** - * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. - */ - "networkToken.bin"?: string; - /** - * The last four digits of a card number. - */ - "networkToken.tokenSummary"?: string; - } - export interface ResponseAdditionalDataPayPal { - /** - * The buyer's PayPal account email address. - * - * Example: paypaltest@adyen.com - */ - paypalEmail?: string; - /** - * The buyer's PayPal ID. - * - * Example: LF5HCWWBRV2KL - */ - paypalPayerId?: string; - /** - * The buyer's country of residence. - * - * Example: NL - */ - paypalPayerResidenceCountry?: string; - /** - * The status of the buyer's PayPal account. - * - * Example: unverified - */ - paypalPayerStatus?: string; - /** - * The eligibility for PayPal Seller Protection for this payment. - * - * Example: Ineligible - */ - paypalProtectionEligibility?: string; - } - export interface ResponseAdditionalDataSepa { - /** - * The transaction signature date. - * - * Format: yyyy-MM-dd - */ - "sepadirectdebit.dateOfSignature"?: string; - /** - * Its value corresponds to the pspReference value of the transaction. - */ - "sepadirectdebit.mandateId"?: string; - /** - * This field can take one of the following values: - * * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. - * - * * First: (FRST) Initial/first collection in a series of direct debit instructions. - * * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. - * * Final: (FNAL) Last/final collection in a series of direct debit instructions. - * - * Example: OOFF - */ - "sepadirectdebit.sequenceType"?: string; - } - export interface SDKEphemPubKey { - /** - * The `crv` value as received from the 3D Secure 2 SDK. - */ - crv?: string; - /** - * The `kty` value as received from the 3D Secure 2 SDK. - */ - kty?: string; - /** - * The `x` value as received from the 3D Secure 2 SDK. - */ - x?: string; - /** - * The `y` value as received from the 3D Secure 2 SDK. - */ - y?: string; - } - export interface ShopperInteractionDevice { - /** - * Locale on the shopper interaction device. - */ - locale?: string; - /** - * Operating system running on the shopper interaction device. - */ - os?: string; - /** - * Version of the operating system on the shopper interaction device. - */ - osVersion?: string; - } - export interface Split { - /** - * The account to which this split applies. - * - * >Required if the type is `MarketPlace`. - */ - account?: string; - /** - * The amount of this split. - */ - amount: SplitAmount; - /** - * A description of this split. - */ - description?: string; - /** - * The reference of this split. Used to link other operations (e.g. captures and refunds) to this split. - * - * >Required if the type is `MarketPlace`. - */ - reference?: string; - /** - * The type of this split. - * - * >Permitted values: `Default`, `PaymentFee`, `VAT`, `Commission`, `MarketPlace`, `BalanceAccount`. - */ - type: "BalanceAccount" | "Commission" | "Default" | "MarketPlace" | "PaymentFee" | "VAT" | "Verification"; - } - export interface SplitAmount { - /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - * - * If this value is not provided, the currency in which the payment is made will be used. - */ - currency?: string; - /** - * The payable amount that can be charged for the transaction. - * - * The transaction amount needs to be represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). - */ - value: number; // int64 - } - export interface StoreDetailAndSubmitRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A container object for the payable amount information of the transaction. - */ - amount: Amount; - /** - * A container for bank account data. - * > This field is mandatory if `card` is not provided. - */ - bank?: BankAccount; - /** - * The billing address. - */ - billingAddress?: Address; - /** - * A container for card data. - * > This field is mandatory if `bank` is not provided. - */ - card?: Card; - /** - * The date of birth. - * Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. - * > This field is mandatory for natural persons. - */ - dateOfBirth: string; // date-time - /** - * The type of the entity the payout is processed for. - */ - entityType: "NaturalPerson" | "Company"; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; // int32 - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * The shopper's nationality. - * - * A valid value is an ISO 2-character country code (e.g. 'NL'). - */ - nationality: string; - /** - * A container for the type of recurring contract to be retrieved. - * - * The recurring.contract must be set to `PAYOUT` - */ - recurring: Recurring; - /** - * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - */ - reference: string; - /** - * The name of the brand to make a payout to. - * - * For Paysafecard it must be set to `paysafecard`. - */ - selectedBrand?: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - /** - * The shopper's name. - * - * When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. - */ - shopperName?: Name; - /** - * The shopper's reference for the payment transaction. - */ - shopperReference: string; - /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The shopper's phone number. - */ - telephoneNumber?: string; - } - export interface StoreDetailAndSubmitResponse { - /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A new reference to uniquely identify this request. - */ - pspReference: string; - /** - * In case of refusal, an informational message for the reason. - */ - refusalReason?: string; - /** - * The response: - * - * * In case of success is payout-submit-received. - * * In case of an error, an informational message is returned. - */ - resultCode: string; - } - export interface StoreDetailRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A container for bank account data. - * > This field is mandatory if `card` is not provided. - */ - bank?: BankAccount; - /** - * The billing address. - */ - billingAddress?: Address; - /** - * A container for card data. - * > This field is mandatory if `bank` is not provided. - */ - card?: Card; - /** - * The date of birth. - * Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD - * For Paysafecard it must be the same as used when registering the Paysafecard account. - * > This field is mandatory for natural persons. - */ - dateOfBirth: string; // date-time - /** - * The type of the entity the payout is processed for. - */ - entityType: "NaturalPerson" | "Company"; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; // int32 - /** - * The merchant account identifier, with which you want to process the transaction. - */ - merchantAccount: string; - /** - * The shopper's nationality. - * - * A valid value is an ISO 2-character country code (e.g. 'NL'). - */ - nationality: string; - /** - * A container for the type of recurring contract to be retrieved. - * - * The recurring.contract must be set to `PAYOUT` - */ - recurring: Recurring; - /** - * The name of the brand to make a payout to. - * - * For Paysafecard it must be set to `paysafecard`. - */ - selectedBrand?: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - /** - * The shopper's name. - * - * When the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. - */ - shopperName?: Name; - /** - * The shopper's reference for the payment transaction. - */ - shopperReference: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - /** - * The shopper's phone number. - */ - telephoneNumber?: string; - } - export interface StoreDetailResponse { - /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A new reference to uniquely identify this request. - */ - pspReference: string; - /** - * The token which you can use later on for submitting the payout. - */ - recurringDetailReference: string; - /** - * The result code of the transaction. `Success` indicates that the details were stored successfully. - */ - resultCode: string; - } - export interface SubmitRequest { - /** - * This field contains additional data, which may be required for a particular request. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A container object for the payable amount information of the transaction. - */ - amount: Amount; - /** - * The date of birth. - * Format: ISO-8601; example: YYYY-MM-DD - * - * For Paysafecard it must be the same as used when registering the Paysafecard account. - * - * > This field is mandatory for natural persons. - * > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. - */ - dateOfBirth?: string; // date-time - /** - * The type of the entity the payout is processed for. - * - * Allowed values: - * * NaturalPerson - * * Company - * > This field is required to update the existing `entityType` that is associated with this recurring contract. - */ - entityType?: "NaturalPerson" | "Company"; - /** - * An integer value that is added to the normal fraud score. The value can be either positive or negative. - */ - fraudOffset?: number; // int32 - /** - * The merchant account identifier you want to process the transaction request with. - */ - merchantAccount: string; - /** - * The shopper's nationality. - * - * A valid value is an ISO 2-character country code (e.g. 'NL'). - * - * > This field is required to update the existing nationality that is associated with this recurring contract. - */ - nationality?: string; - /** - * A container for the type of recurring contract to be retrieved. - * - * The `recurring.contract` must be set to "PAYOUT". - */ - recurring: Recurring; - /** - * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. - */ - reference: string; - /** - * This is the `recurringDetailReference` you want to use for this payout. - * - * You can use the value LATEST to select the most recently used recurring detail. - */ - selectedRecurringDetailReference: string; - /** - * The shopper's email address. - */ - shopperEmail: string; - /** - * The shopper's name. - * - * In case the `entityType` is `Company`, the `shopperName.lastName` must contain the company name. - * - * > This field is required to update the existing `shopperName` associated with a recurring contract. - */ - shopperName?: Name; - /** - * The shopper's reference for the payout transaction. - */ - shopperReference: string; - /** - * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). - */ - shopperStatement?: string; - /** - * The shopper's social security number. - */ - socialSecurityNumber?: string; - } - export interface SubmitResponse { - /** - * This field contains additional data, which may be returned in a particular response. - */ - additionalData?: { - [name: string]: string; - }; - /** - * A new reference to uniquely identify this request. - */ - pspReference: string; - /** - * In case of refusal, an informational message for the reason. - */ - refusalReason?: string; - /** - * The response: - * * In case of success, it is `payout-submit-received`. - * * In case of an error, an informational message is returned. - */ - resultCode: string; - } - export interface ThreeDS2RequestData { - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - */ - acquirerBIN?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform. - */ - acquirerMerchantID?: string; - /** - * If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation. - */ - authenticationOnly?: boolean; - /** - * Possibility to specify a preference for receiving a challenge from the issuer. - * Allowed values: - * * `noPreference` - * * `requestNoChallenge` - * * `requestChallenge` - * * `requestChallengeAsMandate` - * - */ - challengeIndicator?: "noPreference" | "requestNoChallenge" | "requestChallenge" | "requestChallengeAsMandate"; - /** - * The environment of the shopper. - * Allowed values: - * * `app` - * * `browser` - */ - deviceChannel: string; - /** - * Display options for the 3D Secure 2 SDK. - * Optional and only for `deviceChannel` **app**. - */ - deviceRenderOptions?: DeviceRenderOptions; - /** - * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. - */ - mcc?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. - * > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/checkout/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account. - */ - merchantName?: string; - /** - * The `messageVersion` value indicating the 3D Secure 2 protocol version. - */ - messageVersion?: string; - /** - * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. - */ - notificationURL?: string; - /** - * The `sdkAppID` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. - */ - sdkAppID?: string; - /** - * The `sdkEncData` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. - */ - sdkEncData?: string; - /** - * The `sdkEphemPubKey` value as received from the 3D Secure 2 SDK. - * Required for `deviceChannel` set to **app**. - */ - sdkEphemPubKey?: SDKEphemPubKey; - /** - * The maximum amount of time in minutes for the 3D Secure 2 authentication process. - * Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. - */ - sdkMaxTimeout?: number; // int32 - /** - * The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. - * Only for `deviceChannel` set to **app**. - */ - sdkReferenceNumber?: string; - /** - * The `sdkTransID` value as received from the 3D Secure 2 SDK. - * Only for `deviceChannel` set to **app**. - */ - sdkTransID?: string; - /** - * Completion indicator for the device fingerprinting. - */ - threeDSCompInd?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorID?: string; - /** - * Required for [authentication-only integration](https://docs.adyen.com/checkout/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. - */ - threeDSRequestorName?: string; - /** - * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. - */ - threeDSRequestorURL?: string; - /** - * Identify the type of the transaction being authenticated. - */ - transactionType?: "goodsOrServicePurchase" | "checkAcceptance" | "accountFunding" | "quasiCashTransaction" | "prepaidActivationAndLoad"; - /** - * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. - */ - whiteListStatus?: string; - } - export interface ThreeDSecureData { - /** - * In 3D Secure 1, the authentication response if the shopper was redirected. - * - * In 3D Secure 2, this is the `transStatus` from the challenge result. If the transaction was frictionless, omit this parameter. - */ - authenticationResponse?: "Y" | "N" | "U" | "A"; - /** - * The cardholder authentication value (base64 encoded, 20 bytes in a decoded form). - */ - cavv?: string; // byte - /** - * The CAVV algorithm used. Include this only for 3D Secure 1. - */ - cavvAlgorithm?: string; - /** - * In 3D Secure 1, this is the enrollment response from the 3D directory server. - * - * In 3D Secure 2, this is the `transStatus` from the `ARes`. - */ - directoryResponse?: "A" | "C" | "D" | "I" | "N" | "R" | "U" | "Y"; - /** - * Supported for 3D Secure 2. The unique transaction identifier assigned by the Directory Server (DS) to identify a single transaction. - */ - dsTransID?: string; - /** - * The electronic commerce indicator. - */ - eci?: string; - /** - * The version of the 3D Secure protocol. - */ - threeDSVersion?: string; - /** - * Supported for 3D Secure 1. The transaction identifier (Base64-encoded, 20 bytes in a decoded form). - */ - xid?: string; // byte - } -} -declare namespace Paths { - namespace PostConfirmThirdParty { - export type RequestBody = IPayouts.ModifyRequest; - namespace Responses { - export type $200 = IPayouts.ModifyResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } - namespace PostDeclineThirdParty { - export type RequestBody = IPayouts.ModifyRequest; - namespace Responses { - export type $200 = IPayouts.ModifyResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } - namespace PostPayout { - export type RequestBody = IPayouts.PayoutRequest; - namespace Responses { - export type $200 = IPayouts.PayoutResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } - namespace PostStoreDetail { - export type RequestBody = IPayouts.StoreDetailRequest; - namespace Responses { - export type $200 = IPayouts.StoreDetailResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } - namespace PostStoreDetailAndSubmitThirdParty { - export type RequestBody = IPayouts.StoreDetailAndSubmitRequest; - namespace Responses { - export type $200 = IPayouts.StoreDetailAndSubmitResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } - namespace PostSubmitThirdParty { - export type RequestBody = IPayouts.SubmitRequest; - namespace Responses { - export type $200 = IPayouts.SubmitResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } -} diff --git a/src/typings/payouts/address.ts b/src/typings/payouts/address.ts new file mode 100644 index 0000000..41b5bf0 --- /dev/null +++ b/src/typings/payouts/address.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + /** + * The name of the city. Maximum length: 3000 characters. + */ + 'city': string; + /** + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + */ + 'country': string; + /** + * The number or name of the house. Maximum length: 3000 characters. + */ + 'houseNumberOrName': string; + /** + * A maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries. + */ + 'postalCode': string; + /** + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + */ + 'stateOrProvince'?: string; + /** + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + */ + 'street': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "houseNumberOrName", + "baseName": "houseNumberOrName", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "street", + "baseName": "street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/amount.ts b/src/typings/payouts/amount.ts new file mode 100644 index 0000000..4ef042f --- /dev/null +++ b/src/typings/payouts/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/bankAccount.ts b/src/typings/payouts/bankAccount.ts new file mode 100644 index 0000000..e9f6e28 --- /dev/null +++ b/src/typings/payouts/bankAccount.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BankAccount { + /** + * The bank account number (without separators). + */ + 'bankAccountNumber'?: string; + /** + * The bank city. + */ + 'bankCity'?: string; + /** + * The location id of the bank. The field value is `nil` in most cases. + */ + 'bankLocationId'?: string; + /** + * The name of the bank. + */ + 'bankName'?: string; + /** + * The [Business Identifier Code](https://en.wikipedia.org/wiki/ISO_9362) (BIC) is the SWIFT address assigned to a bank. The field value is `nil` in most cases. + */ + 'bic'?: string; + /** + * Country code where the bank is located. A valid value is an ISO two-character country code (e.g. \'NL\'). + */ + 'countryCode'?: string; + /** + * The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN). + */ + 'iban'?: string; + /** + * The name of the bank account holder. If you submit a name with non-Latin characters, we automatically replace some of them with corresponding Latin characters to meet the FATF recommendations. For example: * ·12 is converted to ch12. * ÃŧA is converted to euA. * Peter Møller is converted to Peter Mller, because banks don\'t accept \'ø\'. After replacement, the ownerName must have at least three alphanumeric characters (A-Z, a-z, 0-9), and at least one of them must be a valid Latin character (A-Z, a-z). For example: * John17 - allowed. * J17 - allowed. * 171 - not allowed. * John-7 - allowed. > If provided details don\'t match the required format, the response returns the error message: 203 \'Invalid bank account holder name\'. + */ + 'ownerName'?: string; + /** + * The bank account holder\'s tax ID. + */ + 'taxId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountNumber", + "baseName": "bankAccountNumber", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankLocationId", + "baseName": "bankLocationId", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccount.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/card.ts b/src/typings/payouts/card.ts new file mode 100644 index 0000000..4faa202 --- /dev/null +++ b/src/typings/payouts/card.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Card { + /** + * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. + */ + 'cvc'?: string; + /** + * The card expiry month. Format: 2 digits, zero-padded for single digits. For example: * 03 = March * 11 = November + */ + 'expiryMonth': string; + /** + * The card expiry year. Format: 4 digits. For example: 2020 + */ + 'expiryYear': string; + /** + * The name of the cardholder, as printed on the card. + */ + 'holderName': string; + /** + * The issue number of the card (for some UK debit cards only). + */ + 'issueNumber'?: string; + /** + * The card number (4-19 characters). Do not use any separators. When this value is returned in a response, only the last 4 digits of the card number are returned. + */ + 'number': string; + /** + * The month component of the start date (for some UK debit cards only). + */ + 'startMonth'?: string; + /** + * The year component of the start date (for some UK debit cards only). + */ + 'startYear'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cvc", + "baseName": "cvc", + "type": "string" + }, + { + "name": "expiryMonth", + "baseName": "expiryMonth", + "type": "string" + }, + { + "name": "expiryYear", + "baseName": "expiryYear", + "type": "string" + }, + { + "name": "holderName", + "baseName": "holderName", + "type": "string" + }, + { + "name": "issueNumber", + "baseName": "issueNumber", + "type": "string" + }, + { + "name": "number", + "baseName": "number", + "type": "string" + }, + { + "name": "startMonth", + "baseName": "startMonth", + "type": "string" + }, + { + "name": "startYear", + "baseName": "startYear", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Card.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fraudCheckResult.ts b/src/typings/payouts/fraudCheckResult.ts new file mode 100644 index 0000000..756b1f3 --- /dev/null +++ b/src/typings/payouts/fraudCheckResult.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FraudCheckResult { + /** + * The fraud score generated by the risk check. + */ + 'accountScore': number; + /** + * The ID of the risk check. + */ + 'checkId': number; + /** + * The name of the risk check. + */ + 'name': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "checkId", + "baseName": "checkId", + "type": "number" + }, + { + "name": "name", + "baseName": "name", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FraudCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fraudResult.ts b/src/typings/payouts/fraudResult.ts new file mode 100644 index 0000000..00d3b44 --- /dev/null +++ b/src/typings/payouts/fraudResult.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FraudCheckResult } from './fraudCheckResult'; + +export class FraudResult { + /** + * The total fraud score generated by the risk checks. + */ + 'accountScore': number; + /** + * The result of the individual risk checks. + */ + 'results'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountScore", + "baseName": "accountScore", + "type": "number" + }, + { + "name": "results", + "baseName": "results", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return FraudResult.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/fundSource.ts b/src/typings/payouts/fundSource.ts new file mode 100644 index 0000000..0612f0b --- /dev/null +++ b/src/typings/payouts/fundSource.ts @@ -0,0 +1,69 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Card } from './card'; +import { Name } from './name'; + +export class FundSource { + /** + * A map of name-value pairs for passing additional or industry-specific data. + */ + 'additionalData'?: { [key: string]: string; }; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * Email address of the person. + */ + 'shopperEmail'?: string; + 'shopperName'?: Name; + /** + * Phone number of the person + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FundSource.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/models.ts b/src/typings/payouts/models.ts new file mode 100644 index 0000000..27cfea0 --- /dev/null +++ b/src/typings/payouts/models.ts @@ -0,0 +1,238 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './address'; +export * from './amount'; +export * from './bankAccount'; +export * from './card'; +export * from './fraudCheckResult'; +export * from './fraudResult'; +export * from './fundSource'; +export * from './modifyRequest'; +export * from './modifyResponse'; +export * from './name'; +export * from './payoutRequest'; +export * from './payoutResponse'; +export * from './recurring'; +export * from './responseAdditionalData3DSecure'; +export * from './responseAdditionalDataBillingAddress'; +export * from './responseAdditionalDataCard'; +export * from './responseAdditionalDataCommon'; +export * from './responseAdditionalDataInstallments'; +export * from './responseAdditionalDataNetworkTokens'; +export * from './responseAdditionalDataOpi'; +export * from './responseAdditionalDataSepa'; +export * from './serviceError'; +export * from './storeDetailAndSubmitRequest'; +export * from './storeDetailAndSubmitResponse'; +export * from './storeDetailRequest'; +export * from './storeDetailResponse'; +export * from './submitRequest'; +export * from './submitResponse'; + + +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { FraudCheckResult } from './fraudCheckResult'; +import { FraudResult } from './fraudResult'; +import { FundSource } from './fundSource'; +import { ModifyRequest } from './modifyRequest'; +import { ModifyResponse } from './modifyResponse'; +import { Name } from './name'; +import { PayoutRequest } from './payoutRequest'; +import { PayoutResponse } from './payoutResponse'; +import { Recurring } from './recurring'; +import { ResponseAdditionalData3DSecure } from './responseAdditionalData3DSecure'; +import { ResponseAdditionalDataBillingAddress } from './responseAdditionalDataBillingAddress'; +import { ResponseAdditionalDataCard } from './responseAdditionalDataCard'; +import { ResponseAdditionalDataCommon } from './responseAdditionalDataCommon'; +import { ResponseAdditionalDataInstallments } from './responseAdditionalDataInstallments'; +import { ResponseAdditionalDataNetworkTokens } from './responseAdditionalDataNetworkTokens'; +import { ResponseAdditionalDataOpi } from './responseAdditionalDataOpi'; +import { ResponseAdditionalDataSepa } from './responseAdditionalDataSepa'; +import { ServiceError } from './serviceError'; +import { StoreDetailAndSubmitRequest } from './storeDetailAndSubmitRequest'; +import { StoreDetailAndSubmitResponse } from './storeDetailAndSubmitResponse'; +import { StoreDetailRequest } from './storeDetailRequest'; +import { StoreDetailResponse } from './storeDetailResponse'; +import { SubmitRequest } from './submitRequest'; +import { SubmitResponse } from './submitResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "PayoutRequest.ShopperInteractionEnum": PayoutRequest.ShopperInteractionEnum, + "PayoutResponse.ResultCodeEnum": PayoutResponse.ResultCodeEnum, + "Recurring.ContractEnum": Recurring.ContractEnum, + "Recurring.TokenServiceEnum": Recurring.TokenServiceEnum, + "ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum, + "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum": ResponseAdditionalDataCommon.MerchantAdviceCodeEnum, + "ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum, + "StoreDetailAndSubmitRequest.EntityTypeEnum": StoreDetailAndSubmitRequest.EntityTypeEnum, + "StoreDetailRequest.EntityTypeEnum": StoreDetailRequest.EntityTypeEnum, + "SubmitRequest.EntityTypeEnum": SubmitRequest.EntityTypeEnum, +} + +let typeMap: {[index: string]: any} = { + "Address": Address, + "Amount": Amount, + "BankAccount": BankAccount, + "Card": Card, + "FraudCheckResult": FraudCheckResult, + "FraudResult": FraudResult, + "FundSource": FundSource, + "ModifyRequest": ModifyRequest, + "ModifyResponse": ModifyResponse, + "Name": Name, + "PayoutRequest": PayoutRequest, + "PayoutResponse": PayoutResponse, + "Recurring": Recurring, + "ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure, + "ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress, + "ResponseAdditionalDataCard": ResponseAdditionalDataCard, + "ResponseAdditionalDataCommon": ResponseAdditionalDataCommon, + "ResponseAdditionalDataInstallments": ResponseAdditionalDataInstallments, + "ResponseAdditionalDataNetworkTokens": ResponseAdditionalDataNetworkTokens, + "ResponseAdditionalDataOpi": ResponseAdditionalDataOpi, + "ResponseAdditionalDataSepa": ResponseAdditionalDataSepa, + "ServiceError": ServiceError, + "StoreDetailAndSubmitRequest": StoreDetailAndSubmitRequest, + "StoreDetailAndSubmitResponse": StoreDetailAndSubmitResponse, + "StoreDetailRequest": StoreDetailRequest, + "StoreDetailResponse": StoreDetailResponse, + "SubmitRequest": SubmitRequest, + "SubmitResponse": SubmitResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/payouts/modifyRequest.ts b/src/typings/payouts/modifyRequest.ts new file mode 100644 index 0000000..7421bbe --- /dev/null +++ b/src/typings/payouts/modifyRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModifyRequest { + /** + * This field contains additional data, which may be required for a particular payout request. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The PSP reference received in the `/submitThirdParty` response. + */ + 'originalReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyRequest.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/modifyResponse.ts b/src/typings/payouts/modifyResponse.ts new file mode 100644 index 0000000..b7f1a3e --- /dev/null +++ b/src/typings/payouts/modifyResponse.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ModifyResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * Adyen\'s 16-character string reference associated with the transaction. This value is globally unique; quote it when communicating with us about this response. + */ + 'pspReference': string; + /** + * The response: * In case of success, it is either `payout-confirm-received` or `payout-decline-received`. * In case of an error, an informational message is returned. + */ + 'response': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "response", + "baseName": "response", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ModifyResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/name.ts b/src/typings/payouts/name.ts new file mode 100644 index 0000000..e0ca497 --- /dev/null +++ b/src/typings/payouts/name.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Name { + /** + * The first name. + */ + 'firstName': string; + /** + * The last name. + */ + 'lastName': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "firstName", + "baseName": "firstName", + "type": "string" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Name.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/payoutRequest.ts b/src/typings/payouts/payoutRequest.ts new file mode 100644 index 0000000..fe70aa9 --- /dev/null +++ b/src/typings/payouts/payoutRequest.ts @@ -0,0 +1,143 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; +import { Card } from './card'; +import { FundSource } from './fundSource'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class PayoutRequest { + 'amount': Amount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + 'fundSource'?: FundSource; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + 'recurring'?: Recurring; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. + */ + 'selectedRecurringDetailReference'?: string; + /** + * The shopper\'s email address. We recommend that you provide this data, as it is used in velocity fraud checks. > For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations. + */ + 'shopperEmail'?: string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: PayoutRequest.ShopperInteractionEnum; + 'shopperName'?: Name; + /** + * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. + */ + 'shopperReference'?: string; + /** + * The shopper\'s telephone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "fundSource", + "baseName": "fundSource", + "type": "FundSource" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "PayoutRequest.ShopperInteractionEnum" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutRequest.attributeTypeMap; + } +} + +export namespace PayoutRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/payouts/payoutResponse.ts b/src/typings/payouts/payoutResponse.ts new file mode 100644 index 0000000..38f3eb8 --- /dev/null +++ b/src/typings/payouts/payoutResponse.ts @@ -0,0 +1,132 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { FraudResult } from './fraudResult'; + +export class PayoutResponse { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'dccAmount'?: Amount; + /** + * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). + */ + 'dccSignature'?: string; + 'fraudResult'?: FraudResult; + /** + * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. + */ + 'issuerUrl'?: string; + /** + * The payment session. + */ + 'md'?: string; + /** + * The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure). + */ + 'paRequest'?: string; + /** + * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the payment\'s authorisation is refused or an error occurs during authorisation, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons). + */ + 'refusalReason'?: string; + /** + * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. + */ + 'resultCode'?: PayoutResponse.ResultCodeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "dccAmount", + "baseName": "dccAmount", + "type": "Amount" + }, + { + "name": "dccSignature", + "baseName": "dccSignature", + "type": "string" + }, + { + "name": "fraudResult", + "baseName": "fraudResult", + "type": "FraudResult" + }, + { + "name": "issuerUrl", + "baseName": "issuerUrl", + "type": "string" + }, + { + "name": "md", + "baseName": "md", + "type": "string" + }, + { + "name": "paRequest", + "baseName": "paRequest", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "PayoutResponse.ResultCodeEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutResponse.attributeTypeMap; + } +} + +export namespace PayoutResponse { + export enum ResultCodeEnum { + AuthenticationFinished = 'AuthenticationFinished', + Authorised = 'Authorised', + Cancelled = 'Cancelled', + ChallengeShopper = 'ChallengeShopper', + Error = 'Error', + IdentifyShopper = 'IdentifyShopper', + Pending = 'Pending', + PresentToShopper = 'PresentToShopper', + Received = 'Received', + RedirectShopper = 'RedirectShopper', + Refused = 'Refused', + Success = 'Success' + } +} diff --git a/src/typings/payouts/recurring.ts b/src/typings/payouts/recurring.ts new file mode 100644 index 0000000..1d80454 --- /dev/null +++ b/src/typings/payouts/recurring.ts @@ -0,0 +1,77 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Recurring { + /** + * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). + */ + 'contract'?: Recurring.ContractEnum; + /** + * A descriptive name for this detail. + */ + 'recurringDetailName'?: string; + /** + * Date after which no further authorisations shall be performed. Only for 3D Secure 2. + */ + 'recurringExpiry'?: Date; + /** + * Minimum number of days between authorisations. Only for 3D Secure 2. + */ + 'recurringFrequency'?: string; + /** + * The name of the token service. + */ + 'tokenService'?: Recurring.TokenServiceEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "contract", + "baseName": "contract", + "type": "Recurring.ContractEnum" + }, + { + "name": "recurringDetailName", + "baseName": "recurringDetailName", + "type": "string" + }, + { + "name": "recurringExpiry", + "baseName": "recurringExpiry", + "type": "Date" + }, + { + "name": "recurringFrequency", + "baseName": "recurringFrequency", + "type": "string" + }, + { + "name": "tokenService", + "baseName": "tokenService", + "type": "Recurring.TokenServiceEnum" + } ]; + + static getAttributeTypeMap() { + return Recurring.attributeTypeMap; + } +} + +export namespace Recurring { + export enum ContractEnum { + Oneclick = 'ONECLICK', + Recurring = 'RECURRING', + Payout = 'PAYOUT' + } + export enum TokenServiceEnum { + Visatokenservice = 'VISATOKENSERVICE', + Mctokenservice = 'MCTOKENSERVICE' + } +} diff --git a/src/typings/payouts/responseAdditionalData3DSecure.ts b/src/typings/payouts/responseAdditionalData3DSecure.ts new file mode 100644 index 0000000..0c4bd7d --- /dev/null +++ b/src/typings/payouts/responseAdditionalData3DSecure.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalData3DSecure { + /** + * Information provided by the issuer to the cardholder. If this field is present, you need to display this information to the cardholder. + */ + 'cardHolderInfo'?: string; + /** + * The Cardholder Authentication Verification Value (CAVV) for the 3D Secure authentication session, as a Base64-encoded 20-byte array. + */ + 'cavv'?: string; + /** + * The CAVV algorithm used. + */ + 'cavvAlgorithm'?: string; + /** + * Shows the [exemption type](https://docs.adyen.com/payments-fundamentals/psd2-sca-compliance-and-implementation-guide#specifypreferenceinyourapirequest) that Adyen requested for the payment. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** + */ + 'scaExemptionRequested'?: string; + /** + * Indicates whether a card is enrolled for 3D Secure 2. + */ + 'threeds2CardEnrolled'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardHolderInfo", + "baseName": "cardHolderInfo", + "type": "string" + }, + { + "name": "cavv", + "baseName": "cavv", + "type": "string" + }, + { + "name": "cavvAlgorithm", + "baseName": "cavvAlgorithm", + "type": "string" + }, + { + "name": "scaExemptionRequested", + "baseName": "scaExemptionRequested", + "type": "string" + }, + { + "name": "threeds2CardEnrolled", + "baseName": "threeds2.cardEnrolled", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalData3DSecure.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataBillingAddress.ts b/src/typings/payouts/responseAdditionalDataBillingAddress.ts new file mode 100644 index 0000000..d8eeff5 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataBillingAddress.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataBillingAddress { + /** + * The billing address city passed in the payment request. + */ + 'billingAddressCity'?: string; + /** + * The billing address country passed in the payment request. Example: NL + */ + 'billingAddressCountry'?: string; + /** + * The billing address house number or name passed in the payment request. + */ + 'billingAddressHouseNumberOrName'?: string; + /** + * The billing address postal code passed in the payment request. Example: 1011 DJ + */ + 'billingAddressPostalCode'?: string; + /** + * The billing address state or province passed in the payment request. Example: NH + */ + 'billingAddressStateOrProvince'?: string; + /** + * The billing address street passed in the payment request. + */ + 'billingAddressStreet'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "billingAddressCity", + "baseName": "billingAddress.city", + "type": "string" + }, + { + "name": "billingAddressCountry", + "baseName": "billingAddress.country", + "type": "string" + }, + { + "name": "billingAddressHouseNumberOrName", + "baseName": "billingAddress.houseNumberOrName", + "type": "string" + }, + { + "name": "billingAddressPostalCode", + "baseName": "billingAddress.postalCode", + "type": "string" + }, + { + "name": "billingAddressStateOrProvince", + "baseName": "billingAddress.stateOrProvince", + "type": "string" + }, + { + "name": "billingAddressStreet", + "baseName": "billingAddress.street", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataBillingAddress.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataCard.ts b/src/typings/payouts/responseAdditionalDataCard.ts new file mode 100644 index 0000000..b61f91e --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataCard.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataCard { + /** + * The first six digits of the card number. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with a six-digit BIN. Example: 521234 + */ + 'cardBin'?: string; + /** + * The cardholder name passed in the payment request. + */ + 'cardHolderName'?: string; + /** + * The bank or the financial institution granting lines of credit through card association branded payment cards. This information can be included when available. + */ + 'cardIssuingBank'?: string; + /** + * The country where the card was issued. Example: US + */ + 'cardIssuingCountry'?: string; + /** + * The currency in which the card is issued, if this information is available. Provided as the currency code or currency number from the ISO-4217 standard. Example: USD + */ + 'cardIssuingCurrency'?: string; + /** + * The card payment method used for the transaction. Example: amex + */ + 'cardPaymentMethod'?: string; + /** + * The last four digits of a card number. > Returned only in case of a card payment. + */ + 'cardSummary'?: string; + /** + * The first eight digits of the card number. Only returned if the card number is 16 digits or more. This is the [Bank Identification Number (BIN)](https://docs.adyen.com/get-started-with-adyen/payment-glossary#bank-identification-number-bin) for card numbers with an eight-digit BIN. Example: 52123423 + */ + 'issuerBin'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardBin", + "baseName": "cardBin", + "type": "string" + }, + { + "name": "cardHolderName", + "baseName": "cardHolderName", + "type": "string" + }, + { + "name": "cardIssuingBank", + "baseName": "cardIssuingBank", + "type": "string" + }, + { + "name": "cardIssuingCountry", + "baseName": "cardIssuingCountry", + "type": "string" + }, + { + "name": "cardIssuingCurrency", + "baseName": "cardIssuingCurrency", + "type": "string" + }, + { + "name": "cardPaymentMethod", + "baseName": "cardPaymentMethod", + "type": "string" + }, + { + "name": "cardSummary", + "baseName": "cardSummary", + "type": "string" + }, + { + "name": "issuerBin", + "baseName": "issuerBin", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCard.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataCommon.ts b/src/typings/payouts/responseAdditionalDataCommon.ts new file mode 100644 index 0000000..5e1e876 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataCommon.ts @@ -0,0 +1,570 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataCommon { + /** + * The name of the Adyen acquirer account. Example: PayPalSandbox_TestAcquirer > Only relevant for PayPal transactions. + */ + 'acquirerAccountCode'?: string; + /** + * The name of the acquirer processing the payment request. Example: TestPmmAcquirer + */ + 'acquirerCode'?: string; + /** + * The reference number that can be used for reconciliation in case a non-Adyen acquirer is used for settlement. Example: 7C9N3FNBKT9 + */ + 'acquirerReference'?: string; + /** + * The Adyen alias of the card. Example: H167852639363479 + */ + 'alias'?: string; + /** + * The type of the card alias. Example: Default + */ + 'aliasType'?: string; + /** + * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. Example: 58747 + */ + 'authCode'?: string; + /** + * Merchant ID known by the acquirer. + */ + 'authorisationMid'?: string; + /** + * The currency of the authorised amount, as a three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountCurrency'?: string; + /** + * Value of the amount authorised. This amount is represented in minor units according to the [following table](https://docs.adyen.com/development-resources/currency-codes). + */ + 'authorisedAmountValue'?: string; + /** + * The AVS result code of the payment, which provides information about the outcome of the AVS check. For possible values, see [AVS](https://docs.adyen.com/risk-management/configure-standard-risk-rules/consistency-rules#billing-address-does-not-match-cardholder-address-avs). + */ + 'avsResult'?: string; + /** + * Raw AVS result received from the acquirer, where available. Example: D + */ + 'avsResultRaw'?: string; + /** + * BIC of a bank account. Example: TESTNL01 > Only relevant for SEPA Direct Debit transactions. + */ + 'bic'?: string; + /** + * Includes the co-branded card information. + */ + 'coBrandedWith'?: string; + /** + * The result of CVC verification. + */ + 'cvcResult'?: string; + /** + * The raw result of CVC verification. + */ + 'cvcResultRaw'?: string; + /** + * Supported for 3D Secure 2. The unique transaction identifier assigned by the DS to identify a single transaction. + */ + 'dsTransID'?: string; + /** + * The Electronic Commerce Indicator returned from the schemes for the 3DS payment session. Example: 02 + */ + 'eci'?: string; + /** + * The expiry date on the card. Example: 6/2016 > Returned only in case of a card payment. + */ + 'expiryDate'?: string; + /** + * The currency of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. Example: EUR + */ + 'extraCostsCurrency'?: string; + /** + * The value of the extra amount charged due to additional amounts set in the skin used in the HPP payment request. The amount is in minor units. + */ + 'extraCostsValue'?: string; + /** + * The fraud score due to a particular fraud check. The fraud check name is found in the key of the key-value pair. + */ + 'fraudCheckItemNrFraudCheckname'?: string; + /** + * Indicates if the payment is sent to manual review. + */ + 'fraudManualReview'?: string; + /** + * The fraud result properties of the payment. + */ + 'fraudResultType'?: ResponseAdditionalDataCommon.FraudResultTypeEnum; + /** + * Information regarding the funding type of the card. The possible return values are: * CHARGE * CREDIT * DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE * DEFFERED_DEBIT > This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. For receiving this field in the notification, enable **Include Funding Source** in **Notifications** > **Additional settings**. + */ + 'fundingSource'?: string; + /** + * Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if payoutEligible is \"Y\" or \"D\". + */ + 'fundsAvailability'?: string; + /** + * Provides the more granular indication of why a transaction was refused. When a transaction fails with either \"Refused\", \"Restricted Card\", \"Transaction Not Permitted\", \"Not supported\" or \"DeclinedNon Generic\" refusalReason from the issuer, Adyen cross references its PSP-wide data for extra insight into the refusal reason. If an inferred refusal reason is available, the `inferredRefusalReason`, field is populated and the `refusalReason`, is set to \"Not Supported\". Possible values: * 3D Secure Mandated * Closed Account * ContAuth Not Supported * CVC Mandated * Ecommerce Not Allowed * Crossborder Not Supported * Card Updated * Low Authrate Bin * Non-reloadable prepaid card + */ + 'inferredRefusalReason'?: string; + /** + * Indicates if the card is used for business purposes only. + */ + 'isCardCommercial'?: string; + /** + * The issuing country of the card based on the BIN list that Adyen maintains. Example: JP + */ + 'issuerCountry'?: string; + /** + * A Boolean value indicating whether a liability shift was offered for this payment. + */ + 'liabilityShift'?: string; + /** + * The `mcBankNetReferenceNumber`, is a minimum of six characters and a maximum of nine characters long. > Contact Support Team to enable this field. + */ + 'mcBankNetReferenceNumber'?: string; + /** + * A code and message that issuers send to provide more details about the payment. This field is especially useful when implementing a retry logic for declined payments. Possible values: * **01: New account information available** * **02: Cannot approve at this time, try again later** * **03: Do not try again** * **04: Token requirements not fulfilled for this token type** * **21: Payment Cancellation** (only for Mastercard) + */ + 'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum; + /** + * The reference provided for the transaction. + */ + 'merchantReference'?: string; + /** + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + */ + 'networkTxReference'?: string; + /** + * The owner name of a bank account. Only relevant for SEPA Direct Debit transactions. + */ + 'ownerName'?: string; + /** + * The Payment Account Reference (PAR) value links a network token with the underlying primary account number (PAN). The PAR value consists of 29 uppercase alphanumeric characters. + */ + 'paymentAccountReference'?: string; + /** + * The payment method used in the transaction. + */ + 'paymentMethod'?: string; + /** + * The Adyen sub-variant of the payment method used for the payment request. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). Example: mcpro + */ + 'paymentMethodVariant'?: string; + /** + * Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) + */ + 'payoutEligible'?: string; + /** + * The response code from the Real Time Account Updater service. Possible return values are: * CardChanged * CardExpiryChanged * CloseAccount * ContactCardAccountHolder + */ + 'realtimeAccountUpdaterStatus'?: string; + /** + * Message to be displayed on the terminal. + */ + 'receiptFreeText'?: string; + /** + * The recurring contract types applicable to the transaction. + */ + 'recurringContractTypes'?: string; + /** + * The `pspReference`, of the first recurring payment that created the recurring detail. This functionality requires additional configuration on Adyen\'s end. To enable it, contact the Support Team. + */ + 'recurringFirstPspReference'?: string; + /** + * The reference that uniquely identifies the recurring transaction. + */ + 'recurringRecurringDetailReference'?: string; + /** + * The provided reference of the shopper for a recurring transaction. + */ + 'recurringShopperReference'?: string; + /** + * The processing model used for the recurring transaction. + */ + 'recurringProcessingModel'?: ResponseAdditionalDataCommon.RecurringProcessingModelEnum; + /** + * If the payment is referred, this field is set to true. This field is unavailable if the payment is referred and is usually not returned with ecommerce transactions. Example: true + */ + 'referred'?: string; + /** + * Raw refusal reason received from the acquirer, where available. Example: AUTHORISED + */ + 'refusalReasonRaw'?: string; + /** + * The amount of the payment request. + */ + 'requestAmount'?: string; + /** + * The currency of the payment request. + */ + 'requestCurrencyCode'?: string; + /** + * The shopper interaction type of the payment request. Example: Ecommerce + */ + 'shopperInteraction'?: string; + /** + * The shopperReference passed in the payment request. Example: AdyenTestShopperXX + */ + 'shopperReference'?: string; + /** + * The terminal ID used in a point-of-sale payment. Example: 06022622 + */ + 'terminalId'?: string; + /** + * A Boolean value indicating whether 3DS authentication was completed on this payment. Example: true + */ + 'threeDAuthenticated'?: string; + /** + * The raw 3DS authentication result from the card issuer. Example: N + */ + 'threeDAuthenticatedResponse'?: string; + /** + * A Boolean value indicating whether 3DS was offered for this payment. Example: true + */ + 'threeDOffered'?: string; + /** + * The raw enrollment result from the 3DS directory services of the card schemes. Example: Y + */ + 'threeDOfferedResponse'?: string; + /** + * The 3D Secure 2 version. + */ + 'threeDSVersion'?: string; + /** + * The `visaTransactionId`, has a fixed length of 15 numeric characters. > Contact Support Team to enable this field. + */ + 'visaTransactionId'?: string; + /** + * The 3DS transaction ID of the 3DS session sent in notifications. The value is Base64-encoded and is returned for transactions with directoryResponse \'N\' or \'Y\'. If you want to submit the xid in your 3D Secure 1 request, use the `mpiData.xid`, field. Example: ODgxNDc2MDg2MDExODk5MAAAAAA= + */ + 'xid'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "acquirerAccountCode", + "baseName": "acquirerAccountCode", + "type": "string" + }, + { + "name": "acquirerCode", + "baseName": "acquirerCode", + "type": "string" + }, + { + "name": "acquirerReference", + "baseName": "acquirerReference", + "type": "string" + }, + { + "name": "alias", + "baseName": "alias", + "type": "string" + }, + { + "name": "aliasType", + "baseName": "aliasType", + "type": "string" + }, + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "authorisationMid", + "baseName": "authorisationMid", + "type": "string" + }, + { + "name": "authorisedAmountCurrency", + "baseName": "authorisedAmountCurrency", + "type": "string" + }, + { + "name": "authorisedAmountValue", + "baseName": "authorisedAmountValue", + "type": "string" + }, + { + "name": "avsResult", + "baseName": "avsResult", + "type": "string" + }, + { + "name": "avsResultRaw", + "baseName": "avsResultRaw", + "type": "string" + }, + { + "name": "bic", + "baseName": "bic", + "type": "string" + }, + { + "name": "coBrandedWith", + "baseName": "coBrandedWith", + "type": "string" + }, + { + "name": "cvcResult", + "baseName": "cvcResult", + "type": "string" + }, + { + "name": "cvcResultRaw", + "baseName": "cvcResultRaw", + "type": "string" + }, + { + "name": "dsTransID", + "baseName": "dsTransID", + "type": "string" + }, + { + "name": "eci", + "baseName": "eci", + "type": "string" + }, + { + "name": "expiryDate", + "baseName": "expiryDate", + "type": "string" + }, + { + "name": "extraCostsCurrency", + "baseName": "extraCostsCurrency", + "type": "string" + }, + { + "name": "extraCostsValue", + "baseName": "extraCostsValue", + "type": "string" + }, + { + "name": "fraudCheckItemNrFraudCheckname", + "baseName": "fraudCheck-[itemNr]-[FraudCheckname]", + "type": "string" + }, + { + "name": "fraudManualReview", + "baseName": "fraudManualReview", + "type": "string" + }, + { + "name": "fraudResultType", + "baseName": "fraudResultType", + "type": "ResponseAdditionalDataCommon.FraudResultTypeEnum" + }, + { + "name": "fundingSource", + "baseName": "fundingSource", + "type": "string" + }, + { + "name": "fundsAvailability", + "baseName": "fundsAvailability", + "type": "string" + }, + { + "name": "inferredRefusalReason", + "baseName": "inferredRefusalReason", + "type": "string" + }, + { + "name": "isCardCommercial", + "baseName": "isCardCommercial", + "type": "string" + }, + { + "name": "issuerCountry", + "baseName": "issuerCountry", + "type": "string" + }, + { + "name": "liabilityShift", + "baseName": "liabilityShift", + "type": "string" + }, + { + "name": "mcBankNetReferenceNumber", + "baseName": "mcBankNetReferenceNumber", + "type": "string" + }, + { + "name": "merchantAdviceCode", + "baseName": "merchantAdviceCode", + "type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "paymentAccountReference", + "baseName": "paymentAccountReference", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "string" + }, + { + "name": "paymentMethodVariant", + "baseName": "paymentMethodVariant", + "type": "string" + }, + { + "name": "payoutEligible", + "baseName": "payoutEligible", + "type": "string" + }, + { + "name": "realtimeAccountUpdaterStatus", + "baseName": "realtimeAccountUpdaterStatus", + "type": "string" + }, + { + "name": "receiptFreeText", + "baseName": "receiptFreeText", + "type": "string" + }, + { + "name": "recurringContractTypes", + "baseName": "recurring.contractTypes", + "type": "string" + }, + { + "name": "recurringFirstPspReference", + "baseName": "recurring.firstPspReference", + "type": "string" + }, + { + "name": "recurringRecurringDetailReference", + "baseName": "recurring.recurringDetailReference", + "type": "string" + }, + { + "name": "recurringShopperReference", + "baseName": "recurring.shopperReference", + "type": "string" + }, + { + "name": "recurringProcessingModel", + "baseName": "recurringProcessingModel", + "type": "ResponseAdditionalDataCommon.RecurringProcessingModelEnum" + }, + { + "name": "referred", + "baseName": "referred", + "type": "string" + }, + { + "name": "refusalReasonRaw", + "baseName": "refusalReasonRaw", + "type": "string" + }, + { + "name": "requestAmount", + "baseName": "requestAmount", + "type": "string" + }, + { + "name": "requestCurrencyCode", + "baseName": "requestCurrencyCode", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "string" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "terminalId", + "baseName": "terminalId", + "type": "string" + }, + { + "name": "threeDAuthenticated", + "baseName": "threeDAuthenticated", + "type": "string" + }, + { + "name": "threeDAuthenticatedResponse", + "baseName": "threeDAuthenticatedResponse", + "type": "string" + }, + { + "name": "threeDOffered", + "baseName": "threeDOffered", + "type": "string" + }, + { + "name": "threeDOfferedResponse", + "baseName": "threeDOfferedResponse", + "type": "string" + }, + { + "name": "threeDSVersion", + "baseName": "threeDSVersion", + "type": "string" + }, + { + "name": "visaTransactionId", + "baseName": "visaTransactionId", + "type": "string" + }, + { + "name": "xid", + "baseName": "xid", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataCommon.attributeTypeMap; + } +} + +export namespace ResponseAdditionalDataCommon { + export enum FraudResultTypeEnum { + Green = 'GREEN', + Fraud = 'FRAUD' + } + export enum MerchantAdviceCodeEnum { + _01NewAccountInformationAvailable = '01: New account information available', + _02CannotApproveAtThisTimeTryAgainLater = '02: Cannot approve at this time, try again later', + _03DoNotTryAgain = '03: Do not try again', + _04TokenRequirementsNotFulfilledForThisTokenType = '04: Token requirements not fulfilled for this token type', + _21PaymentCancellation = '21: Payment Cancellation' + } + export enum RecurringProcessingModelEnum { + CardOnFile = 'CardOnFile', + Subscription = 'Subscription', + UnscheduledCardOnFile = 'UnscheduledCardOnFile' + } +} diff --git a/src/typings/payouts/responseAdditionalDataInstallments.ts b/src/typings/payouts/responseAdditionalDataInstallments.ts new file mode 100644 index 0000000..9f4163c --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataInstallments.ts @@ -0,0 +1,129 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataInstallments { + /** + * Type of installment. The value of `installmentType` should be **IssuerFinanced**. + */ + 'installmentPaymentDataInstallmentType'?: string; + /** + * Annual interest rate. + */ + 'installmentPaymentDataOptionItemNrAnnualPercentageRate'?: string; + /** + * First Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrFirstInstallmentAmount'?: string; + /** + * Installment fee amount in minor units. + */ + 'installmentPaymentDataOptionItemNrInstallmentFee'?: string; + /** + * Interest rate for the installment period. + */ + 'installmentPaymentDataOptionItemNrInterestRate'?: string; + /** + * Maximum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMaximumNumberOfInstallments'?: string; + /** + * Minimum number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrMinimumNumberOfInstallments'?: string; + /** + * Total number of installments possible for this payment. + */ + 'installmentPaymentDataOptionItemNrNumberOfInstallments'?: string; + /** + * Subsequent Installment Amount in minor units. + */ + 'installmentPaymentDataOptionItemNrSubsequentInstallmentAmount'?: string; + /** + * Total amount in minor units. + */ + 'installmentPaymentDataOptionItemNrTotalAmountDue'?: string; + /** + * Possible values: * PayInInstallmentsOnly * PayInFullOnly * PayInFullOrInstallments + */ + 'installmentPaymentDataPaymentOptions'?: string; + /** + * The number of installments that the payment amount should be charged with. Example: 5 > Only relevant for card payments in countries that support installments. + */ + 'installmentsValue'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "installmentPaymentDataInstallmentType", + "baseName": "installmentPaymentData.installmentType", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrAnnualPercentageRate", + "baseName": "installmentPaymentData.option[itemNr].annualPercentageRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrFirstInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].firstInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInstallmentFee", + "baseName": "installmentPaymentData.option[itemNr].installmentFee", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrInterestRate", + "baseName": "installmentPaymentData.option[itemNr].interestRate", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMaximumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].maximumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrMinimumNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].minimumNumberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrNumberOfInstallments", + "baseName": "installmentPaymentData.option[itemNr].numberOfInstallments", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrSubsequentInstallmentAmount", + "baseName": "installmentPaymentData.option[itemNr].subsequentInstallmentAmount", + "type": "string" + }, + { + "name": "installmentPaymentDataOptionItemNrTotalAmountDue", + "baseName": "installmentPaymentData.option[itemNr].totalAmountDue", + "type": "string" + }, + { + "name": "installmentPaymentDataPaymentOptions", + "baseName": "installmentPaymentData.paymentOptions", + "type": "string" + }, + { + "name": "installmentsValue", + "baseName": "installments.value", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataInstallments.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataNetworkTokens.ts b/src/typings/payouts/responseAdditionalDataNetworkTokens.ts new file mode 100644 index 0000000..b016c90 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataNetworkTokens.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataNetworkTokens { + /** + * Indicates whether a network token is available for the specified card. + */ + 'networkTokenAvailable'?: string; + /** + * The Bank Identification Number of a tokenized card, which is the first six digits of a card number. + */ + 'networkTokenBin'?: string; + /** + * The last four digits of a network token. + */ + 'networkTokenTokenSummary'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokenAvailable", + "baseName": "networkToken.available", + "type": "string" + }, + { + "name": "networkTokenBin", + "baseName": "networkToken.bin", + "type": "string" + }, + { + "name": "networkTokenTokenSummary", + "baseName": "networkToken.tokenSummary", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataNetworkTokens.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataOpi.ts b/src/typings/payouts/responseAdditionalDataOpi.ts new file mode 100644 index 0000000..5ab76d3 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataOpi.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataOpi { + /** + * Returned in the response if you included `opi.includeTransToken: true` in an ecommerce payment request. This contains an Oracle Payment Interface token that you can store in your Oracle Opera database to identify tokenized ecommerce transactions. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce). + */ + 'opiTransToken'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "opiTransToken", + "baseName": "opi.transToken", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataOpi.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/responseAdditionalDataSepa.ts b/src/typings/payouts/responseAdditionalDataSepa.ts new file mode 100644 index 0000000..b7cabf4 --- /dev/null +++ b/src/typings/payouts/responseAdditionalDataSepa.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ResponseAdditionalDataSepa { + /** + * The transaction signature date. Format: yyyy-MM-dd + */ + 'sepadirectdebitDateOfSignature'?: string; + /** + * Its value corresponds to the pspReference value of the transaction. + */ + 'sepadirectdebitMandateId'?: string; + /** + * This field can take one of the following values: * OneOff: (OOFF) Direct debit instruction to initiate exactly one direct debit transaction. * First: (FRST) Initial/first collection in a series of direct debit instructions. * Recurring: (RCUR) Direct debit instruction to carry out regular direct debit transactions initiated by the creditor. * Final: (FNAL) Last/final collection in a series of direct debit instructions. Example: OOFF + */ + 'sepadirectdebitSequenceType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "sepadirectdebitDateOfSignature", + "baseName": "sepadirectdebit.dateOfSignature", + "type": "string" + }, + { + "name": "sepadirectdebitMandateId", + "baseName": "sepadirectdebit.mandateId", + "type": "string" + }, + { + "name": "sepadirectdebitSequenceType", + "baseName": "sepadirectdebit.sequenceType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ResponseAdditionalDataSepa.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/serviceError.ts b/src/typings/payouts/serviceError.ts new file mode 100644 index 0000000..551936c --- /dev/null +++ b/src/typings/payouts/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/storeDetailAndSubmitRequest.ts b/src/typings/payouts/storeDetailAndSubmitRequest.ts new file mode 100644 index 0000000..a15614e --- /dev/null +++ b/src/typings/payouts/storeDetailAndSubmitRequest.ts @@ -0,0 +1,186 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class StoreDetailAndSubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailAndSubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + 'recurring': Recurring; + /** + * The merchant reference for this payment. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + */ + 'reference': string; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The shopper\'s phone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailAndSubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitRequest.attributeTypeMap; + } +} + +export namespace StoreDetailAndSubmitRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/storeDetailAndSubmitResponse.ts b/src/typings/payouts/storeDetailAndSubmitResponse.ts new file mode 100644 index 0000000..91a6533 --- /dev/null +++ b/src/typings/payouts/storeDetailAndSubmitResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoreDetailAndSubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; + /** + * The response: * In case of success is payout-submit-received. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailAndSubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/storeDetailRequest.ts b/src/typings/payouts/storeDetailRequest.ts new file mode 100644 index 0000000..d070c8b --- /dev/null +++ b/src/typings/payouts/storeDetailRequest.ts @@ -0,0 +1,161 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class StoreDetailRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + 'bank'?: BankAccount; + 'billingAddress'?: Address; + 'card'?: Card; + /** + * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. + */ + 'dateOfBirth': Date; + /** + * The type of the entity the payout is processed for. + */ + 'entityType': StoreDetailRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). + */ + 'nationality': string; + 'recurring': Recurring; + /** + * The name of the brand to make a payout to. For Paysafecard it must be set to `paysafecard`. + */ + 'selectedBrand'?: string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payment transaction. + */ + 'shopperReference': string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + /** + * The shopper\'s phone number. + */ + 'telephoneNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "bank", + "baseName": "bank", + "type": "BankAccount" + }, + { + "name": "billingAddress", + "baseName": "billingAddress", + "type": "Address" + }, + { + "name": "card", + "baseName": "card", + "type": "Card" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "StoreDetailRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "selectedBrand", + "baseName": "selectedBrand", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + }, + { + "name": "telephoneNumber", + "baseName": "telephoneNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailRequest.attributeTypeMap; + } +} + +export namespace StoreDetailRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/storeDetailResponse.ts b/src/typings/payouts/storeDetailResponse.ts new file mode 100644 index 0000000..6fabe95 --- /dev/null +++ b/src/typings/payouts/storeDetailResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoreDetailResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * The token which you can use later on for submitting the payout. + */ + 'recurringDetailReference': string; + /** + * The result code of the transaction. `Success` indicates that the details were stored successfully. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoreDetailResponse.attributeTypeMap; + } +} + diff --git a/src/typings/payouts/submitRequest.ts b/src/typings/payouts/submitRequest.ts new file mode 100644 index 0000000..1ffbed9 --- /dev/null +++ b/src/typings/payouts/submitRequest.ts @@ -0,0 +1,156 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Name } from './name'; +import { Recurring } from './recurring'; + +export class SubmitRequest { + /** + * This field contains additional data, which may be required for a particular request. + */ + 'additionalData'?: { [key: string]: string; }; + 'amount': Amount; + /** + * The date of birth. Format: ISO-8601; example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. > This field is required to update the existing `dateOfBirth` that is associated with this recurring contract. + */ + 'dateOfBirth'?: Date; + /** + * The type of the entity the payout is processed for. Allowed values: * NaturalPerson * Company > This field is required to update the existing `entityType` that is associated with this recurring contract. + */ + 'entityType'?: SubmitRequest.EntityTypeEnum; + /** + * An integer value that is added to the normal fraud score. The value can be either positive or negative. + */ + 'fraudOffset'?: number; + /** + * The merchant account identifier you want to process the transaction request with. + */ + 'merchantAccount': string; + /** + * The shopper\'s nationality. A valid value is an ISO 2-character country code (e.g. \'NL\'). > This field is required to update the existing nationality that is associated with this recurring contract. + */ + 'nationality'?: string; + 'recurring': Recurring; + /** + * The merchant reference for this payout. This reference will be used in all communication to the merchant about the status of the payout. Although it is a good idea to make sure it is unique, this is not a requirement. + */ + 'reference': string; + /** + * This is the `recurringDetailReference` you want to use for this payout. You can use the value LATEST to select the most recently used recurring detail. + */ + 'selectedRecurringDetailReference': string; + /** + * The shopper\'s email address. + */ + 'shopperEmail': string; + 'shopperName'?: Name; + /** + * The shopper\'s reference for the payout transaction. + */ + 'shopperReference': string; + /** + * The description of this payout. This description is shown on the bank statement of the shopper (if this is supported by the chosen payment method). + */ + 'shopperStatement'?: string; + /** + * The shopper\'s social security number. + */ + 'socialSecurityNumber'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "dateOfBirth", + "baseName": "dateOfBirth", + "type": "Date" + }, + { + "name": "entityType", + "baseName": "entityType", + "type": "SubmitRequest.EntityTypeEnum" + }, + { + "name": "fraudOffset", + "baseName": "fraudOffset", + "type": "number" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "nationality", + "baseName": "nationality", + "type": "string" + }, + { + "name": "recurring", + "baseName": "recurring", + "type": "Recurring" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "selectedRecurringDetailReference", + "baseName": "selectedRecurringDetailReference", + "type": "string" + }, + { + "name": "shopperEmail", + "baseName": "shopperEmail", + "type": "string" + }, + { + "name": "shopperName", + "baseName": "shopperName", + "type": "Name" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "shopperStatement", + "baseName": "shopperStatement", + "type": "string" + }, + { + "name": "socialSecurityNumber", + "baseName": "socialSecurityNumber", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitRequest.attributeTypeMap; + } +} + +export namespace SubmitRequest { + export enum EntityTypeEnum { + NaturalPerson = 'NaturalPerson', + Company = 'Company' + } +} diff --git a/src/typings/payouts/submitResponse.ts b/src/typings/payouts/submitResponse.ts new file mode 100644 index 0000000..68dd641 --- /dev/null +++ b/src/typings/payouts/submitResponse.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SubmitResponse { + /** + * This field contains additional data, which may be returned in a particular response. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * A new reference to uniquely identify this request. + */ + 'pspReference': string; + /** + * In case of refusal, an informational message for the reason. + */ + 'refusalReason'?: string; + /** + * The response: * In case of success, it is `payout-submit-received`. * In case of an error, an informational message is returned. + */ + 'resultCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SubmitResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/account.ts b/src/typings/platformsAccount/account.ts index e4fa3be..679b4cc 100644 --- a/src/typings/platformsAccount/account.ts +++ b/src/typings/platformsAccount/account.ts @@ -1,59 +1,56 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class Account { /** - * The code of the account. - */ + * The code of the account. + */ 'accountCode'?: string; /** - * The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder. - */ + * The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder. + */ 'bankAccountUUID'?: string; /** - * The beneficiary of the account. - */ + * The beneficiary of the account. + */ 'beneficiaryAccount'?: string; /** - * The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user. - */ + * The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user. + */ 'beneficiaryMerchantReference'?: string; /** - * A description of the account. - */ + * A description of the account. + */ 'description'?: string; /** - * A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. - */ + * A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. + */ 'metadata'?: { [key: string]: string; }; /** - * The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. - */ + * The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code. + */ 'payoutMethodCode'?: string; 'payoutSchedule'?: PayoutScheduleResponse; /** - * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. - */ + * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. + */ 'payoutSpeed'?: Account.PayoutSpeedEnum; /** - * The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. - */ + * The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`. + */ 'status'?: string; static discriminator: string | undefined = undefined; - static attributeTypeMap: Array<{ name: string, baseName: string, type: string }> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "accountCode", "baseName": "accountCode", @@ -103,7 +100,7 @@ export class Account { "name": "status", "baseName": "status", "type": "string" - }]; + } ]; static getAttributeTypeMap() { return Account.attributeTypeMap; @@ -112,8 +109,8 @@ export class Account { export namespace Account { export enum PayoutSpeedEnum { - Instant = 'INSTANT', - SameDay = 'SAME_DAY', - Standard = 'STANDARD' + Instant = 'INSTANT', + SameDay = 'SAME_DAY', + Standard = 'STANDARD' } } diff --git a/src/typings/platformsAccount/accountEvent.ts b/src/typings/platformsAccount/accountEvent.ts index 3c8a521..a914017 100644 --- a/src/typings/platformsAccount/accountEvent.ts +++ b/src/typings/platformsAccount/accountEvent.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class AccountEvent { /** * The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks). diff --git a/src/typings/platformsAccount/accountHolderDetails.ts b/src/typings/platformsAccount/accountHolderDetails.ts index e9b78c8..4193d0c 100644 --- a/src/typings/platformsAccount/accountHolderDetails.ts +++ b/src/typings/platformsAccount/accountHolderDetails.ts @@ -1,22 +1,19 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {BankAccountDetail} from './bankAccountDetail'; -import {BusinessDetails} from './businessDetails'; -import {IndividualDetails} from './individualDetails'; -import {LegalArrangementDetail} from './legalArrangementDetail'; -import {PayoutMethod} from './payoutMethod'; -import {StoreDetail} from './storeDetail'; -import {ViasAddress} from './viasAddress'; +import { BankAccountDetail } from './bankAccountDetail'; +import { BusinessDetails } from './businessDetails'; +import { IndividualDetails } from './individualDetails'; +import { LegalArrangementDetail } from './legalArrangementDetail'; +import { PayoutMethod } from './payoutMethod'; +import { StoreDetail } from './storeDetail'; +import { ViasAddress } from './viasAddress'; export class AccountHolderDetails { 'address'?: ViasAddress; @@ -39,7 +36,11 @@ export class AccountHolderDetails { 'fullPhoneNumber': string; 'individualDetails'?: IndividualDetails; /** - * Array that contains information about legal arrangements, used when the account holder is acting on behalf of different parties or is part of a contractual business agreement. + * Date when you last reviewed the account holder\'s information, in ISO-8601 YYYY-MM-DD format. For example, **2020-01-31**. + */ + 'lastReviewDate'?: string; + /** + * An array containing information about the account holder\'s [legal arrangements](https://docs.adyen.com/platforms/verification-checks/legal-arrangements). */ 'legalArrangements'?: Array; /** @@ -102,6 +103,11 @@ export class AccountHolderDetails { "baseName": "individualDetails", "type": "IndividualDetails" }, + { + "name": "lastReviewDate", + "baseName": "lastReviewDate", + "type": "string" + }, { "name": "legalArrangements", "baseName": "legalArrangements", diff --git a/src/typings/platformsAccount/accountHolderStatus.ts b/src/typings/platformsAccount/accountHolderStatus.ts index 40efe28..c8d9a79 100644 --- a/src/typings/platformsAccount/accountHolderStatus.ts +++ b/src/typings/platformsAccount/accountHolderStatus.ts @@ -1,18 +1,15 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountEvent} from './accountEvent'; -import {AccountPayoutState} from './accountPayoutState'; -import {AccountProcessingState} from './accountProcessingState'; +import { AccountEvent } from './accountEvent'; +import { AccountPayoutState } from './accountPayoutState'; +import { AccountProcessingState } from './accountProcessingState'; export class AccountHolderStatus { /** diff --git a/src/typings/platformsAccount/accountPayoutState.ts b/src/typings/platformsAccount/accountPayoutState.ts index bcec318..7ae0521 100644 --- a/src/typings/platformsAccount/accountPayoutState.ts +++ b/src/typings/platformsAccount/accountPayoutState.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Amount} from './amount'; +import { Amount } from './amount'; export class AccountPayoutState { /** diff --git a/src/typings/platformsAccount/accountProcessingState.ts b/src/typings/platformsAccount/accountProcessingState.ts index 6fb476c..d09ea64 100644 --- a/src/typings/platformsAccount/accountProcessingState.ts +++ b/src/typings/platformsAccount/accountProcessingState.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Amount} from './amount'; +import { Amount } from './amount'; export class AccountProcessingState { /** diff --git a/src/typings/platformsAccount/amount.ts b/src/typings/platformsAccount/amount.ts index 390c664..531ba7d 100644 --- a/src/typings/platformsAccount/amount.ts +++ b/src/typings/platformsAccount/amount.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Amount { /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). diff --git a/src/typings/platformsAccount/bankAccountDetail.ts b/src/typings/platformsAccount/bankAccountDetail.ts index 1e8106d..f940e97 100644 --- a/src/typings/platformsAccount/bankAccountDetail.ts +++ b/src/typings/platformsAccount/bankAccountDetail.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BankAccountDetail { /** * The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. @@ -76,7 +74,7 @@ export class BankAccountDetail { */ 'ownerCountryCode'?: string; /** - * The date of birth of the bank account owner. + * The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). */ 'ownerDateOfBirth'?: string; /** diff --git a/src/typings/platformsAccount/businessDetails.ts b/src/typings/platformsAccount/businessDetails.ts index b0b6e2c..3a622a1 100644 --- a/src/typings/platformsAccount/businessDetails.ts +++ b/src/typings/platformsAccount/businessDetails.ts @@ -1,17 +1,15 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ShareholderContact} from './shareholderContact'; -import {SignatoryContact} from './signatoryContact'; +import { ShareholderContact } from './shareholderContact'; +import { SignatoryContact } from './signatoryContact'; +import { UltimateParentCompany } from './ultimateParentCompany'; export class BusinessDetails { /** @@ -23,6 +21,10 @@ export class BusinessDetails { */ 'legalBusinessName'?: string; /** + * Information about the parent public company. Required if the account holder is 100% owned by a publicly listed company. + */ + 'listedUltimateParentCompany'?: Array; + /** * The registration number of the company. */ 'registrationNumber'?: string; @@ -64,6 +66,11 @@ export class BusinessDetails { "baseName": "legalBusinessName", "type": "string" }, + { + "name": "listedUltimateParentCompany", + "baseName": "listedUltimateParentCompany", + "type": "Array" + }, { "name": "registrationNumber", "baseName": "registrationNumber", diff --git a/src/typings/platformsAccount/closeAccountHolderRequest.ts b/src/typings/platformsAccount/closeAccountHolderRequest.ts index 449ebe1..02d796c 100644 --- a/src/typings/platformsAccount/closeAccountHolderRequest.ts +++ b/src/typings/platformsAccount/closeAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CloseAccountHolderRequest { /** * The code of the Account Holder to be closed. diff --git a/src/typings/platformsAccount/closeAccountHolderResponse.ts b/src/typings/platformsAccount/closeAccountHolderResponse.ts index 74fba47..49dcbde 100644 --- a/src/typings/platformsAccount/closeAccountHolderResponse.ts +++ b/src/typings/platformsAccount/closeAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class CloseAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/closeAccountRequest.ts b/src/typings/platformsAccount/closeAccountRequest.ts index 908f06d..c5bb2e3 100644 --- a/src/typings/platformsAccount/closeAccountRequest.ts +++ b/src/typings/platformsAccount/closeAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CloseAccountRequest { /** * The code of account to be closed. diff --git a/src/typings/platformsAccount/closeAccountResponse.ts b/src/typings/platformsAccount/closeAccountResponse.ts index a6a413d..74c4c38 100644 --- a/src/typings/platformsAccount/closeAccountResponse.ts +++ b/src/typings/platformsAccount/closeAccountResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class CloseAccountResponse { /** diff --git a/src/typings/platformsAccount/closeStoresRequest.ts b/src/typings/platformsAccount/closeStoresRequest.ts new file mode 100644 index 0000000..eabce40 --- /dev/null +++ b/src/typings/platformsAccount/closeStoresRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CloseStoresRequest { + /** + * The code of the account holder. + */ + 'accountHolderCode': string; + /** + * List of stores to be closed. + */ + 'stores': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "stores", + "baseName": "stores", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return CloseStoresRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/createAccountHolderRequest.ts b/src/typings/platformsAccount/createAccountHolderRequest.ts index 38f0aaf..d2a5beb 100644 --- a/src/typings/platformsAccount/createAccountHolderRequest.ts +++ b/src/typings/platformsAccount/createAccountHolderRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; +import { AccountHolderDetails } from './accountHolderDetails'; export class CreateAccountHolderRequest { /** diff --git a/src/typings/platformsAccount/createAccountHolderResponse.ts b/src/typings/platformsAccount/createAccountHolderResponse.ts index cf5450f..1654ffc 100644 --- a/src/typings/platformsAccount/createAccountHolderResponse.ts +++ b/src/typings/platformsAccount/createAccountHolderResponse.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class CreateAccountHolderResponse { /** @@ -50,7 +47,7 @@ export class CreateAccountHolderResponse { * The result code. */ 'resultCode'?: string; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -112,7 +109,7 @@ export class CreateAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/createAccountRequest.ts b/src/typings/platformsAccount/createAccountRequest.ts index 4ff56c1..a221f9b 100644 --- a/src/typings/platformsAccount/createAccountRequest.ts +++ b/src/typings/platformsAccount/createAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class CreateAccountRequest { /** * The code of Account Holder under which to create the account. @@ -97,6 +95,9 @@ export namespace CreateAccountRequest { export enum PayoutScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -109,7 +110,12 @@ export namespace CreateAccountRequest { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } export enum PayoutSpeedEnum { diff --git a/src/typings/platformsAccount/createAccountResponse.ts b/src/typings/platformsAccount/createAccountResponse.ts index 0d21586..ad1d0c0 100644 --- a/src/typings/platformsAccount/createAccountResponse.ts +++ b/src/typings/platformsAccount/createAccountResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { ErrorFieldType } from './errorFieldType'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class CreateAccountResponse { /** diff --git a/src/typings/platformsAccount/deleteBankAccountRequest.ts b/src/typings/platformsAccount/deleteBankAccountRequest.ts index 79d8194..ab3215c 100644 --- a/src/typings/platformsAccount/deleteBankAccountRequest.ts +++ b/src/typings/platformsAccount/deleteBankAccountRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteBankAccountRequest { /** * The code of the Account Holder from which to delete the Bank Account(s). diff --git a/src/typings/platformsAccount/deletePayoutMethodRequest.ts b/src/typings/platformsAccount/deletePayoutMethodRequest.ts index cc5f669..9aeb722 100644 --- a/src/typings/platformsAccount/deletePayoutMethodRequest.ts +++ b/src/typings/platformsAccount/deletePayoutMethodRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeletePayoutMethodRequest { /** * The code of the account holder, from which to delete the payout methods. diff --git a/src/typings/platformsAccount/deleteShareholderRequest.ts b/src/typings/platformsAccount/deleteShareholderRequest.ts index 519d2a6..a9e7642 100644 --- a/src/typings/platformsAccount/deleteShareholderRequest.ts +++ b/src/typings/platformsAccount/deleteShareholderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteShareholderRequest { /** * The code of the Account Holder from which to delete the Shareholders. diff --git a/src/typings/platformsAccount/deleteSignatoriesRequest.ts b/src/typings/platformsAccount/deleteSignatoriesRequest.ts index d3ee138..dee9b3e 100644 --- a/src/typings/platformsAccount/deleteSignatoriesRequest.ts +++ b/src/typings/platformsAccount/deleteSignatoriesRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DeleteSignatoriesRequest { /** * The code of the account holder from which to delete the signatories. diff --git a/src/typings/platformsAccount/documentDetail.ts b/src/typings/platformsAccount/documentDetail.ts index b3dc536..ad21396 100644 --- a/src/typings/platformsAccount/documentDetail.ts +++ b/src/typings/platformsAccount/documentDetail.ts @@ -1,22 +1,20 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DocumentDetail { /** * The code of account holder, to which the document applies. */ 'accountHolderCode': string; /** - * The unique ID of the Bank Account to which the document applies. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a bank account. + * The Adyen-generated [`bankAccountUUID`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-bankAccountDetails-bankAccountUUID) to which the document must be linked. Refer to [Bank account check](https://docs.adyen.com/platforms/verification-checks/bank-account-check#uploading-a-bank-statement) for details on when a document should be submitted. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. */ 'bankAccountUUID'?: string; /** @@ -24,7 +22,7 @@ export class DocumentDetail { */ 'description'?: string; /** - * The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. + * The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **CONSTITUTIONAL_DOCUMENT**: A file containing information about the account holder\'s legal arrangement. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted. */ 'documentType': DocumentDetail.DocumentTypeEnum; /** @@ -32,11 +30,19 @@ export class DocumentDetail { */ 'filename': string; /** - * The code of the shareholder, to which the document applies. Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) for details on when a document should be submitted in order to verify a shareholder.>Required if the account holder referred to by the `accountHolderCode` has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a shareholder. + * The Adyen-generated [`legalArrangementCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementCode) to which the document must be linked. + */ + 'legalArrangementCode'?: string; + /** + * The Adyen-generated [`legalArrangementEntityCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-legalArrangements-legalArrangementEntities-legalArrangementEntityCode) to which the document must be linked. + */ + 'legalArrangementEntityCode'?: string; + /** + * The Adyen-generated [`shareholderCode`](https://docs.adyen.com/api-explorer/#/Account/latest/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-shareholders-shareholderCode) to which the document must be linked. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when a document should be submitted. >Required if the account holder has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. */ 'shareholderCode'?: string; /** - * The code of the signatory, to which the document applies + * The Adyen-generated [`signatoryCode`](https://docs.adyen.com/api-explorer/#/Account/v6/post/createAccountHolder__resParam_accountHolderDetails-businessDetails-signatories-signatoryCode) to which the document must be linked. */ 'signatoryCode'?: string; @@ -68,6 +74,16 @@ export class DocumentDetail { "baseName": "filename", "type": "string" }, + { + "name": "legalArrangementCode", + "baseName": "legalArrangementCode", + "type": "string" + }, + { + "name": "legalArrangementEntityCode", + "baseName": "legalArrangementEntityCode", + "type": "string" + }, { "name": "shareholderCode", "baseName": "shareholderCode", @@ -97,6 +113,7 @@ export namespace DocumentDetail { IdCardBack = 'ID_CARD_BACK', IdCardFront = 'ID_CARD_FRONT', Passport = 'PASSPORT', + ProofOfResidency = 'PROOF_OF_RESIDENCY', Ssn = 'SSN', SupportingDocuments = 'SUPPORTING_DOCUMENTS' } diff --git a/src/typings/platformsAccount/errorFieldType.ts b/src/typings/platformsAccount/errorFieldType.ts index 4f2e132..6ad0e7c 100644 --- a/src/typings/platformsAccount/errorFieldType.ts +++ b/src/typings/platformsAccount/errorFieldType.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {FieldType} from './fieldType'; +import { FieldType } from './fieldType'; export class ErrorFieldType { /** diff --git a/src/typings/platformsAccount/fieldType.ts b/src/typings/platformsAccount/fieldType.ts index a34218f..487bf1b 100644 --- a/src/typings/platformsAccount/fieldType.ts +++ b/src/typings/platformsAccount/fieldType.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class FieldType { /** * The full name of the property. @@ -58,6 +56,10 @@ export namespace FieldType { AccountStatus = 'accountStatus', AccountType = 'accountType', Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', BankAccount = 'bankAccount', BankAccountCode = 'bankAccountCode', BankAccountName = 'bankAccountName', @@ -82,6 +84,7 @@ export namespace FieldType { Description = 'description', DestinationAccountCode = 'destinationAccountCode', Document = 'document', + DocumentContent = 'documentContent', DocumentExpirationDate = 'documentExpirationDate', DocumentIssuerCountry = 'documentIssuerCountry', DocumentIssuerState = 'documentIssuerState', @@ -106,14 +109,17 @@ export namespace FieldType { IdNumber = 'idNumber', IdentityDocument = 'identityDocument', IndividualDetails = 'individualDetails', + Infix = 'infix', JobTitle = 'jobTitle', LastName = 'lastName', + LastReviewDate = 'lastReviewDate', LegalArrangement = 'legalArrangement', LegalArrangementCode = 'legalArrangementCode', LegalArrangementEntity = 'legalArrangementEntity', LegalArrangementEntityCode = 'legalArrangementEntityCode', LegalArrangementLegalForm = 'legalArrangementLegalForm', LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', LegalArrangementName = 'legalArrangementName', LegalArrangementReference = 'legalArrangementReference', LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', @@ -131,6 +137,7 @@ export namespace FieldType { OriginalReference = 'originalReference', OwnerCity = 'ownerCity', OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', OwnerHouseNumberOrName = 'ownerHouseNumberOrName', OwnerName = 'ownerName', OwnerPostalCode = 'ownerPostalCode', @@ -139,6 +146,8 @@ export namespace FieldType { Passport = 'passport', PassportNumber = 'passportNumber', PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', PersonalData = 'personalData', PhoneCountryCode = 'phoneCountryCode', PhoneNumber = 'phoneNumber', @@ -159,6 +168,7 @@ export namespace FieldType { SocialSecurityNumber = 'socialSecurityNumber', SourceAccountCode = 'sourceAccountCode', SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', SplitCurrency = 'splitCurrency', SplitValue = 'splitValue', Splits = 'splits', @@ -176,6 +186,17 @@ export namespace FieldType { Tier = 'tier', TierNumber = 'tierNumber', TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', Unknown = 'unknown', Value = 'value', VerificationType = 'verificationType', diff --git a/src/typings/platformsAccount/genericResponse.ts b/src/typings/platformsAccount/genericResponse.ts index cc0bd48..796ccac 100644 --- a/src/typings/platformsAccount/genericResponse.ts +++ b/src/typings/platformsAccount/genericResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class GenericResponse { /** diff --git a/src/typings/platformsAccount/getAccountHolderRequest.ts b/src/typings/platformsAccount/getAccountHolderRequest.ts index 0c4617b..a0c81ca 100644 --- a/src/typings/platformsAccount/getAccountHolderRequest.ts +++ b/src/typings/platformsAccount/getAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetAccountHolderRequest { /** * The code of the account of which to retrieve the details. > Required if no `accountHolderCode` is provided. diff --git a/src/typings/platformsAccount/getAccountHolderResponse.ts b/src/typings/platformsAccount/getAccountHolderResponse.ts index f0a4627..6777f64 100644 --- a/src/typings/platformsAccount/getAccountHolderResponse.ts +++ b/src/typings/platformsAccount/getAccountHolderResponse.ts @@ -1,20 +1,17 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Account} from './account'; -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { Account } from './account'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class GetAccountHolderResponse { /** @@ -55,7 +52,7 @@ export class GetAccountHolderResponse { * The time that shows how up to date is the information in the response. */ 'systemUpToDateTime'?: Date; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -122,7 +119,7 @@ export class GetAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/getAccountHolderStatusResponse.ts b/src/typings/platformsAccount/getAccountHolderStatusResponse.ts index 0d4c12f..523afe3 100644 --- a/src/typings/platformsAccount/getAccountHolderStatusResponse.ts +++ b/src/typings/platformsAccount/getAccountHolderStatusResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class GetAccountHolderStatusResponse { /** diff --git a/src/typings/platformsAccount/getTaxFormRequest.ts b/src/typings/platformsAccount/getTaxFormRequest.ts index 4fdd049..a5e8440 100644 --- a/src/typings/platformsAccount/getTaxFormRequest.ts +++ b/src/typings/platformsAccount/getTaxFormRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetTaxFormRequest { /** * The account holder code you provided when you created the account holder. diff --git a/src/typings/platformsAccount/getTaxFormResponse.ts b/src/typings/platformsAccount/getTaxFormResponse.ts index 73d80ea..239d68e 100644 --- a/src/typings/platformsAccount/getTaxFormResponse.ts +++ b/src/typings/platformsAccount/getTaxFormResponse.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; +import { ErrorFieldType } from './errorFieldType'; export class GetTaxFormResponse { /** diff --git a/src/typings/platformsAccount/getUploadedDocumentsRequest.ts b/src/typings/platformsAccount/getUploadedDocumentsRequest.ts index 3730113..15df462 100644 --- a/src/typings/platformsAccount/getUploadedDocumentsRequest.ts +++ b/src/typings/platformsAccount/getUploadedDocumentsRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class GetUploadedDocumentsRequest { /** * The code of the Account Holder for which to retrieve the documents. diff --git a/src/typings/platformsAccount/getUploadedDocumentsResponse.ts b/src/typings/platformsAccount/getUploadedDocumentsResponse.ts index 9729ef7..82950c9 100644 --- a/src/typings/platformsAccount/getUploadedDocumentsResponse.ts +++ b/src/typings/platformsAccount/getUploadedDocumentsResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {DocumentDetail} from './documentDetail'; -import {ErrorFieldType} from './errorFieldType'; +import { DocumentDetail } from './documentDetail'; +import { ErrorFieldType } from './errorFieldType'; export class GetUploadedDocumentsResponse { /** diff --git a/src/typings/platformsAccount/individualDetails.ts b/src/typings/platformsAccount/individualDetails.ts index b1a7dc4..931cafc 100644 --- a/src/typings/platformsAccount/individualDetails.ts +++ b/src/typings/platformsAccount/individualDetails.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; export class IndividualDetails { 'name'?: ViasName; diff --git a/src/typings/platformsAccount/kYCCheckResult.ts b/src/typings/platformsAccount/kYCCheckResult.ts new file mode 100644 index 0000000..585e987 --- /dev/null +++ b/src/typings/platformsAccount/kYCCheckResult.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckStatusData } from './kYCCheckStatusData'; + +export class KYCCheckResult { + /** + * A list of the checks and their statuses. + */ + 'checks'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checks", + "baseName": "checks", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return KYCCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCCheckResult2.ts b/src/typings/platformsAccount/kYCCheckResult2.ts deleted file mode 100644 index b274457..0000000 --- a/src/typings/platformsAccount/kYCCheckResult2.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 - * Contact: developer-experience@adyen.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import {KYCCheckStatusData} from './kYCCheckStatusData'; - -export class KYCCheckResult2 { - /** - * A list of the checks and their statuses. - */ - 'checks'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "checks", - "baseName": "checks", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return KYCCheckResult2.attributeTypeMap; - } -} - diff --git a/src/typings/platformsAccount/kYCCheckStatusData.ts b/src/typings/platformsAccount/kYCCheckStatusData.ts index 37bc3b4..b753040 100644 --- a/src/typings/platformsAccount/kYCCheckStatusData.ts +++ b/src/typings/platformsAccount/kYCCheckStatusData.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckSummary} from './kYCCheckSummary'; +import { KYCCheckSummary } from './kYCCheckSummary'; export class KYCCheckStatusData { /** diff --git a/src/typings/platformsAccount/kYCCheckSummary.ts b/src/typings/platformsAccount/kYCCheckSummary.ts index 802319c..9fed6f5 100644 --- a/src/typings/platformsAccount/kYCCheckSummary.ts +++ b/src/typings/platformsAccount/kYCCheckSummary.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class KYCCheckSummary { /** * The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/platforms/verification-codes). diff --git a/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts b/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts index 0638eba..fe7814f 100644 --- a/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts +++ b/src/typings/platformsAccount/kYCLegalArrangementCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCLegalArrangementCheckResult { /** diff --git a/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts b/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts index 90b7675..bf1c07f 100644 --- a/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts +++ b/src/typings/platformsAccount/kYCLegalArrangementEntityCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCLegalArrangementEntityCheckResult { /** diff --git a/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts b/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts index c35ca28..1267f15 100644 --- a/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts +++ b/src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCPayoutMethodCheckResult { /** diff --git a/src/typings/platformsAccount/kYCShareholderCheckResult.ts b/src/typings/platformsAccount/kYCShareholderCheckResult.ts index 7e6c23f..df5cbec 100644 --- a/src/typings/platformsAccount/kYCShareholderCheckResult.ts +++ b/src/typings/platformsAccount/kYCShareholderCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCShareholderCheckResult { /** diff --git a/src/typings/platformsAccount/kYCSignatoryCheckResult.ts b/src/typings/platformsAccount/kYCSignatoryCheckResult.ts index 29d817e..76f3366 100644 --- a/src/typings/platformsAccount/kYCSignatoryCheckResult.ts +++ b/src/typings/platformsAccount/kYCSignatoryCheckResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {KYCCheckStatusData} from './kYCCheckStatusData'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; export class KYCSignatoryCheckResult { /** diff --git a/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts b/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts new file mode 100644 index 0000000..ed38c01 --- /dev/null +++ b/src/typings/platformsAccount/kYCUltimateParentCompanyCheckResult.ts @@ -0,0 +1,40 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckStatusData } from './kYCCheckStatusData'; + +export class KYCUltimateParentCompanyCheckResult { + /** + * A list of the checks and their statuses. + */ + 'checks'?: Array; + /** + * The code of the Ultimate Parent Company to which the check applies. + */ + 'ultimateParentCompanyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "checks", + "baseName": "checks", + "type": "Array" + }, + { + "name": "ultimateParentCompanyCode", + "baseName": "ultimateParentCompanyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return KYCUltimateParentCompanyCheckResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCVerificationResult.ts b/src/typings/platformsAccount/kYCVerificationResult.ts new file mode 100644 index 0000000..0febf33 --- /dev/null +++ b/src/typings/platformsAccount/kYCVerificationResult.ts @@ -0,0 +1,88 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { KYCCheckResult } from './kYCCheckResult'; +import { KYCLegalArrangementCheckResult } from './kYCLegalArrangementCheckResult'; +import { KYCLegalArrangementEntityCheckResult } from './kYCLegalArrangementEntityCheckResult'; +import { KYCPayoutMethodCheckResult } from './kYCPayoutMethodCheckResult'; +import { KYCShareholderCheckResult } from './kYCShareholderCheckResult'; +import { KYCSignatoryCheckResult } from './kYCSignatoryCheckResult'; +import { KYCUltimateParentCompanyCheckResult } from './kYCUltimateParentCompanyCheckResult'; + +export class KYCVerificationResult { + 'accountHolder'?: KYCCheckResult; + /** + * The results of the checks on the legal arrangements. + */ + 'legalArrangements'?: Array; + /** + * The results of the checks on the legal arrangement entities. + */ + 'legalArrangementsEntities'?: Array; + /** + * The results of the checks on the payout methods. + */ + 'payoutMethods'?: Array; + /** + * The results of the checks on the shareholders. + */ + 'shareholders'?: Array; + /** + * The results of the checks on the signatories. + */ + 'signatories'?: Array; + /** + * The result of the check on the Ultimate Parent Company. + */ + 'ultimateParentCompany'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolder", + "baseName": "accountHolder", + "type": "KYCCheckResult" + }, + { + "name": "legalArrangements", + "baseName": "legalArrangements", + "type": "Array" + }, + { + "name": "legalArrangementsEntities", + "baseName": "legalArrangementsEntities", + "type": "Array" + }, + { + "name": "payoutMethods", + "baseName": "payoutMethods", + "type": "Array" + }, + { + "name": "shareholders", + "baseName": "shareholders", + "type": "Array" + }, + { + "name": "signatories", + "baseName": "signatories", + "type": "Array" + }, + { + "name": "ultimateParentCompany", + "baseName": "ultimateParentCompany", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return KYCVerificationResult.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/kYCVerificationResult2.ts b/src/typings/platformsAccount/kYCVerificationResult2.ts deleted file mode 100644 index 4d71eb5..0000000 --- a/src/typings/platformsAccount/kYCVerificationResult2.ts +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 - * Contact: developer-experience@adyen.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import {KYCCheckResult2} from './kYCCheckResult2'; -import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult'; -import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult'; -import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult'; -import {KYCShareholderCheckResult} from './kYCShareholderCheckResult'; -import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult'; - -export class KYCVerificationResult2 { - 'accountHolder'?: KYCCheckResult2; - /** - * The results of the checks on the legal arrangements. - */ - 'legalArrangements'?: Array; - /** - * The results of the checks on the legal arrangement entities. - */ - 'legalArrangementsEntities'?: Array; - /** - * The results of the checks on the payout methods. - */ - 'payoutMethods'?: Array; - /** - * The results of the checks on the shareholders. - */ - 'shareholders'?: Array; - /** - * The results of the checks on the signatories. - */ - 'signatories'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountHolder", - "baseName": "accountHolder", - "type": "KYCCheckResult2" - }, - { - "name": "legalArrangements", - "baseName": "legalArrangements", - "type": "Array" - }, - { - "name": "legalArrangementsEntities", - "baseName": "legalArrangementsEntities", - "type": "Array" - }, - { - "name": "payoutMethods", - "baseName": "payoutMethods", - "type": "Array" - }, - { - "name": "shareholders", - "baseName": "shareholders", - "type": "Array" - }, - { - "name": "signatories", - "baseName": "signatories", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return KYCVerificationResult2.attributeTypeMap; - } -} - diff --git a/src/typings/platformsAccount/legalArrangementDetail.ts b/src/typings/platformsAccount/legalArrangementDetail.ts index 46f3e17..e619788 100644 --- a/src/typings/platformsAccount/legalArrangementDetail.ts +++ b/src/typings/platformsAccount/legalArrangementDetail.ts @@ -1,26 +1,23 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail'; -import {ViasAddress} from './viasAddress'; +import { LegalArrangementEntityDetail } from './legalArrangementEntityDetail'; +import { ViasAddress } from './viasAddress'; export class LegalArrangementDetail { - 'address'?: ViasAddress; + 'address': ViasAddress; /** * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement. Required when updating an existing legal arrangement entry in an `/updateAccountHolder` request. */ 'legalArrangementCode'?: string; /** - * Array that contains information about the entities or members that are part of the legal arrangement. + * An array containing information about other entities that are part of the legal arrangement. */ 'legalArrangementEntities'?: Array; /** @@ -28,13 +25,13 @@ export class LegalArrangementDetail { */ 'legalArrangementReference'?: string; /** - * The structure of the legal arrangement as defined according to legislations in the country. Possible values: **CashManagementTrust**, **CorporateUnitTrust**, **DeceasedEstate**, **DiscretionaryInvestmentTrust**, **DiscretionaryServicesManagementTrust**, **DiscretionaryTradingTrust**, **FirstHomeSaverAccountsTrust**, **FixedTrust**, **FixedUnitTrust**, **HybridTrust**, **ListedPublicUnitTrust**, **OtherTrust**, **PooledSuperannuationTrust**, **PublicTradingTrust**, **UnlistedPublicUnitTrust**, **LimitedPartnership**, **FamilyPartnership**, **OtherPartnership**. + * The form of legal arrangement. Required if `type` is **Trust** or **Partnership**. The possible values depend on the `type`. - For `type` **Trust**: **CashManagementTrust**, **CorporateUnitTrust**, **DeceasedEstate**, **DiscretionaryInvestmentTrust**, **DiscretionaryServicesManagementTrust**, **DiscretionaryTradingTrust**, **FirstHomeSaverAccountsTrust**, **FixedTrust**, **FixedUnitTrust**, **HybridTrust**, **ListedPublicUnitTrust**, **OtherTrust**, **PooledSuperannuationTrust**, **PublicTradingTrust**, or **UnlistedPublicUnitTrust**. - For `type` **Partnership**: **LimitedPartnership**, **FamilyPartnership**, or **OtherPartnership** */ 'legalForm'?: LegalArrangementDetail.LegalFormEnum; /** - * The legal name of the legal arrangement. + * The legal name of the legal arrangement. Minimum length: 3 characters. */ - 'name'?: string; + 'name': string; /** * The registration number of the legal arrangement. */ @@ -44,9 +41,9 @@ export class LegalArrangementDetail { */ 'taxNumber'?: string; /** - * The type of legal arrangement. Possible values: - **Trust** - A legal agreement where the account holder is a trustee that manages assets for beneficiaries. - **Partnership** - A legal arrangement where the account holder is a partner that has an agreement with one or more partners to manage, operate and share profits of their jointly-owned business. + * The [type of legal arrangement](https://docs.adyen.com/platforms/verification-checks/legal-arrangements#types-of-legal-arrangements). Possible values: - **Association** - **Partnership** - **SoleProprietorship** - **Trust** */ - 'type'?: LegalArrangementDetail.TypeEnum; + 'type': LegalArrangementDetail.TypeEnum; static discriminator: string | undefined = undefined; @@ -124,7 +121,9 @@ export namespace LegalArrangementDetail { OtherPartnership = 'OtherPartnership' } export enum TypeEnum { + Association = 'Association', Partnership = 'Partnership', + SoleProprietorship = 'SoleProprietorship', Trust = 'Trust' } } diff --git a/src/typings/platformsAccount/legalArrangementEntityDetail.ts b/src/typings/platformsAccount/legalArrangementEntityDetail.ts index 323c861..d9e8052 100644 --- a/src/typings/platformsAccount/legalArrangementEntityDetail.ts +++ b/src/typings/platformsAccount/legalArrangementEntityDetail.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {BusinessDetails} from './businessDetails'; -import {IndividualDetails} from './individualDetails'; -import {ViasAddress} from './viasAddress'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { BusinessDetails } from './businessDetails'; +import { IndividualDetails } from './individualDetails'; +import { ViasAddress } from './viasAddress'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class LegalArrangementEntityDetail { 'address'?: ViasAddress; @@ -28,7 +25,7 @@ export class LegalArrangementEntityDetail { 'fullPhoneNumber'?: string; 'individualDetails'?: IndividualDetails; /** - * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity. Required when updating an existing legal arrangement entity entry in an `/updateAccountHolder` request. */ 'legalArrangementEntityCode'?: string; /** @@ -36,9 +33,9 @@ export class LegalArrangementEntityDetail { */ 'legalArrangementEntityReference'?: string; /** - * The role of the entity in the legal arrangement. The values depend on the `legalArragementType`. Possible values: - For `legalArragementType` **Trust**, you can use **Trustee**, **Settlor**, **Protector**, **Beneficiary**, or **Shareholder**. - For `legalArragementType` **Partnership**, you can use **Partner** or **Shareholder**. + * An array containing the roles of the entity in the legal arrangement. The possible values depend on the legal arrangement `type`. - For `type` **Association**: **ControllingPerson** and **Shareholder**. - For `type` **Partnership**: **Partner** and **Shareholder**. - For `type` **Trust**: **Trustee**, **Settlor**, **Protector**, **Beneficiary**, and **Shareholder**. */ - 'legalArrangementMember'?: LegalArrangementEntityDetail.LegalArrangementMemberEnum; + 'legalArrangementMembers'?: Array; /** * The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**. */ @@ -88,9 +85,9 @@ export class LegalArrangementEntityDetail { "type": "string" }, { - "name": "legalArrangementMember", - "baseName": "legalArrangementMember", - "type": "LegalArrangementEntityDetail.LegalArrangementMemberEnum" + "name": "legalArrangementMembers", + "baseName": "legalArrangementMembers", + "type": "Array" }, { "name": "legalEntityType", @@ -114,16 +111,13 @@ export class LegalArrangementEntityDetail { } export namespace LegalArrangementEntityDetail { - export enum LegalArrangementMemberEnum { - Associate = 'Associate', + export enum LegalArrangementMembersEnum { Beneficiary = 'Beneficiary', - Chairman = 'Chairman', + ControllingPerson = 'ControllingPerson', Partner = 'Partner', Protector = 'Protector', - Secretary = 'Secretary', Settlor = 'Settlor', Shareholder = 'Shareholder', - Treasurer = 'Treasurer', Trustee = 'Trustee' } export enum LegalEntityTypeEnum { diff --git a/src/typings/platformsAccount/models.ts b/src/typings/platformsAccount/models.ts index 523c3fb..9a20eab 100644 --- a/src/typings/platformsAccount/models.ts +++ b/src/typings/platformsAccount/models.ts @@ -1,22 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. */ + export * from './account'; export * from './accountEvent'; export * from './accountHolderDetails'; @@ -30,6 +21,7 @@ export * from './closeAccountHolderRequest'; export * from './closeAccountHolderResponse'; export * from './closeAccountRequest'; export * from './closeAccountResponse'; +export * from './closeStoresRequest'; export * from './createAccountHolderRequest'; export * from './createAccountHolderResponse'; export * from './createAccountRequest'; @@ -50,7 +42,7 @@ export * from './getTaxFormResponse'; export * from './getUploadedDocumentsRequest'; export * from './getUploadedDocumentsResponse'; export * from './individualDetails'; -export * from './kYCCheckResult2'; +export * from './kYCCheckResult'; export * from './kYCCheckStatusData'; export * from './kYCCheckSummary'; export * from './kYCLegalArrangementCheckResult'; @@ -58,7 +50,8 @@ export * from './kYCLegalArrangementEntityCheckResult'; export * from './kYCPayoutMethodCheckResult'; export * from './kYCShareholderCheckResult'; export * from './kYCSignatoryCheckResult'; -export * from './kYCVerificationResult2'; +export * from './kYCUltimateParentCompanyCheckResult'; +export * from './kYCVerificationResult'; export * from './legalArrangementDetail'; export * from './legalArrangementEntityDetail'; export * from './payoutMethod'; @@ -71,6 +64,8 @@ export * from './signatoryContact'; export * from './storeDetail'; export * from './suspendAccountHolderRequest'; export * from './suspendAccountHolderResponse'; +export * from './ultimateParentCompany'; +export * from './ultimateParentCompanyBusinessDetails'; export * from './unSuspendAccountHolderRequest'; export * from './unSuspendAccountHolderResponse'; export * from './updateAccountHolderRequest'; @@ -85,85 +80,78 @@ export * from './viasName'; export * from './viasPersonalData'; export * from './viasPhoneNumber'; -import * as fs from 'fs'; -import {Account} from './account'; -import {AccountEvent} from './accountEvent'; -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {AccountPayoutState} from './accountPayoutState'; -import {AccountProcessingState} from './accountProcessingState'; -import {Amount} from './amount'; -import {BankAccountDetail} from './bankAccountDetail'; -import {BusinessDetails} from './businessDetails'; -import {CloseAccountHolderRequest} from './closeAccountHolderRequest'; -import {CloseAccountHolderResponse} from './closeAccountHolderResponse'; -import {CloseAccountRequest} from './closeAccountRequest'; -import {CloseAccountResponse} from './closeAccountResponse'; -import {CreateAccountHolderRequest} from './createAccountHolderRequest'; -import {CreateAccountHolderResponse} from './createAccountHolderResponse'; -import {CreateAccountRequest} from './createAccountRequest'; -import {CreateAccountResponse} from './createAccountResponse'; -import {DeleteBankAccountRequest} from './deleteBankAccountRequest'; -import {DeletePayoutMethodRequest} from './deletePayoutMethodRequest'; -import {DeleteShareholderRequest} from './deleteShareholderRequest'; -import {DeleteSignatoriesRequest} from './deleteSignatoriesRequest'; -import {DocumentDetail} from './documentDetail'; -import {ErrorFieldType} from './errorFieldType'; -import {FieldType} from './fieldType'; -import {GenericResponse} from './genericResponse'; -import {GetAccountHolderRequest} from './getAccountHolderRequest'; -import {GetAccountHolderResponse} from './getAccountHolderResponse'; -import {GetAccountHolderStatusResponse} from './getAccountHolderStatusResponse'; -import {GetTaxFormRequest} from './getTaxFormRequest'; -import {GetTaxFormResponse} from './getTaxFormResponse'; -import {GetUploadedDocumentsRequest} from './getUploadedDocumentsRequest'; -import {GetUploadedDocumentsResponse} from './getUploadedDocumentsResponse'; -import {IndividualDetails} from './individualDetails'; -import {KYCCheckResult2} from './kYCCheckResult2'; -import {KYCCheckStatusData} from './kYCCheckStatusData'; -import {KYCCheckSummary} from './kYCCheckSummary'; -import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult'; -import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult'; -import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult'; -import {KYCShareholderCheckResult} from './kYCShareholderCheckResult'; -import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; -import {LegalArrangementDetail} from './legalArrangementDetail'; -import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail'; -import {PayoutMethod} from './payoutMethod'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; -import {PerformVerificationRequest} from './performVerificationRequest'; -import {PersonalDocumentData} from './personalDocumentData'; -import {ServiceError} from './serviceError'; -import {ShareholderContact} from './shareholderContact'; -import {SignatoryContact} from './signatoryContact'; -import {StoreDetail} from './storeDetail'; -import {SuspendAccountHolderRequest} from './suspendAccountHolderRequest'; -import {SuspendAccountHolderResponse} from './suspendAccountHolderResponse'; -import {UnSuspendAccountHolderRequest} from './unSuspendAccountHolderRequest'; -import {UnSuspendAccountHolderResponse} from './unSuspendAccountHolderResponse'; -import {UpdateAccountHolderRequest} from './updateAccountHolderRequest'; -import {UpdateAccountHolderResponse} from './updateAccountHolderResponse'; -import {UpdateAccountHolderStateRequest} from './updateAccountHolderStateRequest'; -import {UpdateAccountRequest} from './updateAccountRequest'; -import {UpdateAccountResponse} from './updateAccountResponse'; -import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest'; -import {UploadDocumentRequest} from './uploadDocumentRequest'; -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; - -export interface RequestDetailedFile { - value: Buffer; - options?: { - filename?: string; - contentType?: string; - } -} - -export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile; +import { Account } from './account'; +import { AccountEvent } from './accountEvent'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { AccountPayoutState } from './accountPayoutState'; +import { AccountProcessingState } from './accountProcessingState'; +import { Amount } from './amount'; +import { BankAccountDetail } from './bankAccountDetail'; +import { BusinessDetails } from './businessDetails'; +import { CloseAccountHolderRequest } from './closeAccountHolderRequest'; +import { CloseAccountHolderResponse } from './closeAccountHolderResponse'; +import { CloseAccountRequest } from './closeAccountRequest'; +import { CloseAccountResponse } from './closeAccountResponse'; +import { CloseStoresRequest } from './closeStoresRequest'; +import { CreateAccountHolderRequest } from './createAccountHolderRequest'; +import { CreateAccountHolderResponse } from './createAccountHolderResponse'; +import { CreateAccountRequest } from './createAccountRequest'; +import { CreateAccountResponse } from './createAccountResponse'; +import { DeleteBankAccountRequest } from './deleteBankAccountRequest'; +import { DeletePayoutMethodRequest } from './deletePayoutMethodRequest'; +import { DeleteShareholderRequest } from './deleteShareholderRequest'; +import { DeleteSignatoriesRequest } from './deleteSignatoriesRequest'; +import { DocumentDetail } from './documentDetail'; +import { ErrorFieldType } from './errorFieldType'; +import { FieldType } from './fieldType'; +import { GenericResponse } from './genericResponse'; +import { GetAccountHolderRequest } from './getAccountHolderRequest'; +import { GetAccountHolderResponse } from './getAccountHolderResponse'; +import { GetAccountHolderStatusResponse } from './getAccountHolderStatusResponse'; +import { GetTaxFormRequest } from './getTaxFormRequest'; +import { GetTaxFormResponse } from './getTaxFormResponse'; +import { GetUploadedDocumentsRequest } from './getUploadedDocumentsRequest'; +import { GetUploadedDocumentsResponse } from './getUploadedDocumentsResponse'; +import { IndividualDetails } from './individualDetails'; +import { KYCCheckResult } from './kYCCheckResult'; +import { KYCCheckStatusData } from './kYCCheckStatusData'; +import { KYCCheckSummary } from './kYCCheckSummary'; +import { KYCLegalArrangementCheckResult } from './kYCLegalArrangementCheckResult'; +import { KYCLegalArrangementEntityCheckResult } from './kYCLegalArrangementEntityCheckResult'; +import { KYCPayoutMethodCheckResult } from './kYCPayoutMethodCheckResult'; +import { KYCShareholderCheckResult } from './kYCShareholderCheckResult'; +import { KYCSignatoryCheckResult } from './kYCSignatoryCheckResult'; +import { KYCUltimateParentCompanyCheckResult } from './kYCUltimateParentCompanyCheckResult'; +import { KYCVerificationResult } from './kYCVerificationResult'; +import { LegalArrangementDetail } from './legalArrangementDetail'; +import { LegalArrangementEntityDetail } from './legalArrangementEntityDetail'; +import { PayoutMethod } from './payoutMethod'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; +import { PerformVerificationRequest } from './performVerificationRequest'; +import { PersonalDocumentData } from './personalDocumentData'; +import { ServiceError } from './serviceError'; +import { ShareholderContact } from './shareholderContact'; +import { SignatoryContact } from './signatoryContact'; +import { StoreDetail } from './storeDetail'; +import { SuspendAccountHolderRequest } from './suspendAccountHolderRequest'; +import { SuspendAccountHolderResponse } from './suspendAccountHolderResponse'; +import { UltimateParentCompany } from './ultimateParentCompany'; +import { UltimateParentCompanyBusinessDetails } from './ultimateParentCompanyBusinessDetails'; +import { UnSuspendAccountHolderRequest } from './unSuspendAccountHolderRequest'; +import { UnSuspendAccountHolderResponse } from './unSuspendAccountHolderResponse'; +import { UpdateAccountHolderRequest } from './updateAccountHolderRequest'; +import { UpdateAccountHolderResponse } from './updateAccountHolderResponse'; +import { UpdateAccountHolderStateRequest } from './updateAccountHolderStateRequest'; +import { UpdateAccountRequest } from './updateAccountRequest'; +import { UpdateAccountResponse } from './updateAccountResponse'; +import { UpdatePayoutScheduleRequest } from './updatePayoutScheduleRequest'; +import { UploadDocumentRequest } from './uploadDocumentRequest'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -195,9 +183,8 @@ let enumsMap: {[index: string]: any} = { "KYCCheckStatusData.TypeEnum": KYCCheckStatusData.TypeEnum, "LegalArrangementDetail.LegalFormEnum": LegalArrangementDetail.LegalFormEnum, "LegalArrangementDetail.TypeEnum": LegalArrangementDetail.TypeEnum, - "LegalArrangementEntityDetail.LegalArrangementMemberEnum": LegalArrangementEntityDetail.LegalArrangementMemberEnum, + "LegalArrangementEntityDetail.LegalArrangementMembersEnum": LegalArrangementEntityDetail.LegalArrangementMembersEnum, "LegalArrangementEntityDetail.LegalEntityTypeEnum": LegalArrangementEntityDetail.LegalEntityTypeEnum, - "PayoutMethod.PayoutMethodTypeEnum": PayoutMethod.PayoutMethodTypeEnum, "PayoutScheduleResponse.ScheduleEnum": PayoutScheduleResponse.ScheduleEnum, "PerformVerificationRequest.AccountStateTypeEnum": PerformVerificationRequest.AccountStateTypeEnum, "PersonalDocumentData.TypeEnum": PersonalDocumentData.TypeEnum, @@ -229,6 +216,7 @@ let typeMap: {[index: string]: any} = { "CloseAccountHolderResponse": CloseAccountHolderResponse, "CloseAccountRequest": CloseAccountRequest, "CloseAccountResponse": CloseAccountResponse, + "CloseStoresRequest": CloseStoresRequest, "CreateAccountHolderRequest": CreateAccountHolderRequest, "CreateAccountHolderResponse": CreateAccountHolderResponse, "CreateAccountRequest": CreateAccountRequest, @@ -249,7 +237,7 @@ let typeMap: {[index: string]: any} = { "GetUploadedDocumentsRequest": GetUploadedDocumentsRequest, "GetUploadedDocumentsResponse": GetUploadedDocumentsResponse, "IndividualDetails": IndividualDetails, - "KYCCheckResult2": KYCCheckResult2, + "KYCCheckResult": KYCCheckResult, "KYCCheckStatusData": KYCCheckStatusData, "KYCCheckSummary": KYCCheckSummary, "KYCLegalArrangementCheckResult": KYCLegalArrangementCheckResult, @@ -257,7 +245,8 @@ let typeMap: {[index: string]: any} = { "KYCPayoutMethodCheckResult": KYCPayoutMethodCheckResult, "KYCShareholderCheckResult": KYCShareholderCheckResult, "KYCSignatoryCheckResult": KYCSignatoryCheckResult, - "KYCVerificationResult2": KYCVerificationResult2, + "KYCUltimateParentCompanyCheckResult": KYCUltimateParentCompanyCheckResult, + "KYCVerificationResult": KYCVerificationResult, "LegalArrangementDetail": LegalArrangementDetail, "LegalArrangementEntityDetail": LegalArrangementEntityDetail, "PayoutMethod": PayoutMethod, @@ -270,6 +259,8 @@ let typeMap: {[index: string]: any} = { "StoreDetail": StoreDetail, "SuspendAccountHolderRequest": SuspendAccountHolderRequest, "SuspendAccountHolderResponse": SuspendAccountHolderResponse, + "UltimateParentCompany": UltimateParentCompany, + "UltimateParentCompanyBusinessDetails": UltimateParentCompanyBusinessDetails, "UnSuspendAccountHolderRequest": UnSuspendAccountHolderRequest, "UnSuspendAccountHolderResponse": UnSuspendAccountHolderResponse, "UpdateAccountHolderRequest": UpdateAccountHolderRequest, @@ -337,6 +328,9 @@ export class ObjectSerializer { return transformedData; } else if (type === "Date") { return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); } else { if (enumsMap[type]) { return data; @@ -394,4 +388,4 @@ export class ObjectSerializer { return instance; } } -} \ No newline at end of file +} diff --git a/src/typings/platformsAccount/payoutMethod.ts b/src/typings/platformsAccount/payoutMethod.ts index 8a7c5f0..84daa65 100644 --- a/src/typings/platformsAccount/payoutMethod.ts +++ b/src/typings/platformsAccount/payoutMethod.ts @@ -1,20 +1,33 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayoutMethod { + /** + * The [`merchantAccount`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_merchantAccount) you used in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'merchantAccount': string; + /** + * Adyen-generated unique alphanumeric identifier (UUID) for the payout method, returned in the response when you create a payout method. Required when updating an existing payout method in an `/updateAccountHolder` request. + */ 'payoutMethodCode'?: string; - 'payoutMethodType'?: PayoutMethod.PayoutMethodTypeEnum; + /** + * Your reference for the payout method. + */ + 'payoutMethodReference'?: string; + /** + * The [`recurringDetailReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-recurring-recurringDetailReference) returned in the `/payments` response when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'recurringDetailReference': string; + /** + * The [`shopperReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__reqParam_shopperReference) you sent in the `/payments` request when you [saved the account holder\'s card details](https://docs.adyen.com/platforms/payout-to-cards#check-and-store). + */ 'shopperReference': string; static discriminator: string | undefined = undefined; @@ -31,9 +44,9 @@ export class PayoutMethod { "type": "string" }, { - "name": "payoutMethodType", - "baseName": "payoutMethodType", - "type": "PayoutMethod.PayoutMethodTypeEnum" + "name": "payoutMethodReference", + "baseName": "payoutMethodReference", + "type": "string" }, { "name": "recurringDetailReference", @@ -51,8 +64,3 @@ export class PayoutMethod { } } -export namespace PayoutMethod { - export enum PayoutMethodTypeEnum { - CardToken = 'CardToken' - } -} diff --git a/src/typings/platformsAccount/payoutScheduleResponse.ts b/src/typings/platformsAccount/payoutScheduleResponse.ts index 1c77a76..350ad64 100644 --- a/src/typings/platformsAccount/payoutScheduleResponse.ts +++ b/src/typings/platformsAccount/payoutScheduleResponse.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PayoutScheduleResponse { /** * The date of the next scheduled payout. @@ -43,6 +41,9 @@ export namespace PayoutScheduleResponse { export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -55,7 +56,12 @@ export namespace PayoutScheduleResponse { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } } diff --git a/src/typings/platformsAccount/performVerificationRequest.ts b/src/typings/platformsAccount/performVerificationRequest.ts index a968894..033a96a 100644 --- a/src/typings/platformsAccount/performVerificationRequest.ts +++ b/src/typings/platformsAccount/performVerificationRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PerformVerificationRequest { /** * The code of the account holder to verify. diff --git a/src/typings/platformsAccount/personalDocumentData.ts b/src/typings/platformsAccount/personalDocumentData.ts index 79e54db..82a057d 100644 --- a/src/typings/platformsAccount/personalDocumentData.ts +++ b/src/typings/platformsAccount/personalDocumentData.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class PersonalDocumentData { /** * The expiry date of the document, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**. diff --git a/src/typings/platformsAccount/serviceError.ts b/src/typings/platformsAccount/serviceError.ts index 853a98d..48534a5 100644 --- a/src/typings/platformsAccount/serviceError.ts +++ b/src/typings/platformsAccount/serviceError.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError { /** * The error code mapped to the error message. diff --git a/src/typings/platformsAccount/shareholderContact.ts b/src/typings/platformsAccount/shareholderContact.ts index 8efffe2..db07a05 100644 --- a/src/typings/platformsAccount/shareholderContact.ts +++ b/src/typings/platformsAccount/shareholderContact.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class ShareholderContact { 'address'?: ViasAddress; diff --git a/src/typings/platformsAccount/signatoryContact.ts b/src/typings/platformsAccount/signatoryContact.ts index dad0cd0..6cc2629 100644 --- a/src/typings/platformsAccount/signatoryContact.ts +++ b/src/typings/platformsAccount/signatoryContact.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasName} from './viasName'; -import {ViasPersonalData} from './viasPersonalData'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasName } from './viasName'; +import { ViasPersonalData } from './viasPersonalData'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class SignatoryContact { 'address'?: ViasAddress; @@ -33,11 +30,11 @@ export class SignatoryContact { 'personalData'?: ViasPersonalData; 'phoneNumber'?: ViasPhoneNumber; /** - * The unique identifier (UUID) of the Signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** + * The unique identifier (UUID) of the signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.** */ 'signatoryCode'?: string; /** - * Your reference for the Signatory. + * Your reference for the signatory. */ 'signatoryReference'?: string; /** diff --git a/src/typings/platformsAccount/storeDetail.ts b/src/typings/platformsAccount/storeDetail.ts index d5a1403..9c6e9c9 100644 --- a/src/typings/platformsAccount/storeDetail.ts +++ b/src/typings/platformsAccount/storeDetail.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ViasAddress} from './viasAddress'; -import {ViasPhoneNumber} from './viasPhoneNumber'; +import { ViasAddress } from './viasAddress'; +import { ViasPhoneNumber } from './viasPhoneNumber'; export class StoreDetail { 'address': ViasAddress; @@ -45,11 +42,11 @@ export class StoreDetail { */ 'store'?: string; /** - * The name of the account holder\'s store, between 3 to 22 characters in length. This value will be shown in shopper statements. + * The name of the account holder\'s store. This value is shown in shopper statements. * Length: Between 3 to 22 characters * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\** */ 'storeName'?: string; /** - * Your unique identifier for the store, between 3 to 128 characters in length. This value will be shown as the store description in your Customer Area. + * Your unique identifier for the store. The Customer Area also uses this value for the store description. * Length: Between 3 to 128 characters * The following characters are *not* supported: **:;}{$#@!|<>%^*+=\\\\** */ 'storeReference': string; /** diff --git a/src/typings/platformsAccount/suspendAccountHolderRequest.ts b/src/typings/platformsAccount/suspendAccountHolderRequest.ts index 977eaaf..0906a0e 100644 --- a/src/typings/platformsAccount/suspendAccountHolderRequest.ts +++ b/src/typings/platformsAccount/suspendAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class SuspendAccountHolderRequest { /** * The code of the account holder to be suspended. diff --git a/src/typings/platformsAccount/suspendAccountHolderResponse.ts b/src/typings/platformsAccount/suspendAccountHolderResponse.ts index ed1cd15..905bca5 100644 --- a/src/typings/platformsAccount/suspendAccountHolderResponse.ts +++ b/src/typings/platformsAccount/suspendAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class SuspendAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/ultimateParentCompany.ts b/src/typings/platformsAccount/ultimateParentCompany.ts new file mode 100644 index 0000000..207d895 --- /dev/null +++ b/src/typings/platformsAccount/ultimateParentCompany.ts @@ -0,0 +1,44 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { UltimateParentCompanyBusinessDetails } from './ultimateParentCompanyBusinessDetails'; +import { ViasAddress } from './viasAddress'; + +export class UltimateParentCompany { + 'address'?: ViasAddress; + 'businessDetails'?: UltimateParentCompanyBusinessDetails; + /** + * Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create an ultimate parent company. Required when updating an existing entry in an `/updateAccountHolder` request. + */ + 'ultimateParentCompanyCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "ViasAddress" + }, + { + "name": "businessDetails", + "baseName": "businessDetails", + "type": "UltimateParentCompanyBusinessDetails" + }, + { + "name": "ultimateParentCompanyCode", + "baseName": "ultimateParentCompanyCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UltimateParentCompany.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts b/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts new file mode 100644 index 0000000..ecc0588 --- /dev/null +++ b/src/typings/platformsAccount/ultimateParentCompanyBusinessDetails.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UltimateParentCompanyBusinessDetails { + /** + * The legal name of the company. + */ + 'legalBusinessName'?: string; + /** + * The registration number of the company. + */ + 'registrationNumber'?: string; + /** + * Market Identifier Code (MIC). + */ + 'stockExchange'?: string; + /** + * International Securities Identification Number (ISIN). + */ + 'stockNumber'?: string; + /** + * Stock Ticker symbol. + */ + 'stockTicker'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "legalBusinessName", + "baseName": "legalBusinessName", + "type": "string" + }, + { + "name": "registrationNumber", + "baseName": "registrationNumber", + "type": "string" + }, + { + "name": "stockExchange", + "baseName": "stockExchange", + "type": "string" + }, + { + "name": "stockNumber", + "baseName": "stockNumber", + "type": "string" + }, + { + "name": "stockTicker", + "baseName": "stockTicker", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return UltimateParentCompanyBusinessDetails.attributeTypeMap; + } +} + diff --git a/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts b/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts index f92edc0..c91cfae 100644 --- a/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts +++ b/src/typings/platformsAccount/unSuspendAccountHolderRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UnSuspendAccountHolderRequest { /** * The code of the account holder to be reinstated. diff --git a/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts b/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts index 8bb5977..abc2719 100644 --- a/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts +++ b/src/typings/platformsAccount/unSuspendAccountHolderResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; export class UnSuspendAccountHolderResponse { 'accountHolderStatus': AccountHolderStatus; diff --git a/src/typings/platformsAccount/updateAccountHolderRequest.ts b/src/typings/platformsAccount/updateAccountHolderRequest.ts index cd64878..58757e5 100644 --- a/src/typings/platformsAccount/updateAccountHolderRequest.ts +++ b/src/typings/platformsAccount/updateAccountHolderRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; +import { AccountHolderDetails } from './accountHolderDetails'; export class UpdateAccountHolderRequest { /** diff --git a/src/typings/platformsAccount/updateAccountHolderResponse.ts b/src/typings/platformsAccount/updateAccountHolderResponse.ts index 081cd2c..65c0ebf 100644 --- a/src/typings/platformsAccount/updateAccountHolderResponse.ts +++ b/src/typings/platformsAccount/updateAccountHolderResponse.ts @@ -1,19 +1,16 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {AccountHolderDetails} from './accountHolderDetails'; -import {AccountHolderStatus} from './accountHolderStatus'; -import {ErrorFieldType} from './errorFieldType'; -import {KYCVerificationResult2} from './kYCVerificationResult2'; +import { AccountHolderDetails } from './accountHolderDetails'; +import { AccountHolderStatus } from './accountHolderStatus'; +import { ErrorFieldType } from './errorFieldType'; +import { KYCVerificationResult } from './kYCVerificationResult'; export class UpdateAccountHolderResponse { /** @@ -46,7 +43,7 @@ export class UpdateAccountHolderResponse { * The result code. */ 'resultCode'?: string; - 'verification': KYCVerificationResult2; + 'verification': KYCVerificationResult; /** * The identifier of the profile that applies to this entity. */ @@ -103,7 +100,7 @@ export class UpdateAccountHolderResponse { { "name": "verification", "baseName": "verification", - "type": "KYCVerificationResult2" + "type": "KYCVerificationResult" }, { "name": "verificationProfile", diff --git a/src/typings/platformsAccount/updateAccountHolderStateRequest.ts b/src/typings/platformsAccount/updateAccountHolderStateRequest.ts index 977e79d..3259932 100644 --- a/src/typings/platformsAccount/updateAccountHolderStateRequest.ts +++ b/src/typings/platformsAccount/updateAccountHolderStateRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdateAccountHolderStateRequest { /** * The code of the Account Holder on which to update the state. diff --git a/src/typings/platformsAccount/updateAccountRequest.ts b/src/typings/platformsAccount/updateAccountRequest.ts index c4737c4..f9bd7c5 100644 --- a/src/typings/platformsAccount/updateAccountRequest.ts +++ b/src/typings/platformsAccount/updateAccountRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest'; +import { UpdatePayoutScheduleRequest } from './updatePayoutScheduleRequest'; export class UpdateAccountRequest { /** diff --git a/src/typings/platformsAccount/updateAccountResponse.ts b/src/typings/platformsAccount/updateAccountResponse.ts index 07f81cd..8f5e0a0 100644 --- a/src/typings/platformsAccount/updateAccountResponse.ts +++ b/src/typings/platformsAccount/updateAccountResponse.ts @@ -1,17 +1,14 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {ErrorFieldType} from './errorFieldType'; -import {PayoutScheduleResponse} from './payoutScheduleResponse'; +import { ErrorFieldType } from './errorFieldType'; +import { PayoutScheduleResponse } from './payoutScheduleResponse'; export class UpdateAccountResponse { /** diff --git a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts index c7b5c27..adbb1a8 100644 --- a/src/typings/platformsAccount/updatePayoutScheduleRequest.ts +++ b/src/typings/platformsAccount/updatePayoutScheduleRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class UpdatePayoutScheduleRequest { /** * Direction on how to handle any payouts that have already been scheduled. Permitted values: * `CLOSE` will close the existing batch of payouts. * `UPDATE` will reschedule the existing batch to the new schedule. * `NOTHING` (**default**) will allow the payout to proceed. @@ -20,7 +18,7 @@ export class UpdatePayoutScheduleRequest { */ 'reason'?: string; /** - * The payout schedule to which the account is to be updated. Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur. + * The payout schedule to which the account is to be updated. Permitted values: `DAILY`, `DAILY_US`, `DAILY_EU`, `DAILY_AU`, `DAILY_SG`, `WEEKLY`, `WEEKLY_ON_TUE_FRI_MIDNIGHT`, `BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT`, `MONTHLY`, `HOLD`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur. */ 'schedule': UpdatePayoutScheduleRequest.ScheduleEnum; @@ -57,6 +55,9 @@ export namespace UpdatePayoutScheduleRequest { export enum ScheduleEnum { BiweeklyOn1StAnd15ThAtMidnight = 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT', BiweeklyOn1StAnd15ThAtNoon = 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON', + BiDailyAu = 'BI_DAILY_AU', + BiDailyEu = 'BI_DAILY_EU', + BiDailyUs = 'BI_DAILY_US', Daily = 'DAILY', Daily6Pm = 'DAILY_6PM', DailyAu = 'DAILY_AU', @@ -69,7 +70,12 @@ export namespace UpdatePayoutScheduleRequest { Monthly = 'MONTHLY', MonthlyOn15ThAtMidnight = 'MONTHLY_ON_15TH_AT_MIDNIGHT', Weekly = 'WEEKLY', + WeeklyMonToFriAu = 'WEEKLY_MON_TO_FRI_AU', + WeeklyMonToFriEu = 'WEEKLY_MON_TO_FRI_EU', + WeeklyMonToFriUs = 'WEEKLY_MON_TO_FRI_US', WeeklyOnTueFriMidnight = 'WEEKLY_ON_TUE_FRI_MIDNIGHT', + WeeklySunToThuAu = 'WEEKLY_SUN_TO_THU_AU', + WeeklySunToThuUs = 'WEEKLY_SUN_TO_THU_US', Yearly = 'YEARLY' } } diff --git a/src/typings/platformsAccount/uploadDocumentRequest.ts b/src/typings/platformsAccount/uploadDocumentRequest.ts index 483ccd5..61f5bb0 100644 --- a/src/typings/platformsAccount/uploadDocumentRequest.ts +++ b/src/typings/platformsAccount/uploadDocumentRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {DocumentDetail} from './documentDetail'; +import { DocumentDetail } from './documentDetail'; export class UploadDocumentRequest { /** diff --git a/src/typings/platformsAccount/viasAddress.ts b/src/typings/platformsAccount/viasAddress.ts index 880cc56..0533d6c 100644 --- a/src/typings/platformsAccount/viasAddress.ts +++ b/src/typings/platformsAccount/viasAddress.ts @@ -1,22 +1,20 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasAddress { /** - * The name of the city. >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. + * The name of the city. Required if the `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided. */ 'city'?: string; /** - * The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character country code of the address in ISO-3166-1 alpha-2 format. For example, **NL**. */ 'country': string; /** @@ -24,15 +22,15 @@ export class ViasAddress { */ 'houseNumberOrName'?: string; /** - * The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. >Required if either `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. + * The postal code. Required if the `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided. Maximum length: * 5 digits for addresses in the US. * 10 characters for all other countries. */ 'postalCode'?: string; /** - * The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. + * The abbreviation of the state or province. Required if the `houseNumberOrName`, `street`, `city`, or `postalCode` are provided. Maximum length: * 2 characters for addresses in the US or Canada. * 3 characters for all other countries. */ 'stateOrProvince'?: string; /** - * The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided. + * The name of the street. Required if the `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided. */ 'street'?: string; diff --git a/src/typings/platformsAccount/viasName.ts b/src/typings/platformsAccount/viasName.ts index 9d8a0e6..39ec41e 100644 --- a/src/typings/platformsAccount/viasName.ts +++ b/src/typings/platformsAccount/viasName.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasName { /** * The first name. diff --git a/src/typings/platformsAccount/viasPersonalData.ts b/src/typings/platformsAccount/viasPersonalData.ts index 2e9728c..199efb6 100644 --- a/src/typings/platformsAccount/viasPersonalData.ts +++ b/src/typings/platformsAccount/viasPersonalData.ts @@ -1,16 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {PersonalDocumentData} from './personalDocumentData'; +import { PersonalDocumentData } from './personalDocumentData'; export class ViasPersonalData { /** diff --git a/src/typings/platformsAccount/viasPhoneNumber.ts b/src/typings/platformsAccount/viasPhoneNumber.ts index 207586f..3387378 100644 --- a/src/typings/platformsAccount/viasPhoneNumber.ts +++ b/src/typings/platformsAccount/viasPhoneNumber.ts @@ -1,15 +1,13 @@ -/** - * Adyen for Platforms: Account API - * The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ``` - * - * The version of the OpenAPI document: 6 +/* + * The version of the OpenAPI document: v6 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ViasPhoneNumber { /** * The two-character country code of the phone number. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). diff --git a/src/typings/platformsFund/accountDetailBalance.ts b/src/typings/platformsFund/accountDetailBalance.ts new file mode 100644 index 0000000..25cb16a --- /dev/null +++ b/src/typings/platformsFund/accountDetailBalance.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { DetailBalance } from './detailBalance'; + +export class AccountDetailBalance { + /** + * The code of the account that holds the balance. + */ + 'accountCode'?: string; + 'detailBalance'?: DetailBalance; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountCode", + "baseName": "accountCode", + "type": "string" + }, + { + "name": "detailBalance", + "baseName": "detailBalance", + "type": "DetailBalance" + } ]; + + static getAttributeTypeMap() { + return AccountDetailBalance.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/accountHolderBalanceRequest.ts b/src/typings/platformsFund/accountHolderBalanceRequest.ts new file mode 100644 index 0000000..c0c7605 --- /dev/null +++ b/src/typings/platformsFund/accountHolderBalanceRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AccountHolderBalanceRequest { + /** + * The code of the Account Holder of which to retrieve the balance. + */ + 'accountHolderCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountHolderBalanceRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/accountHolderBalanceResponse.ts b/src/typings/platformsFund/accountHolderBalanceResponse.ts new file mode 100644 index 0000000..8526385 --- /dev/null +++ b/src/typings/platformsFund/accountHolderBalanceResponse.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountDetailBalance } from './accountDetailBalance'; +import { DetailBalance } from './detailBalance'; +import { ErrorFieldType } from './errorFieldType'; + +export class AccountHolderBalanceResponse { + /** + * A list of each account and their balances. + */ + 'balancePerAccount'?: Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + 'totalBalance'?: DetailBalance; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePerAccount", + "baseName": "balancePerAccount", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + }, + { + "name": "totalBalance", + "baseName": "totalBalance", + "type": "DetailBalance" + } ]; + + static getAttributeTypeMap() { + return AccountHolderBalanceResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/accountHolderTransactionListRequest.ts b/src/typings/platformsFund/accountHolderTransactionListRequest.ts new file mode 100644 index 0000000..e3fef14 --- /dev/null +++ b/src/typings/platformsFund/accountHolderTransactionListRequest.ts @@ -0,0 +1,96 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { TransactionListForAccount } from './transactionListForAccount'; + +export class AccountHolderTransactionListRequest { + /** + * The code of the account holder that owns the account(s) of which retrieve the transaction list. + */ + 'accountHolderCode': string; + /** + * A list of accounts to include in the transaction list. If left blank, the last fifty (50) transactions for all accounts of the account holder will be included. + */ + 'transactionListsPerAccount'?: Array; + /** + * A list of statuses to include in the transaction list. If left blank, all transactions will be included. >Permitted values: >* `PendingCredit` - a pending balance credit. >* `CreditFailed` - a pending credit failure; the balance will not be credited. >* `Credited` - a credited balance. >* `PendingDebit` - a pending balance debit (e.g., a refund). >* `CreditClosed` - a pending credit closed; the balance will not be credited. >* `CreditSuspended` - a pending credit closed; the balance will not be credited. >* `DebitFailed` - a pending debit failure; the balance will not be debited. >* `Debited` - a debited balance (e.g., a refund). >* `DebitReversedReceived` - a pending refund reversal. >* `DebitedReversed` - a reversed refund. >* `ChargebackReceived` - a received chargeback request. >* `Chargeback` - a processed chargeback. >* `ChargebackReversedReceived` - a pending chargeback reversal. >* `ChargebackReversed` - a reversed chargeback. >* `Converted` - converted. >* `ManualCorrected` - manual booking/adjustment by Adyen. >* `Payout` - a payout. >* `PayoutReversed` - a reversed payout. >* `PendingFundTransfer` - a pending transfer of funds from one account to another. >* `FundTransfer` - a transfer of funds from one account to another. + */ + 'transactionStatuses'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "transactionListsPerAccount", + "baseName": "transactionListsPerAccount", + "type": "Array" + }, + { + "name": "transactionStatuses", + "baseName": "transactionStatuses", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AccountHolderTransactionListRequest.attributeTypeMap; + } +} + +export namespace AccountHolderTransactionListRequest { + export enum TransactionStatusesEnum { + BalanceNotPaidOutTransfer = 'BalanceNotPaidOutTransfer', + Chargeback = 'Chargeback', + ChargebackCorrection = 'ChargebackCorrection', + ChargebackCorrectionReceived = 'ChargebackCorrectionReceived', + ChargebackReceived = 'ChargebackReceived', + ChargebackReversed = 'ChargebackReversed', + ChargebackReversedCorrection = 'ChargebackReversedCorrection', + ChargebackReversedCorrectionReceived = 'ChargebackReversedCorrectionReceived', + ChargebackReversedReceived = 'ChargebackReversedReceived', + Converted = 'Converted', + CreditClosed = 'CreditClosed', + CreditFailed = 'CreditFailed', + CreditReversed = 'CreditReversed', + CreditReversedReceived = 'CreditReversedReceived', + CreditSuspended = 'CreditSuspended', + Credited = 'Credited', + DebitFailed = 'DebitFailed', + DebitReversedReceived = 'DebitReversedReceived', + Debited = 'Debited', + DebitedReversed = 'DebitedReversed', + DepositCorrectionCredited = 'DepositCorrectionCredited', + DepositCorrectionDebited = 'DepositCorrectionDebited', + Fee = 'Fee', + FundTransfer = 'FundTransfer', + FundTransferReversed = 'FundTransferReversed', + InvoiceDeductionCredited = 'InvoiceDeductionCredited', + InvoiceDeductionDebited = 'InvoiceDeductionDebited', + ManualCorrected = 'ManualCorrected', + ManualCorrectionCredited = 'ManualCorrectionCredited', + ManualCorrectionDebited = 'ManualCorrectionDebited', + MerchantPayin = 'MerchantPayin', + MerchantPayinReversed = 'MerchantPayinReversed', + Payout = 'Payout', + PayoutReversed = 'PayoutReversed', + PendingCredit = 'PendingCredit', + PendingDebit = 'PendingDebit', + PendingFundTransfer = 'PendingFundTransfer', + ReCredited = 'ReCredited', + ReCreditedReceived = 'ReCreditedReceived', + SecondChargeback = 'SecondChargeback', + SecondChargebackCorrection = 'SecondChargebackCorrection', + SecondChargebackCorrectionReceived = 'SecondChargebackCorrectionReceived', + SecondChargebackReceived = 'SecondChargebackReceived' + } +} diff --git a/src/typings/platformsFund/accountHolderTransactionListResponse.ts b/src/typings/platformsFund/accountHolderTransactionListResponse.ts new file mode 100644 index 0000000..e5dc624 --- /dev/null +++ b/src/typings/platformsFund/accountHolderTransactionListResponse.ts @@ -0,0 +1,59 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountTransactionList } from './accountTransactionList'; +import { ErrorFieldType } from './errorFieldType'; + +export class AccountHolderTransactionListResponse { + /** + * A list of the transactions. + */ + 'accountTransactionLists'?: Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountTransactionLists", + "baseName": "accountTransactionLists", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return AccountHolderTransactionListResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/accountTransactionList.ts b/src/typings/platformsFund/accountTransactionList.ts new file mode 100644 index 0000000..61a84bb --- /dev/null +++ b/src/typings/platformsFund/accountTransactionList.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Transaction } from './transaction'; + +export class AccountTransactionList { + /** + * The code of the account. + */ + 'accountCode'?: string; + /** + * Indicates whether there is a next page of transactions available. + */ + 'hasNextPage'?: boolean; + /** + * The list of transactions. + */ + 'transactions'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountCode", + "baseName": "accountCode", + "type": "string" + }, + { + "name": "hasNextPage", + "baseName": "hasNextPage", + "type": "boolean" + }, + { + "name": "transactions", + "baseName": "transactions", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AccountTransactionList.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/amount.ts b/src/typings/platformsFund/amount.ts new file mode 100644 index 0000000..531ba7d --- /dev/null +++ b/src/typings/platformsFund/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/bankAccountDetail.ts b/src/typings/platformsFund/bankAccountDetail.ts new file mode 100644 index 0000000..f940e97 --- /dev/null +++ b/src/typings/platformsFund/bankAccountDetail.ts @@ -0,0 +1,255 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BankAccountDetail { + /** + * The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'accountNumber'?: string; + /** + * The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'accountType'?: string; + /** + * The name of the bank account. + */ + 'bankAccountName'?: string; + /** + * Merchant reference to the bank account. + */ + 'bankAccountReference'?: string; + /** + * The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated. + */ + 'bankAccountUUID'?: string; + /** + * The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'bankBicSwift'?: string; + /** + * The city in which the bank branch is located. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'bankCity'?: string; + /** + * The bank code of the banking institution with which the bank account is registered. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'bankCode'?: string; + /** + * The name of the banking institution with which the bank account is held. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'bankName'?: string; + /** + * The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'branchCode'?: string; + /** + * The check code of the bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'checkCode'?: string; + /** + * The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'countryCode'?: string; + /** + * The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'currencyCode'?: string; + /** + * The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'iban'?: string; + /** + * The city of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerCity'?: string; + /** + * The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerCountryCode'?: string; + /** + * The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31). + */ + 'ownerDateOfBirth'?: string; + /** + * The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerHouseNumberOrName'?: string; + /** + * The name of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerName'?: string; + /** + * The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerNationality'?: string; + /** + * The postal code of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerPostalCode'?: string; + /** + * The state of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerState'?: string; + /** + * The street name of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'ownerStreet'?: string; + /** + * If set to true, the bank account is a primary account. + */ + 'primaryAccount'?: boolean; + /** + * The tax ID number. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'taxId'?: string; + /** + * The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements. + */ + 'urlForVerification'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "accountType", + "baseName": "accountType", + "type": "string" + }, + { + "name": "bankAccountName", + "baseName": "bankAccountName", + "type": "string" + }, + { + "name": "bankAccountReference", + "baseName": "bankAccountReference", + "type": "string" + }, + { + "name": "bankAccountUUID", + "baseName": "bankAccountUUID", + "type": "string" + }, + { + "name": "bankBicSwift", + "baseName": "bankBicSwift", + "type": "string" + }, + { + "name": "bankCity", + "baseName": "bankCity", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "bankName", + "baseName": "bankName", + "type": "string" + }, + { + "name": "branchCode", + "baseName": "branchCode", + "type": "string" + }, + { + "name": "checkCode", + "baseName": "checkCode", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "currencyCode", + "baseName": "currencyCode", + "type": "string" + }, + { + "name": "iban", + "baseName": "iban", + "type": "string" + }, + { + "name": "ownerCity", + "baseName": "ownerCity", + "type": "string" + }, + { + "name": "ownerCountryCode", + "baseName": "ownerCountryCode", + "type": "string" + }, + { + "name": "ownerDateOfBirth", + "baseName": "ownerDateOfBirth", + "type": "string" + }, + { + "name": "ownerHouseNumberOrName", + "baseName": "ownerHouseNumberOrName", + "type": "string" + }, + { + "name": "ownerName", + "baseName": "ownerName", + "type": "string" + }, + { + "name": "ownerNationality", + "baseName": "ownerNationality", + "type": "string" + }, + { + "name": "ownerPostalCode", + "baseName": "ownerPostalCode", + "type": "string" + }, + { + "name": "ownerState", + "baseName": "ownerState", + "type": "string" + }, + { + "name": "ownerStreet", + "baseName": "ownerStreet", + "type": "string" + }, + { + "name": "primaryAccount", + "baseName": "primaryAccount", + "type": "boolean" + }, + { + "name": "taxId", + "baseName": "taxId", + "type": "string" + }, + { + "name": "urlForVerification", + "baseName": "urlForVerification", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return BankAccountDetail.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/debitAccountHolderRequest.ts b/src/typings/platformsFund/debitAccountHolderRequest.ts new file mode 100644 index 0000000..8f0ce78 --- /dev/null +++ b/src/typings/platformsFund/debitAccountHolderRequest.ts @@ -0,0 +1,74 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { Split } from './split'; + +export class DebitAccountHolderRequest { + /** + * The code of the account holder. + */ + 'accountHolderCode': string; + 'amount': Amount; + /** + * The Adyen-generated unique alphanumeric identifier (UUID) of the account holder\'s bank account. + */ + 'bankAccountUUID': string; + /** + * A description of the direct debit. Maximum length: 35 characters. Allowed characters: **a-z**, **A-Z**, **0-9**, and special characters **_/?:().,\'+ \";**. + */ + 'description'?: string; + /** + * Your merchant account. + */ + 'merchantAccount': string; + /** + * Contains instructions on how to split the funds between the accounts in your platform. The request must have at least one split item. + */ + 'splits': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bankAccountUUID", + "baseName": "bankAccountUUID", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "splits", + "baseName": "splits", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DebitAccountHolderRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/debitAccountHolderResponse.ts b/src/typings/platformsFund/debitAccountHolderResponse.ts new file mode 100644 index 0000000..fadc2a0 --- /dev/null +++ b/src/typings/platformsFund/debitAccountHolderResponse.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class DebitAccountHolderResponse { + /** + * The code of the account holder. + */ + 'accountHolderCode'?: string; + /** + * The Adyen-generated unique alphanumeric identifier (UUID) of the account holder\'s bank account. + */ + 'bankAccountUUID'?: string; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * List of the `reference` values from the `split` array in the request. + */ + 'merchantReferences'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "bankAccountUUID", + "baseName": "bankAccountUUID", + "type": "string" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "merchantReferences", + "baseName": "merchantReferences", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DebitAccountHolderResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/detailBalance.ts b/src/typings/platformsFund/detailBalance.ts new file mode 100644 index 0000000..90ae5cc --- /dev/null +++ b/src/typings/platformsFund/detailBalance.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class DetailBalance { + /** + * The list of balances held by the account. + */ + 'balance'?: Array; + /** + * The list of on hold balances held by the account. + */ + 'onHoldBalance'?: Array; + /** + * The list of pending balances held by the account. + */ + 'pendingBalance'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balance", + "baseName": "balance", + "type": "Array" + }, + { + "name": "onHoldBalance", + "baseName": "onHoldBalance", + "type": "Array" + }, + { + "name": "pendingBalance", + "baseName": "pendingBalance", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DetailBalance.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/errorFieldType.ts b/src/typings/platformsFund/errorFieldType.ts new file mode 100644 index 0000000..6ad0e7c --- /dev/null +++ b/src/typings/platformsFund/errorFieldType.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FieldType } from './fieldType'; + +export class ErrorFieldType { + /** + * The validation error code. + */ + 'errorCode'?: number; + /** + * A description of the validation error. + */ + 'errorDescription'?: string; + 'fieldType'?: FieldType; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "number" + }, + { + "name": "errorDescription", + "baseName": "errorDescription", + "type": "string" + }, + { + "name": "fieldType", + "baseName": "fieldType", + "type": "FieldType" + } ]; + + static getAttributeTypeMap() { + return ErrorFieldType.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/fieldType.ts b/src/typings/platformsFund/fieldType.ts new file mode 100644 index 0000000..487bf1b --- /dev/null +++ b/src/typings/platformsFund/fieldType.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FieldType { + /** + * The full name of the property. + */ + 'field'?: string; + /** + * The type of the field. + */ + 'fieldName'?: FieldType.FieldNameEnum; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + 'shareholderCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "field", + "baseName": "field", + "type": "string" + }, + { + "name": "fieldName", + "baseName": "fieldName", + "type": "FieldType.FieldNameEnum" + }, + { + "name": "shareholderCode", + "baseName": "shareholderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FieldType.attributeTypeMap; + } +} + +export namespace FieldType { + export enum FieldNameEnum { + AccountCode = 'accountCode', + AccountHolderCode = 'accountHolderCode', + AccountHolderDetails = 'accountHolderDetails', + AccountNumber = 'accountNumber', + AccountStateType = 'accountStateType', + AccountStatus = 'accountStatus', + AccountType = 'accountType', + Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', + BankAccount = 'bankAccount', + BankAccountCode = 'bankAccountCode', + BankAccountName = 'bankAccountName', + BankAccountUuid = 'bankAccountUUID', + BankBicSwift = 'bankBicSwift', + BankCity = 'bankCity', + BankCode = 'bankCode', + BankName = 'bankName', + BankStatement = 'bankStatement', + BranchCode = 'branchCode', + BusinessContact = 'businessContact', + CardToken = 'cardToken', + CheckCode = 'checkCode', + City = 'city', + CompanyRegistration = 'companyRegistration', + ConstitutionalDocument = 'constitutionalDocument', + Country = 'country', + CountryCode = 'countryCode', + Currency = 'currency', + CurrencyCode = 'currencyCode', + DateOfBirth = 'dateOfBirth', + Description = 'description', + DestinationAccountCode = 'destinationAccountCode', + Document = 'document', + DocumentContent = 'documentContent', + DocumentExpirationDate = 'documentExpirationDate', + DocumentIssuerCountry = 'documentIssuerCountry', + DocumentIssuerState = 'documentIssuerState', + DocumentName = 'documentName', + DocumentNumber = 'documentNumber', + DocumentType = 'documentType', + DoingBusinessAs = 'doingBusinessAs', + DrivingLicence = 'drivingLicence', + DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicense = 'drivingLicense', + Email = 'email', + FirstName = 'firstName', + FormType = 'formType', + FullPhoneNumber = 'fullPhoneNumber', + Gender = 'gender', + HopWebserviceUser = 'hopWebserviceUser', + HouseNumberOrName = 'houseNumberOrName', + Iban = 'iban', + IdCard = 'idCard', + IdCardBack = 'idCardBack', + IdCardFront = 'idCardFront', + IdNumber = 'idNumber', + IdentityDocument = 'identityDocument', + IndividualDetails = 'individualDetails', + Infix = 'infix', + JobTitle = 'jobTitle', + LastName = 'lastName', + LastReviewDate = 'lastReviewDate', + LegalArrangement = 'legalArrangement', + LegalArrangementCode = 'legalArrangementCode', + LegalArrangementEntity = 'legalArrangementEntity', + LegalArrangementEntityCode = 'legalArrangementEntityCode', + LegalArrangementLegalForm = 'legalArrangementLegalForm', + LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', + LegalArrangementName = 'legalArrangementName', + LegalArrangementReference = 'legalArrangementReference', + LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', + LegalArrangementTaxNumber = 'legalArrangementTaxNumber', + LegalArrangementType = 'legalArrangementType', + LegalBusinessName = 'legalBusinessName', + LegalEntity = 'legalEntity', + LegalEntityType = 'legalEntityType', + MerchantAccount = 'merchantAccount', + MerchantCategoryCode = 'merchantCategoryCode', + MerchantReference = 'merchantReference', + MicroDeposit = 'microDeposit', + Name = 'name', + Nationality = 'nationality', + OriginalReference = 'originalReference', + OwnerCity = 'ownerCity', + OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', + OwnerHouseNumberOrName = 'ownerHouseNumberOrName', + OwnerName = 'ownerName', + OwnerPostalCode = 'ownerPostalCode', + OwnerState = 'ownerState', + OwnerStreet = 'ownerStreet', + Passport = 'passport', + PassportNumber = 'passportNumber', + PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', + PersonalData = 'personalData', + PhoneCountryCode = 'phoneCountryCode', + PhoneNumber = 'phoneNumber', + PostalCode = 'postalCode', + PrimaryCurrency = 'primaryCurrency', + Reason = 'reason', + RegistrationNumber = 'registrationNumber', + ReturnUrl = 'returnUrl', + Schedule = 'schedule', + Shareholder = 'shareholder', + ShareholderCode = 'shareholderCode', + ShareholderCodeAndSignatoryCode = 'shareholderCodeAndSignatoryCode', + ShareholderCodeOrSignatoryCode = 'shareholderCodeOrSignatoryCode', + ShareholderType = 'shareholderType', + ShopperInteraction = 'shopperInteraction', + Signatory = 'signatory', + SignatoryCode = 'signatoryCode', + SocialSecurityNumber = 'socialSecurityNumber', + SourceAccountCode = 'sourceAccountCode', + SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', + SplitCurrency = 'splitCurrency', + SplitValue = 'splitValue', + Splits = 'splits', + StateOrProvince = 'stateOrProvince', + Status = 'status', + StockExchange = 'stockExchange', + StockNumber = 'stockNumber', + StockTicker = 'stockTicker', + Store = 'store', + StoreDetail = 'storeDetail', + StoreName = 'storeName', + StoreReference = 'storeReference', + Street = 'street', + TaxId = 'taxId', + Tier = 'tier', + TierNumber = 'tierNumber', + TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', + Unknown = 'unknown', + Value = 'value', + VerificationType = 'verificationType', + VirtualAccount = 'virtualAccount', + VisaNumber = 'visaNumber', + WebAddress = 'webAddress', + Year = 'year' + } +} diff --git a/src/typings/platformsFund/models.ts b/src/typings/platformsFund/models.ts new file mode 100644 index 0000000..af96365 --- /dev/null +++ b/src/typings/platformsFund/models.ts @@ -0,0 +1,234 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './accountDetailBalance'; +export * from './accountHolderBalanceRequest'; +export * from './accountHolderBalanceResponse'; +export * from './accountHolderTransactionListRequest'; +export * from './accountHolderTransactionListResponse'; +export * from './accountTransactionList'; +export * from './amount'; +export * from './bankAccountDetail'; +export * from './debitAccountHolderRequest'; +export * from './debitAccountHolderResponse'; +export * from './detailBalance'; +export * from './errorFieldType'; +export * from './fieldType'; +export * from './payoutAccountHolderRequest'; +export * from './payoutAccountHolderResponse'; +export * from './refundFundsTransferRequest'; +export * from './refundFundsTransferResponse'; +export * from './refundNotPaidOutTransfersRequest'; +export * from './refundNotPaidOutTransfersResponse'; +export * from './serviceError'; +export * from './setupBeneficiaryRequest'; +export * from './setupBeneficiaryResponse'; +export * from './split'; +export * from './splitAmount'; +export * from './transaction'; +export * from './transactionListForAccount'; +export * from './transferFundsRequest'; +export * from './transferFundsResponse'; + + +import { AccountDetailBalance } from './accountDetailBalance'; +import { AccountHolderBalanceRequest } from './accountHolderBalanceRequest'; +import { AccountHolderBalanceResponse } from './accountHolderBalanceResponse'; +import { AccountHolderTransactionListRequest } from './accountHolderTransactionListRequest'; +import { AccountHolderTransactionListResponse } from './accountHolderTransactionListResponse'; +import { AccountTransactionList } from './accountTransactionList'; +import { Amount } from './amount'; +import { BankAccountDetail } from './bankAccountDetail'; +import { DebitAccountHolderRequest } from './debitAccountHolderRequest'; +import { DebitAccountHolderResponse } from './debitAccountHolderResponse'; +import { DetailBalance } from './detailBalance'; +import { ErrorFieldType } from './errorFieldType'; +import { FieldType } from './fieldType'; +import { PayoutAccountHolderRequest } from './payoutAccountHolderRequest'; +import { PayoutAccountHolderResponse } from './payoutAccountHolderResponse'; +import { RefundFundsTransferRequest } from './refundFundsTransferRequest'; +import { RefundFundsTransferResponse } from './refundFundsTransferResponse'; +import { RefundNotPaidOutTransfersRequest } from './refundNotPaidOutTransfersRequest'; +import { RefundNotPaidOutTransfersResponse } from './refundNotPaidOutTransfersResponse'; +import { ServiceError } from './serviceError'; +import { SetupBeneficiaryRequest } from './setupBeneficiaryRequest'; +import { SetupBeneficiaryResponse } from './setupBeneficiaryResponse'; +import { Split } from './split'; +import { SplitAmount } from './splitAmount'; +import { Transaction } from './transaction'; +import { TransactionListForAccount } from './transactionListForAccount'; +import { TransferFundsRequest } from './transferFundsRequest'; +import { TransferFundsResponse } from './transferFundsResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "AccountHolderTransactionListRequest.TransactionStatusesEnum": AccountHolderTransactionListRequest.TransactionStatusesEnum, + "FieldType.FieldNameEnum": FieldType.FieldNameEnum, + "PayoutAccountHolderRequest.PayoutSpeedEnum": PayoutAccountHolderRequest.PayoutSpeedEnum, + "PayoutAccountHolderResponse.PayoutSpeedEnum": PayoutAccountHolderResponse.PayoutSpeedEnum, + "Split.TypeEnum": Split.TypeEnum, + "Transaction.TransactionStatusEnum": Transaction.TransactionStatusEnum, +} + +let typeMap: {[index: string]: any} = { + "AccountDetailBalance": AccountDetailBalance, + "AccountHolderBalanceRequest": AccountHolderBalanceRequest, + "AccountHolderBalanceResponse": AccountHolderBalanceResponse, + "AccountHolderTransactionListRequest": AccountHolderTransactionListRequest, + "AccountHolderTransactionListResponse": AccountHolderTransactionListResponse, + "AccountTransactionList": AccountTransactionList, + "Amount": Amount, + "BankAccountDetail": BankAccountDetail, + "DebitAccountHolderRequest": DebitAccountHolderRequest, + "DebitAccountHolderResponse": DebitAccountHolderResponse, + "DetailBalance": DetailBalance, + "ErrorFieldType": ErrorFieldType, + "FieldType": FieldType, + "PayoutAccountHolderRequest": PayoutAccountHolderRequest, + "PayoutAccountHolderResponse": PayoutAccountHolderResponse, + "RefundFundsTransferRequest": RefundFundsTransferRequest, + "RefundFundsTransferResponse": RefundFundsTransferResponse, + "RefundNotPaidOutTransfersRequest": RefundNotPaidOutTransfersRequest, + "RefundNotPaidOutTransfersResponse": RefundNotPaidOutTransfersResponse, + "ServiceError": ServiceError, + "SetupBeneficiaryRequest": SetupBeneficiaryRequest, + "SetupBeneficiaryResponse": SetupBeneficiaryResponse, + "Split": Split, + "SplitAmount": SplitAmount, + "Transaction": Transaction, + "TransactionListForAccount": TransactionListForAccount, + "TransferFundsRequest": TransferFundsRequest, + "TransferFundsResponse": TransferFundsResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/platformsFund/payoutAccountHolderRequest.ts b/src/typings/platformsFund/payoutAccountHolderRequest.ts new file mode 100644 index 0000000..8bbcb4e --- /dev/null +++ b/src/typings/platformsFund/payoutAccountHolderRequest.ts @@ -0,0 +1,98 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class PayoutAccountHolderRequest { + /** + * The code of the account from which the payout is to be made. + */ + 'accountCode': string; + /** + * The code of the Account Holder who owns the account from which the payout is to be made. The Account Holder is the party to which the payout will be made. + */ + 'accountHolderCode': string; + 'amount'?: Amount; + /** + * The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. If left blank, a bank account is automatically selected. + */ + 'bankAccountUUID'?: string; + /** + * A description of the payout. Maximum 35 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,\'+ \";** + */ + 'description'?: string; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + 'merchantReference'?: string; + /** + * The unique ID of the payout method held by the Account Holder to which the payout is to be made. If left blank, a payout instrument is automatically selected. + */ + 'payoutMethodCode'?: string; + /** + * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. + */ + 'payoutSpeed'?: PayoutAccountHolderRequest.PayoutSpeedEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountCode", + "baseName": "accountCode", + "type": "string" + }, + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bankAccountUUID", + "baseName": "bankAccountUUID", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "payoutMethodCode", + "baseName": "payoutMethodCode", + "type": "string" + }, + { + "name": "payoutSpeed", + "baseName": "payoutSpeed", + "type": "PayoutAccountHolderRequest.PayoutSpeedEnum" + } ]; + + static getAttributeTypeMap() { + return PayoutAccountHolderRequest.attributeTypeMap; + } +} + +export namespace PayoutAccountHolderRequest { + export enum PayoutSpeedEnum { + Instant = 'INSTANT', + SameDay = 'SAME_DAY', + Standard = 'STANDARD' + } +} diff --git a/src/typings/platformsFund/payoutAccountHolderResponse.ts b/src/typings/platformsFund/payoutAccountHolderResponse.ts new file mode 100644 index 0000000..abfb10d --- /dev/null +++ b/src/typings/platformsFund/payoutAccountHolderResponse.ts @@ -0,0 +1,83 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class PayoutAccountHolderResponse { + /** + * The unique ID of the Bank Account to which the payout was made. + */ + 'bankAccountUUID'?: string; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions. + */ + 'merchantReference'?: string; + /** + * Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`. + */ + 'payoutSpeed'?: PayoutAccountHolderResponse.PayoutSpeedEnum; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankAccountUUID", + "baseName": "bankAccountUUID", + "type": "string" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "payoutSpeed", + "baseName": "payoutSpeed", + "type": "PayoutAccountHolderResponse.PayoutSpeedEnum" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return PayoutAccountHolderResponse.attributeTypeMap; + } +} + +export namespace PayoutAccountHolderResponse { + export enum PayoutSpeedEnum { + Instant = 'INSTANT', + SameDay = 'SAME_DAY', + Standard = 'STANDARD' + } +} diff --git a/src/typings/platformsFund/refundFundsTransferRequest.ts b/src/typings/platformsFund/refundFundsTransferRequest.ts new file mode 100644 index 0000000..e1b5707 --- /dev/null +++ b/src/typings/platformsFund/refundFundsTransferRequest.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class RefundFundsTransferRequest { + 'amount': Amount; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + 'merchantReference'?: string; + /** + * A PSP reference of the original fund transfer. + */ + 'originalReference': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RefundFundsTransferRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/refundFundsTransferResponse.ts b/src/typings/platformsFund/refundFundsTransferResponse.ts new file mode 100644 index 0000000..7ba9bbd --- /dev/null +++ b/src/typings/platformsFund/refundFundsTransferResponse.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class RefundFundsTransferResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The value supplied by the executing user when initiating the transfer refund; may be used to link multiple transactions. + */ + 'merchantReference'?: string; + /** + * The message of the response. + */ + 'message'?: string; + /** + * A PSP reference of the original fund transfer. + */ + 'originalReference'?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RefundFundsTransferResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/refundNotPaidOutTransfersRequest.ts b/src/typings/platformsFund/refundNotPaidOutTransfersRequest.ts new file mode 100644 index 0000000..0a7816f --- /dev/null +++ b/src/typings/platformsFund/refundNotPaidOutTransfersRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class RefundNotPaidOutTransfersRequest { + /** + * The code of the account from which to perform the refund(s). + */ + 'accountCode': string; + /** + * The code of the Account Holder which owns the account from which to perform the refund(s). + */ + 'accountHolderCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountCode", + "baseName": "accountCode", + "type": "string" + }, + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RefundNotPaidOutTransfersRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/refundNotPaidOutTransfersResponse.ts b/src/typings/platformsFund/refundNotPaidOutTransfersResponse.ts new file mode 100644 index 0000000..aa491f9 --- /dev/null +++ b/src/typings/platformsFund/refundNotPaidOutTransfersResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class RefundNotPaidOutTransfersResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return RefundNotPaidOutTransfersResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/serviceError.ts b/src/typings/platformsFund/serviceError.ts new file mode 100644 index 0000000..48534a5 --- /dev/null +++ b/src/typings/platformsFund/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/setupBeneficiaryRequest.ts b/src/typings/platformsFund/setupBeneficiaryRequest.ts new file mode 100644 index 0000000..ce3dcea --- /dev/null +++ b/src/typings/platformsFund/setupBeneficiaryRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SetupBeneficiaryRequest { + /** + * The destination account code. + */ + 'destinationAccountCode': string; + /** + * A value that can be supplied at the discretion of the executing user. + */ + 'merchantReference'?: string; + /** + * The benefactor account. + */ + 'sourceAccountCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "destinationAccountCode", + "baseName": "destinationAccountCode", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "sourceAccountCode", + "baseName": "sourceAccountCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SetupBeneficiaryRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/setupBeneficiaryResponse.ts b/src/typings/platformsFund/setupBeneficiaryResponse.ts new file mode 100644 index 0000000..9a3432f --- /dev/null +++ b/src/typings/platformsFund/setupBeneficiaryResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class SetupBeneficiaryResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return SetupBeneficiaryResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/split.ts b/src/typings/platformsFund/split.ts new file mode 100644 index 0000000..adad957 --- /dev/null +++ b/src/typings/platformsFund/split.ts @@ -0,0 +1,76 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { SplitAmount } from './splitAmount'; + +export class Split { + /** + * Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**. + */ + 'account'?: string; + 'amount': SplitAmount; + /** + * A description of this split. + */ + 'description'?: string; + /** + * Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms. + */ + 'reference'?: string; + /** + * The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**. + */ + 'type': Split.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "account", + "baseName": "account", + "type": "string" + }, + { + "name": "amount", + "baseName": "amount", + "type": "SplitAmount" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "Split.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return Split.attributeTypeMap; + } +} + +export namespace Split { + export enum TypeEnum { + BalanceAccount = 'BalanceAccount', + Commission = 'Commission', + Default = 'Default', + MarketPlace = 'MarketPlace', + PaymentFee = 'PaymentFee', + Remainder = 'Remainder', + Vat = 'VAT', + Verification = 'Verification' + } +} diff --git a/src/typings/platformsFund/splitAmount.ts b/src/typings/platformsFund/splitAmount.ts new file mode 100644 index 0000000..cfff778 --- /dev/null +++ b/src/typings/platformsFund/splitAmount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class SplitAmount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used. + */ + 'currency'?: string; + /** + * The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return SplitAmount.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/transaction.ts b/src/typings/platformsFund/transaction.ts new file mode 100644 index 0000000..6f92cca --- /dev/null +++ b/src/typings/platformsFund/transaction.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { BankAccountDetail } from './bankAccountDetail'; + +export class Transaction { + 'amount'?: Amount; + 'bankAccountDetail'?: BankAccountDetail; + /** + * The merchant reference of a related capture. + */ + 'captureMerchantReference'?: string; + /** + * The psp reference of a related capture. + */ + 'capturePspReference'?: string; + /** + * The date on which the transaction was performed. + */ + 'creationDate'?: Date; + /** + * A description of the transaction. + */ + 'description'?: string; + /** + * The code of the account to which funds were credited during an outgoing fund transfer. + */ + 'destinationAccountCode'?: string; + /** + * The psp reference of the related dispute. + */ + 'disputePspReference'?: string; + /** + * The reason code of a dispute. + */ + 'disputeReasonCode'?: string; + /** + * The merchant reference of a transaction. + */ + 'merchantReference'?: string; + /** + * The psp reference of the related authorisation or transfer. + */ + 'paymentPspReference'?: string; + /** + * The psp reference of the related payout. + */ + 'payoutPspReference'?: string; + /** + * The psp reference of a transaction. + */ + 'pspReference'?: string; + /** + * The code of the account from which funds were debited during an incoming fund transfer. + */ + 'sourceAccountCode'?: string; + /** + * The status of the transaction. >Permitted values: `PendingCredit`, `CreditFailed`, `CreditClosed`, `CreditSuspended`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`. + */ + 'transactionStatus'?: Transaction.TransactionStatusEnum; + /** + * The transfer code of the transaction. + */ + 'transferCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "bankAccountDetail", + "baseName": "bankAccountDetail", + "type": "BankAccountDetail" + }, + { + "name": "captureMerchantReference", + "baseName": "captureMerchantReference", + "type": "string" + }, + { + "name": "capturePspReference", + "baseName": "capturePspReference", + "type": "string" + }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "destinationAccountCode", + "baseName": "destinationAccountCode", + "type": "string" + }, + { + "name": "disputePspReference", + "baseName": "disputePspReference", + "type": "string" + }, + { + "name": "disputeReasonCode", + "baseName": "disputeReasonCode", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "paymentPspReference", + "baseName": "paymentPspReference", + "type": "string" + }, + { + "name": "payoutPspReference", + "baseName": "payoutPspReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "sourceAccountCode", + "baseName": "sourceAccountCode", + "type": "string" + }, + { + "name": "transactionStatus", + "baseName": "transactionStatus", + "type": "Transaction.TransactionStatusEnum" + }, + { + "name": "transferCode", + "baseName": "transferCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Transaction.attributeTypeMap; + } +} + +export namespace Transaction { + export enum TransactionStatusEnum { + BalanceNotPaidOutTransfer = 'BalanceNotPaidOutTransfer', + Chargeback = 'Chargeback', + ChargebackCorrection = 'ChargebackCorrection', + ChargebackCorrectionReceived = 'ChargebackCorrectionReceived', + ChargebackReceived = 'ChargebackReceived', + ChargebackReversed = 'ChargebackReversed', + ChargebackReversedCorrection = 'ChargebackReversedCorrection', + ChargebackReversedCorrectionReceived = 'ChargebackReversedCorrectionReceived', + ChargebackReversedReceived = 'ChargebackReversedReceived', + Converted = 'Converted', + CreditClosed = 'CreditClosed', + CreditFailed = 'CreditFailed', + CreditReversed = 'CreditReversed', + CreditReversedReceived = 'CreditReversedReceived', + CreditSuspended = 'CreditSuspended', + Credited = 'Credited', + DebitFailed = 'DebitFailed', + DebitReversedReceived = 'DebitReversedReceived', + Debited = 'Debited', + DebitedReversed = 'DebitedReversed', + DepositCorrectionCredited = 'DepositCorrectionCredited', + DepositCorrectionDebited = 'DepositCorrectionDebited', + Fee = 'Fee', + FundTransfer = 'FundTransfer', + FundTransferReversed = 'FundTransferReversed', + InvoiceDeductionCredited = 'InvoiceDeductionCredited', + InvoiceDeductionDebited = 'InvoiceDeductionDebited', + ManualCorrected = 'ManualCorrected', + ManualCorrectionCredited = 'ManualCorrectionCredited', + ManualCorrectionDebited = 'ManualCorrectionDebited', + MerchantPayin = 'MerchantPayin', + MerchantPayinReversed = 'MerchantPayinReversed', + Payout = 'Payout', + PayoutReversed = 'PayoutReversed', + PendingCredit = 'PendingCredit', + PendingDebit = 'PendingDebit', + PendingFundTransfer = 'PendingFundTransfer', + ReCredited = 'ReCredited', + ReCreditedReceived = 'ReCreditedReceived', + SecondChargeback = 'SecondChargeback', + SecondChargebackCorrection = 'SecondChargebackCorrection', + SecondChargebackCorrectionReceived = 'SecondChargebackCorrectionReceived', + SecondChargebackReceived = 'SecondChargebackReceived' + } +} diff --git a/src/typings/platformsFund/transactionListForAccount.ts b/src/typings/platformsFund/transactionListForAccount.ts new file mode 100644 index 0000000..c9c4ebd --- /dev/null +++ b/src/typings/platformsFund/transactionListForAccount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TransactionListForAccount { + /** + * The account for which to retrieve the transactions. + */ + 'accountCode': string; + /** + * The page of transactions to retrieve. Each page lists fifty (50) transactions. The most recent transactions are included on page 1. + */ + 'page': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountCode", + "baseName": "accountCode", + "type": "string" + }, + { + "name": "page", + "baseName": "page", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return TransactionListForAccount.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/transferFundsRequest.ts b/src/typings/platformsFund/transferFundsRequest.ts new file mode 100644 index 0000000..28b1d47 --- /dev/null +++ b/src/typings/platformsFund/transferFundsRequest.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class TransferFundsRequest { + 'amount': Amount; + /** + * The code of the account to which the funds are to be credited. >The state of the Account Holder of this account must be Active. + */ + 'destinationAccountCode': string; + /** + * A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another. + */ + 'merchantReference'?: string; + /** + * The code of the account from which the funds are to be debited. >The state of the Account Holder of this account must be Active and allow payouts. + */ + 'sourceAccountCode': string; + /** + * The code related to the type of transfer being performed. >The permitted codes differ for each platform account and are defined in their service level agreement. + */ + 'transferCode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "destinationAccountCode", + "baseName": "destinationAccountCode", + "type": "string" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "sourceAccountCode", + "baseName": "sourceAccountCode", + "type": "string" + }, + { + "name": "transferCode", + "baseName": "transferCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransferFundsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsFund/transferFundsResponse.ts b/src/typings/platformsFund/transferFundsResponse.ts new file mode 100644 index 0000000..6bae534 --- /dev/null +++ b/src/typings/platformsFund/transferFundsResponse.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class TransferFundsResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions. + */ + 'merchantReference'?: string; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "merchantReference", + "baseName": "merchantReference", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TransferFundsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage.ts b/src/typings/platformsHostedOnboardingPage.ts deleted file mode 100644 index 69c2730..0000000 --- a/src/typings/platformsHostedOnboardingPage.ts +++ /dev/null @@ -1,113 +0,0 @@ - -/* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * - * Adyen NodeJS API Library - * - * Version of Platforms Hosted Onboarding Page: v6 - * - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. - */ - - -declare namespace IPlatformsHostedOnboardingPage { - export interface ErrorFieldType { - /** - * The validation error code. - */ - errorCode?: number; // int32 - /** - * A description of the validation error. - */ - errorDescription?: string; - /** - * The type of error field. - */ - fieldType?: FieldType; - } - export interface FieldType { - /** - * The full name of the property. - */ - field?: string; - /** - * The type of the field. - */ - fieldName?: "accountCode" | "accountHolderCode" | "accountHolderDetails" | "accountNumber" | "accountStateType" | "accountStatus" | "accountType" | "address" | "bankAccount" | "bankAccountCode" | "bankAccountName" | "bankAccountUUID" | "bankBicSwift" | "bankCity" | "bankCode" | "bankName" | "bankStatement" | "branchCode" | "businessContact" | "cardToken" | "checkCode" | "city" | "companyRegistration" | "country" | "countryCode" | "currency" | "currencyCode" | "dateOfBirth" | "description" | "destinationAccountCode" | "document" | "documentExpirationDate" | "documentIssuerCountry" | "documentIssuerState" | "documentName" | "documentNumber" | "documentType" | "doingBusinessAs" | "drivingLicence" | "drivingLicenceBack" | "drivingLicense" | "email" | "firstName" | "fullPhoneNumber" | "gender" | "hopWebserviceUser" | "houseNumberOrName" | "iban" | "idCard" | "idCardBack" | "idCardFront" | "idNumber" | "identityDocument" | "individualDetails" | "lastName" | "legalBusinessName" | "legalEntity" | "legalEntityType" | "merchantAccount" | "merchantCategoryCode" | "merchantReference" | "microDeposit" | "name" | "nationality" | "originalReference" | "ownerCity" | "ownerCountryCode" | "ownerHouseNumberOrName" | "ownerName" | "ownerPostalCode" | "ownerState" | "ownerStreet" | "passport" | "passportNumber" | "payoutMethodCode" | "personalData" | "phoneCountryCode" | "phoneNumber" | "postalCode" | "primaryCurrency" | "reason" | "registrationNumber" | "returnUrl" | "schedule" | "shareholder" | "shareholderCode" | "socialSecurityNumber" | "sourceAccountCode" | "stateOrProvince" | "status" | "stockExchange" | "stockNumber" | "stockTicker" | "store" | "storeDetail" | "storeName" | "storeReference" | "street" | "taxId" | "tier" | "tierNumber" | "transferCode" | "unknown" | "value" | "virtualAccount" | "visaNumber" | "webAddress"; - /** - * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. - */ - shareholderCode?: string; - } - export interface GetOnboardingUrlRequest { - /** - * The account holder code you provided when you created the account holder. - */ - accountHolderCode: string; - /** - * Allows editing checks even if all the checks have passed. - */ - editMode?: boolean; - /** - * The platform name which will show up in the welcome page. - */ - platformName?: string; - /** - * The URL where the sub-merchant will be redirected back to after they complete the onboarding, or if their session times out. Maximum length of 500 characters. If you don't provide this, the sub-merchant will be redirected back to the default return URL configured in your platform account. - */ - returnUrl?: string; - /** - * The language to be used in the page, specified by a combination of a language and country code. For example, **pt-BR**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. For a list supported languages, refer to [Change the page language](https://docs.adyen.com/platforms/hosted-onboarding-page#change-page-language). - */ - shopperLocale?: string; - } - export interface GetOnboardingUrlResponse { - /** - * Contains field validation errors that would prevent requests from being processed. - */ - invalidFields?: ErrorFieldType[]; - /** - * The reference of a request. Can be used to uniquely identify the request. - */ - pspReference?: string; - /** - * The URL to the Hosted Onboarding Page where you should redirect your sub-merchant. This URL must be used within 15 seconds and can only be used once. - */ - redirectUrl?: string; - /** - * The result code. - */ - resultCode?: string; - } -} -declare namespace Paths { - namespace PostGetOnboardingUrl { - export type RequestBody = IPlatformsHostedOnboardingPage.GetOnboardingUrlRequest; - namespace Responses { - export type $200 = IPlatformsHostedOnboardingPage.GetOnboardingUrlResponse; - export interface $400 { - } - export interface $401 { - } - export interface $403 { - } - export interface $422 { - } - export interface $500 { - } - } - } -} diff --git a/src/typings/platformsHostedOnboardingPage/collectInformation.ts b/src/typings/platformsHostedOnboardingPage/collectInformation.ts new file mode 100644 index 0000000..7ed93f6 --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/collectInformation.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class CollectInformation { + /** + * Indicates whether [bank account details](https://docs.adyen.com/platforms/verification-checks/bank-account-check) must be collected. Default is **true**. + */ + 'bankDetails'?: boolean; + /** + * Indicates whether [business details](https://docs.adyen.com/platforms/verification-checks/company-check) must be collected. Default is **true**. + */ + 'businessDetails'?: boolean; + /** + * Indicates whether [individual details](https://docs.adyen.com/platforms/verification-checks/identity-check) must be collected. Default is **true**. + */ + 'individualDetails'?: boolean; + /** + * Indicates whether [legal arrangement details](https://docs.adyen.com/platforms/verification-checks/legal-arrangements) must be collected. Default is **true**. + */ + 'legalArrangementDetails'?: boolean; + /** + * Indicates whether answers to a [PCI questionnaire](https://docs.adyen.com/platforms/platforms-for-partners#onboard-partner-platform) must be collected. Applies only to partner platforms. Default is **true**. + */ + 'pciQuestionnaire'?: boolean; + /** + * Indicates whether [shareholder details](https://docs.adyen.com/platforms/verification-checks/identity-check) must be collected. Defaults to **true**. + */ + 'shareholderDetails'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankDetails", + "baseName": "bankDetails", + "type": "boolean" + }, + { + "name": "businessDetails", + "baseName": "businessDetails", + "type": "boolean" + }, + { + "name": "individualDetails", + "baseName": "individualDetails", + "type": "boolean" + }, + { + "name": "legalArrangementDetails", + "baseName": "legalArrangementDetails", + "type": "boolean" + }, + { + "name": "pciQuestionnaire", + "baseName": "pciQuestionnaire", + "type": "boolean" + }, + { + "name": "shareholderDetails", + "baseName": "shareholderDetails", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return CollectInformation.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/errorFieldType.ts b/src/typings/platformsHostedOnboardingPage/errorFieldType.ts new file mode 100644 index 0000000..6ad0e7c --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/errorFieldType.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FieldType } from './fieldType'; + +export class ErrorFieldType { + /** + * The validation error code. + */ + 'errorCode'?: number; + /** + * A description of the validation error. + */ + 'errorDescription'?: string; + 'fieldType'?: FieldType; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "number" + }, + { + "name": "errorDescription", + "baseName": "errorDescription", + "type": "string" + }, + { + "name": "fieldType", + "baseName": "fieldType", + "type": "FieldType" + } ]; + + static getAttributeTypeMap() { + return ErrorFieldType.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/fieldType.ts b/src/typings/platformsHostedOnboardingPage/fieldType.ts new file mode 100644 index 0000000..487bf1b --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/fieldType.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FieldType { + /** + * The full name of the property. + */ + 'field'?: string; + /** + * The type of the field. + */ + 'fieldName'?: FieldType.FieldNameEnum; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + 'shareholderCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "field", + "baseName": "field", + "type": "string" + }, + { + "name": "fieldName", + "baseName": "fieldName", + "type": "FieldType.FieldNameEnum" + }, + { + "name": "shareholderCode", + "baseName": "shareholderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FieldType.attributeTypeMap; + } +} + +export namespace FieldType { + export enum FieldNameEnum { + AccountCode = 'accountCode', + AccountHolderCode = 'accountHolderCode', + AccountHolderDetails = 'accountHolderDetails', + AccountNumber = 'accountNumber', + AccountStateType = 'accountStateType', + AccountStatus = 'accountStatus', + AccountType = 'accountType', + Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', + BankAccount = 'bankAccount', + BankAccountCode = 'bankAccountCode', + BankAccountName = 'bankAccountName', + BankAccountUuid = 'bankAccountUUID', + BankBicSwift = 'bankBicSwift', + BankCity = 'bankCity', + BankCode = 'bankCode', + BankName = 'bankName', + BankStatement = 'bankStatement', + BranchCode = 'branchCode', + BusinessContact = 'businessContact', + CardToken = 'cardToken', + CheckCode = 'checkCode', + City = 'city', + CompanyRegistration = 'companyRegistration', + ConstitutionalDocument = 'constitutionalDocument', + Country = 'country', + CountryCode = 'countryCode', + Currency = 'currency', + CurrencyCode = 'currencyCode', + DateOfBirth = 'dateOfBirth', + Description = 'description', + DestinationAccountCode = 'destinationAccountCode', + Document = 'document', + DocumentContent = 'documentContent', + DocumentExpirationDate = 'documentExpirationDate', + DocumentIssuerCountry = 'documentIssuerCountry', + DocumentIssuerState = 'documentIssuerState', + DocumentName = 'documentName', + DocumentNumber = 'documentNumber', + DocumentType = 'documentType', + DoingBusinessAs = 'doingBusinessAs', + DrivingLicence = 'drivingLicence', + DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicense = 'drivingLicense', + Email = 'email', + FirstName = 'firstName', + FormType = 'formType', + FullPhoneNumber = 'fullPhoneNumber', + Gender = 'gender', + HopWebserviceUser = 'hopWebserviceUser', + HouseNumberOrName = 'houseNumberOrName', + Iban = 'iban', + IdCard = 'idCard', + IdCardBack = 'idCardBack', + IdCardFront = 'idCardFront', + IdNumber = 'idNumber', + IdentityDocument = 'identityDocument', + IndividualDetails = 'individualDetails', + Infix = 'infix', + JobTitle = 'jobTitle', + LastName = 'lastName', + LastReviewDate = 'lastReviewDate', + LegalArrangement = 'legalArrangement', + LegalArrangementCode = 'legalArrangementCode', + LegalArrangementEntity = 'legalArrangementEntity', + LegalArrangementEntityCode = 'legalArrangementEntityCode', + LegalArrangementLegalForm = 'legalArrangementLegalForm', + LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', + LegalArrangementName = 'legalArrangementName', + LegalArrangementReference = 'legalArrangementReference', + LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', + LegalArrangementTaxNumber = 'legalArrangementTaxNumber', + LegalArrangementType = 'legalArrangementType', + LegalBusinessName = 'legalBusinessName', + LegalEntity = 'legalEntity', + LegalEntityType = 'legalEntityType', + MerchantAccount = 'merchantAccount', + MerchantCategoryCode = 'merchantCategoryCode', + MerchantReference = 'merchantReference', + MicroDeposit = 'microDeposit', + Name = 'name', + Nationality = 'nationality', + OriginalReference = 'originalReference', + OwnerCity = 'ownerCity', + OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', + OwnerHouseNumberOrName = 'ownerHouseNumberOrName', + OwnerName = 'ownerName', + OwnerPostalCode = 'ownerPostalCode', + OwnerState = 'ownerState', + OwnerStreet = 'ownerStreet', + Passport = 'passport', + PassportNumber = 'passportNumber', + PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', + PersonalData = 'personalData', + PhoneCountryCode = 'phoneCountryCode', + PhoneNumber = 'phoneNumber', + PostalCode = 'postalCode', + PrimaryCurrency = 'primaryCurrency', + Reason = 'reason', + RegistrationNumber = 'registrationNumber', + ReturnUrl = 'returnUrl', + Schedule = 'schedule', + Shareholder = 'shareholder', + ShareholderCode = 'shareholderCode', + ShareholderCodeAndSignatoryCode = 'shareholderCodeAndSignatoryCode', + ShareholderCodeOrSignatoryCode = 'shareholderCodeOrSignatoryCode', + ShareholderType = 'shareholderType', + ShopperInteraction = 'shopperInteraction', + Signatory = 'signatory', + SignatoryCode = 'signatoryCode', + SocialSecurityNumber = 'socialSecurityNumber', + SourceAccountCode = 'sourceAccountCode', + SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', + SplitCurrency = 'splitCurrency', + SplitValue = 'splitValue', + Splits = 'splits', + StateOrProvince = 'stateOrProvince', + Status = 'status', + StockExchange = 'stockExchange', + StockNumber = 'stockNumber', + StockTicker = 'stockTicker', + Store = 'store', + StoreDetail = 'storeDetail', + StoreName = 'storeName', + StoreReference = 'storeReference', + Street = 'street', + TaxId = 'taxId', + Tier = 'tier', + TierNumber = 'tierNumber', + TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', + Unknown = 'unknown', + Value = 'value', + VerificationType = 'verificationType', + VirtualAccount = 'virtualAccount', + VisaNumber = 'visaNumber', + WebAddress = 'webAddress', + Year = 'year' + } +} diff --git a/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts new file mode 100644 index 0000000..26ddef8 --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlRequest.ts @@ -0,0 +1,80 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { CollectInformation } from './collectInformation'; +import { ShowPages } from './showPages'; + +export class GetOnboardingUrlRequest { + /** + * The account holder code you provided when you created the account holder. + */ + 'accountHolderCode': string; + 'collectInformation'?: CollectInformation; + /** + * Indicates if editing checks is allowed even if all the checks have passed. + */ + 'editMode'?: boolean; + /** + * The platform name which will show up in the welcome page. + */ + 'platformName'?: string; + /** + * The URL where the account holder will be redirected back to after they complete the onboarding, or if their session times out. Maximum length of 500 characters. If you don\'t provide this, the account holder will be redirected back to the default return URL configured in your platform account. + */ + 'returnUrl'?: string; + /** + * The language to be used in the page, specified by a combination of a language and country code. For example, **pt-BR**. If not specified in the request or if the language is not supported, the page uses the browser language. If the browser language is not supported, the page uses **en-US** by default. For a list supported languages, refer to [Change the page language](https://docs.adyen.com/platforms/hosted-onboarding-page/customize-experience#change-page-language). + */ + 'shopperLocale'?: string; + 'showPages'?: ShowPages; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "collectInformation", + "baseName": "collectInformation", + "type": "CollectInformation" + }, + { + "name": "editMode", + "baseName": "editMode", + "type": "boolean" + }, + { + "name": "platformName", + "baseName": "platformName", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + }, + { + "name": "shopperLocale", + "baseName": "shopperLocale", + "type": "string" + }, + { + "name": "showPages", + "baseName": "showPages", + "type": "ShowPages" + } ]; + + static getAttributeTypeMap() { + return GetOnboardingUrlRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/getOnboardingUrlResponse.ts b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlResponse.ts new file mode 100644 index 0000000..f6b1253 --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/getOnboardingUrlResponse.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class GetOnboardingUrlResponse { + /** + * Information about any invalid fields. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The URL to the Hosted Onboarding Page where you should redirect your sub-merchant. This URL must be used within 30 seconds and can only be used once. + */ + 'redirectUrl'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "redirectUrl", + "baseName": "redirectUrl", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetOnboardingUrlResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/getPciUrlRequest.ts b/src/typings/platformsHostedOnboardingPage/getPciUrlRequest.ts new file mode 100644 index 0000000..d27f04a --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/getPciUrlRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetPciUrlRequest { + /** + * The account holder code you provided when you created the account holder. + */ + 'accountHolderCode': string; + /** + * The URL where the account holder will be redirected back to after they fill out the questionnaire, or if their session times out. Maximum length of 500 characters. + */ + 'returnUrl'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountHolderCode", + "baseName": "accountHolderCode", + "type": "string" + }, + { + "name": "returnUrl", + "baseName": "returnUrl", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetPciUrlRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/getPciUrlResponse.ts b/src/typings/platformsHostedOnboardingPage/getPciUrlResponse.ts new file mode 100644 index 0000000..3928628 --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/getPciUrlResponse.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class GetPciUrlResponse { + /** + * Information about any invalid fields. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The URL to the PCI compliance questionnaire where you should redirect your account holder. This URL must be used within 30 seconds and can only be used once. + */ + 'redirectUrl'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "redirectUrl", + "baseName": "redirectUrl", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetPciUrlResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/models.ts b/src/typings/platformsHostedOnboardingPage/models.ts new file mode 100644 index 0000000..49159da --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/models.ts @@ -0,0 +1,172 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './collectInformation'; +export * from './errorFieldType'; +export * from './fieldType'; +export * from './getOnboardingUrlRequest'; +export * from './getOnboardingUrlResponse'; +export * from './getPciUrlRequest'; +export * from './getPciUrlResponse'; +export * from './serviceError'; +export * from './showPages'; + + +import { CollectInformation } from './collectInformation'; +import { ErrorFieldType } from './errorFieldType'; +import { FieldType } from './fieldType'; +import { GetOnboardingUrlRequest } from './getOnboardingUrlRequest'; +import { GetOnboardingUrlResponse } from './getOnboardingUrlResponse'; +import { GetPciUrlRequest } from './getPciUrlRequest'; +import { GetPciUrlResponse } from './getPciUrlResponse'; +import { ServiceError } from './serviceError'; +import { ShowPages } from './showPages'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "FieldType.FieldNameEnum": FieldType.FieldNameEnum, +} + +let typeMap: {[index: string]: any} = { + "CollectInformation": CollectInformation, + "ErrorFieldType": ErrorFieldType, + "FieldType": FieldType, + "GetOnboardingUrlRequest": GetOnboardingUrlRequest, + "GetOnboardingUrlResponse": GetOnboardingUrlResponse, + "GetPciUrlRequest": GetPciUrlRequest, + "GetPciUrlResponse": GetPciUrlResponse, + "ServiceError": ServiceError, + "ShowPages": ShowPages, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/platformsHostedOnboardingPage/serviceError.ts b/src/typings/platformsHostedOnboardingPage/serviceError.ts new file mode 100644 index 0000000..48534a5 --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/platformsHostedOnboardingPage/showPages.ts b/src/typings/platformsHostedOnboardingPage/showPages.ts new file mode 100644 index 0000000..bd915eb --- /dev/null +++ b/src/typings/platformsHostedOnboardingPage/showPages.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ShowPages { + /** + * Indicates whether the page with bank account details must be shown. Defaults to **true**. + */ + 'bankDetailsSummaryPage'?: boolean; + /** + * Indicates whether the bank check instant verification\' details must be shown. Defaults to **true**. + */ + 'bankVerificationPage'?: boolean; + /** + * Indicates whether the page with the company\'s or organization\'s details must be shown. Defaults to **true**. + */ + 'businessDetailsSummaryPage'?: boolean; + /** + * Indicates whether the checks overview page must be shown. Defaults to **false**. + */ + 'checksOverviewPage'?: boolean; + /** + * Indicates whether the page with the individual\'s details must be shown. Defaults to **true**. + */ + 'individualDetailsSummaryPage'?: boolean; + /** + * Indicates whether the page with the legal arrangements\' details must be shown. Defaults to **true**. + */ + 'legalArrangementsDetailsSummaryPage'?: boolean; + /** + * Indicates whether the page to manually add bank account\' details must be shown. Defaults to **true**. + */ + 'manualBankAccountPage'?: boolean; + /** + * Indicates whether the page with the shareholders\' details must be shown. Defaults to **true**. + */ + 'shareholderDetailsSummaryPage'?: boolean; + /** + * Indicates whether the welcome page must be shown. Defaults to **false**. + */ + 'welcomePage'?: boolean; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bankDetailsSummaryPage", + "baseName": "bankDetailsSummaryPage", + "type": "boolean" + }, + { + "name": "bankVerificationPage", + "baseName": "bankVerificationPage", + "type": "boolean" + }, + { + "name": "businessDetailsSummaryPage", + "baseName": "businessDetailsSummaryPage", + "type": "boolean" + }, + { + "name": "checksOverviewPage", + "baseName": "checksOverviewPage", + "type": "boolean" + }, + { + "name": "individualDetailsSummaryPage", + "baseName": "individualDetailsSummaryPage", + "type": "boolean" + }, + { + "name": "legalArrangementsDetailsSummaryPage", + "baseName": "legalArrangementsDetailsSummaryPage", + "type": "boolean" + }, + { + "name": "manualBankAccountPage", + "baseName": "manualBankAccountPage", + "type": "boolean" + }, + { + "name": "shareholderDetailsSummaryPage", + "baseName": "shareholderDetailsSummaryPage", + "type": "boolean" + }, + { + "name": "welcomePage", + "baseName": "welcomePage", + "type": "boolean" + } ]; + + static getAttributeTypeMap() { + return ShowPages.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts new file mode 100644 index 0000000..e33b25e --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/createNotificationConfigurationRequest.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class CreateNotificationConfigurationRequest { + 'configurationDetails': NotificationConfigurationDetails; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + } ]; + + static getAttributeTypeMap() { + return CreateNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts new file mode 100644 index 0000000..48b4bad --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/deleteNotificationConfigurationRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DeleteNotificationConfigurationRequest { + /** + * A list of IDs of the notification subscription configurations to be deleted. + */ + 'notificationIds': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notificationIds", + "baseName": "notificationIds", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return DeleteNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/errorFieldType.ts b/src/typings/platformsNotificationConfiguration/errorFieldType.ts new file mode 100644 index 0000000..6ad0e7c --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/errorFieldType.ts @@ -0,0 +1,46 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { FieldType } from './fieldType'; + +export class ErrorFieldType { + /** + * The validation error code. + */ + 'errorCode'?: number; + /** + * A description of the validation error. + */ + 'errorDescription'?: string; + 'fieldType'?: FieldType; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "number" + }, + { + "name": "errorDescription", + "baseName": "errorDescription", + "type": "string" + }, + { + "name": "fieldType", + "baseName": "fieldType", + "type": "FieldType" + } ]; + + static getAttributeTypeMap() { + return ErrorFieldType.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/exchangeMessage.ts b/src/typings/platformsNotificationConfiguration/exchangeMessage.ts new file mode 100644 index 0000000..984b535 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/exchangeMessage.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ExchangeMessage { + 'messageCode'?: string; + 'messageDescription'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "messageCode", + "baseName": "messageCode", + "type": "string" + }, + { + "name": "messageDescription", + "baseName": "messageDescription", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return ExchangeMessage.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/fieldType.ts b/src/typings/platformsNotificationConfiguration/fieldType.ts new file mode 100644 index 0000000..487bf1b --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/fieldType.ts @@ -0,0 +1,208 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FieldType { + /** + * The full name of the property. + */ + 'field'?: string; + /** + * The type of the field. + */ + 'fieldName'?: FieldType.FieldNameEnum; + /** + * The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder. + */ + 'shareholderCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "field", + "baseName": "field", + "type": "string" + }, + { + "name": "fieldName", + "baseName": "fieldName", + "type": "FieldType.FieldNameEnum" + }, + { + "name": "shareholderCode", + "baseName": "shareholderCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FieldType.attributeTypeMap; + } +} + +export namespace FieldType { + export enum FieldNameEnum { + AccountCode = 'accountCode', + AccountHolderCode = 'accountHolderCode', + AccountHolderDetails = 'accountHolderDetails', + AccountNumber = 'accountNumber', + AccountStateType = 'accountStateType', + AccountStatus = 'accountStatus', + AccountType = 'accountType', + Address = 'address', + BalanceAccount = 'balanceAccount', + BalanceAccountActive = 'balanceAccountActive', + BalanceAccountCode = 'balanceAccountCode', + BalanceAccountId = 'balanceAccountId', + BankAccount = 'bankAccount', + BankAccountCode = 'bankAccountCode', + BankAccountName = 'bankAccountName', + BankAccountUuid = 'bankAccountUUID', + BankBicSwift = 'bankBicSwift', + BankCity = 'bankCity', + BankCode = 'bankCode', + BankName = 'bankName', + BankStatement = 'bankStatement', + BranchCode = 'branchCode', + BusinessContact = 'businessContact', + CardToken = 'cardToken', + CheckCode = 'checkCode', + City = 'city', + CompanyRegistration = 'companyRegistration', + ConstitutionalDocument = 'constitutionalDocument', + Country = 'country', + CountryCode = 'countryCode', + Currency = 'currency', + CurrencyCode = 'currencyCode', + DateOfBirth = 'dateOfBirth', + Description = 'description', + DestinationAccountCode = 'destinationAccountCode', + Document = 'document', + DocumentContent = 'documentContent', + DocumentExpirationDate = 'documentExpirationDate', + DocumentIssuerCountry = 'documentIssuerCountry', + DocumentIssuerState = 'documentIssuerState', + DocumentName = 'documentName', + DocumentNumber = 'documentNumber', + DocumentType = 'documentType', + DoingBusinessAs = 'doingBusinessAs', + DrivingLicence = 'drivingLicence', + DrivingLicenceBack = 'drivingLicenceBack', + DrivingLicense = 'drivingLicense', + Email = 'email', + FirstName = 'firstName', + FormType = 'formType', + FullPhoneNumber = 'fullPhoneNumber', + Gender = 'gender', + HopWebserviceUser = 'hopWebserviceUser', + HouseNumberOrName = 'houseNumberOrName', + Iban = 'iban', + IdCard = 'idCard', + IdCardBack = 'idCardBack', + IdCardFront = 'idCardFront', + IdNumber = 'idNumber', + IdentityDocument = 'identityDocument', + IndividualDetails = 'individualDetails', + Infix = 'infix', + JobTitle = 'jobTitle', + LastName = 'lastName', + LastReviewDate = 'lastReviewDate', + LegalArrangement = 'legalArrangement', + LegalArrangementCode = 'legalArrangementCode', + LegalArrangementEntity = 'legalArrangementEntity', + LegalArrangementEntityCode = 'legalArrangementEntityCode', + LegalArrangementLegalForm = 'legalArrangementLegalForm', + LegalArrangementMember = 'legalArrangementMember', + LegalArrangementMembers = 'legalArrangementMembers', + LegalArrangementName = 'legalArrangementName', + LegalArrangementReference = 'legalArrangementReference', + LegalArrangementRegistrationNumber = 'legalArrangementRegistrationNumber', + LegalArrangementTaxNumber = 'legalArrangementTaxNumber', + LegalArrangementType = 'legalArrangementType', + LegalBusinessName = 'legalBusinessName', + LegalEntity = 'legalEntity', + LegalEntityType = 'legalEntityType', + MerchantAccount = 'merchantAccount', + MerchantCategoryCode = 'merchantCategoryCode', + MerchantReference = 'merchantReference', + MicroDeposit = 'microDeposit', + Name = 'name', + Nationality = 'nationality', + OriginalReference = 'originalReference', + OwnerCity = 'ownerCity', + OwnerCountryCode = 'ownerCountryCode', + OwnerDateOfBirth = 'ownerDateOfBirth', + OwnerHouseNumberOrName = 'ownerHouseNumberOrName', + OwnerName = 'ownerName', + OwnerPostalCode = 'ownerPostalCode', + OwnerState = 'ownerState', + OwnerStreet = 'ownerStreet', + Passport = 'passport', + PassportNumber = 'passportNumber', + PayoutMethodCode = 'payoutMethodCode', + PayoutSchedule = 'payoutSchedule', + PciSelfAssessment = 'pciSelfAssessment', + PersonalData = 'personalData', + PhoneCountryCode = 'phoneCountryCode', + PhoneNumber = 'phoneNumber', + PostalCode = 'postalCode', + PrimaryCurrency = 'primaryCurrency', + Reason = 'reason', + RegistrationNumber = 'registrationNumber', + ReturnUrl = 'returnUrl', + Schedule = 'schedule', + Shareholder = 'shareholder', + ShareholderCode = 'shareholderCode', + ShareholderCodeAndSignatoryCode = 'shareholderCodeAndSignatoryCode', + ShareholderCodeOrSignatoryCode = 'shareholderCodeOrSignatoryCode', + ShareholderType = 'shareholderType', + ShopperInteraction = 'shopperInteraction', + Signatory = 'signatory', + SignatoryCode = 'signatoryCode', + SocialSecurityNumber = 'socialSecurityNumber', + SourceAccountCode = 'sourceAccountCode', + SplitAccount = 'splitAccount', + SplitConfigurationUuid = 'splitConfigurationUUID', + SplitCurrency = 'splitCurrency', + SplitValue = 'splitValue', + Splits = 'splits', + StateOrProvince = 'stateOrProvince', + Status = 'status', + StockExchange = 'stockExchange', + StockNumber = 'stockNumber', + StockTicker = 'stockTicker', + Store = 'store', + StoreDetail = 'storeDetail', + StoreName = 'storeName', + StoreReference = 'storeReference', + Street = 'street', + TaxId = 'taxId', + Tier = 'tier', + TierNumber = 'tierNumber', + TransferCode = 'transferCode', + UltimateParentCompany = 'ultimateParentCompany', + UltimateParentCompanyAddressDetails = 'ultimateParentCompanyAddressDetails', + UltimateParentCompanyAddressDetailsCountry = 'ultimateParentCompanyAddressDetailsCountry', + UltimateParentCompanyBusinessDetails = 'ultimateParentCompanyBusinessDetails', + UltimateParentCompanyBusinessDetailsLegalBusinessName = 'ultimateParentCompanyBusinessDetailsLegalBusinessName', + UltimateParentCompanyBusinessDetailsRegistrationNumber = 'ultimateParentCompanyBusinessDetailsRegistrationNumber', + UltimateParentCompanyCode = 'ultimateParentCompanyCode', + UltimateParentCompanyStockExchange = 'ultimateParentCompanyStockExchange', + UltimateParentCompanyStockNumber = 'ultimateParentCompanyStockNumber', + UltimateParentCompanyStockNumberOrStockTicker = 'ultimateParentCompanyStockNumberOrStockTicker', + UltimateParentCompanyStockTicker = 'ultimateParentCompanyStockTicker', + Unknown = 'unknown', + Value = 'value', + VerificationType = 'verificationType', + VirtualAccount = 'virtualAccount', + VisaNumber = 'visaNumber', + WebAddress = 'webAddress', + Year = 'year' + } +} diff --git a/src/typings/platformsNotificationConfiguration/genericResponse.ts b/src/typings/platformsNotificationConfiguration/genericResponse.ts new file mode 100644 index 0000000..796ccac --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/genericResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; + +export class GenericResponse { + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GenericResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts new file mode 100644 index 0000000..07d8018 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationListResponse.ts @@ -0,0 +1,59 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class GetNotificationConfigurationListResponse { + /** + * Details of the notification subscription configurations. + */ + 'configurations': Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurations", + "baseName": "configurations", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationListResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts new file mode 100644 index 0000000..2df287d --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetNotificationConfigurationRequest { + /** + * The ID of the notification subscription configuration whose details are to be retrieved. + */ + 'notificationId': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts new file mode 100644 index 0000000..f7b973c --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/getNotificationConfigurationResponse.ts @@ -0,0 +1,56 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class GetNotificationConfigurationResponse { + 'configurationDetails': NotificationConfigurationDetails; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetNotificationConfigurationResponse.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/models.ts b/src/typings/platformsNotificationConfiguration/models.ts new file mode 100644 index 0000000..e1cb71f --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/models.ts @@ -0,0 +1,195 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './createNotificationConfigurationRequest'; +export * from './deleteNotificationConfigurationRequest'; +export * from './errorFieldType'; +export * from './exchangeMessage'; +export * from './fieldType'; +export * from './genericResponse'; +export * from './getNotificationConfigurationListResponse'; +export * from './getNotificationConfigurationRequest'; +export * from './getNotificationConfigurationResponse'; +export * from './notificationConfigurationDetails'; +export * from './notificationEventConfiguration'; +export * from './serviceError'; +export * from './testNotificationConfigurationRequest'; +export * from './testNotificationConfigurationResponse'; +export * from './updateNotificationConfigurationRequest'; + + +import { CreateNotificationConfigurationRequest } from './createNotificationConfigurationRequest'; +import { DeleteNotificationConfigurationRequest } from './deleteNotificationConfigurationRequest'; +import { ErrorFieldType } from './errorFieldType'; +import { ExchangeMessage } from './exchangeMessage'; +import { FieldType } from './fieldType'; +import { GenericResponse } from './genericResponse'; +import { GetNotificationConfigurationListResponse } from './getNotificationConfigurationListResponse'; +import { GetNotificationConfigurationRequest } from './getNotificationConfigurationRequest'; +import { GetNotificationConfigurationResponse } from './getNotificationConfigurationResponse'; +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; +import { NotificationEventConfiguration } from './notificationEventConfiguration'; +import { ServiceError } from './serviceError'; +import { TestNotificationConfigurationRequest } from './testNotificationConfigurationRequest'; +import { TestNotificationConfigurationResponse } from './testNotificationConfigurationResponse'; +import { UpdateNotificationConfigurationRequest } from './updateNotificationConfigurationRequest'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "FieldType.FieldNameEnum": FieldType.FieldNameEnum, + "NotificationConfigurationDetails.SslProtocolEnum": NotificationConfigurationDetails.SslProtocolEnum, + "NotificationEventConfiguration.EventTypeEnum": NotificationEventConfiguration.EventTypeEnum, + "NotificationEventConfiguration.IncludeModeEnum": NotificationEventConfiguration.IncludeModeEnum, + "TestNotificationConfigurationRequest.EventTypesEnum": TestNotificationConfigurationRequest.EventTypesEnum, + "TestNotificationConfigurationResponse.EventTypesEnum": TestNotificationConfigurationResponse.EventTypesEnum, +} + +let typeMap: {[index: string]: any} = { + "CreateNotificationConfigurationRequest": CreateNotificationConfigurationRequest, + "DeleteNotificationConfigurationRequest": DeleteNotificationConfigurationRequest, + "ErrorFieldType": ErrorFieldType, + "ExchangeMessage": ExchangeMessage, + "FieldType": FieldType, + "GenericResponse": GenericResponse, + "GetNotificationConfigurationListResponse": GetNotificationConfigurationListResponse, + "GetNotificationConfigurationRequest": GetNotificationConfigurationRequest, + "GetNotificationConfigurationResponse": GetNotificationConfigurationResponse, + "NotificationConfigurationDetails": NotificationConfigurationDetails, + "NotificationEventConfiguration": NotificationEventConfiguration, + "ServiceError": ServiceError, + "TestNotificationConfigurationRequest": TestNotificationConfigurationRequest, + "TestNotificationConfigurationResponse": TestNotificationConfigurationResponse, + "UpdateNotificationConfigurationRequest": UpdateNotificationConfigurationRequest, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts new file mode 100644 index 0000000..ac846ce --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/notificationConfigurationDetails.ts @@ -0,0 +1,123 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationEventConfiguration } from './notificationEventConfiguration'; + +export class NotificationConfigurationDetails { + /** + * Indicates whether the notification subscription is active. + */ + 'active'?: boolean; + /** + * The version of the notification to which you are subscribing. To make sure that your integration can properly process the notification, subscribe to the same version as the API that you\'re using. + */ + 'apiVersion'?: number; + /** + * A description of the notification subscription configuration. + */ + 'description'?: string; + /** + * Contains objects that define event types and their subscription settings. + */ + 'eventConfigs': Array; + /** + * A string with which to salt the notification(s) before hashing. If this field is provided, a hash value will be included under the notification header `HmacSignature` and the hash protocol will be included under the notification header `Protocol`. A notification body along with its `hmacSignatureKey` and `Protocol` can be used to calculate a hash value; matching this hash value with the `HmacSignature` will ensure that the notification body has not been tampered with or corrupted. >Must be a 32-byte hex-encoded string (i.e. a string containing 64 hexadecimal characters; e.g. \"b0ea55c2fe60d4d1d605e9c385e0e7f7e6cafbb939ce07010f31a327a0871f27\"). The omission of this field will preclude the provision of the `HmacSignature` and `Protocol` headers in notification(s). + */ + 'hmacSignatureKey'?: string; + /** + * Adyen-generated ID for the entry, returned in the response when you create a notification configuration. Required when updating an existing configuration using [`/updateNotificationConfiguration`](https://docs.adyen.com/api-explorer/#/NotificationConfigurationService/latest/post/updateNotificationConfiguration). + */ + 'notificationId'?: number; + /** + * The password to use when accessing the notifyURL with the specified username. + */ + 'notifyPassword'?: string; + /** + * The URL to which the notifications are to be sent. + */ + 'notifyURL': string; + /** + * The username to use when accessing the notifyURL. + */ + 'notifyUsername'?: string; + /** + * The SSL protocol employed by the endpoint. >Permitted values: `SSL`, `SSLInsecureCiphers`, `TLS`, `TLSv10`, `TLSv10InsecureCiphers`, `TLSv11`, `TLSv12`. + */ + 'sslProtocol'?: NotificationConfigurationDetails.SslProtocolEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "active", + "baseName": "active", + "type": "boolean" + }, + { + "name": "apiVersion", + "baseName": "apiVersion", + "type": "number" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "eventConfigs", + "baseName": "eventConfigs", + "type": "Array" + }, + { + "name": "hmacSignatureKey", + "baseName": "hmacSignatureKey", + "type": "string" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + }, + { + "name": "notifyPassword", + "baseName": "notifyPassword", + "type": "string" + }, + { + "name": "notifyURL", + "baseName": "notifyURL", + "type": "string" + }, + { + "name": "notifyUsername", + "baseName": "notifyUsername", + "type": "string" + }, + { + "name": "sslProtocol", + "baseName": "sslProtocol", + "type": "NotificationConfigurationDetails.SslProtocolEnum" + } ]; + + static getAttributeTypeMap() { + return NotificationConfigurationDetails.attributeTypeMap; + } +} + +export namespace NotificationConfigurationDetails { + export enum SslProtocolEnum { + Ssl = 'SSL', + SslInsecureCiphers = 'SSLInsecureCiphers', + Tls = 'TLS', + Tlsv10 = 'TLSv10', + Tlsv10InsecureCiphers = 'TLSv10InsecureCiphers', + Tlsv11 = 'TLSv11', + Tlsv12 = 'TLSv12' + } +} diff --git a/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts new file mode 100644 index 0000000..d37641f --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/notificationEventConfiguration.ts @@ -0,0 +1,70 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class NotificationEventConfiguration { + /** + * The type of event. Possible values: **ACCOUNT_CLOSED**, **ACCOUNT_CREATED**, **ACCOUNT_FUNDS_BELOW_THRESHOLD**, **ACCOUNT_HOLDER_CREATED**, **ACCOUNT_HOLDER_LIMIT_REACHED**, **ACCOUNT_HOLDER_PAYOUT**, **ACCOUNT_HOLDER_STATUS_CHANGE**, **ACCOUNT_HOLDER_STORE_STATUS_CHANGE**, **ACCOUNT_HOLDER_UPCOMING_DEADLINE**, **ACCOUNT_HOLDER_UPDATED**, **ACCOUNT_HOLDER_VERIFICATION**, **ACCOUNT_UPDATED**, **BENEFICIARY_SETUP**, **COMPENSATE_NEGATIVE_BALANCE**, **DIRECT_DEBIT_INITIATED**, **PAYMENT_FAILURE**, **REFUND_FUNDS_TRANSFER**, **REPORT_AVAILABLE**, **SCHEDULED_REFUNDS**, **TRANSFER_FUNDS**. + */ + 'eventType': NotificationEventConfiguration.EventTypeEnum; + /** + * Indicates whether the specified `eventType` is sent to your webhook endpoint. Possible values: * **INCLUDE**: Send the specified `eventType`. * **EXCLUDE**: Send all event types except the specified `eventType` and other event types with the `includeMode` set to **EXCLUDE**. + */ + 'includeMode': NotificationEventConfiguration.IncludeModeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventType", + "baseName": "eventType", + "type": "NotificationEventConfiguration.EventTypeEnum" + }, + { + "name": "includeMode", + "baseName": "includeMode", + "type": "NotificationEventConfiguration.IncludeModeEnum" + } ]; + + static getAttributeTypeMap() { + return NotificationEventConfiguration.attributeTypeMap; + } +} + +export namespace NotificationEventConfiguration { + export enum EventTypeEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } + export enum IncludeModeEnum { + Exclude = 'EXCLUDE', + Include = 'INCLUDE' + } +} diff --git a/src/typings/platformsNotificationConfiguration/serviceError.ts b/src/typings/platformsNotificationConfiguration/serviceError.ts new file mode 100644 index 0000000..48534a5 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts new file mode 100644 index 0000000..05c14da --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationRequest.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TestNotificationConfigurationRequest { + /** + * The event types to test. If left blank, then all of the configured event types will be tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + 'eventTypes'?: Array; + /** + * The ID of the notification subscription configuration to be tested. + */ + 'notificationId': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "eventTypes", + "baseName": "eventTypes", + "type": "Array" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return TestNotificationConfigurationRequest.attributeTypeMap; + } +} + +export namespace TestNotificationConfigurationRequest { + export enum EventTypesEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } +} diff --git a/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts new file mode 100644 index 0000000..b082bd5 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/testNotificationConfigurationResponse.ts @@ -0,0 +1,122 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { ErrorFieldType } from './errorFieldType'; +import { ExchangeMessage } from './exchangeMessage'; + +export class TestNotificationConfigurationResponse { + /** + * Any error messages encountered. + */ + 'errorMessages'?: Array; + /** + * The event types that were tested. >Permitted values: `ACCOUNT_HOLDER_CREATED`, `ACCOUNT_CREATED`, `ACCOUNT_UPDATED`, `ACCOUNT_HOLDER_UPDATED`, `ACCOUNT_HOLDER_STATUS_CHANGE`, `ACCOUNT_HOLDER_STORE_STATUS_CHANGE` `ACCOUNT_HOLDER_VERIFICATION`, `ACCOUNT_HOLDER_LIMIT_REACHED`, `ACCOUNT_HOLDER_PAYOUT`, `PAYMENT_FAILURE`, `SCHEDULED_REFUNDS`, `REPORT_AVAILABLE`, `TRANSFER_FUNDS`, `BENEFICIARY_SETUP`, `COMPENSATE_NEGATIVE_BALANCE`. + */ + 'eventTypes': Array; + /** + * The notification message and related response messages. + */ + 'exchangeMessages': Array; + /** + * Contains field validation errors that would prevent requests from being processed. + */ + 'invalidFields'?: Array; + /** + * The ID of the notification subscription configuration. + */ + 'notificationId': number; + /** + * A list of messages describing the testing steps. + */ + 'okMessages': Array; + /** + * The reference of a request. Can be used to uniquely identify the request. + */ + 'pspReference'?: string; + /** + * The result code. + */ + 'resultCode'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorMessages", + "baseName": "errorMessages", + "type": "Array" + }, + { + "name": "eventTypes", + "baseName": "eventTypes", + "type": "Array" + }, + { + "name": "exchangeMessages", + "baseName": "exchangeMessages", + "type": "Array" + }, + { + "name": "invalidFields", + "baseName": "invalidFields", + "type": "Array" + }, + { + "name": "notificationId", + "baseName": "notificationId", + "type": "number" + }, + { + "name": "okMessages", + "baseName": "okMessages", + "type": "Array" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TestNotificationConfigurationResponse.attributeTypeMap; + } +} + +export namespace TestNotificationConfigurationResponse { + export enum EventTypesEnum { + AccountClosed = 'ACCOUNT_CLOSED', + AccountCreated = 'ACCOUNT_CREATED', + AccountFundsBelowThreshold = 'ACCOUNT_FUNDS_BELOW_THRESHOLD', + AccountHolderCreated = 'ACCOUNT_HOLDER_CREATED', + AccountHolderLimitReached = 'ACCOUNT_HOLDER_LIMIT_REACHED', + AccountHolderPayout = 'ACCOUNT_HOLDER_PAYOUT', + AccountHolderStatusChange = 'ACCOUNT_HOLDER_STATUS_CHANGE', + AccountHolderStoreStatusChange = 'ACCOUNT_HOLDER_STORE_STATUS_CHANGE', + AccountHolderUpcomingDeadline = 'ACCOUNT_HOLDER_UPCOMING_DEADLINE', + AccountHolderUpdated = 'ACCOUNT_HOLDER_UPDATED', + AccountHolderVerification = 'ACCOUNT_HOLDER_VERIFICATION', + AccountUpdated = 'ACCOUNT_UPDATED', + BeneficiarySetup = 'BENEFICIARY_SETUP', + CompensateNegativeBalance = 'COMPENSATE_NEGATIVE_BALANCE', + DirectDebitInitiated = 'DIRECT_DEBIT_INITIATED', + PaymentFailure = 'PAYMENT_FAILURE', + PendingCredit = 'PENDING_CREDIT', + RefundFundsTransfer = 'REFUND_FUNDS_TRANSFER', + ReportAvailable = 'REPORT_AVAILABLE', + ScheduledRefunds = 'SCHEDULED_REFUNDS', + ScoreSignalTriggered = 'SCORE_SIGNAL_TRIGGERED', + TransferFunds = 'TRANSFER_FUNDS', + TransferNotPaidoutTransfers = 'TRANSFER_NOT_PAIDOUT_TRANSFERS' + } +} diff --git a/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts b/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts new file mode 100644 index 0000000..13fe250 --- /dev/null +++ b/src/typings/platformsNotificationConfiguration/updateNotificationConfigurationRequest.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v6 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NotificationConfigurationDetails } from './notificationConfigurationDetails'; + +export class UpdateNotificationConfigurationRequest { + 'configurationDetails': NotificationConfigurationDetails; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "configurationDetails", + "baseName": "configurationDetails", + "type": "NotificationConfigurationDetails" + } ]; + + static getAttributeTypeMap() { + return UpdateNotificationConfigurationRequest.attributeTypeMap; + } +} + diff --git a/src/typings/recurring/address.ts b/src/typings/recurring/address.ts index b4ff459..41b5bf0 100644 --- a/src/typings/recurring/address.ts +++ b/src/typings/recurring/address.ts @@ -1,26 +1,24 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Address { /** - * The name of the city. + * The name of the city. Maximum length: 3000 characters. */ 'city': string; /** - * The two-character country code as defined in ISO-3166-1 alpha-2. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. + * The two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`. */ 'country': string; /** - * The number or name of the house. + * The number or name of the house. Maximum length: 3000 characters. */ 'houseNumberOrName': string; /** @@ -28,11 +26,11 @@ export class Address { */ 'postalCode': string; /** - * State or province codes as defined in ISO 3166-2. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. + * The two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada. */ 'stateOrProvince'?: string; /** - * The name of the street. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. + * The name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. */ 'street': string; diff --git a/src/typings/recurring/amount.ts b/src/typings/recurring/amount.ts index b4bdedc..4ef042f 100644 --- a/src/typings/recurring/amount.ts +++ b/src/typings/recurring/amount.ts @@ -1,28 +1,26 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Amount { /** - * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). - */ + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ 'currency': string; /** - * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). - */ + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ 'value': number; static discriminator: string | undefined = undefined; - static attributeTypeMap: Array<{ name: string, baseName: string, type: string }> = [ + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "currency", "baseName": "currency", @@ -32,7 +30,7 @@ export class Amount { "name": "value", "baseName": "value", "type": "number" - }]; + } ]; static getAttributeTypeMap() { return Amount.attributeTypeMap; diff --git a/src/typings/recurring/bankAccount.ts b/src/typings/recurring/bankAccount.ts index f184cc3..e9f6e28 100644 --- a/src/typings/recurring/bankAccount.ts +++ b/src/typings/recurring/bankAccount.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class BankAccount { /** * The bank account number (without separators). diff --git a/src/typings/recurring/card.ts b/src/typings/recurring/card.ts index 6f648d2..4faa202 100644 --- a/src/typings/recurring/card.ts +++ b/src/typings/recurring/card.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Card { /** * The [card verification code](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid) (1-20 characters). Depending on the card brand, it is known also as: * CVV2/CVC2 – length: 3 digits * CID – length: 4 digits > If you are using [Client-Side Encryption](https://docs.adyen.com/classic-integration/cse-integration-ecommerce), the CVC code is present in the encrypted data. You must never post the card details to the server. > This field must be always present in a [one-click payment request](https://docs.adyen.com/classic-integration/recurring-payments). > When this value is returned in a response, it is always empty because it is not stored. diff --git a/src/typings/recurring/disableRequest.ts b/src/typings/recurring/disableRequest.ts index 0aa3d47..aadb33f 100644 --- a/src/typings/recurring/disableRequest.ts +++ b/src/typings/recurring/disableRequest.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DisableRequest { /** * Specify the contract if you only want to disable a specific use. This field can be set to one of the following values, or to their combination (comma-separated): * ONECLICK * RECURRING * PAYOUT diff --git a/src/typings/recurring/disableResult.ts b/src/typings/recurring/disableResult.ts index c7ea6bc..69714b5 100644 --- a/src/typings/recurring/disableResult.ts +++ b/src/typings/recurring/disableResult.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class DisableResult { /** * Depending on whether a specific recurring detail was in the request, result is either [detail-successfully-disabled] or [all-details-successfully-disabled]. diff --git a/src/typings/recurring/models.ts b/src/typings/recurring/models.ts index 80fc5bd..2836696 100644 --- a/src/typings/recurring/models.ts +++ b/src/typings/recurring/models.ts @@ -1,22 +1,13 @@ /* - * ###### - * ###### - * ############ ####( ###### #####. ###### ############ ############ - * ############# #####( ###### #####. ###### ############# ############# - * ###### #####( ###### #####. ###### ##### ###### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ##### ###### - * ###### ###### #####( ###### #####. ###### ##### ##### ###### - * ############# ############# ############# ############# ##### ###### - * ############ ############ ############# ############ ##### ###### - * ###### - * ############# - * ############ - * Adyen NodeJS API Library - * Copyright (c) 2020 Adyen B.V. - * This file is open source and available under the MIT license. - * See the LICENSE file for more info. + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. */ + export * from './address'; export * from './amount'; export * from './bankAccount'; @@ -33,37 +24,26 @@ export * from './recurringDetailsResult'; export * from './scheduleAccountUpdaterRequest'; export * from './scheduleAccountUpdaterResult'; export * from './serviceError'; -export * from './recurringDetailContainer'; +export * from './tokenDetails'; -import * as fs from 'fs'; -import {Address} from './address'; -import {Amount} from './amount'; -import {BankAccount} from './bankAccount'; -import {Card} from './card'; -import {DisableRequest} from './disableRequest'; -import {DisableResult} from './disableResult'; -import {Name} from './name'; -import {NotifyShopperRequest} from './notifyShopperRequest'; -import {NotifyShopperResult} from './notifyShopperResult'; -import {Recurring} from './recurring'; -import {RecurringDetail} from './recurringDetail'; -import {RecurringDetailsRequest} from './recurringDetailsRequest'; -import {RecurringDetailsResult} from './recurringDetailsResult'; -import {ScheduleAccountUpdaterRequest} from './scheduleAccountUpdaterRequest'; -import {ScheduleAccountUpdaterResult} from './scheduleAccountUpdaterResult'; -import {ServiceError} from './serviceError'; -import {RecurringDetailContainer} from "./recurringDetailContainer"; - -export interface RequestDetailedFile { - value: Buffer; - options?: { - filename?: string; - contentType?: string; - } -} - -export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile; +import { Address } from './address'; +import { Amount } from './amount'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { DisableRequest } from './disableRequest'; +import { DisableResult } from './disableResult'; +import { Name } from './name'; +import { NotifyShopperRequest } from './notifyShopperRequest'; +import { NotifyShopperResult } from './notifyShopperResult'; +import { Recurring } from './recurring'; +import { RecurringDetail } from './recurringDetail'; +import { RecurringDetailsRequest } from './recurringDetailsRequest'; +import { RecurringDetailsResult } from './recurringDetailsResult'; +import { ScheduleAccountUpdaterRequest } from './scheduleAccountUpdaterRequest'; +import { ScheduleAccountUpdaterResult } from './scheduleAccountUpdaterResult'; +import { ServiceError } from './serviceError'; +import { TokenDetails } from './tokenDetails'; /* tslint:disable:no-unused-variable */ let primitives = [ @@ -96,10 +76,10 @@ let typeMap: {[index: string]: any} = { "RecurringDetail": RecurringDetail, "RecurringDetailsRequest": RecurringDetailsRequest, "RecurringDetailsResult": RecurringDetailsResult, - 'RecurringDetailContainer': RecurringDetailContainer, "ScheduleAccountUpdaterRequest": ScheduleAccountUpdaterRequest, "ScheduleAccountUpdaterResult": ScheduleAccountUpdaterResult, "ServiceError": ServiceError, + "TokenDetails": TokenDetails, } export class ObjectSerializer { @@ -154,6 +134,9 @@ export class ObjectSerializer { return transformedData; } else if (type === "Date") { return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); } else { if (enumsMap[type]) { return data; diff --git a/src/typings/recurring/name.ts b/src/typings/recurring/name.ts index 9a12c73..e0ca497 100644 --- a/src/typings/recurring/name.ts +++ b/src/typings/recurring/name.ts @@ -1,25 +1,19 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Name { /** * The first name. */ 'firstName': string; /** - * The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed. - */ - 'infix'?: string; - /** * The last name. */ 'lastName': string; @@ -32,11 +26,6 @@ export class Name { "baseName": "firstName", "type": "string" }, - { - "name": "infix", - "baseName": "infix", - "type": "string" - }, { "name": "lastName", "baseName": "lastName", diff --git a/src/typings/recurring/notifyShopperRequest.ts b/src/typings/recurring/notifyShopperRequest.ts index 1d1a880..306888c 100644 --- a/src/typings/recurring/notifyShopperRequest.ts +++ b/src/typings/recurring/notifyShopperRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Amount} from './amount'; +import { Amount } from './amount'; export class NotifyShopperRequest { 'amount': Amount; diff --git a/src/typings/recurring/notifyShopperResult.ts b/src/typings/recurring/notifyShopperResult.ts index bb185ff..a68d0e8 100644 --- a/src/typings/recurring/notifyShopperResult.ts +++ b/src/typings/recurring/notifyShopperResult.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class NotifyShopperResult { /** * Reference of Pre-debit notification that is displayed to the shopper diff --git a/src/typings/recurring/recurring.ts b/src/typings/recurring/recurring.ts index f6248c8..1d80454 100644 --- a/src/typings/recurring/recurring.ts +++ b/src/typings/recurring/recurring.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class Recurring { /** * The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). diff --git a/src/typings/recurring/recurringDetail.ts b/src/typings/recurring/recurringDetail.ts index 9281f85..e9885e8 100644 --- a/src/typings/recurring/recurringDetail.ts +++ b/src/typings/recurring/recurringDetail.ts @@ -1,19 +1,17 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Address} from './address'; -import {BankAccount} from './bankAccount'; -import {Card} from './card'; -import {Name} from './name'; +import { Address } from './address'; +import { BankAccount } from './bankAccount'; +import { Card } from './card'; +import { Name } from './name'; +import { TokenDetails } from './tokenDetails'; export class RecurringDetail { /** @@ -48,6 +46,10 @@ export class RecurringDetail { */ 'name'?: string; /** + * Returned in the response if you are not tokenizing with Adyen and are using the Merchant-initiated transactions (MIT) framework from Mastercard or Visa. This contains either the Mastercard Trace ID or the Visa Transaction ID. + */ + 'networkTxReference'?: string; + /** * The type or sub-brand of a payment method used, e.g. Visa Debit, Visa Corporate, etc. For more information, refer to [PaymentMethodVariant](https://docs.adyen.com/development-resources/paymentmethodvariant). */ 'paymentMethodVariant'?: string; @@ -60,6 +62,7 @@ export class RecurringDetail { * A shopper\'s social security number (only in countries where it is legal to collect). */ 'socialSecurityNumber'?: string; + 'tokenDetails'?: TokenDetails; /** * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". */ @@ -118,6 +121,11 @@ export class RecurringDetail { "baseName": "name", "type": "string" }, + { + "name": "networkTxReference", + "baseName": "networkTxReference", + "type": "string" + }, { "name": "paymentMethodVariant", "baseName": "paymentMethodVariant", @@ -138,6 +146,11 @@ export class RecurringDetail { "baseName": "socialSecurityNumber", "type": "string" }, + { + "name": "tokenDetails", + "baseName": "tokenDetails", + "type": "TokenDetails" + }, { "name": "variant", "baseName": "variant", diff --git a/src/typings/recurring/recurringDetailContainer.ts b/src/typings/recurring/recurringDetailContainer.ts deleted file mode 100644 index ab2705e..0000000 --- a/src/typings/recurring/recurringDetailContainer.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 - * Contact: developer-experience@adyen.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import {RecurringDetail} from "./recurringDetail"; - -export class RecurringDetailContainer { - 'RecurringDetail': RecurringDetail; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "RecurringDetail", - "baseName": "RecurringDetail", - "type": "RecurringDetail" - } - ]; - - static getAttributeTypeMap() { - return RecurringDetail.attributeTypeMap; - } -} - diff --git a/src/typings/recurring/recurringDetailsRequest.ts b/src/typings/recurring/recurringDetailsRequest.ts index 2d55df3..a65d927 100644 --- a/src/typings/recurring/recurringDetailsRequest.ts +++ b/src/typings/recurring/recurringDetailsRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Recurring} from './recurring'; +import { Recurring } from './recurring'; export class RecurringDetailsRequest { /** diff --git a/src/typings/recurring/recurringDetailsResult.ts b/src/typings/recurring/recurringDetailsResult.ts index 738f203..ad2bf02 100644 --- a/src/typings/recurring/recurringDetailsResult.ts +++ b/src/typings/recurring/recurringDetailsResult.ts @@ -1,16 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {RecurringDetailContainer} from './recurringDetailContainer'; +import { RecurringDetail } from './recurringDetail'; export class RecurringDetailsResult { /** @@ -20,7 +17,7 @@ export class RecurringDetailsResult { /** * Payment details stored for recurring payments. */ - 'details'?: Array; + 'details'?: Array; /** * The most recent email for this shopper (if available). */ @@ -41,7 +38,7 @@ export class RecurringDetailsResult { { "name": "details", "baseName": "details", - "type": "Array" + "type": "Array" }, { "name": "lastKnownShopperEmail", diff --git a/src/typings/recurring/scheduleAccountUpdaterRequest.ts b/src/typings/recurring/scheduleAccountUpdaterRequest.ts index 78ee7c1..b39d73d 100644 --- a/src/typings/recurring/scheduleAccountUpdaterRequest.ts +++ b/src/typings/recurring/scheduleAccountUpdaterRequest.ts @@ -1,16 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ -import {Card} from './card'; +import { Card } from './card'; export class ScheduleAccountUpdaterRequest { /** diff --git a/src/typings/recurring/scheduleAccountUpdaterResult.ts b/src/typings/recurring/scheduleAccountUpdaterResult.ts index e1922f1..9922af7 100644 --- a/src/typings/recurring/scheduleAccountUpdaterResult.ts +++ b/src/typings/recurring/scheduleAccountUpdaterResult.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ScheduleAccountUpdaterResult { /** * Adyen\'s 16-character unique reference associated with the transaction. This value is globally unique; quote it when communicating with us about this request. diff --git a/src/typings/recurring/serviceError.ts b/src/typings/recurring/serviceError.ts index 008a853..551936c 100644 --- a/src/typings/recurring/serviceError.ts +++ b/src/typings/recurring/serviceError.ts @@ -1,15 +1,13 @@ -/** - * Adyen Recurring API - * The Recurring APIs allow you to manage and remove your tokens or saved payment details. Tokens should be created with validation during a payment request. For more information, refer to our [Tokenization documentation](https://docs.adyen.com/online-payments/tokenization). ## Authentication To connect to the Recurring API, you must use your basic authentication credentials. For this, create your web service user, as described in [How to get the WS user password](https://docs.adyen.com/development-resources/api-credentials). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@Company.YourCompany\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning Recurring API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://pal-test.adyen.com/pal/servlet/Recurring/v49/disable ``` - * - * The version of the OpenAPI document: 49 +/* + * The version of the OpenAPI document: v68 * Contact: developer-experience@adyen.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech - * Do not edit the class manually. + * Do not edit this class manually. */ + export class ServiceError { /** * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. diff --git a/src/typings/recurring/tokenDetails.ts b/src/typings/recurring/tokenDetails.ts new file mode 100644 index 0000000..e3f9a02 --- /dev/null +++ b/src/typings/recurring/tokenDetails.ts @@ -0,0 +1,33 @@ +/* + * The version of the OpenAPI document: v68 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class TokenDetails { + 'tokenData'?: { [key: string]: string; }; + 'tokenDataType'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "tokenData", + "baseName": "tokenData", + "type": "{ [key: string]: string; }" + }, + { + "name": "tokenDataType", + "baseName": "tokenDataType", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return TokenDetails.attributeTypeMap; + } +} + diff --git a/src/typings/requestOptions.ts b/src/typings/requestOptions.ts index 69b2550..9a54fd1 100644 --- a/src/typings/requestOptions.ts +++ b/src/typings/requestOptions.ts @@ -22,10 +22,13 @@ /// import * as https from "https"; +import { URLSearchParams } from "url"; export namespace IRequest { + type QueryString = URLSearchParams | string | NodeJS.Dict | Iterable<[string, string]> | Array<[string, string]>; export type Options = https.RequestOptions & { idempotencyKey?: string; + params?: QueryString; }; } diff --git a/src/typings/storedValue/amount.ts b/src/typings/storedValue/amount.ts new file mode 100644 index 0000000..397a5d4 --- /dev/null +++ b/src/typings/storedValue/amount.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Amount { + /** + * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). + */ + 'currency': string; + /** + * The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). + */ + 'value': number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "value", + "baseName": "value", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return Amount.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/models.ts b/src/typings/storedValue/models.ts new file mode 100644 index 0000000..e8fbab3 --- /dev/null +++ b/src/typings/storedValue/models.ts @@ -0,0 +1,199 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './amount'; +export * from './serviceError'; +export * from './storedValueBalanceCheckRequest'; +export * from './storedValueBalanceCheckResponse'; +export * from './storedValueBalanceMergeRequest'; +export * from './storedValueBalanceMergeResponse'; +export * from './storedValueIssueRequest'; +export * from './storedValueIssueResponse'; +export * from './storedValueLoadRequest'; +export * from './storedValueLoadResponse'; +export * from './storedValueStatusChangeRequest'; +export * from './storedValueStatusChangeResponse'; +export * from './storedValueVoidRequest'; +export * from './storedValueVoidResponse'; + + +import { Amount } from './amount'; +import { ServiceError } from './serviceError'; +import { StoredValueBalanceCheckRequest } from './storedValueBalanceCheckRequest'; +import { StoredValueBalanceCheckResponse } from './storedValueBalanceCheckResponse'; +import { StoredValueBalanceMergeRequest } from './storedValueBalanceMergeRequest'; +import { StoredValueBalanceMergeResponse } from './storedValueBalanceMergeResponse'; +import { StoredValueIssueRequest } from './storedValueIssueRequest'; +import { StoredValueIssueResponse } from './storedValueIssueResponse'; +import { StoredValueLoadRequest } from './storedValueLoadRequest'; +import { StoredValueLoadResponse } from './storedValueLoadResponse'; +import { StoredValueStatusChangeRequest } from './storedValueStatusChangeRequest'; +import { StoredValueStatusChangeResponse } from './storedValueStatusChangeResponse'; +import { StoredValueVoidRequest } from './storedValueVoidRequest'; +import { StoredValueVoidResponse } from './storedValueVoidResponse'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "StoredValueBalanceCheckRequest.ShopperInteractionEnum": StoredValueBalanceCheckRequest.ShopperInteractionEnum, + "StoredValueBalanceCheckResponse.ResultCodeEnum": StoredValueBalanceCheckResponse.ResultCodeEnum, + "StoredValueBalanceMergeRequest.ShopperInteractionEnum": StoredValueBalanceMergeRequest.ShopperInteractionEnum, + "StoredValueBalanceMergeResponse.ResultCodeEnum": StoredValueBalanceMergeResponse.ResultCodeEnum, + "StoredValueIssueRequest.ShopperInteractionEnum": StoredValueIssueRequest.ShopperInteractionEnum, + "StoredValueIssueResponse.ResultCodeEnum": StoredValueIssueResponse.ResultCodeEnum, + "StoredValueLoadRequest.LoadTypeEnum": StoredValueLoadRequest.LoadTypeEnum, + "StoredValueLoadRequest.ShopperInteractionEnum": StoredValueLoadRequest.ShopperInteractionEnum, + "StoredValueLoadResponse.ResultCodeEnum": StoredValueLoadResponse.ResultCodeEnum, + "StoredValueStatusChangeRequest.ShopperInteractionEnum": StoredValueStatusChangeRequest.ShopperInteractionEnum, + "StoredValueStatusChangeRequest.StatusEnum": StoredValueStatusChangeRequest.StatusEnum, + "StoredValueStatusChangeResponse.ResultCodeEnum": StoredValueStatusChangeResponse.ResultCodeEnum, + "StoredValueVoidResponse.ResultCodeEnum": StoredValueVoidResponse.ResultCodeEnum, +} + +let typeMap: {[index: string]: any} = { + "Amount": Amount, + "ServiceError": ServiceError, + "StoredValueBalanceCheckRequest": StoredValueBalanceCheckRequest, + "StoredValueBalanceCheckResponse": StoredValueBalanceCheckResponse, + "StoredValueBalanceMergeRequest": StoredValueBalanceMergeRequest, + "StoredValueBalanceMergeResponse": StoredValueBalanceMergeResponse, + "StoredValueIssueRequest": StoredValueIssueRequest, + "StoredValueIssueResponse": StoredValueIssueResponse, + "StoredValueLoadRequest": StoredValueLoadRequest, + "StoredValueLoadResponse": StoredValueLoadResponse, + "StoredValueStatusChangeRequest": StoredValueStatusChangeRequest, + "StoredValueStatusChangeResponse": StoredValueStatusChangeResponse, + "StoredValueVoidRequest": StoredValueVoidRequest, + "StoredValueVoidResponse": StoredValueVoidResponse, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/storedValue/serviceError.ts b/src/typings/storedValue/serviceError.ts new file mode 100644 index 0000000..be1dffb --- /dev/null +++ b/src/typings/storedValue/serviceError.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Account** > **API URLs**. + */ + 'additionalData'?: { [key: string]: string; }; + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "additionalData", + "baseName": "additionalData", + "type": "{ [key: string]: string; }" + }, + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/storedValueBalanceCheckRequest.ts b/src/typings/storedValue/storedValueBalanceCheckRequest.ts new file mode 100644 index 0000000..63cec0c --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceCheckRequest.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceCheckRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueBalanceCheckRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueBalanceCheckRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceCheckRequest.attributeTypeMap; + } +} + +export namespace StoredValueBalanceCheckRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueBalanceCheckResponse.ts b/src/typings/storedValue/storedValueBalanceCheckResponse.ts new file mode 100644 index 0000000..d8ed5bb --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceCheckResponse.ts @@ -0,0 +1,72 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceCheckResponse { + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueBalanceCheckResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueBalanceCheckResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceCheckResponse.attributeTypeMap; + } +} + +export namespace StoredValueBalanceCheckResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueBalanceMergeRequest.ts b/src/typings/storedValue/storedValueBalanceMergeRequest.ts new file mode 100644 index 0000000..9310132 --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceMergeRequest.ts @@ -0,0 +1,102 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceMergeRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueBalanceMergeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The collection that contains the source payment method and its specific information if available. Note that type should not be included since it is inferred from the (target) payment method + */ + 'sourcePaymentMethod': { [key: string]: string; }; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueBalanceMergeRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "sourcePaymentMethod", + "baseName": "sourcePaymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceMergeRequest.attributeTypeMap; + } +} + +export namespace StoredValueBalanceMergeRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueBalanceMergeResponse.ts b/src/typings/storedValue/storedValueBalanceMergeResponse.ts new file mode 100644 index 0000000..7bf283b --- /dev/null +++ b/src/typings/storedValue/storedValueBalanceMergeResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueBalanceMergeResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueBalanceMergeResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueBalanceMergeResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueBalanceMergeResponse.attributeTypeMap; + } +} + +export namespace StoredValueBalanceMergeResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueIssueRequest.ts b/src/typings/storedValue/storedValueIssueRequest.ts new file mode 100644 index 0000000..587457b --- /dev/null +++ b/src/typings/storedValue/storedValueIssueRequest.ts @@ -0,0 +1,93 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueIssueRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueIssueRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueIssueRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueIssueRequest.attributeTypeMap; + } +} + +export namespace StoredValueIssueRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueIssueResponse.ts b/src/typings/storedValue/storedValueIssueResponse.ts new file mode 100644 index 0000000..0c7f341 --- /dev/null +++ b/src/typings/storedValue/storedValueIssueResponse.ts @@ -0,0 +1,90 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueIssueResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod'?: { [key: string]: string; }; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueIssueResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueIssueResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueIssueResponse.attributeTypeMap; + } +} + +export namespace StoredValueIssueResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueLoadRequest.ts b/src/typings/storedValue/storedValueLoadRequest.ts new file mode 100644 index 0000000..608bbcc --- /dev/null +++ b/src/typings/storedValue/storedValueLoadRequest.ts @@ -0,0 +1,106 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueLoadRequest { + 'amount': Amount; + /** + * The type of load you are trying to do, when absent we default to \'Load\' + */ + 'loadType'?: StoredValueLoadRequest.LoadTypeEnum; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueLoadRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "loadType", + "baseName": "loadType", + "type": "StoredValueLoadRequest.LoadTypeEnum" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueLoadRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueLoadRequest.attributeTypeMap; + } +} + +export namespace StoredValueLoadRequest { + export enum LoadTypeEnum { + MerchandiseReturn = 'merchandiseReturn', + Load = 'load' + } + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } +} diff --git a/src/typings/storedValue/storedValueLoadResponse.ts b/src/typings/storedValue/storedValueLoadResponse.ts new file mode 100644 index 0000000..c2e1160 --- /dev/null +++ b/src/typings/storedValue/storedValueLoadResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueLoadResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueLoadResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueLoadResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueLoadResponse.attributeTypeMap; + } +} + +export namespace StoredValueLoadResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueStatusChangeRequest.ts b/src/typings/storedValue/storedValueStatusChangeRequest.ts new file mode 100644 index 0000000..2205fe8 --- /dev/null +++ b/src/typings/storedValue/storedValueStatusChangeRequest.ts @@ -0,0 +1,106 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueStatusChangeRequest { + 'amount'?: Amount; + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The collection that contains the type of the payment method and its specific information if available + */ + 'paymentMethod': { [key: string]: string; }; + 'recurringDetailReference'?: string; + /** + * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. + */ + 'reference': string; + /** + * Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer. For the web service API, Adyen assumes Ecommerce shopper interaction by default. This field has the following possible values: * `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request. * `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment). * `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone. * `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal. + */ + 'shopperInteraction'?: StoredValueStatusChangeRequest.ShopperInteractionEnum; + 'shopperReference'?: string; + /** + * The status you want to change to + */ + 'status': StoredValueStatusChangeRequest.StatusEnum; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "paymentMethod", + "baseName": "paymentMethod", + "type": "{ [key: string]: string; }" + }, + { + "name": "recurringDetailReference", + "baseName": "recurringDetailReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "shopperInteraction", + "baseName": "shopperInteraction", + "type": "StoredValueStatusChangeRequest.ShopperInteractionEnum" + }, + { + "name": "shopperReference", + "baseName": "shopperReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "StoredValueStatusChangeRequest.StatusEnum" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueStatusChangeRequest.attributeTypeMap; + } +} + +export namespace StoredValueStatusChangeRequest { + export enum ShopperInteractionEnum { + Ecommerce = 'Ecommerce', + ContAuth = 'ContAuth', + Moto = 'Moto', + Pos = 'POS' + } + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } +} diff --git a/src/typings/storedValue/storedValueStatusChangeResponse.ts b/src/typings/storedValue/storedValueStatusChangeResponse.ts new file mode 100644 index 0000000..925f2e4 --- /dev/null +++ b/src/typings/storedValue/storedValueStatusChangeResponse.ts @@ -0,0 +1,81 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueStatusChangeResponse { + /** + * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. + */ + 'authCode'?: string; + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueStatusChangeResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "authCode", + "baseName": "authCode", + "type": "string" + }, + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueStatusChangeResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueStatusChangeResponse.attributeTypeMap; + } +} + +export namespace StoredValueStatusChangeResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/storedValue/storedValueVoidRequest.ts b/src/typings/storedValue/storedValueVoidRequest.ts new file mode 100644 index 0000000..8d641f1 --- /dev/null +++ b/src/typings/storedValue/storedValueVoidRequest.ts @@ -0,0 +1,75 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class StoredValueVoidRequest { + /** + * The merchant account identifier, with which you want to process the transaction. + */ + 'merchantAccount': string; + /** + * The original pspReference of the payment to modify. + */ + 'originalReference': string; + /** + * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. + */ + 'reference'?: string; + /** + * The physical store, for which this payment is processed. + */ + 'store'?: string; + /** + * The reference of the tender. + */ + 'tenderReference'?: string; + /** + * The unique ID of a POS terminal. + */ + 'uniqueTerminalId'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "originalReference", + "baseName": "originalReference", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "tenderReference", + "baseName": "tenderReference", + "type": "string" + }, + { + "name": "uniqueTerminalId", + "baseName": "uniqueTerminalId", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueVoidRequest.attributeTypeMap; + } +} + diff --git a/src/typings/storedValue/storedValueVoidResponse.ts b/src/typings/storedValue/storedValueVoidResponse.ts new file mode 100644 index 0000000..45aa26a --- /dev/null +++ b/src/typings/storedValue/storedValueVoidResponse.ts @@ -0,0 +1,72 @@ +/* + * The version of the OpenAPI document: v46 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; + +export class StoredValueVoidResponse { + 'currentBalance'?: Amount; + /** + * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. + */ + 'pspReference'?: string; + /** + * If the transaction is refused or an error occurs, this field holds Adyen\'s mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. + */ + 'refusalReason'?: string; + /** + * The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks. + */ + 'resultCode'?: StoredValueVoidResponse.ResultCodeEnum; + /** + * Raw refusal reason received from the third party, where available + */ + 'thirdPartyRefusalReason'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "currentBalance", + "baseName": "currentBalance", + "type": "Amount" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "refusalReason", + "baseName": "refusalReason", + "type": "string" + }, + { + "name": "resultCode", + "baseName": "resultCode", + "type": "StoredValueVoidResponse.ResultCodeEnum" + }, + { + "name": "thirdPartyRefusalReason", + "baseName": "thirdPartyRefusalReason", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return StoredValueVoidResponse.attributeTypeMap; + } +} + +export namespace StoredValueVoidResponse { + export enum ResultCodeEnum { + Success = 'Success', + Refused = 'Refused', + Error = 'Error', + NotEnoughBalance = 'NotEnoughBalance' + } +} diff --git a/src/typings/terminal/models.ts b/src/typings/terminal/models.ts index 19ae473..99145d6 100644 --- a/src/typings/terminal/models.ts +++ b/src/typings/terminal/models.ts @@ -853,6 +853,12 @@ export class ObjectSerializer { return transformedData; } else if (type === "Date") { return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + if (typeof data === 'string') { + return data; // splits payment for terminal + } + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); } else { if (enumsMap[type]) { return data; diff --git a/src/typings/terminal/outputBarcode.ts b/src/typings/terminal/outputBarcode.ts index 26fa58a..382d944 100644 --- a/src/typings/terminal/outputBarcode.ts +++ b/src/typings/terminal/outputBarcode.ts @@ -61,7 +61,7 @@ export namespace OutputBarcode { Ean13 = 'EAN13', Ean8 = 'EAN8', Pdf417 = 'PDF417', - Qrcode = 'QRCODE', + Qrcode = 'QRCode', Upca = 'UPCA' } } diff --git a/src/typings/terminal/reversalRequest.ts b/src/typings/terminal/reversalRequest.ts index 66504c3..49d0593 100644 --- a/src/typings/terminal/reversalRequest.ts +++ b/src/typings/terminal/reversalRequest.ts @@ -33,21 +33,22 @@ import { CustomerOrder } from './customerOrder'; import { OriginalPOITransaction } from './originalPOITransaction'; import { ReversalReasonType } from './reversalReasonType'; +import { SaleData } from './saleData'; export class ReversalRequest { - 'CustomerOrderID'?: CustomerOrder; + 'SaleData'?: SaleData; 'OriginalPOITransaction': OriginalPOITransaction; - 'ReversalReason': ReversalReasonType; 'ReversedAmount'?: number; - 'SaleReferenceID'?: string; + 'ReversalReason': ReversalReasonType; + 'CustomerOrder'?: CustomerOrder; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { - "name": "CustomerOrderID", - "baseName": "CustomerOrderID", - "type": "CustomerOrder" + "name": "SaleData", + "baseName": "SaleData", + "type": "SaleData", }, { "name": "OriginalPOITransaction", @@ -65,9 +66,9 @@ export class ReversalRequest { "type": "number" }, { - "name": "SaleReferenceID", - "baseName": "SaleReferenceID", - "type": "string" + "name": "CustomerOrder", + "baseName": "CustomerOrder", + "type": "CustomerOrder" } ]; static getAttributeTypeMap() { diff --git a/src/typings/terminal/saleData.ts b/src/typings/terminal/saleData.ts index 1d1cb53..bcf30c7 100644 --- a/src/typings/terminal/saleData.ts +++ b/src/typings/terminal/saleData.ts @@ -43,7 +43,7 @@ export class SaleData { 'OperatorLanguage'?: string; 'SaleReferenceID'?: string; 'SaleTerminalData'?: SaleTerminalData; - 'SaleToAcquirerData'?: SaleToAcquirerData; + 'SaleToAcquirerData'?: SaleToAcquirerData | string; 'SaleToIssuerData'?: SaleToIssuerData; 'SaleToPOIData'?: string; 'SaleTransactionID': TransactionIdentification; diff --git a/src/typings/terminal/saleToAcquirerData.ts b/src/typings/terminal/saleToAcquirerData.ts index 18ccc4d..187ceab 100644 --- a/src/typings/terminal/saleToAcquirerData.ts +++ b/src/typings/terminal/saleToAcquirerData.ts @@ -103,7 +103,12 @@ export class SaleToAcquirerData { "name": "additionalData", "baseName": "additionalData", "type": "object" - } ]; + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }]; static getAttributeTypeMap() { return SaleToAcquirerData.attributeTypeMap; diff --git a/src/typings/terminalManagement/address.ts b/src/typings/terminalManagement/address.ts new file mode 100644 index 0000000..2405c52 --- /dev/null +++ b/src/typings/terminalManagement/address.ts @@ -0,0 +1,57 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class Address { + 'city'?: string; + 'countryCode'?: string; + 'postalCode'?: string; + 'stateOrProvince'?: string; + 'streetAddress'?: string; + 'streetAddress2'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "city", + "baseName": "city", + "type": "string" + }, + { + "name": "countryCode", + "baseName": "countryCode", + "type": "string" + }, + { + "name": "postalCode", + "baseName": "postalCode", + "type": "string" + }, + { + "name": "stateOrProvince", + "baseName": "stateOrProvince", + "type": "string" + }, + { + "name": "streetAddress", + "baseName": "streetAddress", + "type": "string" + }, + { + "name": "streetAddress2", + "baseName": "streetAddress2", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Address.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/assignTerminalsRequest.ts b/src/typings/terminalManagement/assignTerminalsRequest.ts new file mode 100644 index 0000000..41a39d9 --- /dev/null +++ b/src/typings/terminalManagement/assignTerminalsRequest.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AssignTerminalsRequest { + /** + * Your company account. To return terminals to the company inventory, specify only this parameter and the `terminals`. + */ + 'companyAccount': string; + /** + * Name of the merchant account. Specify this parameter to assign terminals to this merchant account or to a store under this merchant account. + */ + 'merchantAccount'?: string; + /** + * Boolean that indicates if you are assigning the terminals to the merchant inventory. Do not use when assigning terminals to a store. Required when assigning the terminal to a merchant account. - Set this to **true** to assign the terminals to the merchant inventory. This also means that the terminals cannot be boarded. - Set this to **false** to assign the terminals to the merchant account as in-store terminals. This makes the terminals ready to be boarded and to process payments through the specified merchant account. + */ + 'merchantInventory'?: boolean; + /** + * The store code of the store that you want to assign the terminals to. + */ + 'store'?: string; + /** + * Array containing a list of terminal IDs that you want to assign or reassign to the merchant account or store, or that you want to return to the company inventory. For example, `[\"V400m-324689776\",\"P400Plus-329127412\"]`. + */ + 'terminals': Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantInventory", + "baseName": "merchantInventory", + "type": "boolean" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "terminals", + "baseName": "terminals", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AssignTerminalsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/assignTerminalsResponse.ts b/src/typings/terminalManagement/assignTerminalsResponse.ts new file mode 100644 index 0000000..3814061 --- /dev/null +++ b/src/typings/terminalManagement/assignTerminalsResponse.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class AssignTerminalsResponse { + /** + * Array that returns a list of the terminals, and for each terminal the result of assigning it to an account or store. The results can be: - `Done`: The terminal has been assigned. - `AssignmentScheduled`: The terminal will be assigned asynschronously. - `RemoveConfigScheduled`: The terminal was previously assigned and boarded. Wait for the terminal to synchronize with the Adyen platform. For more information, refer to [Reassigning boarded terminals](https://docs.adyen.com/point-of-sale/managing-terminals/assign-terminals#reassign-boarded-terminals). - `Error`: There was an error when assigning the terminal. + */ + 'results': { [key: string]: string; }; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "results", + "baseName": "results", + "type": "{ [key: string]: string; }" + } ]; + + static getAttributeTypeMap() { + return AssignTerminalsResponse.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/findTerminalRequest.ts b/src/typings/terminalManagement/findTerminalRequest.ts new file mode 100644 index 0000000..24a6b68 --- /dev/null +++ b/src/typings/terminalManagement/findTerminalRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FindTerminalRequest { + /** + * The unique terminal ID in the format `[Device model]-[Serial number]`. For example, **V400m-324689776**. + */ + 'terminal': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "terminal", + "baseName": "terminal", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FindTerminalRequest.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/findTerminalResponse.ts b/src/typings/terminalManagement/findTerminalResponse.ts new file mode 100644 index 0000000..6cea182 --- /dev/null +++ b/src/typings/terminalManagement/findTerminalResponse.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class FindTerminalResponse { + /** + * The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account. + */ + 'companyAccount': string; + /** + * The merchant account that the terminal is associated with. If the response doesn\'t contain a `store` the terminal is assigned to this merchant account. + */ + 'merchantAccount'?: string; + /** + * Boolean that indicates if the terminal is assigned to the merchant inventory. This is returned when the terminal is assigned to a merchant account. - If **true**, this indicates that the terminal is in the merchant inventory. This also means that the terminal cannot be boarded. - If **false**, this indicates that the terminal is assigned to the merchant account as an in-store terminal. This means that the terminal is ready to be boarded, or is already boarded. + */ + 'merchantInventory'?: boolean; + /** + * The store code of the store that the terminal is assigned to. + */ + 'store'?: string; + /** + * The unique terminal ID. + */ + 'terminal': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantInventory", + "baseName": "merchantInventory", + "type": "boolean" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "terminal", + "baseName": "terminal", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return FindTerminalResponse.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/getStoresUnderAccountRequest.ts b/src/typings/terminalManagement/getStoresUnderAccountRequest.ts new file mode 100644 index 0000000..b15de70 --- /dev/null +++ b/src/typings/terminalManagement/getStoresUnderAccountRequest.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetStoresUnderAccountRequest { + /** + * The company account. If you only specify this parameter, the response includes the stores of all merchant accounts that are associated with the company account. + */ + 'companyAccount': string; + /** + * The merchant account. With this parameter, the response only includes the stores of the specified merchant account. + */ + 'merchantAccount'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetStoresUnderAccountRequest.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/getStoresUnderAccountResponse.ts b/src/typings/terminalManagement/getStoresUnderAccountResponse.ts new file mode 100644 index 0000000..eaac413 --- /dev/null +++ b/src/typings/terminalManagement/getStoresUnderAccountResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Store } from './store'; + +export class GetStoresUnderAccountResponse { + /** + * Array that returns a list of all stores for the specified merchant account, or for all merchant accounts under the company account. + */ + 'stores'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "stores", + "baseName": "stores", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetStoresUnderAccountResponse.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/getTerminalDetailsRequest.ts b/src/typings/terminalManagement/getTerminalDetailsRequest.ts new file mode 100644 index 0000000..2e21493 --- /dev/null +++ b/src/typings/terminalManagement/getTerminalDetailsRequest.ts @@ -0,0 +1,30 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetTerminalDetailsRequest { + /** + * The unique terminal ID in the format `[Device model]-[Serial number]`. For example, **V400m-324689776**. + */ + 'terminal': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "terminal", + "baseName": "terminal", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetTerminalDetailsRequest.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/getTerminalDetailsResponse.ts b/src/typings/terminalManagement/getTerminalDetailsResponse.ts new file mode 100644 index 0000000..695399b --- /dev/null +++ b/src/typings/terminalManagement/getTerminalDetailsResponse.ts @@ -0,0 +1,260 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Store } from './store'; + +export class GetTerminalDetailsResponse { + /** + * The Bluetooth IP address of the terminal. + */ + 'bluetoothIp'?: string; + /** + * The Bluetooth MAC address of the terminal. + */ + 'bluetoothMac'?: string; + /** + * The company account that the terminal is associated with. If this is the only account level shown in the response, the terminal is assigned to the inventory of the company account. + */ + 'companyAccount': string; + /** + * The country where the terminal is used. + */ + 'country'?: string; + /** + * The model name of the terminal. + */ + 'deviceModel'?: string; + /** + * Indicates whether assigning IP addresses through a DHCP server is enabled on the terminal. + */ + 'dhcpEnabled'?: boolean; + /** + * The label shown on the status bar of the display. This label (if any) is specified in your Customer Area. + */ + 'displayLabel'?: string; + /** + * The terminal\'s IP address in your Ethernet network. + */ + 'ethernetIp'?: string; + /** + * The terminal\'s MAC address in your Ethernet network. + */ + 'ethernetMac'?: string; + /** + * The software release currently in use on the terminal. + */ + 'firmwareVersion'?: string; + /** + * The integrated circuit card identifier (ICCID) of the SIM card in the terminal. + */ + 'iccid'?: string; + /** + * Date and time of the last activity on the terminal. Not included when the last activity was more than 14 days ago. + */ + 'lastActivityDateTime'?: Date; + /** + * Date and time of the last transaction on the terminal. Not included when the last transaction was more than 14 days ago. + */ + 'lastTransactionDateTime'?: Date; + /** + * The Ethernet link negotiation that the terminal uses: - `auto`: Auto-negotiation - `100full`: 100 Mbps full duplex + */ + 'linkNegotiation'?: string; + /** + * The merchant account that the terminal is associated with. If the response doesn\'t contain a `store` the terminal is assigned to this merchant account. + */ + 'merchantAccount'?: string; + /** + * Boolean that indicates if the terminal is assigned to the merchant inventory. This is returned when the terminal is assigned to a merchant account. - If **true**, this indicates that the terminal is in the merchant inventory. This also means that the terminal cannot be boarded. - If **false**, this indicates that the terminal is assigned to the merchant account as an in-store terminal. This means that the terminal is ready to be boarded, or is already boarded. + */ + 'merchantInventory'?: boolean; + /** + * The permanent terminal ID. + */ + 'permanentTerminalId'?: string; + /** + * The serial number of the terminal. + */ + 'serialNumber'?: string; + /** + * On a terminal that supports 3G or 4G connectivity, indicates the status of the SIM card in the terminal: ACTIVE or INVENTORY. + */ + 'simStatus'?: string; + /** + * The store code of the store that the terminal is assigned to. + */ + 'store'?: string; + 'storeDetails'?: Store; + /** + * The unique terminal ID. + */ + 'terminal': string; + /** + * The status of the terminal: - `OnlineToday`, `OnlineLast1Day`, `OnlineLast2Days` etcetera to `OnlineLast7Days`: Indicates when in the past week the terminal was last online. - `SwitchedOff`: Indicates it was more than a week ago that the terminal was last online. - `ReAssignToInventoryPending`, `ReAssignToStorePending`, `ReAssignToMerchantInventoryPending`: Indicates the terminal is scheduled to be reassigned. + */ + 'terminalStatus'?: GetTerminalDetailsResponse.TerminalStatusEnum; + /** + * The terminal\'s IP address in your Wi-Fi network. + */ + 'wifiIp'?: string; + /** + * The terminal\'s MAC address in your Wi-Fi network. + */ + 'wifiMac'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "bluetoothIp", + "baseName": "bluetoothIp", + "type": "string" + }, + { + "name": "bluetoothMac", + "baseName": "bluetoothMac", + "type": "string" + }, + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "country", + "baseName": "country", + "type": "string" + }, + { + "name": "deviceModel", + "baseName": "deviceModel", + "type": "string" + }, + { + "name": "dhcpEnabled", + "baseName": "dhcpEnabled", + "type": "boolean" + }, + { + "name": "displayLabel", + "baseName": "displayLabel", + "type": "string" + }, + { + "name": "ethernetIp", + "baseName": "ethernetIp", + "type": "string" + }, + { + "name": "ethernetMac", + "baseName": "ethernetMac", + "type": "string" + }, + { + "name": "firmwareVersion", + "baseName": "firmwareVersion", + "type": "string" + }, + { + "name": "iccid", + "baseName": "iccid", + "type": "string" + }, + { + "name": "lastActivityDateTime", + "baseName": "lastActivityDateTime", + "type": "Date" + }, + { + "name": "lastTransactionDateTime", + "baseName": "lastTransactionDateTime", + "type": "Date" + }, + { + "name": "linkNegotiation", + "baseName": "linkNegotiation", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "merchantInventory", + "baseName": "merchantInventory", + "type": "boolean" + }, + { + "name": "permanentTerminalId", + "baseName": "permanentTerminalId", + "type": "string" + }, + { + "name": "serialNumber", + "baseName": "serialNumber", + "type": "string" + }, + { + "name": "simStatus", + "baseName": "simStatus", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + }, + { + "name": "storeDetails", + "baseName": "storeDetails", + "type": "Store" + }, + { + "name": "terminal", + "baseName": "terminal", + "type": "string" + }, + { + "name": "terminalStatus", + "baseName": "terminalStatus", + "type": "GetTerminalDetailsResponse.TerminalStatusEnum" + }, + { + "name": "wifiIp", + "baseName": "wifiIp", + "type": "string" + }, + { + "name": "wifiMac", + "baseName": "wifiMac", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetTerminalDetailsResponse.attributeTypeMap; + } +} + +export namespace GetTerminalDetailsResponse { + export enum TerminalStatusEnum { + OnlineLast1Day = 'OnlineLast1Day', + OnlineLast2Days = 'OnlineLast2Days', + OnlineLast3Days = 'OnlineLast3Days', + OnlineLast4Days = 'OnlineLast4Days', + OnlineLast5Days = 'OnlineLast5Days', + OnlineLast6Days = 'OnlineLast6Days', + OnlineLast7Days = 'OnlineLast7Days', + OnlineToday = 'OnlineToday', + ReAssignToInventoryPending = 'ReAssignToInventoryPending', + ReAssignToMerchantInventoryPending = 'ReAssignToMerchantInventoryPending', + ReAssignToStorePending = 'ReAssignToStorePending', + SwitchedOff = 'SwitchedOff' + } +} diff --git a/src/typings/terminalManagement/getTerminalsUnderAccountRequest.ts b/src/typings/terminalManagement/getTerminalsUnderAccountRequest.ts new file mode 100644 index 0000000..c2c2a57 --- /dev/null +++ b/src/typings/terminalManagement/getTerminalsUnderAccountRequest.ts @@ -0,0 +1,48 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class GetTerminalsUnderAccountRequest { + /** + * Your company account. If you only specify this parameter, the response includes all terminals at all account levels. + */ + 'companyAccount': string; + /** + * The merchant account. This is required if you are retrieving the terminals assigned to a store.If you don\'t specify a `store` the response includes the terminals assigned to the specified merchant account and the terminals assigned to the stores under this merchant account. + */ + 'merchantAccount'?: string; + /** + * The store code of the store. With this parameter, the response only includes the terminals assigned to the specified store. + */ + 'store'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return GetTerminalsUnderAccountRequest.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/getTerminalsUnderAccountResponse.ts b/src/typings/terminalManagement/getTerminalsUnderAccountResponse.ts new file mode 100644 index 0000000..54f6e16 --- /dev/null +++ b/src/typings/terminalManagement/getTerminalsUnderAccountResponse.ts @@ -0,0 +1,49 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MerchantAccount } from './merchantAccount'; + +export class GetTerminalsUnderAccountResponse { + /** + * Your company account. + */ + 'companyAccount': string; + /** + * Array that returns a list of all terminals that are in the inventory of the company account. + */ + 'inventoryTerminals'?: Array; + /** + * Array that returns a list of all merchant accounts belonging to the company account. + */ + 'merchantAccounts'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "companyAccount", + "baseName": "companyAccount", + "type": "string" + }, + { + "name": "inventoryTerminals", + "baseName": "inventoryTerminals", + "type": "Array" + }, + { + "name": "merchantAccounts", + "baseName": "merchantAccounts", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return GetTerminalsUnderAccountResponse.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/merchantAccount.ts b/src/typings/terminalManagement/merchantAccount.ts new file mode 100644 index 0000000..13af693 --- /dev/null +++ b/src/typings/terminalManagement/merchantAccount.ts @@ -0,0 +1,58 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Store } from './store'; + +export class MerchantAccount { + /** + * List of terminals assigned to this merchant account as in-store terminals. This means that the terminal is ready to be boarded, or is already boarded. + */ + 'inStoreTerminals'?: Array; + /** + * List of terminals assigned to the inventory of this merchant account. + */ + 'inventoryTerminals'?: Array; + /** + * The merchant account. + */ + 'merchantAccount': string; + /** + * Array of stores under this merchant account. + */ + 'stores'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "inStoreTerminals", + "baseName": "inStoreTerminals", + "type": "Array" + }, + { + "name": "inventoryTerminals", + "baseName": "inventoryTerminals", + "type": "Array" + }, + { + "name": "merchantAccount", + "baseName": "merchantAccount", + "type": "string" + }, + { + "name": "stores", + "baseName": "stores", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return MerchantAccount.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/models.ts b/src/typings/terminalManagement/models.ts new file mode 100644 index 0000000..e58f739 --- /dev/null +++ b/src/typings/terminalManagement/models.ts @@ -0,0 +1,187 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export * from './address'; +export * from './assignTerminalsRequest'; +export * from './assignTerminalsResponse'; +export * from './findTerminalRequest'; +export * from './findTerminalResponse'; +export * from './getStoresUnderAccountRequest'; +export * from './getStoresUnderAccountResponse'; +export * from './getTerminalDetailsRequest'; +export * from './getTerminalDetailsResponse'; +export * from './getTerminalsUnderAccountRequest'; +export * from './getTerminalsUnderAccountResponse'; +export * from './merchantAccount'; +export * from './serviceError'; +export * from './store'; + + +import { Address } from './address'; +import { AssignTerminalsRequest } from './assignTerminalsRequest'; +import { AssignTerminalsResponse } from './assignTerminalsResponse'; +import { FindTerminalRequest } from './findTerminalRequest'; +import { FindTerminalResponse } from './findTerminalResponse'; +import { GetStoresUnderAccountRequest } from './getStoresUnderAccountRequest'; +import { GetStoresUnderAccountResponse } from './getStoresUnderAccountResponse'; +import { GetTerminalDetailsRequest } from './getTerminalDetailsRequest'; +import { GetTerminalDetailsResponse } from './getTerminalDetailsResponse'; +import { GetTerminalsUnderAccountRequest } from './getTerminalsUnderAccountRequest'; +import { GetTerminalsUnderAccountResponse } from './getTerminalsUnderAccountResponse'; +import { MerchantAccount } from './merchantAccount'; +import { ServiceError } from './serviceError'; +import { Store } from './store'; + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + "GetTerminalDetailsResponse.TerminalStatusEnum": GetTerminalDetailsResponse.TerminalStatusEnum, +} + +let typeMap: {[index: string]: any} = { + "Address": Address, + "AssignTerminalsRequest": AssignTerminalsRequest, + "AssignTerminalsResponse": AssignTerminalsResponse, + "FindTerminalRequest": FindTerminalRequest, + "FindTerminalResponse": FindTerminalResponse, + "GetStoresUnderAccountRequest": GetStoresUnderAccountRequest, + "GetStoresUnderAccountResponse": GetStoresUnderAccountResponse, + "GetTerminalDetailsRequest": GetTerminalDetailsRequest, + "GetTerminalDetailsResponse": GetTerminalDetailsResponse, + "GetTerminalsUnderAccountRequest": GetTerminalsUnderAccountRequest, + "GetTerminalsUnderAccountResponse": GetTerminalsUnderAccountResponse, + "MerchantAccount": MerchantAccount, + "ServiceError": ServiceError, + "Store": Store, +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/src/typings/terminalManagement/serviceError.ts b/src/typings/terminalManagement/serviceError.ts new file mode 100644 index 0000000..2c98838 --- /dev/null +++ b/src/typings/terminalManagement/serviceError.ts @@ -0,0 +1,66 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class ServiceError { + /** + * The error code mapped to the error message. + */ + 'errorCode'?: string; + /** + * The category of the error. + */ + 'errorType'?: string; + /** + * A short explanation of the issue. + */ + 'message'?: string; + /** + * The PSP reference of the payment. + */ + 'pspReference'?: string; + /** + * The HTTP response status. + */ + 'status'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "errorCode", + "baseName": "errorCode", + "type": "string" + }, + { + "name": "errorType", + "baseName": "errorType", + "type": "string" + }, + { + "name": "message", + "baseName": "message", + "type": "string" + }, + { + "name": "pspReference", + "baseName": "pspReference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return ServiceError.attributeTypeMap; + } +} + diff --git a/src/typings/terminalManagement/store.ts b/src/typings/terminalManagement/store.ts new file mode 100644 index 0000000..4d68e4d --- /dev/null +++ b/src/typings/terminalManagement/store.ts @@ -0,0 +1,73 @@ +/* + * The version of the OpenAPI document: v1 + * Contact: developer-experience@adyen.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Address } from './address'; + +export class Store { + 'address'?: Address; + /** + * The description of the store. + */ + 'description'?: string; + /** + * The list of terminals assigned to the store. + */ + 'inStoreTerminals'?: Array; + /** + * The code of the merchant account. + */ + 'merchantAccountCode'?: string; + /** + * The status of the store: - `PreActive`: the store has been created, but not yet activated. - `Active`: the store has been activated. This means you can process payments for this store. - `Inactive`: the store is currently not active. - `InactiveWithModifications`: the store is currently not active, but payment modifications such as refunds are possible. - `Closed`: the store has been closed. + */ + 'status'?: string; + /** + * The code of the store. + */ + 'store': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "address", + "baseName": "address", + "type": "Address" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "inStoreTerminals", + "baseName": "inStoreTerminals", + "type": "Array" + }, + { + "name": "merchantAccountCode", + "baseName": "merchantAccountCode", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "string" + }, + { + "name": "store", + "baseName": "store", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return Store.attributeTypeMap; + } +} + diff --git a/templates/typescript/licenseInfo.mustache b/templates/typescript/licenseInfo.mustache new file mode 100644 index 0000000..c3a1bc0 --- /dev/null +++ b/templates/typescript/licenseInfo.mustache @@ -0,0 +1,8 @@ +/* + * {{#version}}The version of the OpenAPI document: v{{{.}}}{{/version}} + * {{#infoEmail}}Contact: {{{.}}}{{/infoEmail}} + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ diff --git a/templates/typescript/model.mustache b/templates/typescript/model.mustache new file mode 100644 index 0000000..b66ef5a --- /dev/null +++ b/templates/typescript/model.mustache @@ -0,0 +1,80 @@ +{{>licenseInfo}} +{{#models}} +{{#model}} +{{#tsImports}} +import { {{classname}} } from '{{filename}}'; +{{/tsImports}} + +{{#description}} +/** +* {{{.}}} +*/ +{{/description}} +{{^isEnum}} +export class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{ +{{#vars}} +{{#description}} + /** + * {{{.}}} + */ +{{/description}} + '{{name}}'{{^required}}?{{/required}}: {{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}; +{{/vars}} + + {{#discriminator}} + static discriminator: string | undefined = "{{discriminatorName}}"; + {{/discriminator}} + {{^discriminator}} + static discriminator: string | undefined = undefined; + {{/discriminator}} + + {{^isArray}} + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + {{#vars}} + { + "name": "{{name}}", + "baseName": "{{baseName}}", + "type": "{{#isEnum}}{{{datatypeWithEnum}}}{{/isEnum}}{{^isEnum}}{{{dataType}}}{{/isEnum}}" + }{{^-last}}, + {{/-last}} + {{/vars}} + ]; + + static getAttributeTypeMap() { + {{#parent}} + return super.getAttributeTypeMap().concat({{classname}}.attributeTypeMap); + {{/parent}} + {{^parent}} + return {{classname}}.attributeTypeMap; + {{/parent}} + } + {{/isArray}} +} + +{{#hasEnums}} +export namespace {{classname}} { +{{#vars}} +{{#isEnum}} + export enum {{enumName}} { + {{#allowableValues}} + {{#enumVars}} + {{name}} = {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} + {{/allowableValues}} + } +{{/isEnum}} +{{/vars}} +} +{{/hasEnums}} +{{/isEnum}} +{{#isEnum}} +export enum {{classname}} { + {{#allowableValues}} + {{#enumVars}} + {{name}} = {{{value}}}{{^-last}},{{/-last}} + {{/enumVars}} + {{/allowableValues}} +} +{{/isEnum}} +{{/model}} +{{/models}} diff --git a/templates/typescript/models.mustache b/templates/typescript/models.mustache new file mode 100644 index 0000000..a248ba0 --- /dev/null +++ b/templates/typescript/models.mustache @@ -0,0 +1,168 @@ +{{>licenseInfo}} + +{{#models}} +{{#model}} +export * from '{{{ classFilename }}}'; +{{/model}} +{{/models}} + +{{! Object serialization (using typing information generated with the model) }} + +{{#models}} +{{#model}} +import { {{classname}} } from '{{{ classFilename }}}'; +{{/model}} +{{/models}} + +/* tslint:disable:no-unused-variable */ +let primitives = [ + "string", + "boolean", + "double", + "integer", + "long", + "float", + "number", + "any" + ]; + +let enumsMap: {[index: string]: any} = { + {{#models}} + {{#model}} + {{#hasEnums}} + {{#vars}} + {{#isEnum}} + {{#isContainer}}"{{classname}}.{{enumName}}": {{classname}}.{{enumName}}{{/isContainer}}{{^isContainer}}"{{datatypeWithEnum}}": {{datatypeWithEnum}}{{/isContainer}}, + {{/isEnum}} + {{/vars}} + {{/hasEnums}} + {{#isEnum}} + "{{classname}}": {{classname}}, + {{/isEnum}} + {{/model}} + {{/models}} +} + +let typeMap: {[index: string]: any} = { + {{#models}} + {{#model}} + {{^isEnum}} + "{{classname}}": {{classname}}, + {{/isEnum}} + {{/model}} + {{/models}} +} + +export class ObjectSerializer { + public static findCorrectType(data: any, expectedType: string) { + if (data == undefined) { + return expectedType; + } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { + return expectedType; + } else if (expectedType === "Date") { + return expectedType; + } else { + if (enumsMap[expectedType]) { + return expectedType; + } + + if (!typeMap[expectedType]) { + return expectedType; // w/e we don't know the type + } + + // Check the discriminator + let discriminatorProperty = typeMap[expectedType].discriminator; + if (discriminatorProperty == null) { + return expectedType; // the type does not have a discriminator. use it. + } else { + if (data[discriminatorProperty]) { + var discriminatorType = data[discriminatorProperty]; + if(typeMap[discriminatorType]){ + return discriminatorType; // use the type given in the discriminator + } else { + return expectedType; // discriminator did not map to a type + } + } else { + return expectedType; // discriminator was not present (or an empty string) + } + } + } + } + + public static serialize(data: any, type: string) { + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.serialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return data.toISOString(); + } else if (type === "SaleToAcquirerData") { + const dataString = JSON.stringify(data); + return Buffer.from(dataString).toString("base64"); + } else { + if (enumsMap[type]) { + return data; + } + if (!typeMap[type]) { // in case we dont know the type + return data; + } + + // Get the actual type of this object + type = this.findCorrectType(data, type); + + // get the map for the correct type. + let attributeTypes = typeMap[type].getAttributeTypeMap(); + let instance: {[index: string]: any} = {}; + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); + } + return instance; + } + } + + public static deserialize(data: any, type: string) { + // polymorphism may change the actual type. + type = ObjectSerializer.findCorrectType(data, type); + if (data == undefined) { + return data; + } else if (primitives.indexOf(type.toLowerCase()) !== -1) { + return data; + } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 + let subType: string = type.replace("Array<", ""); // Array => Type> + subType = subType.substring(0, subType.length - 1); // Type> => Type + let transformedData: any[] = []; + for (let index = 0; index < data.length; index++) { + let datum = data[index]; + transformedData.push(ObjectSerializer.deserialize(datum, subType)); + } + return transformedData; + } else if (type === "Date") { + return new Date(data); + } else { + if (enumsMap[type]) {// is Enum + return data; + } + + if (!typeMap[type]) { // dont know the type + return data; + } + let instance = new typeMap[type](); + let attributeTypes = typeMap[type].getAttributeTypeMap(); + for (let index = 0; index < attributeTypes.length; index++) { + let attributeType = attributeTypes[index]; + instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); + } + return instance; + } + } +} diff --git a/yarn.lock b/yarn.lock index 4b642b2..18e00dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,334 +2,158 @@ # yarn lockfile v1 -"@babel/code-frame@7.12.11": - version "7.12.11" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" - integrity sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw== +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== dependencies: - "@babel/highlight" "^7.10.4" + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.14.5", "@babel/code-frame@^7.15.8": - version "7.15.8" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.15.8.tgz#45990c47adadb00c03677baa89221f7cc23d2503" - integrity sha512-2IAnmn8zbvC/jKYhq5Ki9I+DwjlrtMPUCH/CpHvqI4dNnlwHwsxoIhlc8WcYY5LSYknXQtAlFYuHfqAFCvQ4Wg== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== dependencies: - "@babel/highlight" "^7.14.5" + "@babel/highlight" "^7.18.6" -"@babel/code-frame@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" - integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== +"@babel/compat-data@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.6.tgz#8b37d24e88e8e21c499d4328db80577d8882fa53" + integrity sha512-tzulrgDT0QD6U7BJ4TKVk2SDDg7wlP39P9yAx1RfLy7vP/7rsDRlWVfbWxElslu56+r7QOhB2NSDsabYYruoZQ== + +"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.6.tgz#54a107a3c298aee3fe5e1947a6464b9b6faca03d" + integrity sha512-cQbWBpxcbbs/IUredIPkHiAGULLV8iwgNRMFzvbhEXISp4f3rUUXE5+TIw6KwUWUR3DwyI6gmBRnmAtYaWehwQ== dependencies: - "@babel/highlight" "^7.16.7" - -"@babel/compat-data@^7.15.0": - version "7.15.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" - integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== - -"@babel/compat-data@^7.16.4": - version "7.16.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e" - integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q== - -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2": - version "7.15.8" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.15.8.tgz#195b9f2bffe995d2c6c159e72fe525b4114e8c10" - integrity sha512-3UG9dsxvYBMYwRv+gS41WKHno4K60/9GPy1CJaH6xy3Elq8CTtvtjT5R5jmNhXfCYLX2mTw+7/aq5ak/gOE0og== - dependencies: - "@babel/code-frame" "^7.15.8" - "@babel/generator" "^7.15.8" - "@babel/helper-compilation-targets" "^7.15.4" - "@babel/helper-module-transforms" "^7.15.8" - "@babel/helpers" "^7.15.4" - "@babel/parser" "^7.15.8" - "@babel/template" "^7.15.4" - "@babel/traverse" "^7.15.4" - "@babel/types" "^7.15.6" + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.6" + "@babel/helper-compilation-targets" "^7.18.6" + "@babel/helper-module-transforms" "^7.18.6" + "@babel/helpers" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" convert-source-map "^1.7.0" debug "^4.1.0" gensync "^1.0.0-beta.2" - json5 "^2.1.2" + json5 "^2.2.1" semver "^6.3.0" - source-map "^0.5.0" -"@babel/core@^7.8.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.7.tgz#db990f931f6d40cb9b87a0dc7d2adc749f1dcbcf" - integrity sha512-aeLaqcqThRNZYmbMqtulsetOQZ/5gbR/dWruUCJcpas4Qoyy+QeagfDsPdMrqwsPRDNxJvBlRiZxxX7THO7qtA== +"@babel/generator@^7.18.6", "@babel/generator@^7.7.2": + version "7.18.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.7.tgz#2aa78da3c05aadfc82dbac16c99552fc802284bd" + integrity sha512-shck+7VLlY72a2w9c3zYWuE1pwOKEiQHV7GTUbSnhyl5eu3i04t30tBY82ZRWrDfo3gkakCFtevExnxbkf2a3A== dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.16.7" - "@babel/helper-compilation-targets" "^7.16.7" - "@babel/helper-module-transforms" "^7.16.7" - "@babel/helpers" "^7.16.7" - "@babel/parser" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.1.2" - semver "^6.3.0" - source-map "^0.5.0" - -"@babel/generator@^7.15.4", "@babel/generator@^7.15.8", "@babel/generator@^7.7.2": - version "7.15.8" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.15.8.tgz#fa56be6b596952ceb231048cf84ee499a19c0cd1" - integrity sha512-ECmAKstXbp1cvpTTZciZCgfOt6iN64lR0d+euv3UZisU5awfRawOvg07Utn/qBGuH4bRIEZKrA/4LzZyXhZr8g== - dependencies: - "@babel/types" "^7.15.6" + "@babel/types" "^7.18.7" + "@jridgewell/gen-mapping" "^0.3.2" jsesc "^2.5.1" - source-map "^0.5.0" -"@babel/generator@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.7.tgz#b42bf46a3079fa65e1544135f32e7958f048adbb" - integrity sha512-/ST3Sg8MLGY5HVYmrjOgL60ENux/HfO/CsUh7y4MalThufhE/Ff/6EibFDHi4jiDCaWfJKoqbE6oTh21c5hrRg== +"@babel/helper-compilation-targets@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.6.tgz#18d35bfb9f83b1293c22c55b3d576c1315b6ed96" + integrity sha512-vFjbfhNCzqdeAtZflUFrG5YIFqGTqsctrtkZ1D/NB0mDW9TwW3GmmUepYY4G9wCET5rY5ugz4OGTcLd614IzQg== dependencies: - "@babel/types" "^7.16.7" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/helper-compilation-targets@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz#cf6d94f30fbefc139123e27dd6b02f65aeedb7b9" - integrity sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ== - dependencies: - "@babel/compat-data" "^7.15.0" - "@babel/helper-validator-option" "^7.14.5" - browserslist "^4.16.6" + "@babel/compat-data" "^7.18.6" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.20.2" semver "^6.3.0" -"@babel/helper-compilation-targets@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz#06e66c5f299601e6c7da350049315e83209d551b" - integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA== +"@babel/helper-environment-visitor@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.6.tgz#b7eee2b5b9d70602e59d1a6cad7dd24de7ca6cd7" + integrity sha512-8n6gSfn2baOY+qlp+VSzsosjCVGFqWKmDF0cCWOybh52Dw3SEyoWR1KrhMJASjLwIEkkAufZ0xvr+SxLHSpy2Q== + +"@babel/helper-function-name@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.6.tgz#8334fecb0afba66e6d87a7e8c6bb7fed79926b83" + integrity sha512-0mWMxV1aC97dhjCah5U5Ua7668r5ZmSC2DLfH2EZnf9c3/dHZKiFa5pRLMH5tjSl471tY6496ZWk/kjNONBxhw== dependencies: - "@babel/compat-data" "^7.16.4" - "@babel/helper-validator-option" "^7.16.7" - browserslist "^4.17.5" - semver "^6.3.0" + "@babel/template" "^7.18.6" + "@babel/types" "^7.18.6" -"@babel/helper-environment-visitor@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" - integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag== +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== dependencies: - "@babel/types" "^7.16.7" + "@babel/types" "^7.18.6" -"@babel/helper-function-name@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.15.4.tgz#845744dafc4381a4a5fb6afa6c3d36f98a787ebc" - integrity sha512-Z91cOMM4DseLIGOnog+Z8OI6YseR9bua+HpvLAQ2XayUGU+neTtX+97caALaLdyu53I/fjhbeCnWnRH1O3jFOw== +"@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== dependencies: - "@babel/helper-get-function-arity" "^7.15.4" - "@babel/template" "^7.15.4" - "@babel/types" "^7.15.4" + "@babel/types" "^7.18.6" -"@babel/helper-function-name@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz#f1ec51551fb1c8956bc8dd95f38523b6cf375f8f" - integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA== +"@babel/helper-module-transforms@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.6.tgz#57e3ca669e273d55c3cda55e6ebf552f37f483c8" + integrity sha512-L//phhB4al5uucwzlimruukHB3jRd5JGClwRMD/ROrVjXfLqovYnvQrK/JK36WYyVwGGO7OD3kMyVTjx+WVPhw== dependencies: - "@babel/helper-get-function-arity" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/types" "^7.16.7" + "@babel/helper-environment-visitor" "^7.18.6" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" -"@babel/helper-get-function-arity@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.15.4.tgz#098818934a137fce78b536a3e015864be1e2879b" - integrity sha512-1/AlxSF92CmGZzHnC515hm4SirTxtpDnLEJ0UyEMgTMZN+6bxXKg04dKhiRx5Enel+SUA1G1t5Ed/yQia0efrA== +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.8.0": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.6.tgz#9448974dd4fb1d80fefe72e8a0af37809cd30d6d" + integrity sha512-gvZnm1YAAxh13eJdkb9EWHBnF3eAub3XTLCZEehHT2kWxiKVRL64+ae5Y6Ivne0mVHmMYKT+xWgZO+gQhuLUBg== + +"@babel/helper-simple-access@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea" + integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g== dependencies: - "@babel/types" "^7.15.4" + "@babel/types" "^7.18.6" -"@babel/helper-get-function-arity@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz#ea08ac753117a669f1508ba06ebcc49156387419" - integrity sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw== +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== dependencies: - "@babel/types" "^7.16.7" + "@babel/types" "^7.18.6" -"@babel/helper-hoist-variables@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.15.4.tgz#09993a3259c0e918f99d104261dfdfc033f178df" - integrity sha512-VTy085egb3jUGVK9ycIxQiPbquesq0HUQ+tPO0uv5mPEBZipk+5FkRKiWq5apuyTE9FUrjENB0rCf8y+n+UuhA== +"@babel/helper-validator-identifier@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076" + integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g== + +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + +"@babel/helpers@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.6.tgz#4c966140eaa1fcaa3d5a8c09d7db61077d4debfd" + integrity sha512-vzSiiqbQOghPngUYt/zWGvK3LAsPhz55vc9XNN0xAl2gV4ieShI2OQli5duxWHD+72PZPTKAcfcZDE1Cwc5zsQ== dependencies: - "@babel/types" "^7.15.4" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.6" + "@babel/types" "^7.18.6" -"@babel/helper-hoist-variables@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" - integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg== +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-member-expression-to-functions@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz#bfd34dc9bba9824a4658b0317ec2fd571a51e6ef" - integrity sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA== - dependencies: - "@babel/types" "^7.15.4" - -"@babel/helper-module-imports@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz#e18007d230632dea19b47853b984476e7b4e103f" - integrity sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA== - dependencies: - "@babel/types" "^7.15.4" - -"@babel/helper-module-imports@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" - integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-module-transforms@^7.15.8": - version "7.15.8" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.15.8.tgz#d8c0e75a87a52e374a8f25f855174786a09498b2" - integrity sha512-DfAfA6PfpG8t4S6npwzLvTUpp0sS7JrcuaMiy1Y5645laRJIp/LiLGIBbQKaXSInK8tiGNI7FL7L8UvB8gdUZg== - dependencies: - "@babel/helper-module-imports" "^7.15.4" - "@babel/helper-replace-supers" "^7.15.4" - "@babel/helper-simple-access" "^7.15.4" - "@babel/helper-split-export-declaration" "^7.15.4" - "@babel/helper-validator-identifier" "^7.15.7" - "@babel/template" "^7.15.4" - "@babel/traverse" "^7.15.4" - "@babel/types" "^7.15.6" - -"@babel/helper-module-transforms@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz#7665faeb721a01ca5327ddc6bba15a5cb34b6a41" - integrity sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng== - dependencies: - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-simple-access" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/helper-validator-identifier" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/helper-optimise-call-expression@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz#f310a5121a3b9cc52d9ab19122bd729822dee171" - integrity sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw== - dependencies: - "@babel/types" "^7.15.4" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.8.0": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9" - integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ== - -"@babel/helper-replace-supers@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz#52a8ab26ba918c7f6dee28628b07071ac7b7347a" - integrity sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw== - dependencies: - "@babel/helper-member-expression-to-functions" "^7.15.4" - "@babel/helper-optimise-call-expression" "^7.15.4" - "@babel/traverse" "^7.15.4" - "@babel/types" "^7.15.4" - -"@babel/helper-simple-access@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz#ac368905abf1de8e9781434b635d8f8674bcc13b" - integrity sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg== - dependencies: - "@babel/types" "^7.15.4" - -"@babel/helper-simple-access@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz#d656654b9ea08dbb9659b69d61063ccd343ff0f7" - integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-split-export-declaration@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.15.4.tgz#aecab92dcdbef6a10aa3b62ab204b085f776e257" - integrity sha512-HsFqhLDZ08DxCpBdEVtKmywj6PQbwnF6HHybur0MAnkAKnlS6uHkwnmRIkElB2Owpfb4xL4NwDmDLFubueDXsw== - dependencies: - "@babel/types" "^7.15.4" - -"@babel/helper-split-export-declaration@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b" - integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-validator-identifier@^7.14.5", "@babel/helper-validator-identifier@^7.14.9", "@babel/helper-validator-identifier@^7.15.7": - version "7.15.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389" - integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w== - -"@babel/helper-validator-identifier@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" - integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== - -"@babel/helper-validator-option@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" - integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow== - -"@babel/helper-validator-option@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" - integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== - -"@babel/helpers@^7.15.4": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.15.4.tgz#5f40f02050a3027121a3cf48d497c05c555eaf43" - integrity sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ== - dependencies: - "@babel/template" "^7.15.4" - "@babel/traverse" "^7.15.4" - "@babel/types" "^7.15.4" - -"@babel/helpers@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.7.tgz#7e3504d708d50344112767c3542fc5e357fffefc" - integrity sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw== - dependencies: - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/highlight@^7.10.4", "@babel/highlight@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" - integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg== - dependencies: - "@babel/helper-validator-identifier" "^7.14.5" + "@babel/helper-validator-identifier" "^7.18.6" chalk "^2.0.0" js-tokens "^4.0.0" -"@babel/highlight@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b" - integrity sha512-aKpPMfLvGO3Q97V0qhw/V2SWNWlwfJknuwAunU7wZLSfrM4xTBvg7E5opUVi1kJTBKihE38CPg4nBiqX83PWYw== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.15.4", "@babel/parser@^7.15.8": - version "7.15.8" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.8.tgz#7bacdcbe71bdc3ff936d510c15dcea7cf0b99016" - integrity sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA== - -"@babel/parser@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.7.tgz#d372dda9c89fcec340a82630a9f533f2fe15877e" - integrity sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.6.tgz#845338edecad65ebffef058d3be851f1d28a63bc" + integrity sha512-uQVSa9jJUe/G/304lXspfWVpKpK4euFLgGiMQFOCpM/bgcAdeoHwi/OQz23O9GK2osz26ZiXRRV9aV+Yl1O8tw== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -416,75 +240,43 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.14.5.tgz#b82c6ce471b165b5ce420cf92914d6fb46225716" - integrity sha512-u6OXzDaIXjEstBRRoBCQ/uKQKlbuaeE5in0RvWdA4pN6AhqxTIwUsnHPU1CFZA/amYObMsuWhYfRl3Ch90HD0Q== + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.18.6.tgz#1c09cd25795c7c2b8a4ba9ae49394576d4133285" + integrity sha512-mAWAuq4rvOepWCBid55JuRNvpTNf2UGVgoz4JV0fXEKolsVZDzsa4NqCef758WZJj/GDu0gVGItjKFiClTAmZA== dependencies: - "@babel/helper-plugin-utils" "^7.14.5" + "@babel/helper-plugin-utils" "^7.18.6" -"@babel/template@^7.15.4", "@babel/template@^7.3.3": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.15.4.tgz#51898d35dcf3faa670c4ee6afcfd517ee139f194" - integrity sha512-UgBAfEa1oGuYgDIPM2G+aHa4Nlo9Lh6mGD2bDBGMTbYnc38vulXPuC1MGjYILIEmlwl6Rd+BPR9ee3gm20CBtg== +"@babel/template@^7.18.6", "@babel/template@^7.3.3": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.6.tgz#1283f4993e00b929d6e2d3c72fdc9168a2977a31" + integrity sha512-JoDWzPe+wgBsTTgdnIma3iHNFC7YVJoPssVBDjiHfNlyt4YcunDtcDOUmfVDfCK5MfdsaIoX9PkijPhjH3nYUw== dependencies: - "@babel/code-frame" "^7.14.5" - "@babel/parser" "^7.15.4" - "@babel/types" "^7.15.4" + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/types" "^7.18.6" -"@babel/template@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" - integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w== +"@babel/traverse@^7.18.6", "@babel/traverse@^7.7.2": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.6.tgz#a228562d2f46e89258efa4ddd0416942e2fd671d" + integrity sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw== dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/parser" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/traverse@^7.15.4", "@babel/traverse@^7.7.2": - version "7.15.4" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.15.4.tgz#ff8510367a144bfbff552d9e18e28f3e2889c22d" - integrity sha512-W6lQD8l4rUbQR/vYgSuCAE75ADyyQvOpFVsvPPdkhf6lATXAsQIG9YdtOcu8BB1dZ0LKu+Zo3c1wEcbKeuhdlA== - dependencies: - "@babel/code-frame" "^7.14.5" - "@babel/generator" "^7.15.4" - "@babel/helper-function-name" "^7.15.4" - "@babel/helper-hoist-variables" "^7.15.4" - "@babel/helper-split-export-declaration" "^7.15.4" - "@babel/parser" "^7.15.4" - "@babel/types" "^7.15.4" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.6" + "@babel/helper-function-name" "^7.18.6" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.18.6" + "@babel/types" "^7.18.6" debug "^4.1.0" globals "^11.1.0" -"@babel/traverse@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.7.tgz#dac01236a72c2560073658dd1a285fe4e0865d76" - integrity sha512-8KWJPIb8c2VvY8AJrydh6+fVRo2ODx1wYBU2398xJVq0JomuLBZmVQzLPBblJgHIGYG4znCpUZUZ0Pt2vdmVYQ== +"@babel/types@^7.0.0", "@babel/types@^7.18.6", "@babel/types@^7.18.7", "@babel/types@^7.3.0", "@babel/types@^7.3.3": + version "7.18.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.7.tgz#a4a2c910c15040ea52cdd1ddb1614a65c8041726" + integrity sha512-QG3yxTcTIBoAcQmkCs+wAPYZhu7Dk9rXKacINfNbdJDNERTbLQbHGyVG8q/YGMPeCJRIhSY0+fTc5+xuh6WPSQ== dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.16.7" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-hoist-variables" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/parser" "^7.16.7" - "@babel/types" "^7.16.7" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.15.4", "@babel/types@^7.15.6", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.15.6" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.6.tgz#99abdc48218b2881c058dd0a7ab05b99c9be758f" - integrity sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig== - dependencies: - "@babel/helper-validator-identifier" "^7.14.9" - to-fast-properties "^2.0.0" - -"@babel/types@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.7.tgz#4ed19d51f840ed4bd5645be6ce40775fecf03159" - integrity sha512-E8HuV7FO9qLpx6OtoGfUQ2cjIYnbFwvZWYBS+87EwtdMvmUPJSwykpovFB+8insbpF0uJcpr8KMUi64XZntZcg== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" + "@babel/helper-validator-identifier" "^7.18.6" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -498,42 +290,47 @@ integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== "@dabh/diagnostics@^2.0.2": - version "2.0.2" - resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.2.tgz#290d08f7b381b8f94607dc8f471a12c675f9db31" - integrity sha512-+A1YivoVDNNVCdfozHSR8v/jyuuLTMXwjWuxPFlFlUapXoGc+Gj9mDlTDDfrwl7rXCl2tNZ0kE8sIBO6YOn96Q== + version "2.0.3" + resolved "https://registry.yarnpkg.com/@dabh/diagnostics/-/diagnostics-2.0.3.tgz#7f7e97ee9a725dffc7808d93668cc984e1dc477a" + integrity sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA== dependencies: colorspace "1.1.x" enabled "2.0.x" kuler "^2.0.0" -"@eslint/eslintrc@^0.4.3": - version "0.4.3" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c" - integrity sha512-J6KFFz5QCYUJq3pf0mjEcCJVERbzv71PUIDczuh9JkwGEzced6CO5ADLHB1rbf/+oPBtoPfMYNOpGDzCANlbXw== +"@eslint/eslintrc@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.3.0.tgz#29f92c30bb3e771e4a2048c95fa6855392dfac4f" + integrity sha512-UWW0TMTmk2d7hLcWD1/e2g5HDM/HQ3csaLSqXCfqwh4uNDuNqlaKWXmEsL4Cs41Z0KnILNvwbHAah3C2yt06kw== dependencies: ajv "^6.12.4" - debug "^4.1.1" - espree "^7.3.0" - globals "^13.9.0" - ignore "^4.0.6" + debug "^4.3.2" + espree "^9.3.2" + globals "^13.15.0" + ignore "^5.2.0" import-fresh "^3.2.1" - js-yaml "^3.13.1" - minimatch "^3.0.4" + js-yaml "^4.1.0" + minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@humanwhocodes/config-array@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.5.0.tgz#1407967d4c6eecd7388f83acf1eaf4d0c6e58ef9" - integrity sha512-FagtKFz74XrTl7y6HCzQpwDfXP0yhxe9lHLD1UZxjvZIcbyRz8zTFF/yYNfSfzU414eDwZ1SrO0Qvtyf+wFMQg== +"@humanwhocodes/config-array@^0.10.4": + version "0.10.4" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.10.4.tgz#01e7366e57d2ad104feea63e72248f22015c520c" + integrity sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw== dependencies: - "@humanwhocodes/object-schema" "^1.2.0" + "@humanwhocodes/object-schema" "^1.2.1" debug "^4.1.1" minimatch "^3.0.4" -"@humanwhocodes/object-schema@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.0.tgz#87de7af9c231826fdd68ac7258f77c429e0e5fcf" - integrity sha512-wdppn25U8z/2yiaT6YGquE6X8sSv7hNMWSXYSSU1jGv/yd6XqjXgTDJ8KP4NgjTXfJ3GbRjeeb8RTV7a/VpM+w== +"@humanwhocodes/gitignore-to-minimatch@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/gitignore-to-minimatch/-/gitignore-to-minimatch-1.0.2.tgz#316b0a63b91c10e53f242efb4ace5c3b34e8728d" + integrity sha512-rSqmMJDdLFUsyxR6FMtD00nfQKKLFb1kv+qBbOVKqErvloEIJLo5bDTJTQNTYgeyp78JsA7u/NPi5jT1GR/MuA== + +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== "@iarna/toml@2.2.5": version "2.2.5" @@ -725,6 +522,46 @@ "@types/yargs" "^16.0.0" chalk "^4.0.0" +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/gen-mapping@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + +"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + +"@jridgewell/trace-mapping@^0.3.9": + version "0.3.14" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.14.tgz#b231a081d8f66796e475ad588a1ef473112701ed" + integrity sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -746,116 +583,138 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@octokit/auth-token@^2.4.4": - version "2.5.0" - resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" - integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== +"@octokit/auth-token@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-3.0.0.tgz#6f22c5fc56445c496628488ba6810131558fa4a9" + integrity sha512-MDNFUBcJIptB9At7HiV7VCvU3NcL4GnfCQaP8C5lrxWrRPMJBnemYtehaKSOlaM7AYxeRyj9etenu8LVpSpVaQ== dependencies: "@octokit/types" "^6.0.3" -"@octokit/core@^3.5.1": - version "3.5.1" - resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b" - integrity sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw== +"@octokit/core@^4.0.0": + version "4.0.4" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-4.0.4.tgz#335d9b377691e3264ce57a9e5a1f6cda783e5838" + integrity sha512-sUpR/hc4Gc7K34o60bWC7WUH6Q7T6ftZ2dUmepSyJr9PRF76/qqkWjE2SOEzCqLA5W83SaISymwKtxks+96hPQ== dependencies: - "@octokit/auth-token" "^2.4.4" - "@octokit/graphql" "^4.5.8" - "@octokit/request" "^5.6.0" - "@octokit/request-error" "^2.0.5" + "@octokit/auth-token" "^3.0.0" + "@octokit/graphql" "^5.0.0" + "@octokit/request" "^6.0.0" + "@octokit/request-error" "^3.0.0" "@octokit/types" "^6.0.3" before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^6.0.1": - version "6.0.12" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658" - integrity sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA== +"@octokit/endpoint@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-7.0.0.tgz#be758a1236d68d6bbb505e686dd50881c327a519" + integrity sha512-Kz/mIkOTjs9rV50hf/JK9pIDl4aGwAtT8pry6Rpy+hVXkAPhXanNQRxMoq6AeRgDCZR6t/A1zKniY2V1YhrzlQ== dependencies: "@octokit/types" "^6.0.3" is-plain-object "^5.0.0" universal-user-agent "^6.0.0" -"@octokit/graphql@^4.5.8": - version "4.8.0" - resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.8.0.tgz#664d9b11c0e12112cbf78e10f49a05959aa22cc3" - integrity sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg== +"@octokit/graphql@^5.0.0": + version "5.0.0" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-5.0.0.tgz#2cc6eb3bf8e0278656df1a7d0ca0d7591599e3b3" + integrity sha512-1ZZ8tX4lUEcLPvHagfIVu5S2xpHYXAmgN0+95eAOPoaVPzCfUXJtA5vASafcpWcO86ze0Pzn30TAx72aB2aguQ== dependencies: - "@octokit/request" "^5.6.0" + "@octokit/request" "^6.0.0" "@octokit/types" "^6.0.3" universal-user-agent "^6.0.0" -"@octokit/openapi-types@^11.2.0": - version "11.2.0" - resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6" - integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA== +"@octokit/openapi-types@^12.10.0": + version "12.10.1" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.10.1.tgz#57b5cc6c7b4e55d8642c93d06401fb1af4839899" + integrity sha512-P+SukKanjFY0ZhsK6wSVnQmxTP2eVPPE8OPSNuxaMYtgVzwJZgfGdwlYjf4RlRU4vLEw4ts2fsE2icG4nZ5ddQ== -"@octokit/plugin-paginate-rest@^2.16.8": - version "2.17.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.17.0.tgz#32e9c7cab2a374421d3d0de239102287d791bce7" - integrity sha512-tzMbrbnam2Mt4AhuyCHvpRkS0oZ5MvwwcQPYGtMv4tUa5kkzG58SVB0fcsLulOZQeRnOgdkZWkRUiyBlh0Bkyw== +"@octokit/openapi-types@^12.7.0": + version "12.8.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.8.0.tgz#f4708cf948724d6e8f7d878cfd91584c1c5c0523" + integrity sha512-ydcKLs2KKcxlhpdWLzJxEBDEk/U5MUeqtqkXlrtAUXXFPs6vLl1PEGghFC/BbpleosB7iXs0Z4P2DGe7ZT5ZNg== + +"@octokit/plugin-paginate-rest@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-3.0.0.tgz#df779de686aeb21b5e776e4318defc33b0418566" + integrity sha512-fvw0Q5IXnn60D32sKeLIxgXCEZ7BTSAjJd8cFAE6QU5qUp0xo7LjFUjjX1J5D7HgN355CN4EXE4+Q1/96JaNUA== dependencies: - "@octokit/types" "^6.34.0" + "@octokit/types" "^6.39.0" "@octokit/plugin-request-log@^1.0.4": version "1.0.4" resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== -"@octokit/plugin-rest-endpoint-methods@^5.12.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.13.0.tgz#8c46109021a3412233f6f50d28786f8e552427ba" - integrity sha512-uJjMTkN1KaOIgNtUPMtIXDOjx6dGYysdIFhgA52x4xSadQCz3b/zJexvITDVpANnfKPW/+E0xkOvLntqMYpviA== +"@octokit/plugin-rest-endpoint-methods@^6.0.0": + version "6.1.2" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-6.1.2.tgz#bbf55cfc43acf177514441ecd1d26031006f73ed" + integrity sha512-sAfSKtLHNq0UQ2iFuI41I6m5SK6bnKFRJ5kUjDRVbmQXiRVi4aQiIcgG4cM7bt+bhSiWL4HwnTxDkWFlKeKClA== dependencies: - "@octokit/types" "^6.34.0" + "@octokit/types" "^6.40.0" deprecation "^2.3.1" -"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" - integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg== +"@octokit/request-error@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-3.0.0.tgz#f527d178f115a3b62d76ce4804dd5bdbc0270a81" + integrity sha512-WBtpzm9lR8z4IHIMtOqr6XwfkGvMOOILNLxsWvDwtzm/n7f5AWuqJTXQXdDtOvPfTDrH4TPhEvW2qMlR4JFA2w== dependencies: "@octokit/types" "^6.0.3" deprecation "^2.0.0" once "^1.4.0" -"@octokit/request@^5.6.0": - version "5.6.2" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.2.tgz#1aa74d5da7b9e04ac60ef232edd9a7438dcf32d8" - integrity sha512-je66CvSEVf0jCpRISxkUcCa0UkxmFs6eGDRSbfJtAVwbLH5ceqF+YEyC8lj8ystKyZTy8adWr0qmkY52EfOeLA== +"@octokit/request@^6.0.0": + version "6.2.0" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-6.2.0.tgz#9c25606df84e6f2ccbcc2c58e1d35438e20b688b" + integrity sha512-7IAmHnaezZrgUqtRShMlByJK33MT9ZDnMRgZjnRrRV9a/jzzFwKGz0vxhFU6i7VMLraYcQ1qmcAOin37Kryq+Q== dependencies: - "@octokit/endpoint" "^6.0.1" - "@octokit/request-error" "^2.1.0" + "@octokit/endpoint" "^7.0.0" + "@octokit/request-error" "^3.0.0" "@octokit/types" "^6.16.1" is-plain-object "^5.0.0" - node-fetch "^2.6.1" + node-fetch "^2.6.7" universal-user-agent "^6.0.0" -"@octokit/rest@18.12.0": - version "18.12.0" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881" - integrity sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q== +"@octokit/rest@19.0.3": + version "19.0.3" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-19.0.3.tgz#b9a4e8dc8d53e030d611c053153ee6045f080f02" + integrity sha512-5arkTsnnRT7/sbI4fqgSJ35KiFaN7zQm0uQiQtivNQLI8RQx8EHwJCajcTUwmaCMNDg7tdCvqAnc7uvHHPxrtQ== dependencies: - "@octokit/core" "^3.5.1" - "@octokit/plugin-paginate-rest" "^2.16.8" + "@octokit/core" "^4.0.0" + "@octokit/plugin-paginate-rest" "^3.0.0" "@octokit/plugin-request-log" "^1.0.4" - "@octokit/plugin-rest-endpoint-methods" "^5.12.0" + "@octokit/plugin-rest-endpoint-methods" "^6.0.0" -"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.34.0": - version "6.34.0" - resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.34.0.tgz#c6021333334d1ecfb5d370a8798162ddf1ae8218" - integrity sha512-s1zLBjWhdEI2zwaoSgyOFoKSl109CUcVBCc7biPJ3aAf6LGLU6szDvi31JPU7bxfla2lqfhjbbg/5DdFNxOwHw== +"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0": + version "6.39.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.39.0.tgz#46ce28ca59a3d4bac0e487015949008302e78eee" + integrity sha512-Mq4N9sOAYCitTsBtDdRVrBE80lIrMBhL9Jbrw0d+j96BAzlq4V+GLHFJbHokEsVvO/9tQupQdoFdgVYhD2C8UQ== dependencies: - "@octokit/openapi-types" "^11.2.0" + "@octokit/openapi-types" "^12.7.0" -"@sindresorhus/is@^0.14.0": - version "0.14.0" - resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" - integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== +"@octokit/types@^6.40.0": + version "6.40.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.40.0.tgz#f2e665196d419e19bb4265603cf904a820505d0e" + integrity sha512-MFZOU5r8SwgJWDMhrLUSvyJPtVsqA6VnbVI3TNbsmw+Jnvrktzvq2fYES/6RiJA/5Ykdwq4mJmtlYUfW7CGjmw== + dependencies: + "@octokit/openapi-types" "^12.10.0" -"@sindresorhus/is@^4.6.0": - version "4.6.0" - resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-4.6.0.tgz#3c7c9c46e678feefe7a2e5bb609d3dbd665ffb3f" - integrity sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw== +"@pnpm/network.ca-file@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@pnpm/network.ca-file/-/network.ca-file-1.0.1.tgz#16f88d057c68cd5419c1ef3dfa281296ea80b047" + integrity sha512-gkINruT2KUhZLTaiHxwCOh1O4NVnFT0wLjWFBHmTz9vpKag/C/noIMJXBxFe4F0mYpUVX2puLwAieLYFg2NvoA== + dependencies: + graceful-fs "4.2.10" + +"@pnpm/npm-conf@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@pnpm/npm-conf/-/npm-conf-1.0.4.tgz#e2c927a933f55e9211e12ef6cc4885ce915211ce" + integrity sha512-o5YFq/+ksEJMbSzzkaQDHlp00aonLDU5xNPVTRL12hTWBbVSSeWXxPukq75h+mvXnoOWT95vV2u1HSTw2C4XOw== + dependencies: + "@pnpm/network.ca-file" "^1.0.1" + config-chain "^1.1.11" + +"@sindresorhus/is@^5.2.0": + version "5.3.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-5.3.0.tgz#0ec9264cf54a527671d990eb874e030b55b70dcc" + integrity sha512-CX6t4SYQ37lzxicAqsBtxA3OseeoVrh9cSJ5PFYam0GksYlupRfy1A+Q4aYD3zvcfECLc0zO2u+ZnR2UYKvCrw== "@sinonjs/commons@^1.7.0": version "1.8.3" @@ -865,19 +724,12 @@ type-detect "4.0.8" "@sinonjs/fake-timers@^8.0.1": - version "8.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.0.1.tgz#1c1c9a91419f804e59ae8df316a07dd1c3a76b94" - integrity sha512-AU7kwFxreVd6OAXcAFlKSmZquiRUU0FvYm44k1Y1QbK7Co4m0aqfGMhjykIeQp/H6rcl+nFmj0zfdUcGVs9Dew== + version "8.1.0" + resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" + integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== dependencies: "@sinonjs/commons" "^1.7.0" -"@szmarczak/http-timer@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" - integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== - dependencies: - defer-to-connect "^1.0.1" - "@szmarczak/http-timer@^5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-5.0.1.tgz#c7c1bf1141cdd4751b0399c8fc7b8b664cd5be3a" @@ -891,9 +743,9 @@ integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== "@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": - version "7.1.16" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.16.tgz#bc12c74b7d65e82d29876b5d0baf5c625ac58702" - integrity sha512-EAEHtisTMM+KaKwfWdC3oyllIqswlznXCIVCt7/oRNrh+DhgT4UEBNC/jlADNjvw7UnfbcdkGQcPVZ1xYiLcrQ== + version "7.1.19" + resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.19.tgz#7b497495b7d1b4812bdb9d02804d0576f43ee460" + integrity sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw== dependencies: "@babel/parser" "^7.1.0" "@babel/types" "^7.0.0" @@ -902,9 +754,9 @@ "@types/babel__traverse" "*" "@types/babel__generator@*": - version "7.6.3" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.3.tgz#f456b4b2ce79137f768aa130d2423d2f0ccfaba5" - integrity sha512-/GWCmzJWqV7diQW54smJZzWbSFf4QYtF71WCKhcx6Ru/tFyQIY2eiiITcCAeuPbNSvT9YCGkVMqqvSk2Z0mXiA== + version "7.6.4" + resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" + integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== dependencies: "@babel/types" "^7.0.0" @@ -917,9 +769,9 @@ "@babel/types" "^7.0.0" "@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.14.2" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.14.2.tgz#ffcd470bbb3f8bf30481678fb5502278ca833a43" - integrity sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA== + version "7.17.1" + resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.17.1.tgz#1a0e73e8c28c7e832656db372b779bfd2ef37314" + integrity sha512-kVzjari1s2YVi77D3w1yuvohV2idweYXMCDzqBiVNN63TcDWrIlTVOYpqVrvbbyOE/IyzBoTKF0fdnLPEORFxA== dependencies: "@babel/types" "^7.3.0" @@ -946,9 +798,9 @@ integrity sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ== "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762" - integrity sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw== + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" + integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== "@types/istanbul-lib-report@*": version "3.0.0" @@ -977,10 +829,10 @@ resolved "https://registry.yarnpkg.com/@types/json-buffer/-/json-buffer-3.0.0.tgz#85c1ff0f0948fc159810d4b5be35bf8c20875f64" integrity sha512-3YP80IxxFJB4b5tYC2SUPwkg0XQLiu0nWvhRgEatgjf+29IcWO9X1k8xRv5DGssJ/lCrjYTjQPcobJr2yWIVuQ== -"@types/json-schema@^7.0.7": - version "7.0.9" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" - integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== +"@types/json-schema@^7.0.9": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== "@types/keyv@*": version "3.1.4" @@ -997,9 +849,9 @@ nock "*" "@types/node@*": - version "16.11.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.2.tgz#31c249c136c3f9b35d4b60fb8e50e01a1f0cc9a5" - integrity sha512-w34LtBB0OkDTs19FQHXy4Ig/TOXI4zqvXS2Kk1PAsRKZ0I+nik7LlMYxckW0tSNGtvWmzB+mrCTbuEjuB9DVsw== + version "18.0.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.3.tgz#463fc47f13ec0688a33aec75d078a0541a447199" + integrity sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ== "@types/node@14.0.9": version "14.0.9" @@ -1012,9 +864,9 @@ integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA== "@types/prettier@^2.1.5": - version "2.4.1" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.1.tgz#e1303048d5389563e130f5bdd89d37a99acb75eb" - integrity sha512-Fo79ojj3vdEZOHg3wR9ksAMRz4P3S5fDB5e/YWZiFnyFQI1WY2Vftu9XoXVVtJfxB7Bpce/QTqWSSntkz2Znrw== + version "2.6.3" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.6.3.tgz#68ada76827b0010d0db071f739314fa429943d0a" + integrity sha512-ymZk3LEC/fsut+/Q5qejp6R9O1rMxz3XaRHDV6kX8MrGAhOSPqVARbDi+EZvInBpw+BnCX3TD240byVkOfQsHg== "@types/responselike@*", "@types/responselike@^1.0.0": version "1.0.0" @@ -1029,9 +881,9 @@ integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== "@types/yargs-parser@*": - version "20.2.1" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129" - integrity sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw== + version "21.0.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" + integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== "@types/yargs@^16.0.0": version "16.0.4" @@ -1040,80 +892,90 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.33.0.tgz#c24dc7c8069c7706bc40d99f6fa87edcb2005276" - integrity sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg== +"@typescript-eslint/eslint-plugin@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.35.1.tgz#0d822bfea7469904dfc1bb8f13cabd362b967c93" + integrity sha512-RBZZXZlI4XCY4Wzgy64vB+0slT9+yAPQRjj/HSaRwUot33xbDjF1oN9BLwOLTewoOI0jothIltZRe9uJCHf8gg== dependencies: - "@typescript-eslint/experimental-utils" "4.33.0" - "@typescript-eslint/scope-manager" "4.33.0" - debug "^4.3.1" + "@typescript-eslint/scope-manager" "5.35.1" + "@typescript-eslint/type-utils" "5.35.1" + "@typescript-eslint/utils" "5.35.1" + debug "^4.3.4" functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.1.0" - semver "^7.3.5" + ignore "^5.2.0" + regexpp "^3.2.0" + semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/experimental-utils@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-4.33.0.tgz#6f2a786a4209fa2222989e9380b5331b2810f7fd" - integrity sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q== +"@typescript-eslint/parser@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.35.1.tgz#bf2ee2ebeaa0a0567213748243fb4eec2857f04f" + integrity sha512-XL2TBTSrh3yWAsMYpKseBYTVpvudNf69rPOWXWVBI08My2JVT5jR66eTt4IgQFHA/giiKJW5dUD4x/ZviCKyGg== dependencies: - "@types/json-schema" "^7.0.7" - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" + "@typescript-eslint/scope-manager" "5.35.1" + "@typescript-eslint/types" "5.35.1" + "@typescript-eslint/typescript-estree" "5.35.1" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.35.1.tgz#ccb69d54b7fd0f2d0226a11a75a8f311f525ff9e" + integrity sha512-kCYRSAzIW9ByEIzmzGHE50NGAvAP3wFTaZevgWva7GpquDyFPFcmvVkFJGWJJktg/hLwmys/FZwqM9EKr2u24Q== + dependencies: + "@typescript-eslint/types" "5.35.1" + "@typescript-eslint/visitor-keys" "5.35.1" + +"@typescript-eslint/type-utils@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.35.1.tgz#d50903b56758c5c8fc3be52b3be40569f27f9c4a" + integrity sha512-8xT8ljvo43Mp7BiTn1vxLXkjpw8wS4oAc00hMSB4L1/jIiYbjjnc3Qp2GAUOG/v8zsNCd1qwcqfCQ0BuishHkw== + dependencies: + "@typescript-eslint/utils" "5.35.1" + debug "^4.3.4" + tsutils "^3.21.0" + +"@typescript-eslint/types@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.35.1.tgz#af355fe52a0cc88301e889bc4ada72f279b63d61" + integrity sha512-FDaujtsH07VHzG0gQ6NDkVVhi1+rhq0qEvzHdJAQjysN+LHDCKDKCBRlZFFE0ec0jKxiv0hN63SNfExy0KrbQQ== + +"@typescript-eslint/typescript-estree@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.35.1.tgz#db878a39a0dbdc9bb133f11cdad451770bfba211" + integrity sha512-JUqE1+VRTGyoXlDWWjm6MdfpBYVq+hixytrv1oyjYIBEOZhBCwtpp5ZSvBt4wIA1MKWlnaC2UXl2XmYGC3BoQA== + dependencies: + "@typescript-eslint/types" "5.35.1" + "@typescript-eslint/visitor-keys" "5.35.1" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + semver "^7.3.7" + tsutils "^3.21.0" + +"@typescript-eslint/utils@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.35.1.tgz#ae1399afbfd6aa7d0ed1b7d941e9758d950250eb" + integrity sha512-v6F8JNXgeBWI4pzZn36hT2HXXzoBBBJuOYvoQiaQaEEjdi5STzux3Yj8v7ODIpx36i/5s8TdzuQ54TPc5AITQQ== + dependencies: + "@types/json-schema" "^7.0.9" + "@typescript-eslint/scope-manager" "5.35.1" + "@typescript-eslint/types" "5.35.1" + "@typescript-eslint/typescript-estree" "5.35.1" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/parser@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-4.33.0.tgz#dfe797570d9694e560528d18eecad86c8c744899" - integrity sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA== +"@typescript-eslint/visitor-keys@5.35.1": + version "5.35.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.35.1.tgz#285e9e34aed7c876f16ff646a3984010035898e6" + integrity sha512-cEB1DvBVo1bxbW/S5axbGPE6b7FIMAbo3w+AGq6zNDA7+NYJOIkKj/sInfTv4edxd4PxJSgdN4t6/pbvgA+n5g== dependencies: - "@typescript-eslint/scope-manager" "4.33.0" - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/typescript-estree" "4.33.0" - debug "^4.3.1" - -"@typescript-eslint/scope-manager@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-4.33.0.tgz#d38e49280d983e8772e29121cf8c6e9221f280a3" - integrity sha512-5IfJHpgTsTZuONKbODctL4kKuQje/bzBRkwHE8UOZ4f89Zeddg+EGZs8PD8NcN4LdM3ygHWYB3ukPAYjvl/qbQ== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - -"@typescript-eslint/types@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-4.33.0.tgz#a1e59036a3b53ae8430ceebf2a919dc7f9af6d72" - integrity sha512-zKp7CjQzLQImXEpLt2BUw1tvOMPfNoTAfb8l51evhYbOEEzdWyQNmHWWGPR6hwKJDAi+1VXSBmnhL9kyVTTOuQ== - -"@typescript-eslint/typescript-estree@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-4.33.0.tgz#0dfb51c2908f68c5c08d82aefeaf166a17c24609" - integrity sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA== - dependencies: - "@typescript-eslint/types" "4.33.0" - "@typescript-eslint/visitor-keys" "4.33.0" - debug "^4.3.1" - globby "^11.0.3" - is-glob "^4.0.1" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/visitor-keys@4.33.0": - version "4.33.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-4.33.0.tgz#2a22f77a41604289b7a186586e9ec48ca92ef1dd" - integrity sha512-uqi/2aSz9g2ftcHWf8uLPJA70rUv6yuMW5Bohw+bwcuzaxQIHaKFZCKGoGXIrc9vkTJ3+0txM73K0Hq3d5wgIg== - dependencies: - "@typescript-eslint/types" "4.33.0" - eslint-visitor-keys "^2.0.0" + "@typescript-eslint/types" "5.35.1" + eslint-visitor-keys "^3.3.0" abab@^2.0.3, abab@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" - integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== + version "2.0.6" + resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.6.tgz#41b80f2c871d19686216b82309231cfd3cb3d291" + integrity sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA== acorn-globals@^6.0.0: version "6.0.0" @@ -1123,7 +985,7 @@ acorn-globals@^6.0.0: acorn "^7.1.1" acorn-walk "^7.1.1" -acorn-jsx@^5.3.1: +acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== @@ -1138,15 +1000,15 @@ acorn-walk@^8.2.0: resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== -acorn@^7.1.1, acorn@^7.4.0: +acorn@^7.1.1: version "7.4.1" resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -acorn@^8.0.1, acorn@^8.2.4, acorn@^8.7.0: - version "8.7.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.1.tgz#0197122c843d1bf6d0a5e83220a788f278f63c30" - integrity sha512-Xx54uLJQZ19lKygFXOWsscKUbsBZW0CPykPhVQdhIeIwrbPmJzqeASDInc8nKBnp/JT6igTs82qPXz069H8I/A== +acorn@^8.0.1, acorn@^8.2.4, acorn@^8.7.0, acorn@^8.8.0: + version "8.8.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" + integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== agent-base@6, agent-base@^6.0.0, agent-base@^6.0.2: version "6.0.2" @@ -1165,28 +1027,13 @@ ajv@^6.10.0, ajv@^6.12.3, ajv@^6.12.4: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^8.0.1: - version "8.6.3" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.3.tgz#11a66527761dc3e9a3845ea775d2d3c0414e8764" - integrity sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -ansi-align@^3.0.0: +ansi-align@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.1.tgz#0cdf12e111ace773a86e9a1fad1225c43cb19a59" integrity sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w== dependencies: string-width "^4.1.0" -ansi-colors@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" - integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== - ansi-escapes@^4.2.1: version "4.3.2" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" @@ -1194,6 +1041,13 @@ ansi-escapes@^4.2.1: dependencies: type-fest "^0.21.3" +ansi-escapes@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-5.0.0.tgz#b6a0caf0eef0c41af190e9a749e0c00ec04bb2a6" + integrity sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA== + dependencies: + type-fest "^1.0.2" + ansi-regex@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" @@ -1223,6 +1077,11 @@ ansi-styles@^5.0.0: resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== +ansi-styles@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.1.0.tgz#87313c102b8118abd57371afab34618bf7350ed3" + integrity sha512-VbqNsoz55SYGczauuup0MFUyXNQviSpFTj1RQtFzmQLk18qbVSpTFFGMT293rmDaQuKCT6InmbuEyUne4mTuxQ== + anymatch@^3.0.3: version "3.1.2" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" @@ -1238,6 +1097,11 @@ argparse@^1.0.7: dependencies: sprintf-js "~1.0.2" +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + array-union@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" @@ -1255,16 +1119,16 @@ array.prototype.map@^1.0.4: is-string "^1.0.7" asn1@~0.2.3: - version "0.2.4" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" - integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + version "0.2.6" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" + integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== dependencies: safer-buffer "~2.1.0" assert-plus@1.0.0, assert-plus@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== ast-types@^0.13.2: version "0.13.4" @@ -1273,11 +1137,6 @@ ast-types@^0.13.2: dependencies: tslib "^2.0.1" -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - async-retry@1.3.3: version "1.3.3" resolved "https://registry.yarnpkg.com/async-retry/-/async-retry-1.3.3.tgz#0e7f36c04d8478e7a58bdbed80cedf977785f280" @@ -1293,12 +1152,12 @@ async@^3.2.3: asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== aws-sign2@~0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== aws4@^1.8.0: version "1.11.0" @@ -1379,7 +1238,7 @@ base64-js@^1.3.1: bcrypt-pbkdf@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== dependencies: tweetnacl "^0.14.3" @@ -1393,15 +1252,6 @@ big.js@^5.2.2: resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== -bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - bl@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/bl/-/bl-5.0.0.tgz#6928804a41e9da9034868e1c50ca88f21f57aea2" @@ -1411,19 +1261,19 @@ bl@^5.0.0: inherits "^2.0.4" readable-stream "^3.4.0" -boxen@^5.0.0: - version "5.1.2" - resolved "https://registry.yarnpkg.com/boxen/-/boxen-5.1.2.tgz#788cb686fc83c1f486dfa8a40c68fc2b831d2b50" - integrity sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ== +boxen@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/boxen/-/boxen-7.0.0.tgz#9e5f8c26e716793fc96edcf7cf754cdf5e3fbf32" + integrity sha512-j//dBVuyacJbvW+tvZ9HuH03fZ46QcaKvvhZickZqtB271DxJ7SNRSNxrV/dZX0085m7hISRZWbzWlJvx/rHSg== dependencies: - ansi-align "^3.0.0" - camelcase "^6.2.0" - chalk "^4.1.0" - cli-boxes "^2.2.1" - string-width "^4.2.2" - type-fest "^0.20.2" - widest-line "^3.1.0" - wrap-ansi "^7.0.0" + ansi-align "^3.0.1" + camelcase "^7.0.0" + chalk "^5.0.1" + cli-boxes "^3.0.0" + string-width "^5.1.2" + type-fest "^2.13.0" + widest-line "^4.0.1" + wrap-ansi "^8.0.1" brace-expansion@^1.1.7: version "1.1.11" @@ -1445,27 +1295,15 @@ browser-process-hrtime@^1.0.0: resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== -browserslist@^4.16.6: - version "4.17.4" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.4.tgz#72e2508af2a403aec0a49847ef31bd823c57ead4" - integrity sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ== +browserslist@^4.20.2: + version "4.21.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.1.tgz#c9b9b0a54c7607e8dc3e01a0d311727188011a00" + integrity sha512-Nq8MFCSrnJXSc88yliwlzQe3qNe3VntIjhsArW9IJOEPSHNx23FalwApUVbzAWABLhYJJ7y8AynWI/XM8OdfjQ== dependencies: - caniuse-lite "^1.0.30001265" - electron-to-chromium "^1.3.867" - escalade "^3.1.1" - node-releases "^2.0.0" - picocolors "^1.0.0" - -browserslist@^4.17.5: - version "4.19.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.19.1.tgz#4ac0435b35ab655896c31d53018b6dd5e9e4c9a3" - integrity sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A== - dependencies: - caniuse-lite "^1.0.30001286" - electron-to-chromium "^1.4.17" - escalade "^3.1.1" - node-releases "^2.0.1" - picocolors "^1.0.0" + caniuse-lite "^1.0.30001359" + electron-to-chromium "^1.4.172" + node-releases "^2.0.5" + update-browserslist-db "^1.0.4" bs-logger@0.x: version "0.2.6" @@ -1486,14 +1324,6 @@ buffer-from@^1.0.0: resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - buffer@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" @@ -1512,19 +1342,6 @@ cacheable-lookup@^6.0.4: resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-6.0.4.tgz#65c0e51721bb7f9f2cb513aed6da4a1b93ad7dc8" integrity sha512-mbcDEZCkv2CZF4G01kr8eBd/5agkt9oCqz75tJMSIsquvRZ2sL6Hi5zGVKi/0OSC9oO1GHfJ2AV0ZIOY9vye0A== -cacheable-request@^6.0.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" - integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== - dependencies: - clone-response "^1.0.2" - get-stream "^5.1.0" - http-cache-semantics "^4.0.0" - keyv "^3.0.0" - lowercase-keys "^2.0.0" - normalize-url "^4.1.0" - responselike "^1.0.2" - cacheable-request@^7.0.2: version "7.0.2" resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-7.0.2.tgz#ea0d0b889364a25854757301ca12b2da77f91d27" @@ -1557,26 +1374,26 @@ camelcase@^5.3.1: integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== camelcase@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809" - integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg== + version "6.3.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001265: - version "1.0.30001270" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001270.tgz#cc9c37a4ec5c1a8d616fc7bace902bb053b0cdea" - integrity sha512-TcIC7AyNWXhcOmv2KftOl1ShFAaHQYcB/EPL/hEyMrcS7ZX0/DvV1aoy6BzV0+16wTpoAyTMGDNAJfSqS/rz7A== +camelcase@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-7.0.0.tgz#fd112621b212126741f998d614cbc2a8623fd174" + integrity sha512-JToIvOmz6nhGsUhAYScbo2d6Py5wojjNfoxoc2mEVLUdJ70gJK2gnd+ABY1Tc3sVMyK7QDPtN0T/XdlCQWITyQ== -caniuse-lite@^1.0.30001286: - version "1.0.30001296" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001296.tgz#d99f0f3bee66544800b93d261c4be55a35f1cec8" - integrity sha512-WfrtPEoNSoeATDlf4y3QvkwiELl9GyPLISV5GejTbbQRtQx4LhsXmc9IQ6XCL2d7UxCyEzToEZNMeqR79OUw8Q== +caniuse-lite@^1.0.30001359: + version "1.0.30001363" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001363.tgz#26bec2d606924ba318235944e1193304ea7c4f15" + integrity sha512-HpQhpzTGGPVMnCjIomjt+jvyUu8vNFo3TaDiZ/RcoTrlOq/5+tC8zHdsbgFB6MxmaY+jCpsH09aD80Bb4Ow3Sg== caseless@~0.12.0: version "0.12.0" resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== -chalk@5.0.1, chalk@^5.0.0: +chalk@5.0.1, chalk@^5.0.0, chalk@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.0.1.tgz#ca57d71e82bb534a296df63bbacc4a1c22b2a4b6" integrity sha512-Fo07WOYGqMfCWHOzSXOt2CxDbC6skS/jO9ynEcmpANMoPrD+W1r1K6Vx7iNm+AQmETU1Xr2t+n8nzkV9t6xh3w== @@ -1590,7 +1407,7 @@ chalk@^2.0.0, chalk@^2.3.0: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1: +chalk@^4.0.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -1608,32 +1425,20 @@ chardet@^0.7.0: resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - ci-info@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.2.0.tgz#2876cb948a498797b5236f0095bc057d0dca38b6" - integrity sha512-dVqRX7fLUm8J6FgHJ418XuIgDLZDkYcDFTeL6TA2gt5WlIZUQrrH6EZrNClwT/H0FateUsZkGIOPRrLbP+PR9A== + version "3.3.2" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.2.tgz#6d2967ffa407466481c6c90b6e16b3098f080128" + integrity sha512-xmDt/QIAdeZ9+nfdPsaBCpMvHNLFiLdjj59qjqn+6iPe6YmHGQ35sBnQ8uslRBXFmXkiZQOJRjvQeoGppoTjjg== cjs-module-lexer@^1.0.0: version "1.2.2" resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== -cli-boxes@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" - integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== - -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" +cli-boxes@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-3.0.0.tgz#71a10c716feeba005e4504f36329ef0b17cf3145" + integrity sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g== cli-cursor@^4.0.0: version "4.0.0" @@ -1642,15 +1447,15 @@ cli-cursor@^4.0.0: dependencies: restore-cursor "^4.0.0" -cli-spinners@^2.5.0, cli-spinners@^2.6.1: +cli-spinners@^2.6.1: version "2.6.1" resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== -cli-width@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-3.0.0.tgz#a2f48437a2caa9a22436e794bf071ec9e61cedf6" - integrity sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw== +cli-width@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.0.0.tgz#a5622f6a3b0a9e3e711a25f099bf2399f608caf6" + integrity sha512-ZksGS2xpa/bYkNzN3BAw1wEjsLV/ZKOf/CCrJ/QOBsxx6fOARIkwTutxp1XIOIohi6HKmOFjMoK/XaqDVUpEEw== cliui@^7.0.2: version "7.0.4" @@ -1664,19 +1469,19 @@ cliui@^7.0.2: clone-response@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" - integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= + integrity sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q== dependencies: mimic-response "^1.0.0" clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha1-2jCcwmPfFZlMaIypAheco8fNfH4= + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== co@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= + integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: version "1.0.1" @@ -1700,7 +1505,7 @@ color-convert@^2.0.1: color-name@1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== color-name@^1.0.0, color-name@~1.1.4: version "1.1.4" @@ -1708,9 +1513,9 @@ color-name@^1.0.0, color-name@~1.1.4: integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== color-string@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.6.0.tgz#c3915f61fe267672cb7e1e064c9d692219f6c312" - integrity sha512-c/hGS+kRWJutUBEngKKmk4iH3sD59MBkoxVapS/0wgpCz2u7XsNloxknyvBhzwEs1IbV36D9PwqLPJ2DTu3vMA== + version "1.9.1" + resolved "https://registry.yarnpkg.com/color-string/-/color-string-1.9.1.tgz#4467f9146f036f855b764dfb5bf8582bf342c7a4" + integrity sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg== dependencies: color-name "^1.0.0" simple-swizzle "^0.2.2" @@ -1738,10 +1543,10 @@ combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: dependencies: delayed-stream "~1.0.0" -compress-brotli@^1.3.6: - version "1.3.6" - resolved "https://registry.yarnpkg.com/compress-brotli/-/compress-brotli-1.3.6.tgz#64bd6f21f4f3e9841dbac392f4c29218caf5e9d9" - integrity sha512-au99/GqZtUtiCBliqLFbWlhnCxn+XSYjwZ77q6mKN4La4qOXDoLVPZ50iXr0WmAyMxl8yqoq3Yq4OeQNPPkyeQ== +compress-brotli@^1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/compress-brotli/-/compress-brotli-1.3.8.tgz#0c0a60c97a989145314ec381e84e26682e7b38db" + integrity sha512-lVcQsjhxhIXsuupfy9fmZUFtAIdBmXA7EGY6GBdgZ++qkM9zG4YFT8iU7FoBxzryNDMOpD1HIFHUSX4D87oqhQ== dependencies: "@types/json-buffer" "~3.0.0" json-buffer "~3.0.1" @@ -1749,19 +1554,26 @@ compress-brotli@^1.3.6: concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== -configstore@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" - integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== +config-chain@^1.1.11: + version "1.1.13" + resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.13.tgz#fad0795aa6a6cdaff9ed1b68e9dff94372c232f4" + integrity sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ== dependencies: - dot-prop "^5.2.0" - graceful-fs "^4.1.2" - make-dir "^3.0.0" - unique-string "^2.0.0" - write-file-atomic "^3.0.0" - xdg-basedir "^4.0.0" + ini "^1.3.4" + proto-list "~1.2.1" + +configstore@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-6.0.0.tgz#49eca2ebc80983f77e09394a1a56e0aca8235566" + integrity sha512-cD31W1v3GqUlQvbBCGcXmd2Nj9SvLDOP1oQ0YFuLETufzSPaKp11rYBsSOm7rCsW3OnIRAFM3OxRhceaXNYHkA== + dependencies: + dot-prop "^6.0.1" + graceful-fs "^4.2.6" + unique-string "^3.0.0" + write-file-atomic "^3.0.3" + xdg-basedir "^5.0.1" convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.8.0" @@ -1773,7 +1585,7 @@ convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: core-util-is@1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== core-util-is@~1.0.0: version "1.0.3" @@ -1811,10 +1623,12 @@ cross-spawn@^7.0.2, cross-spawn@^7.0.3: shebang-command "^2.0.0" which "^2.0.1" -crypto-random-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" - integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== +crypto-random-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-4.0.0.tgz#5a3cc53d7dd86183df5da0312816ceeeb5bb1fc2" + integrity sha512-x8dy3RnvYdlUcPOjkEHqozhiwzKNSq7GcPuXFbnyMOCHxX8V3OgIg/pYuabl2sbUPfIJaeAQB7PMOK8DFIdoRA== + dependencies: + type-fest "^1.0.1" cssom@^0.4.4: version "0.4.4" @@ -1836,7 +1650,7 @@ cssstyle@^2.3.0: dashdash@^1.12.0: version "1.14.1" resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== dependencies: assert-plus "^1.0.0" @@ -1845,6 +1659,11 @@ data-uri-to-buffer@3: resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-3.0.1.tgz#594b8973938c5bc2c33046535785341abc4f3636" integrity sha512-WboRycPNsVw3B3TL559F7kuBUM4d8CgMEvk6xEJlOp7OBPjt6G7z8WMWlD2rOFZLk6OYfFIUGsCOWzcQH9K2og== +data-uri-to-buffer@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b" + integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA== + data-urls@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" @@ -1854,7 +1673,7 @@ data-urls@^2.0.0: whatwg-mimetype "^2.3.0" whatwg-url "^8.0.0" -debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1866,18 +1685,6 @@ decimal.js@^10.2.1: resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== -decode-uri-component@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" - integrity sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU= - -decompress-response@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" - integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= - dependencies: - mimic-response "^1.0.0" - decompress-response@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-6.0.0.tgz#ca387612ddb7e104bd16d85aab00d5ecf09c66fc" @@ -1888,7 +1695,7 @@ decompress-response@^6.0.0: dedent@^0.7.0: version "0.7.0" resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + integrity sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA== deep-extend@^0.6.0: version "0.6.0" @@ -1908,15 +1715,10 @@ deepmerge@^4.2.2: defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" - integrity sha1-xlYFHpgX2f8I7YgUd/P+QBnz730= + integrity sha512-s82itHOnYrN0Ib8r+z7laQz3sdE+4FP3d9Q7VLO7U+KRT+CR0GsWuyHxzdAY82I7cXv0G/twrqomTJLOssO5HA== dependencies: clone "^1.0.2" -defer-to-connect@^1.0.1: - version "1.1.3" - resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" - integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== - defer-to-connect@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-2.0.1.tgz#8016bdb4143e4632b77a3449c6236277de520587" @@ -1927,7 +1729,7 @@ define-lazy-prop@^2.0.0: resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== -define-properties@^1.1.3: +define-properties@^1.1.3, define-properties@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1" integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA== @@ -1935,7 +1737,7 @@ define-properties@^1.1.3: has-property-descriptors "^1.0.0" object-keys "^1.1.1" -degenerator@^3.0.1: +degenerator@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/degenerator/-/degenerator-3.0.2.tgz#6a61fcc42a702d6e50ff6023fe17bff435f68235" integrity sha512-c0mef3SNQo56t6urUU6tdQAs+ThoD0o9B9MJ8HEt7NQcGEILCRFqQb7ZbP9JAv+QF1Ky5plydhMR/IrqWDm+TQ== @@ -1948,7 +1750,7 @@ degenerator@^3.0.1: delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== depd@2.0.0: version "2.0.0" @@ -1991,10 +1793,10 @@ domexception@^2.0.1: dependencies: webidl-conversions "^5.0.0" -dot-prop@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" - integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== +dot-prop@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-6.0.1.tgz#fc26b3cf142b9e59b74dbd39ed66ce620c681083" + integrity sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA== dependencies: is-obj "^2.0.0" @@ -2003,28 +1805,23 @@ dotenv@^16.0.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.0.1.tgz#8f8f9d94876c35dac989876a5d3a82a267fdce1d" integrity sha512-1K6hR6wtk2FviQ4kEiSjFiH5rpzEVi8WW0x96aztHVMhEspNpc4DVOUTEHtEva5VThQ8IaBX1Pe4gSzpVVUsKQ== -duplexer3@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" - integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== ecc-jsbn@~0.1.1: version "0.1.2" resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== dependencies: jsbn "~0.1.0" safer-buffer "^2.1.0" -electron-to-chromium@^1.3.867: - version "1.3.876" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.876.tgz#fe6f65c9740406f4aa69f10faa8e1d79b81bdf34" - integrity sha512-a6LR4738psrubCtGx5HxM/gNlrIsh4eFTNnokgOqvQo81GWd07lLcOjITkAXn2y4lIp18vgS+DGnehj+/oEAxQ== - -electron-to-chromium@^1.4.17: - version "1.4.36" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.36.tgz#446c6184dbe5baeb5eae9a875490831e4bc5319a" - integrity sha512-MbLlbF39vKrXWlFEFpCgDHwdlz4O3LmHM5W4tiLRHjSmEUXjJjz8sZkMgWgvYxlZw3N1iDTmCEtOkkESb5TMCg== +electron-to-chromium@^1.4.172: + version "1.4.182" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.182.tgz#5d59214ebfe90b36f23e81cd226a42732cd8c677" + integrity sha512-OpEjTADzGoXABjqobGhpy0D2YsTncAax7IkER68ycc4adaq0dqEG9//9aenKPy7BGA90bqQdLac0dPp6uMkcSg== emittery@^0.8.1: version "0.8.1" @@ -2036,6 +1833,11 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + emojis-list@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" @@ -2062,13 +1864,6 @@ enhanced-resolve@^4.0.0: memory-fs "^0.5.0" tapable "^1.0.0" -enquirer@^2.3.5: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - errno@^0.1.3: version "0.1.8" resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" @@ -2083,17 +1878,19 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.19.0, es-abstract@^1.19.1: - version "1.19.5" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.5.tgz#a2cb01eb87f724e815b278b0dd0d00f36ca9a7f1" - integrity sha512-Aa2G2+Rd3b6kxEUKTF4TaW67czBLyAv3z7VOhYRU50YBx+bbsYZ9xQP4lMNazePuFlybXI0V4MruPos7qUo5fA== +es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.5: + version "1.20.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.1.tgz#027292cd6ef44bd12b1913b828116f54787d1814" + integrity sha512-WEm2oBhfoI2sImeM4OF2zE2V3BYdSF+KnSi9Sidz51fQHd7+JuF8Xgcj9/0o+OWeIeIS/MiuNnlruQrJf16GQA== dependencies: call-bind "^1.0.2" es-to-primitive "^1.2.1" function-bind "^1.1.1" + function.prototype.name "^1.1.5" get-intrinsic "^1.1.1" get-symbol-description "^1.0.0" has "^1.0.3" + has-property-descriptors "^1.0.0" has-symbols "^1.0.3" internal-slot "^1.0.3" is-callable "^1.2.4" @@ -2105,9 +1902,10 @@ es-abstract@^1.19.0, es-abstract@^1.19.1: object-inspect "^1.12.0" object-keys "^1.1.1" object.assign "^4.1.2" - string.prototype.trimend "^1.0.4" - string.prototype.trimstart "^1.0.4" - unbox-primitive "^1.0.1" + regexp.prototype.flags "^1.4.3" + string.prototype.trimend "^1.0.5" + string.prototype.trimstart "^1.0.5" + unbox-primitive "^1.0.2" es-array-method-boxes-properly@^1.0.0: version "1.0.0" @@ -2142,15 +1940,15 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -escape-goat@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" - integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== +escape-goat@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-4.0.0.tgz#9424820331b510b0666b98f7873fe11ac4aa8081" + integrity sha512-2Sd4ShcWxbx6OY1IHyla/CVNwvg7XwZVoXZHcSu9w9SReNP1EzzD5T8NWKIR38fIqEns9kDWKUQTXXAmlDrdPg== escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== escape-string-regexp@^2.0.0: version "2.0.0" @@ -2162,6 +1960,11 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + escodegen@^1.8.1: version "1.14.3" resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.14.3.tgz#4e7b81fba61581dc97582ed78cab7f0e8d63f503" @@ -2194,12 +1997,13 @@ eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" -eslint-utils@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-2.1.0.tgz#d2de5e03424e707dc10c74068ddedae708741b27" - integrity sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg== +eslint-scope@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" + integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw== dependencies: - eslint-visitor-keys "^1.1.0" + esrecurse "^4.3.0" + estraverse "^5.2.0" eslint-utils@^3.0.0: version "3.0.0" @@ -2208,70 +2012,69 @@ eslint-utils@^3.0.0: dependencies: eslint-visitor-keys "^2.0.0" -eslint-visitor-keys@^1.1.0, eslint-visitor-keys@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" - integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== - eslint-visitor-keys@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== -eslint@7.32.0: - version "7.32.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-7.32.0.tgz#c6d328a14be3fb08c8d1d21e12c02fdb7a2a812d" - integrity sha512-VHZ8gX+EDfz+97jGcgyGCyRia/dPOd6Xh9yPv8Bl1+SoaIwD+a/vlrOmGRUyOYu7MwUhc7CxqeaDZU13S4+EpA== +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== + +eslint@8.22.0: + version "8.22.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.22.0.tgz#78fcb044196dfa7eef30a9d65944f6f980402c48" + integrity sha512-ci4t0sz6vSRKdmkOGmprBo6fmI4PrphDFMy5JEq/fNS0gQkJM3rLmrqcp8ipMcdobH3KtUP40KniAE9W19S4wA== dependencies: - "@babel/code-frame" "7.12.11" - "@eslint/eslintrc" "^0.4.3" - "@humanwhocodes/config-array" "^0.5.0" + "@eslint/eslintrc" "^1.3.0" + "@humanwhocodes/config-array" "^0.10.4" + "@humanwhocodes/gitignore-to-minimatch" "^1.0.2" ajv "^6.10.0" chalk "^4.0.0" cross-spawn "^7.0.2" - debug "^4.0.1" + debug "^4.3.2" doctrine "^3.0.0" - enquirer "^2.3.5" escape-string-regexp "^4.0.0" - eslint-scope "^5.1.1" - eslint-utils "^2.1.0" - eslint-visitor-keys "^2.0.0" - espree "^7.3.1" + eslint-scope "^7.1.1" + eslint-utils "^3.0.0" + eslint-visitor-keys "^3.3.0" + espree "^9.3.3" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" file-entry-cache "^6.0.1" + find-up "^5.0.0" functional-red-black-tree "^1.0.1" - glob-parent "^5.1.2" - globals "^13.6.0" - ignore "^4.0.6" + glob-parent "^6.0.1" + globals "^13.15.0" + globby "^11.1.0" + grapheme-splitter "^1.0.4" + ignore "^5.2.0" import-fresh "^3.0.0" imurmurhash "^0.1.4" is-glob "^4.0.0" - js-yaml "^3.13.1" + js-yaml "^4.1.0" json-stable-stringify-without-jsonify "^1.0.1" levn "^0.4.1" lodash.merge "^4.6.2" - minimatch "^3.0.4" + minimatch "^3.1.2" natural-compare "^1.4.0" optionator "^0.9.1" - progress "^2.0.0" - regexpp "^3.1.0" - semver "^7.2.1" - strip-ansi "^6.0.0" + regexpp "^3.2.0" + strip-ansi "^6.0.1" strip-json-comments "^3.1.0" - table "^6.0.9" text-table "^0.2.0" v8-compile-cache "^2.0.3" -espree@^7.3.0, espree@^7.3.1: - version "7.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-7.3.1.tgz#f2df330b752c6f55019f8bd89b7660039c1bbbb6" - integrity sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g== +espree@^9.3.2, espree@^9.3.3: + version "9.3.3" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.3.tgz#2dd37c4162bb05f433ad3c1a52ddf8a49dc08e9d" + integrity sha512-ORs1Rt/uQTqUKjDdGCyrtYxbazf5umATSf/K4qxjmZHORR6HJk+2s/2Pqe+Kk49HHINC/xNIrGfgh8sZcll0ng== dependencies: - acorn "^7.4.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^1.3.0" + acorn "^8.8.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.3.0" esprima@^4.0.0, esprima@^4.0.1: version "4.0.1" @@ -2298,9 +2101,9 @@ estraverse@^4.1.1, estraverse@^4.2.0: integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== estraverse@^5.1.0, estraverse@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.2.0.tgz#307df42547e6cc7324d3cf03c155d5cdb8c53880" - integrity sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ== + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== esutils@^2.0.2: version "2.0.3" @@ -2340,7 +2143,7 @@ execa@^5.0.0, execa@^5.1.1: exit@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== expect@^27.5.1: version "27.5.1" @@ -2369,30 +2172,19 @@ external-editor@^3.0.3: extsprintf@1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== extsprintf@^1.2.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" - integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + version "1.4.1" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" + integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: version "3.1.3" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-glob@^3.1.1: - version "3.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" - integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-glob@^3.2.11: +fast-glob@^3.2.11, fast-glob@^3.2.9: version "3.2.11" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== @@ -2411,7 +2203,7 @@ fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: version "2.0.6" resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== fastq@^1.6.0: version "1.13.0" @@ -2428,16 +2220,25 @@ fb-watchman@^2.0.0: bser "2.1.1" fecha@^4.2.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.1.tgz#0a83ad8f86ef62a091e22bb5a039cd03d23eecce" - integrity sha512-MMMQ0ludy/nBs1/o0zVOiKTpG7qMbonKUzjJgQFEuvq6INZ1OraKPRAWkBq5vlKLOUMpmNYG1JoN3oDPUQ9m3Q== + version "4.2.3" + resolved "https://registry.yarnpkg.com/fecha/-/fecha-4.2.3.tgz#4d9ccdbc61e8629b259fdca67e65891448d569fd" + integrity sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw== -figures@^3.0.0: +fetch-blob@^3.1.2, fetch-blob@^3.1.4: version "3.2.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== dependencies: - escape-string-regexp "^1.0.5" + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + +figures@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/figures/-/figures-4.0.1.tgz#27b26609907bc888b3e3b0ef5403643f80aa2518" + integrity sha512-rElJwkA/xS04Vfg+CaZodpso7VqBknOYbzi6I76hI4X80RUjkSxO2oAyPmGbuXUppywjqndOrQDl817hDnI++w== + dependencies: + escape-string-regexp "^5.0.0" + is-unicode-supported "^1.2.0" file-entry-cache@^6.0.1: version "6.0.1" @@ -2458,11 +2259,6 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" -filter-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/filter-obj/-/filter-obj-1.1.0.tgz#9b311112bc6c6127a16e016c6c5d7f19e0805c5b" - integrity sha1-mzERErxsYSehbgFsbF1/GeCAXFs= - find-up@^4.0.0, find-up@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" @@ -2471,6 +2267,14 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + flat-cache@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" @@ -2480,9 +2284,9 @@ flat-cache@^3.0.4: rimraf "^3.0.2" flatted@^3.1.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561" - integrity sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA== + version "3.2.6" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.6.tgz#022e9218c637f9f3fc9c35ab9c9193f05add60b2" + integrity sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ== fn.name@1.x.x: version "1.1.0" @@ -2492,12 +2296,12 @@ fn.name@1.x.x: forever-agent@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== -form-data-encoder@1.7.1: - version "1.7.1" - resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-1.7.1.tgz#ac80660e4f87ee0d3d3c3638b7da8278ddb8ec96" - integrity sha512-EFRDrsMm/kyqbTQocNvRXMLjc7Es2Vk+IQFx/YW7hkUH1eBl4J1fqiP34l74Yt0pFLCNpc06fkbVk00008mzjg== +form-data-encoder@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.0.1.tgz#aec41860aca0275cb6026650d139c6701b0992c1" + integrity sha512-Oy+P9w5mnO4TWXVgUiQvggNKPI9/ummcSt5usuIV6HkaLKigwzPpoenhEqmGmx3zHqm6ZLJ+CR/99N8JLinaEw== form-data@4.0.0: version "4.0.0" @@ -2526,6 +2330,13 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + fs-extra@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" @@ -2538,7 +2349,7 @@ fs-extra@^8.1.0: fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== fsevents@^2.3.2: version "2.3.2" @@ -2548,7 +2359,7 @@ fsevents@^2.3.2: ftp@^0.3.10: version "0.3.10" resolved "https://registry.yarnpkg.com/ftp/-/ftp-0.3.10.tgz#9197d861ad8142f3e63d5a83bfe4c59f7330885d" - integrity sha1-kZfYYa2BQvPmPVqDv+TFn3MwiF0= + integrity sha512-faFVML1aBx2UoDStmLwv2Wptt4vw5x03xxX172nhA5Y5HBshW5JweqQ2W4xL4dezQTG8inJsuYcpPHHU3X5OTQ== dependencies: readable-stream "1.1.x" xregexp "2.0.0" @@ -2558,10 +2369,25 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function.prototype.name@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.5.tgz#cce0505fe1ffb80503e6f9e46cc64e46a12a9621" + integrity sha512-uN7m/BzVKQnCUF/iW8jYea67v++2u7m5UgENbHRtdDVclOUP+FMPlCNdmk0h/ysGyo2tavMJEDqJAkJdRa1vMA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + functions-have-names "^1.2.2" + functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + integrity sha512-dsKNQNdj6xA3T+QlADDA7mOSlX0qiMINjn0cgr+eGHGsbSHzTabcIogz2+p/iqP1Xs6EP/sS2SbqH+brGTbq0g== + +functions-have-names@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== gensync@^1.0.0-beta.2: version "1.0.0-beta.2" @@ -2574,26 +2400,19 @@ get-caller-file@^2.0.5: integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6" - integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q== + version "1.1.2" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.2.tgz#336975123e05ad0b7ba41f152ee4aadbea6cf598" + integrity sha512-Jfm3OyCxHh9DJyc28qGk+JmfkpO41A4XkneDSujN9MDXrm4oDKdHvndhZ2dN94+ERNfkYJWDclW6k2L/ZGHjXA== dependencies: function-bind "^1.1.1" has "^1.0.3" - has-symbols "^1.0.1" + has-symbols "^1.0.3" get-package-type@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== -get-stream@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - get-stream@^5.1.0: version "5.2.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" @@ -2629,24 +2448,24 @@ get-uri@3: getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== dependencies: assert-plus "^1.0.0" -git-up@^4.0.0: - version "4.0.5" - resolved "https://registry.yarnpkg.com/git-up/-/git-up-4.0.5.tgz#e7bb70981a37ea2fb8fe049669800a1f9a01d759" - integrity sha512-YUvVDg/vX3d0syBsk/CKUTib0srcQME0JyHkL5BaYdwLsiCslPWmDSi8PUMo9pXYjrryMcmsCoCgsTpSCJEQaA== +git-up@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/git-up/-/git-up-6.0.0.tgz#dbd6e4eee270338be847a0601e6d0763c90b74db" + integrity sha512-6RUFSNd1c/D0xtGnyWN2sxza2bZtZ/EmI9448n6rCZruFwV/ezeEn2fJP7XnUQGwf0RAtd/mmUCbtH6JPYA2SA== dependencies: - is-ssh "^1.3.0" - parse-url "^6.0.0" + is-ssh "^1.4.0" + parse-url "^7.0.2" -git-url-parse@11.6.0: - version "11.6.0" - resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-11.6.0.tgz#c634b8de7faa66498a2b88932df31702c67df605" - integrity sha512-WWUxvJs5HsyHL6L08wOusa/IXYtMuCAhrMmnTjQPpBU0TTHyDhnOATNH3xNQz7YOQUsqIIPTGr4xiVti1Hsk5g== +git-url-parse@12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/git-url-parse/-/git-url-parse-12.0.0.tgz#4ba70bc1e99138321c57e3765aaf7428e5abb793" + integrity sha512-I6LMWsxV87vysX1WfsoglXsXg6GjQRKq7+Dgiseo+h0skmp5Hp2rzmcEIRQot9CPA+uzU7x1x7jZdqvTFGnB+Q== dependencies: - git-up "^4.0.0" + git-up "^6.0.0" glob-parent@^5.1.2: version "5.1.2" @@ -2655,15 +2474,22 @@ glob-parent@^5.1.2: dependencies: is-glob "^4.0.1" +glob-parent@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== dependencies: fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "^3.0.4" + minimatch "^3.1.1" once "^1.3.0" path-is-absolute "^1.0.0" @@ -2679,17 +2505,17 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^13.6.0, globals@^13.9.0: - version "13.11.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.11.0.tgz#40ef678da117fe7bd2e28f1fab24951bd0255be7" - integrity sha512-08/xrJ7wQjK9kkkRoI3OFUBbLx4f+6x3SGwcPvQ0QH6goFDrOU2oyAWrmh3dJezu65buo+HBMzAMQy6rovVC3g== +globals@^13.15.0: + version "13.16.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.16.0.tgz#9be4aca28f311aaeb974ea54978ebbb5e35ce46a" + integrity sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q== dependencies: type-fest "^0.20.2" -globby@13.1.1: - version "13.1.1" - resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.1.tgz#7c44a93869b0b7612e38f22ed532bfe37b25ea6f" - integrity sha512-XMzoDZbGZ37tufiv7g0N4F/zp3zkwdFtVbV3EHsVl1KQr4RPLfNoT068/97RPshz2J5xYNEjLKKBKaGHifBd3Q== +globby@13.1.2: + version "13.1.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.2.tgz#29047105582427ab6eca4f905200667b056da515" + integrity sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ== dependencies: dir-glob "^3.0.1" fast-glob "^3.2.11" @@ -2697,73 +2523,51 @@ globby@13.1.1: merge2 "^1.4.1" slash "^4.0.0" -globby@^11.0.3: - version "11.0.4" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5" - integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg== +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== dependencies: array-union "^2.1.0" dir-glob "^3.0.1" - fast-glob "^3.1.1" - ignore "^5.1.4" - merge2 "^1.3.0" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" slash "^3.0.0" -got@12.0.4: - version "12.0.4" - resolved "https://registry.yarnpkg.com/got/-/got-12.0.4.tgz#e3b6bf6992425f904076fd71aac7030da5122de8" - integrity sha512-2Eyz4iU/ktq7wtMFXxzK7g5p35uNYLLdiZarZ5/Yn3IJlNEpBd5+dCgcAyxN8/8guZLszffwe3wVyw+DEVrpBg== +got@12.3.1, got@^12.1.0: + version "12.3.1" + resolved "https://registry.yarnpkg.com/got/-/got-12.3.1.tgz#79d6ebc0cb8358c424165698ddb828be56e74684" + integrity sha512-tS6+JMhBh4iXMSXF6KkIsRxmloPln31QHDlcb6Ec3bzxjjFJFr/8aXdpyuLmVc9I4i2HyBHYw1QU5K1ruUdpkw== dependencies: - "@sindresorhus/is" "^4.6.0" + "@sindresorhus/is" "^5.2.0" "@szmarczak/http-timer" "^5.0.1" "@types/cacheable-request" "^6.0.2" "@types/responselike" "^1.0.0" cacheable-lookup "^6.0.4" cacheable-request "^7.0.2" decompress-response "^6.0.0" - form-data-encoder "1.7.1" + form-data-encoder "^2.0.1" get-stream "^6.0.1" http2-wrapper "^2.1.10" lowercase-keys "^3.0.0" p-cancelable "^3.0.0" responselike "^2.0.0" -got@^9.6.0: - version "9.6.0" - resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" - integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== - dependencies: - "@sindresorhus/is" "^0.14.0" - "@szmarczak/http-timer" "^1.1.2" - cacheable-request "^6.0.0" - decompress-response "^3.3.0" - duplexer3 "^0.1.4" - get-stream "^4.1.0" - lowercase-keys "^1.0.1" - mimic-response "^1.0.1" - p-cancelable "^1.0.0" - to-readable-stream "^1.0.0" - url-parse-lax "^3.0.0" - -graceful-fs@^4.1.2: - version "4.2.8" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" - integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== - -graceful-fs@^4.1.6, graceful-fs@^4.2.0: +graceful-fs@4.2.10, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.6, graceful-fs@^4.2.9: version "4.2.10" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== -graceful-fs@^4.2.9: - version "4.2.9" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96" - integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ== +grapheme-splitter@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz#9cf3a665c6247479896834af35cf1dbb4400767e" + integrity sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ== har-schema@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== har-validator@~5.1.3: version "5.1.5" @@ -2781,7 +2585,7 @@ has-bigints@^1.0.1, has-bigints@^1.0.2: has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== has-flag@^4.0.0: version "4.0.0" @@ -2795,12 +2599,7 @@ has-property-descriptors@^1.0.0: dependencies: get-intrinsic "^1.1.1" -has-symbols@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" - integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== - -has-symbols@^1.0.2, has-symbols@^1.0.3: +has-symbols@^1.0.1, has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== @@ -2812,10 +2611,10 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has-yarn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" - integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== +has-yarn@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-3.0.0.tgz#c3c21e559730d1d3b57e28af1f30d06fac38147d" + integrity sha512-IrsVwUHhEULx3R8f/aA8AHuEzAorplsab/v8HBzEiIukwq5i/EC+xmOW+HfP1OaDP+2JkgT1yILHN2O3UFIbcA== has@^1.0.3: version "1.0.3" @@ -2864,7 +2663,7 @@ http-proxy-agent@^4.0.0, http-proxy-agent@^4.0.1: http-signature@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== dependencies: assert-plus "^1.0.0" jsprim "^1.2.2" @@ -2903,21 +2702,11 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24: dependencies: safer-buffer ">= 2.1.2 < 3" -ieee754@^1.1.13, ieee754@^1.2.1: +ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -ignore@^5.1.4, ignore@^5.1.8: - version "5.1.9" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.9.tgz#9ec1a5cbe8e1446ec60d4420060d43aa6e7382fb" - integrity sha512-2zeMQpbKz5dhZ9IwL0gbxSW5w0NK/MSAMtNuhgIHEPmaU3vPdKPL0UdvUCXs5SS4JAwsBxysK5sFMW8ocFiVjQ== - ignore@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" @@ -2931,15 +2720,15 @@ import-fresh@^3.0.0, import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-lazy@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" - integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= +import-lazy@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" + integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== import-local@^3.0.2: - version "3.0.3" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.0.3.tgz#4d51c2c495ca9393da259ec66b62e022920211e0" - integrity sha512-bE9iaUY3CXH8Cwfan/abDKAxe1KGT9kyGsBPqf6DMK/z0a2OzAsrukeYNgIH6cH5Xr452jb1TUL8rSfCLjZ9uA== + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" + integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== dependencies: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" @@ -2947,12 +2736,12 @@ import-local@^3.0.2: imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" wrappy "1" @@ -2967,31 +2756,31 @@ ini@2.0.0: resolved "https://registry.yarnpkg.com/ini/-/ini-2.0.0.tgz#e5fd556ecdd5726be978fa1001862eacb0a94bc5" integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA== -ini@~1.3.0: +ini@^1.3.4, ini@~1.3.0: version "1.3.8" resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== -inquirer@8.2.4: - version "8.2.4" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-8.2.4.tgz#ddbfe86ca2f67649a67daa6f1051c128f684f0b4" - integrity sha512-nn4F01dxU8VeKfq192IjLsxu0/OmMZ4Lg3xKAns148rCaXP6ntAoEkVYZThWjwON8AlzdZZi6oqnhNbxUG9hVg== +inquirer@9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.1.0.tgz#446a09abe2e5a18973322bee89b42a6c304f2cd3" + integrity sha512-eukdjrBljg9t55ZnvJjvGi1OyYEzVBFsO/8o5d2MV3mc28u3x4X2kS4eJ/+9U10KiREfPkEBSeCrU/S2G/uRtw== dependencies: - ansi-escapes "^4.2.1" - chalk "^4.1.1" - cli-cursor "^3.1.0" - cli-width "^3.0.0" + ansi-escapes "^5.0.0" + chalk "^5.0.1" + cli-cursor "^4.0.0" + cli-width "^4.0.0" external-editor "^3.0.3" - figures "^3.0.0" + figures "^4.0.1" lodash "^4.17.21" mute-stream "0.0.8" - ora "^5.4.1" + ora "^6.1.2" run-async "^2.4.0" - rxjs "^7.5.5" - string-width "^4.1.0" - strip-ansi "^6.0.0" + rxjs "^7.5.6" + string-width "^5.1.2" + strip-ansi "^7.0.1" through "^2.3.6" - wrap-ansi "^7.0.0" + wrap-ansi "^8.0.1" internal-slot@^1.0.3: version "1.0.3" @@ -3008,9 +2797,9 @@ interpret@^1.0.0: integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA== ip@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.5.tgz#bdded70114290828c0a039e72ef25f5aaec4354a" - integrity sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo= + version "1.1.8" + resolved "https://registry.yarnpkg.com/ip/-/ip-1.1.8.tgz#ae05948f6b075435ed3307acce04629da8cdbf48" + integrity sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg== is-arguments@^1.1.0: version "1.1.1" @@ -3023,7 +2812,7 @@ is-arguments@^1.1.0: is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-arrayish@^0.3.1: version "0.3.2" @@ -3050,24 +2839,17 @@ is-callable@^1.1.4, is-callable@^1.2.4: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== -is-ci@3.0.1: +is-ci@3.0.1, is-ci@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867" integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ== dependencies: ci-info "^3.2.0" -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== - dependencies: - ci-info "^2.0.0" - -is-core-module@^2.2.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548" - integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw== +is-core-module@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.9.0.tgz#e1c34429cd51c6dd9e09e0799e396e27b19a9c69" + integrity sha512-+5FPy5PnwmO3lvfMb0AsoPaBG+5KHUI0wYFXOtYPnVVVspTFUuMZNfNaNVRt3FZadstu2c8x23vykRW/NBoU6A== dependencies: has "^1.0.3" @@ -3086,7 +2868,7 @@ is-docker@^2.0.0, is-docker@^2.1.1: is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== is-fullwidth-code-point@^3.0.0: version "3.0.0" @@ -3098,7 +2880,7 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^4.0.0, is-glob@^4.0.1: +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -3113,11 +2895,6 @@ is-installed-globally@^0.4.0: global-dirs "^3.0.0" is-path-inside "^3.0.2" -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - is-interactive@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-2.0.0.tgz#40c57614593826da1100ade6059778d597f16e90" @@ -3133,10 +2910,10 @@ is-negative-zero@^2.0.2: resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== -is-npm@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-5.0.0.tgz#43e8d65cc56e1b67f8d47262cf667099193f45a8" - integrity sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA== +is-npm@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-6.0.0.tgz#b59e75e8915543ca5d881ecff864077cba095261" + integrity sha512-JEjxbSmtPSt1c8XTkVrlujcXdKV1/tvuQ7GwKcAlyiVLeYFQ2VHat8xfrDJsIkhCdF/tZ7CiIR3sy141c6+gPQ== is-number-object@^1.0.4: version "1.0.7" @@ -3190,12 +2967,12 @@ is-shared-array-buffer@^1.0.2: dependencies: call-bind "^1.0.2" -is-ssh@^1.3.0: - version "1.3.3" - resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.3.3.tgz#7f133285ccd7f2c2c7fc897b771b53d95a2b2c7e" - integrity sha512-NKzJmQzJfEEma3w5cJNcUMxoXfDjz0Zj0eyCalHn2E6VOwlzjZo0yuO2fcBSf8zhFuVCL/82/r5gRcoi6aEPVQ== +is-ssh@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2" + integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ== dependencies: - protocols "^1.1.0" + protocols "^2.0.1" is-stream@^2.0.0: version "2.0.1" @@ -3224,14 +3001,9 @@ is-symbol@^1.0.2, is-symbol@^1.0.3: is-typedarray@^1.0.0, is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-unicode-supported@^1.1.0: +is-unicode-supported@^1.1.0, is-unicode-supported@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-1.2.0.tgz#f4f54f34d8ebc84a46b93559a036763b6d3e1014" integrity sha512-wH+U77omcRzevfIG8dDhTS0V9zZyweakfD01FULl97+0EHiJTTZtJqxPSkIIo/SDPv/i07k/C9jAPY+jwLLeUQ== @@ -3250,15 +3022,15 @@ is-wsl@^2.2.0: dependencies: is-docker "^2.0.0" -is-yarn-global@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" - integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== +is-yarn-global@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.4.0.tgz#714d94453327db9ea98fbf1a0c5f2b88f59ddd5c" + integrity sha512-HneQBCrXGBy15QnaDfcn6OLoU8AQPAa0Qn0IeJR/QCo4E8dNZaGGwxpCwWyEBQC5QvFonP8d6t60iGpAHVAfNA== isarray@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" - integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= + integrity sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ== isarray@^2.0.5: version "2.0.5" @@ -3268,38 +3040,27 @@ isarray@^2.0.5: isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== isexe@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== isstream@~0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== -istanbul-lib-instrument@^5.0.4: - version "5.0.4" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.0.4.tgz#e976f2aa66ebc6737f236d3ab05b76e36f885c80" - integrity sha512-W6jJF9rLGEISGoCyXRqa/JCGQGmmxPO10TMu7izaUTynxvBvTjqzAIIGCK9USBmIbQAaSWD6XJPrM9Pv5INknw== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.0.0" - semver "^6.3.0" - -istanbul-lib-instrument@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz#7b49198b657b27a730b8e9cb601f1e1bff24c59a" - integrity sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q== +istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.0.tgz#31d18bdd127f825dd02ea7bfdfd906f8ab840e9f" + integrity sha512-6Lthe1hqXHBNsqvgDzGO6l03XNeu3CrG4RqQ1KM9+l5+jNGpEJfIELx1NS3SEHmJQA8np/u+E4EPRKRiu6m19A== dependencies: "@babel/core" "^7.12.3" "@babel/parser" "^7.14.7" @@ -3326,9 +3087,9 @@ istanbul-lib-source-maps@^4.0.0: source-map "^0.6.1" istanbul-reports@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.3.tgz#4bcae3103b94518117930d51283690960b50d3c2" - integrity sha512-x9LtDVtfm/t1GFiLl3NffC7hz+I1ragvgX1P/Lg1NlIagifZDKUkuuaAxH/qpwj2IuEfD8G2Bs/UKp+sZ/pKkg== + version "3.1.4" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.4.tgz#1b6f068ecbc6c331040aab5741991273e609e40c" + integrity sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw== dependencies: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" @@ -3769,10 +3530,17 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== jsdom@^16.6.0: version "16.7.0" @@ -3812,11 +3580,6 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-buffer@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" - integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= - json-buffer@3.0.1, json-buffer@~3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" @@ -3832,32 +3595,25 @@ json-schema-traverse@^0.4.1: resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-schema@0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" - integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= +json-schema@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" + integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== json-stable-stringify-without-jsonify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== json-stringify-safe@^5.0.1, json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@2.x, json5@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" - integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== - dependencies: - minimist "^1.2.5" +json5@2.x, json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== json5@^1.0.1: version "1.0.1" @@ -3869,33 +3625,26 @@ json5@^1.0.1: jsonfile@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== optionalDependencies: graceful-fs "^4.1.6" jsprim@^1.2.2: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" - integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + version "1.4.2" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" + integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== dependencies: assert-plus "1.0.0" extsprintf "1.3.0" - json-schema "0.2.3" + json-schema "0.4.0" verror "1.10.0" -keyv@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" - integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== - dependencies: - json-buffer "3.0.0" - keyv@^4.0.0: - version "4.2.2" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.2.2.tgz#4b6f602c0228ef4d8214c03c520bef469ed6b768" - integrity sha512-uYS0vKTlBIjNCAUqrjlxmruxOEiZxZIHXyp32sdcGmP+ukFrmWUnE//RcPXJH3Vxrni1H2gsQbjHE0bH7MtMQQ== + version "4.3.2" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.3.2.tgz#e839df676a0c7ee594c8835e7c1c83742558e5c2" + integrity sha512-kn8WmodVBe12lmHpA6W8OY7SNh6wVR+Z+wZESF4iF5FCazaVXGWOtnbnvX0tMQ1bO+/TmOD9LziuYMvrIIs0xw== dependencies: - compress-brotli "^1.3.6" + compress-brotli "^1.3.8" json-buffer "3.0.1" kind-of@^6.0.3: @@ -3913,17 +3662,17 @@ kuler@^2.0.0: resolved "https://registry.yarnpkg.com/kuler/-/kuler-2.0.0.tgz#e2c570a3800388fb44407e851531c1d670b061b3" integrity sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A== -latest-version@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" - integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== +latest-version@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-7.0.0.tgz#843201591ea81a4d404932eeb61240fe04e9e5da" + integrity sha512-KvNT4XqAMzdcL6ka6Tl3i2lYeFDgXNCuIX+xNx6ZMVR1dFq+idXd9FLKNMOIx0t9mJ9/HudyX4oZWXZQ0UJHeg== dependencies: - package-json "^6.3.0" + package-json "^8.1.0" lcov-parse@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0" - integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A= + integrity sha512-aprLII/vPzuQvYZnDRU78Fns9I2Ag3gi4Ipga/hxnVMCZC8DnR2nI7XBqrPoywGfxqIx/DgarGvDJZAD3YBTgQ== leven@^3.1.0: version "3.1.0" @@ -3941,15 +3690,15 @@ levn@^0.4.1: levn@~0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + integrity sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA== dependencies: prelude-ls "~1.1.2" type-check "~0.3.2" lines-and-columns@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" - integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== loader-utils@^1.0.2: version "1.4.0" @@ -3967,31 +3716,28 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + lodash-es@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee" integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw== -lodash.clonedeep@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= - lodash.memoize@4.x: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= + integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== lodash.merge@^4.6.2: version "4.6.2" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM= - lodash@4.17.21, lodash@^4.17.21, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -4002,14 +3748,6 @@ log-driver@^1.2.7: resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== -log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - log-symbols@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-5.1.0.tgz#a20e3b9a5f53fac6aeb8e2bb22c07cf2c8f16d93" @@ -4019,9 +3757,9 @@ log-symbols@^5.1.0: is-unicode-supported "^1.1.0" logform@^2.3.2, logform@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/logform/-/logform-2.4.0.tgz#131651715a17d50f09c2a2c1a524ff1a4164bcfe" - integrity sha512-CPSJw4ftjf517EhXZGGvTHHkYobo7ZCc0kvwUoOYcjfR2UVrI66RHj8MCrfAdEitdmFqbu2BYdYs8FHHZSb6iw== + version "2.4.2" + resolved "https://registry.yarnpkg.com/logform/-/logform-2.4.2.tgz#a617983ac0334d0c3b942c34945380062795b47c" + integrity sha512-W4c9himeAwXEdZ05dQNerhFz2XG80P9Oj0loPUMV23VC2it0orMHQhJm4hdnnor3rd1HsGf6a2lPwBM1zeXHGw== dependencies: "@colors/colors" "1.5.0" fecha "^4.2.0" @@ -4029,11 +3767,6 @@ logform@^2.3.2, logform@^2.4.0: safe-stable-stringify "^2.3.1" triple-beam "^1.3.0" -lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" - integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== - lowercase-keys@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" @@ -4059,9 +3792,9 @@ lru-cache@^6.0.0: yallist "^4.0.0" macos-release@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-3.0.1.tgz#7d2a1329a616297db4a57f3d3ba8fa07a7caadd6" - integrity sha512-3l6OrhdDg2H2SigtuN3jBh+5dRJRWxNKuJTPBbGeNJTsmt/pj9PO25wYaNb05NuNmAsl435j4rDP6rgNXz7s7g== + version "3.1.0" + resolved "https://registry.yarnpkg.com/macos-release/-/macos-release-3.1.0.tgz#6165bb0736ae567ed6649e36ce6a24d87cbb7aca" + integrity sha512-/M/R0gCDgM+Cv1IuBG1XGdfTFnMEG6PZeT+KGWHO/OG+imqmaD9CH5vHBTycEM3+Kc4uG2Il+tFAuUWLqQOeUA== make-dir@^3.0.0: version "3.1.0" @@ -4075,12 +3808,12 @@ make-error@1.x: resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== -makeerror@1.0.x: - version "1.0.11" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" - integrity sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw= +makeerror@1.0.12: + version "1.0.12" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" + integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== dependencies: - tmpl "1.0.x" + tmpl "1.0.5" memory-fs@^0.5.0: version "0.5.0" @@ -4130,7 +3863,7 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== -mimic-response@^1.0.0, mimic-response@^1.0.1: +mimic-response@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== @@ -4140,10 +3873,10 @@ mimic-response@^3.1.0: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== -minimatch@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" - integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== +minimatch@^3.0.4, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" @@ -4170,9 +3903,9 @@ mute-stream@0.0.8: natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -netmask@^2.0.1: +netmask@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/netmask/-/netmask-2.0.2.tgz#8b01a07644065d536383835823bc52004ebac5e7" integrity sha512-dBpDMdxv9Irdq66304OLfEmQ9tbNRFnFTuZiLo+bD+r332bBmMJ8GBLXklIXXgxd3+v9+KUnZaUR5PJMa75Gsg== @@ -4184,17 +3917,31 @@ new-github-release-url@2.0.0: dependencies: type-fest "^2.5.1" -nock@*, nock@13.2.6: - version "13.2.6" - resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.6.tgz#35e419cd9d385ffa67e59523d9699e41b29e1a03" - integrity sha512-GbyeSwSEP0FYouzETZ0l/XNm5tNcDNcXJKw3LCAb+mx8bZSwg1wEEvdL0FAyg5TkBJYiWSCtw6ag4XfmBy60FA== +nock@*, nock@13.2.9: + version "13.2.9" + resolved "https://registry.yarnpkg.com/nock/-/nock-13.2.9.tgz#4faf6c28175d36044da4cfa68e33e5a15086ad4c" + integrity sha512-1+XfJNYF1cjGB+TKMWi29eZ0b82QOvQs2YoLNzbpWGqFMtRQHTa57osqdGj4FrFPgkO4D4AZinzUJR9VvW3QUA== dependencies: debug "^4.1.0" json-stringify-safe "^5.0.1" lodash "^4.17.21" propagate "^2.0.0" -node-fetch@^2.6.1: +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-fetch@3.2.10: + version "3.2.10" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.10.tgz#e8347f94b54ae18b57c9c049ef641cef398a85c8" + integrity sha512-MhuzNwdURnZ1Cp4XTazr69K0BTizsBroX7Zx3UgDSVcZYKF/6p0CBe4EUb/hLqmzVhl0UpYfgRljQ4yxE+iCxA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + +node-fetch@^2.6.7: version "2.6.7" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== @@ -4204,23 +3951,18 @@ node-fetch@^2.6.1: node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= + integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.0, node-releases@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" - integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== +node-releases@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.5.tgz#280ed5bc3eba0d96ce44897d8aee478bfb3d9666" + integrity sha512-U9h1NLROZTq9uE1SNffn6WuPDg8icmi3ns4rEl/oTfIle4iLjTliCzgTsbaIFMq/Xn078/lfY/BL0GWZ+psK4Q== normalize-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -normalize-url@^4.1.0: - version "4.5.1" - resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a" - integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA== - normalize-url@^6.0.1, normalize-url@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a" @@ -4241,24 +3983,19 @@ npm-run-path@^5.1.0: path-key "^4.0.0" nwsapi@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" - integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== + version "2.2.1" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.1.tgz#10a9f268fbf4c461249ebcfe38e359aa36e2577c" + integrity sha512-JYOWTeFoS0Z93587vRJgASD5Ut11fYl5NyihP3KrYBvMe1FRRs6RN7m20SA/16GM4P6hTnZjT+UmDOt38UeXNg== oauth-sign@~0.9.0: version "0.9.0" resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== -object-inspect@^1.12.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" - integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== - -object-inspect@^1.9.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.11.0.tgz#9dceb146cedd4148a0d9e51ab88d34cf509922b1" - integrity sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg== +object-inspect@^1.12.0, object-inspect@^1.9.0: + version "1.12.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.2.tgz#c0641f26394532f28ab8d796ab954e43c009a8ea" + integrity sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ== object-keys@^1.1.1: version "1.1.1" @@ -4278,7 +4015,7 @@ object.assign@^4.1.2: once@^1.3.0, once@^1.3.1, once@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" @@ -4336,10 +4073,10 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -ora@6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-6.1.0.tgz#86aa07058c4e9fb91444412d103b0d7e01aca973" - integrity sha512-CxEP6845hLK+NHFWZ+LplGO4zfw4QSfxTlqMfvlJ988GoiUeZDMzCvqsZkFHv69sPICmJH1MDxZoQFOKXerAVw== +ora@6.1.2, ora@^6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/ora/-/ora-6.1.2.tgz#7b3c1356b42fd90fb1dad043d5dbe649388a0bf5" + integrity sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw== dependencies: bl "^5.0.0" chalk "^5.0.0" @@ -4351,21 +4088,6 @@ ora@6.1.0: strip-ansi "^7.0.1" wcwidth "^1.0.1" -ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - os-name@5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/os-name/-/os-name-5.0.1.tgz#acb4f996ec5bd86c41755fef9d6d31905c47172e" @@ -4377,12 +4099,7 @@ os-name@5.0.1: os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= - -p-cancelable@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" - integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== p-cancelable@^3.0.0: version "3.0.0" @@ -4396,6 +4113,13 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + p-locate@^4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" @@ -4403,6 +4127,13 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -4424,23 +4155,23 @@ pac-proxy-agent@^5.0.0: socks-proxy-agent "5" pac-resolver@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/pac-resolver/-/pac-resolver-5.0.0.tgz#1d717a127b3d7a9407a16d6e1b012b13b9ba8dc0" - integrity sha512-H+/A6KitiHNNW+bxBKREk2MCGSxljfqRX76NjummWEYIat7ldVXRU3dhRIE3iXZ0nvGBk6smv3nntxKkzRL8NA== + version "5.0.1" + resolved "https://registry.yarnpkg.com/pac-resolver/-/pac-resolver-5.0.1.tgz#c91efa3a9af9f669104fa2f51102839d01cde8e7" + integrity sha512-cy7u00ko2KVgBAjuhevqpPeHIkCIqPe1v24cydhWjmeuzaBfmUWFCZJ1iAh5TuVzVZoUzXIW7K8sMYOZ84uZ9Q== dependencies: - degenerator "^3.0.1" + degenerator "^3.0.2" ip "^1.1.5" - netmask "^2.0.1" + netmask "^2.0.2" -package-json@^6.3.0: - version "6.5.0" - resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" - integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== +package-json@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/package-json/-/package-json-8.1.0.tgz#2a22806f1ed7c786c8e6ff26cfe20003bf4c6850" + integrity sha512-hySwcV8RAWeAfPsXb9/HGSPn8lwDnv6fabH+obUZKX169QknRkRhPxd1yMubpKDskLFATkl3jHpNtVtDPFA0Wg== dependencies: - got "^9.6.0" - registry-auth-token "^4.0.0" - registry-url "^5.0.0" - semver "^6.2.0" + got "^12.1.0" + registry-auth-token "^5.0.1" + registry-url "^6.0.0" + semver "^7.3.7" parent-module@^1.0.0: version "1.0.1" @@ -4459,25 +4190,22 @@ parse-json@^5.0.0, parse-json@^5.2.0: json-parse-even-better-errors "^2.3.0" lines-and-columns "^1.1.6" -parse-path@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-4.0.3.tgz#82d81ec3e071dcc4ab49aa9f2c9c0b8966bb22bf" - integrity sha512-9Cepbp2asKnWTJ9x2kpw6Fe8y9JDbqwahGCTvklzd/cEq5C5JC59x2Xb0Kx+x0QZ8bvNquGO8/BWP0cwBHzSAA== +parse-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/parse-path/-/parse-path-5.0.0.tgz#f933152f3c6d34f4cf36cfc3d07b138ac113649d" + integrity sha512-qOpH55/+ZJ4jUu/oLO+ifUKjFPNZGfnPJtzvGzKN/4oLMil5m9OH4VpOj6++9/ytJcfks4kzH2hhi87GL/OU9A== dependencies: - is-ssh "^1.3.0" - protocols "^1.4.0" - qs "^6.9.4" - query-string "^6.13.8" + protocols "^2.0.0" -parse-url@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-6.0.0.tgz#f5dd262a7de9ec00914939220410b66cff09107d" - integrity sha512-cYyojeX7yIIwuJzledIHeLUBVJ6COVLeT4eF+2P6aKVzwvgKQPndCBv3+yQ7pcWjqToYwaligxzSYNNmGoMAvw== +parse-url@^7.0.2: + version "7.0.2" + resolved "https://registry.yarnpkg.com/parse-url/-/parse-url-7.0.2.tgz#d21232417199b8d371c6aec0cedf1406fd6393f0" + integrity sha512-PqO4Z0eCiQ08Wj6QQmrmp5YTTxpYfONdOEamrtvK63AmzXpcavIVQubGHxOEwiIoDZFb8uDOoQFS0NCcjqIYQg== dependencies: - is-ssh "^1.3.0" + is-ssh "^1.4.0" normalize-url "^6.1.0" - parse-path "^4.0.0" - protocols "^1.4.0" + parse-path "^5.0.0" + protocols "^2.0.1" parse5@6.0.1: version "6.0.1" @@ -4492,7 +4220,7 @@ path-exists@^4.0.0: path-is-absolute@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" @@ -4504,7 +4232,7 @@ path-key@^4.0.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== -path-parse@^1.0.6: +path-parse@^1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -4517,27 +4245,22 @@ path-type@^4.0.0: performance-now@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== picocolors@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== -picomatch@^2.0.4, picomatch@^2.2.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" - integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== - -picomatch@^2.3.1: +picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== pirates@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.4.tgz#07df81e61028e402735cdd49db701e4885b4e6e6" - integrity sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw== + version "4.0.5" + resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" + integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== pkg-dir@^4.2.0: version "4.2.0" @@ -4554,12 +4277,7 @@ prelude-ls@^1.2.1: prelude-ls@~1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= - -prepend-http@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" - integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= + integrity sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w== pretty-format@^27.0.0, pretty-format@^27.5.1: version "27.5.1" @@ -4575,11 +4293,6 @@ process-nextick-args@~2.0.0: resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== -progress@^2.0.0: - version "2.0.3" - resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" - integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== - promise.allsettled@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/promise.allsettled/-/promise.allsettled-1.0.5.tgz#2443f3d4b2aa8dfa560f6ac2aa6c4ea999d75f53" @@ -4605,10 +4318,15 @@ propagate@^2.0.0: resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag== -protocols@^1.1.0, protocols@^1.4.0: - version "1.4.8" - resolved "https://registry.yarnpkg.com/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8" - integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg== +proto-list@~1.2.1: + version "1.2.4" + resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" + integrity sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA== + +protocols@^2.0.0, protocols@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86" + integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q== proxy-agent@5.0.0: version "5.0.0" @@ -4632,12 +4350,12 @@ proxy-from-env@^1.0.0: prr@~1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - integrity sha1-0/wRS6BplaRexok/SEzrHXj19HY= + integrity sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw== psl@^1.1.28, psl@^1.1.33: - version "1.8.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" - integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== + version "1.9.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== pump@^3.0.0: version "3.0.0" @@ -4652,34 +4370,17 @@ punycode@^2.1.0, punycode@^2.1.1: resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== -pupa@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" - integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== +pupa@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/pupa/-/pupa-3.1.0.tgz#f15610274376bbcc70c9a3aa8b505ea23f41c579" + integrity sha512-FLpr4flz5xZTSJxSeaheeMKN/EDzMdK7b8PTOC6a5PYFKTucWbdqjgqaEyH0shFiSJrVB1+Qqi4Tk19ccU6Aug== dependencies: - escape-goat "^2.0.0" - -qs@^6.9.4: - version "6.10.1" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.10.1.tgz#4931482fa8d647a5aab799c5271d2133b981fb6a" - integrity sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg== - dependencies: - side-channel "^1.0.4" + escape-goat "^4.0.0" qs@~6.5.2: - version "6.5.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" - integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== - -query-string@^6.13.8: - version "6.14.1" - resolved "https://registry.yarnpkg.com/query-string/-/query-string-6.14.1.tgz#7ac2dca46da7f309449ba0f86b1fd28255b0c86a" - integrity sha512-XDxAeVmpfu1/6IjyT/gXHOl+S0vQ9owggJ30hhWKdHAsNPOcasn5o9BW0eejZqL2e4vMjhAxoW3jVHcD6mbcYw== - dependencies: - decode-uri-component "^0.2.0" - filter-obj "^1.1.0" - split-on-first "^1.0.0" - strict-uri-encode "^2.0.0" + version "6.5.3" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" + integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== queue-microtask@^1.2.2: version "1.2.3" @@ -4701,7 +4402,7 @@ raw-body@^2.2.0: iconv-lite "0.4.24" unpipe "1.0.0" -rc@^1.2.8: +rc@1.2.8: version "1.2.8" resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== @@ -4719,7 +4420,7 @@ react-is@^17.0.1: readable-stream@1.1.x: version "1.1.14" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.1.14.tgz#7cf4c54ef648e3813084c636dd2079e166c081d9" - integrity sha1-fPTFTvZI44EwhMY23SB54WbAgdk= + integrity sha512-+MeVjFf4L44XUkhM1eYbD8fyEsxcV81pqMSR5gblfcLCHfZvbrqy4/qYHE+/R5HoBUT11WV5O08Cr1n3YXkWVQ== dependencies: core-util-is "~1.0.0" inherits "~2.0.1" @@ -4751,60 +4452,70 @@ readable-stream@^3.4.0, readable-stream@^3.6.0: rechoir@^0.6.2: version "0.6.2" resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" - integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q= + integrity sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw== dependencies: resolve "^1.1.6" -regexpp@^3.1.0: +regexp.prototype.flags@^1.4.3: + version "1.4.3" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" + integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + functions-have-names "^1.2.2" + +regexpp@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== -registry-auth-token@^4.0.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" - integrity sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw== +registry-auth-token@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-5.0.1.tgz#5e6cd106e6c251135a046650c58476fc03e92833" + integrity sha512-UfxVOj8seK1yaIOiieV4FIP01vfBDLsY0H9sQzi9EbbUdJiuuBjJgLa1DpImXMNPnVkBD4eVxTEXcrZA6kfpJA== dependencies: - rc "^1.2.8" + "@pnpm/npm-conf" "^1.0.4" -registry-url@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" - integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== +registry-url@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-6.0.1.tgz#056d9343680f2f64400032b1e199faa692286c58" + integrity sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q== dependencies: - rc "^1.2.8" + rc "1.2.8" -release-it@15.0.0: - version "15.0.0" - resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.0.0.tgz#82be33b3d483b2832b6a43faf765fdb82af6bc2a" - integrity sha512-Dnio6p+1O88UdQZmPjdXqq+Nrrn5t0USZyOctTPK5M36kOOfQTdp8V1Wlagz9QYIYr93NwovEZ+f4wK0P/kHbw== +release-it@15.4.0: + version "15.4.0" + resolved "https://registry.yarnpkg.com/release-it/-/release-it-15.4.0.tgz#dad3909a40a465681e085ed0fdc006322f681459" + integrity sha512-l7ZHfg5SHXWaAQy5gUS1dowryqjLevpXKvyNt8V7QCqqGQO/IvQEfLnc5xx4unBgJvxjt/X2f9KZ8FOzRnaT9w== dependencies: "@iarna/toml" "2.2.5" - "@octokit/rest" "18.12.0" + "@octokit/rest" "19.0.3" async-retry "1.3.3" chalk "5.0.1" cosmiconfig "7.0.1" execa "6.1.0" form-data "4.0.0" - git-url-parse "11.6.0" - globby "13.1.1" - got "12.0.4" - inquirer "8.2.4" + git-url-parse "12.0.0" + globby "13.1.2" + got "12.3.1" + inquirer "9.1.0" is-ci "3.0.1" lodash "4.17.21" mime-types "2.1.35" new-github-release-url "2.0.0" + node-fetch "3.2.10" open "8.4.0" - ora "6.1.0" + ora "6.1.2" os-name "5.0.1" promise.allsettled "1.0.5" proxy-agent "5.0.0" semver "7.3.7" shelljs "0.8.5" - update-notifier "5.1.0" + update-notifier "6.0.2" url-join "5.0.0" wildcard-match "5.1.2" - yargs-parser "21.0.1" + yargs-parser "21.1.1" request@^2.88.2: version "2.88.2" @@ -4835,12 +4546,7 @@ request@^2.88.2: require-directory@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== resolve-alpn@^1.2.0: version "1.2.1" @@ -4870,19 +4576,13 @@ resolve.exports@^1.1.0: integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== resolve@>=1.9.0, resolve@^1.1.6, resolve@^1.20.0: - version "1.20.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" - integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== + version "1.22.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" + integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== dependencies: - is-core-module "^2.2.0" - path-parse "^1.0.6" - -responselike@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" - integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec= - dependencies: - lowercase-keys "^1.0.0" + is-core-module "^2.9.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" responselike@^2.0.0: version "2.0.0" @@ -4891,14 +4591,6 @@ responselike@^2.0.0: dependencies: lowercase-keys "^2.0.0" -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - restore-cursor@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-4.0.0.tgz#519560a4318975096def6e609d44100edaa4ccb9" @@ -4936,10 +4628,10 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -rxjs@^7.5.5: - version "7.5.5" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.5.tgz#2ebad89af0f560f460ad5cc4213219e1f7dd4e9f" - integrity sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw== +rxjs@^7.5.6: + version "7.5.6" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.5.6.tgz#0446577557862afd6903517ce7cae79ecb9662bc" + integrity sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw== dependencies: tslib "^2.1.0" @@ -4970,21 +4662,21 @@ saxes@^5.0.1: dependencies: xmlchars "^2.2.0" -semver-diff@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" - integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== +semver-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-4.0.0.tgz#3afcf5ed6d62259f5c72d0d5d50dffbdc9680df5" + integrity sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA== dependencies: - semver "^6.3.0" + semver "^7.3.5" -semver@7.3.7, semver@7.x, semver@^7.2.1, semver@^7.3.2, semver@^7.3.4, semver@^7.3.5: +semver@7.3.7, semver@7.x, semver@^7.3.2, semver@^7.3.5, semver@^7.3.7: version "7.3.7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f" integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g== dependencies: lru-cache "^6.0.0" -semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: +semver@^6.0.0, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -5024,12 +4716,7 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.5" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f" - integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== - -signal-exit@^3.0.7: +signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -5037,7 +4724,7 @@ signal-exit@^3.0.7: simple-swizzle@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/simple-swizzle/-/simple-swizzle-0.2.2.tgz#a4da6b635ffcccca33f70d17cb92592de95e557a" - integrity sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo= + integrity sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg== dependencies: is-arrayish "^0.3.1" @@ -5056,15 +4743,6 @@ slash@^4.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - smart-buffer@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" @@ -5088,42 +4766,32 @@ socks@^2.3.3: smart-buffer "^4.2.0" source-map-support@^0.5.6: - version "0.5.20" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.20.tgz#12166089f8f5e5e8c56926b377633392dd2cb6c9" - integrity sha512-n1lZZ8Ve4ksRqizaBQgxXDgKwttHDhyfQjA6YZZn8+AroHbsIz+JjwxQDxbp+7y5OYCI8t1Yk7etjD9CRd2hIw== + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== dependencies: buffer-from "^1.0.0" source-map "^0.6.0" -source-map@^0.5.0: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -split-on-first@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" - integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== sprintf-js@~1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== sshpk@^1.7.0: - version "1.16.1" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" - integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + version "1.17.0" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.17.0.tgz#578082d92d4fe612b13007496e543fa0fbcbe4c5" + integrity sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ== dependencies: asn1 "~0.2.3" assert-plus "^1.0.0" @@ -5138,7 +4806,7 @@ sshpk@^1.7.0: stack-trace@0.0.x: version "0.0.10" resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" - integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA= + integrity sha512-KGzahc7puUKkzyMt+IqAep+TVNbKP+k2Lmwhub39m1AsTSkaDutx56aDCo+HLDzf/D26BIHTJWNiTG1KAJiQCg== stack-utils@^2.0.3: version "2.0.5" @@ -5152,11 +4820,6 @@ statuses@2.0.1: resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== -strict-uri-encode@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" - integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= - string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -5165,7 +4828,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +string-width@^4.1.0, string-width@^4.2.0: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -5174,21 +4837,32 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2 is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.1" -string.prototype.trimend@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" - integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A== +string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" -string.prototype.trimstart@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" - integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw== +string.prototype.trimend@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.5.tgz#914a65baaab25fbdd4ee291ca7dde57e869cb8d0" + integrity sha512-I7RGvmjV4pJ7O3kdf+LXFpVfdNOxtCW/2C8f6jNiW4+PQchwxkCDzlk1/7p+Wl4bqFIZeF47qAHXLuHHWKAxog== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" + define-properties "^1.1.4" + es-abstract "^1.19.5" + +string.prototype.trimstart@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.5.tgz#5466d93ba58cfa2134839f81d7f42437e8c01fef" + integrity sha512-THx16TJCGlsN0o6dl2o6ncWUsdgnLRSA23rRE5pyGBw/mLr3Ej/R2LaqCtgP8VNMGZsvMWnf9ooZPyY2bHvUFg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.19.5" string_decoder@^1.1.1: version "1.3.0" @@ -5200,7 +4874,7 @@ string_decoder@^1.1.1: string_decoder@~0.10.x: version "0.10.31" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" - integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= + integrity sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ== string_decoder@~1.1.1: version "1.1.1" @@ -5246,7 +4920,7 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== supports-color@^5.3.0: version "5.5.0" @@ -5277,23 +4951,16 @@ supports-hyperlinks@^2.0.0: has-flag "^4.0.0" supports-color "^7.0.0" +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + symbol-tree@^3.2.4: version "3.2.4" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== -table@^6.0.9: - version "6.7.2" - resolved "https://registry.yarnpkg.com/table/-/table-6.7.2.tgz#a8d39b9f5966693ca8b0feba270a78722cbaf3b0" - integrity sha512-UFZK67uvyNivLeQbVtkiUs8Uuuxv24aSL4/Vil2PJVtMgU8Lx0CYkP12uCGa3kjyQzOSgV1+z9Wkb82fCGsO0g== - dependencies: - ajv "^8.0.1" - lodash.clonedeep "^4.5.0" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - tapable@^1.0.0: version "1.1.3" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" @@ -5324,7 +4991,7 @@ text-hex@1.0.x: text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== throat@^6.0.1: version "6.0.1" @@ -5334,7 +5001,7 @@ throat@^6.0.1: through@^2.3.6: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== tmp@^0.0.33: version "0.0.33" @@ -5343,7 +5010,7 @@ tmp@^0.0.33: dependencies: os-tmpdir "~1.0.2" -tmpl@1.0.x: +tmpl@1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== @@ -5351,12 +5018,7 @@ tmpl@1.0.x: to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= - -to-readable-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" - integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== to-regex-range@^5.0.1: version "5.0.1" @@ -5397,7 +5059,7 @@ tr46@^2.1.0: tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== triple-beam@^1.3.0: version "1.3.0" @@ -5414,9 +5076,9 @@ ts-auto-mock@^3.3.5: winston "^3.7.2" ts-jest@^27.0.4: - version "27.1.4" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.4.tgz#84d42cf0f4e7157a52e7c64b1492c46330943e00" - integrity sha512-qjkZlVPWVctAezwsOD1OPzbZ+k7zA5z3oxII4dGdZo5ggX/PL7kvwTM0pXTr10fAtbiVpJaL3bWd502zAhpgSQ== + version "27.1.5" + resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.5.tgz#0ddf1b163fbaae3d5b7504a1e65c914a95cff297" + integrity sha512-Xv6jBQPoBEvBq/5i2TeSG9tt/nqkbpcurrEG1b+2yfBrcJelOZF9Ml6dmyMh7bcW9JyFbRYpR5rxROSlBLTZHA== dependencies: bs-logger "0.x" fast-json-stable-stringify "2.x" @@ -5465,14 +5127,14 @@ ttypescript@^1.5.10: tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== dependencies: safe-buffer "^5.0.1" tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5" resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" @@ -5484,7 +5146,7 @@ type-check@^0.4.0, type-check@~0.4.0: type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + integrity sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg== dependencies: prelude-ls "~1.1.2" @@ -5503,10 +5165,15 @@ type-fest@^0.21.3: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -type-fest@^2.5.1: - version "2.12.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.12.2.tgz#80a53614e6b9b475eb9077472fb7498dc7aa51d0" - integrity sha512-qt6ylCGpLjZ7AaODxbpyBZSs9fCI9SkL3Z9q2oxMBQhs/uyY+VD8jHA8ULCGmWQJlBgqvO3EJeAngOHD8zQCrQ== +type-fest@^1.0.1, type-fest@^1.0.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" + integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== + +type-fest@^2.13.0, type-fest@^2.5.1: + version "2.16.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.16.0.tgz#1250fbd64dafaf4c8e405e393ef3fb16d9651db2" + integrity sha512-qpaThT2HQkFb83gMOrdKVsfCN7LKxP26Yq+smPzY1FqoHRjqmjqHXA7n5Gkxi8efirtbeEUxzfEdePthQWCuHw== typedarray-to-buffer@^3.1.5: version "3.1.5" @@ -5515,12 +5182,12 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@4.7.3: - version "4.7.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.3.tgz#8364b502d5257b540f9de4c40be84c98e23a129d" - integrity sha512-WOkT3XYvrpXx4vMMqlD+8R8R37fZkjyLGlxavMc4iB8lrl8L0DeTcHbYgw/v0N/z9wAFsgBhcsF0ruoySS22mA== +typescript@4.7.4: + version "4.7.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" + integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== -unbox-primitive@^1.0.1: +unbox-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== @@ -5530,12 +5197,12 @@ unbox-primitive@^1.0.1: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" -unique-string@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" - integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== +unique-string@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-3.0.0.tgz#84a1c377aff5fd7a8bc6b55d8244b2bd90d75b9a" + integrity sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ== dependencies: - crypto-random-string "^2.0.0" + crypto-random-string "^4.0.0" universal-user-agent@^6.0.0: version "6.0.0" @@ -5550,27 +5217,35 @@ universalify@^0.1.0, universalify@^0.1.2: unpipe@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -update-notifier@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-5.1.0.tgz#4ab0d7c7f36a231dd7316cf7729313f0214d9ad9" - integrity sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw== +update-browserslist-db@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.4.tgz#dbfc5a789caa26b1db8990796c2c8ebbce304824" + integrity sha512-jnmO2BEGUjsMOe/Fg9u0oczOe/ppIDZPebzccl1yDWGLFP16Pa1/RM5wEoKYPG2zstNcDuAStejyxsOuKINdGA== dependencies: - boxen "^5.0.0" - chalk "^4.1.0" - configstore "^5.0.1" - has-yarn "^2.1.0" - import-lazy "^2.1.0" - is-ci "^2.0.0" + escalade "^3.1.1" + picocolors "^1.0.0" + +update-notifier@6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-6.0.2.tgz#a6990253dfe6d5a02bd04fbb6a61543f55026b60" + integrity sha512-EDxhTEVPZZRLWYcJ4ZXjGFN0oP7qYvbXWzEgRm/Yql4dHX5wDbvh89YHP6PK1lzZJYrMtXUuZZz8XGK+U6U1og== + dependencies: + boxen "^7.0.0" + chalk "^5.0.1" + configstore "^6.0.0" + has-yarn "^3.0.0" + import-lazy "^4.0.0" + is-ci "^3.0.1" is-installed-globally "^0.4.0" - is-npm "^5.0.0" - is-yarn-global "^0.3.0" - latest-version "^5.1.0" - pupa "^2.1.1" - semver "^7.3.4" - semver-diff "^3.1.1" - xdg-basedir "^4.0.0" + is-npm "^6.0.0" + is-yarn-global "^0.4.0" + latest-version "^7.0.0" + pupa "^3.1.0" + semver "^7.3.7" + semver-diff "^4.0.0" + xdg-basedir "^5.1.0" uri-js@^4.2.2: version "4.4.1" @@ -5584,17 +5259,10 @@ url-join@5.0.0: resolved "https://registry.yarnpkg.com/url-join/-/url-join-5.0.0.tgz#c2f1e5cbd95fa91082a93b58a1f42fecb4bdbcf1" integrity sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA== -url-parse-lax@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" - integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww= - dependencies: - prepend-http "^2.0.0" - util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== uuid@^3.3.2: version "3.4.0" @@ -5607,9 +5275,9 @@ v8-compile-cache@^2.0.3: integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== v8-to-istanbul@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.0.tgz#0aeb763894f1a0a1676adf8a8b7612a38902446c" - integrity sha512-/PRhfd8aTNp9Ggr62HPzXg2XasNFGy5PBt0Rp04du7/8GNNSgxFL6WBTkgMKSL9bFjH+8kKEG3f37FmxiTqUUA== + version "8.1.1" + resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" + integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== dependencies: "@types/istanbul-lib-coverage" "^2.0.1" convert-source-map "^1.6.0" @@ -5618,16 +5286,16 @@ v8-to-istanbul@^8.1.0: verror@1.10.0: version "1.10.0" resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== dependencies: assert-plus "^1.0.0" core-util-is "1.0.2" extsprintf "^1.2.0" vm2@^3.9.8: - version "3.9.9" - resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.9.tgz#c0507bc5fbb99388fad837d228badaaeb499ddc5" - integrity sha512-xwTm7NLh/uOjARRBs8/95H0e8fT3Ukw5D/JJWhxMbhKzNh1Nu981jQKvkep9iKYNxzlVrdzD0mlBGkDKZWprlw== + version "3.9.10" + resolved "https://registry.yarnpkg.com/vm2/-/vm2-3.9.10.tgz#c66543096b5c44c8861a6465805c23c7cc996a44" + integrity sha512-AuECTSvwu2OHLAZYhG716YzwodKCIJxB6u1zG7PgSQwIgAlEaoXH52bxdcvT8GkGjnYK7r7yWDW0m0sOsPuBjQ== dependencies: acorn "^8.7.0" acorn-walk "^8.2.0" @@ -5647,23 +5315,28 @@ w3c-xmlserializer@^2.0.0: xml-name-validator "^3.0.0" walker@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" - integrity sha1-L3+bj9ENZ3JisYqITijRlhjgKPs= + version "1.0.8" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" + integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== dependencies: - makeerror "1.0.x" + makeerror "1.0.12" wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g= + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== dependencies: defaults "^1.0.3" +web-streams-polyfill@^3.0.3: + version "3.2.1" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz#71c2718c52b45fd49dbeee88634b3a60ceab42a6" + integrity sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q== + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== webidl-conversions@^5.0.0: version "5.0.0" @@ -5690,7 +5363,7 @@ whatwg-mimetype@^2.3.0: whatwg-url@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0= + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== dependencies: tr46 "~0.0.3" webidl-conversions "^3.0.0" @@ -5722,12 +5395,12 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -widest-line@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" - integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== +widest-line@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-4.0.1.tgz#a0fc673aaba1ea6f0a0d35b3c2795c9a9cc2ebf2" + integrity sha512-o0cyEG0e8GPzT4iGHphIOh0cJOV8fivsXxddQasHPHfoZf1ZexrfeA21w2NaEN1RHE+fXlfISmOE8R9N3u3Qig== dependencies: - string-width "^4.0.0" + string-width "^5.0.1" wildcard-match@5.1.2: version "5.1.2" @@ -5751,9 +5424,9 @@ winston-transport@^4.5.0: triple-beam "^1.3.0" winston@^3.7.2: - version "3.7.2" - resolved "https://registry.yarnpkg.com/winston/-/winston-3.7.2.tgz#95b4eeddbec902b3db1424932ac634f887c400b1" - integrity sha512-QziIqtojHBoyzUOdQvQiar1DH0Xp9nF1A1y7NVy2DGEsz82SBDtOalS0ulTRGVT14xPX3WRWkCsdcJKqNflKng== + version "3.8.1" + resolved "https://registry.yarnpkg.com/winston/-/winston-3.8.1.tgz#76f15b3478cde170b780234e0c4cf805c5a7fb57" + integrity sha512-r+6YAiCR4uI3N8eQNOg8k3P3PqwAm20cLKlzVD9E66Ch39+LZC+VH1UKf9JemQj2B3QoUHfKD7Poewn0Pr3Y1w== dependencies: "@dabh/diagnostics" "^2.0.2" async "^3.2.3" @@ -5780,12 +5453,21 @@ wrap-ansi@^7.0.0: string-width "^4.1.0" strip-ansi "^6.0.0" +wrap-ansi@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.0.1.tgz#2101e861777fec527d0ea90c57c6b03aac56a5b3" + integrity sha512-QFF+ufAqhoYHvoHdajT/Po7KoXVBPXS2bgjIam5isfWJPfIOnQZ50JtUiVvCv/sjgacf3yRrt2ZKUZ/V4itN4g== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + wrappy@1: version "1.0.2" resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== -write-file-atomic@^3.0.0: +write-file-atomic@^3.0.0, write-file-atomic@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== @@ -5796,14 +5478,14 @@ write-file-atomic@^3.0.0: typedarray-to-buffer "^3.1.5" ws@^7.4.6: - version "7.5.5" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.5.tgz#8b4bc4af518cfabd0473ae4f99144287b33eb881" - integrity sha512-BAkMFcAzl8as1G/hArkxOxq3G7pjUqQ3gzYbLL0/5zNkph70e+lCoxBGnm6AW1+/aiNeV4fnKqZ8m4GZewmH2w== + version "7.5.8" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.8.tgz#ac2729881ab9e7cbaf8787fe3469a48c5c7f636a" + integrity sha512-ri1Id1WinAX5Jqn9HejiGb8crfRio0Qgu8+MtL36rlTA6RLsMdWt1Az/19A2Qij6uSHUMphEFaTKa4WG+UNHNw== -xdg-basedir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" - integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== +xdg-basedir@^5.0.1, xdg-basedir@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-5.1.0.tgz#1efba19425e73be1bc6f2a6ceb52a3d2c884c0c9" + integrity sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ== xml-name-validator@^3.0.0: version "3.0.0" @@ -5818,7 +5500,7 @@ xmlchars@^2.2.0: xregexp@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943" - integrity sha1-UqY+VsoLhKfzpfPWGHLxJq16WUM= + integrity sha512-xl/50/Cf32VsGq/1R8jJE5ajH1yMCQkpmoS10QbFZWl2Oor4H0Me64Pu2yxvsRWK3m6soJbmGfzSR7BYmDcWAA== y18n@^5.0.5: version "5.0.8" @@ -5845,10 +5527,10 @@ yargs-parser@20.x, yargs-parser@^20.2.2: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== -yargs-parser@21.0.1: - version "21.0.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.0.1.tgz#0267f286c877a4f0f728fceb6f8a3e4cb95c6e35" - integrity sha512-9BK1jFpLzJROCI5TzwZL/TU4gqjK5xiHV/RfWLOahrjAko/e4DJkRDZQXfvqAsiZzzYhgAzbgz6lg48jcm4GLg== +yargs-parser@21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^16.2.0: version "16.2.0" @@ -5862,3 +5544,8 @@ yargs@^16.2.0: string-width "^4.2.0" y18n "^5.0.5" yargs-parser "^20.2.2" + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==