mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -1 +1 @@
|
||||
* @zaiddreakh @maassenbas @AlexandrosMor @peterojo @wboereboom @michaelpaul
|
||||
* @Adyen/javascript
|
||||
|
||||
14
.github/workflows/models.yml
vendored
14
.github/workflows/models.yml
vendored
@@ -8,8 +8,14 @@ jobs:
|
||||
name: Generate Models
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Generate models
|
||||
run: make models
|
||||
- run: make models
|
||||
- name: Set PR variables
|
||||
id: vars
|
||||
run: |
|
||||
cd build/spec
|
||||
echo ::set-output name=pr_title::"Update models"
|
||||
echo ::set-output name=pr_body::"OpenAPI spec or templates produced new models on $(date +%d-%m-%Y) \
|
||||
by [commit](https://github.com/Adyen/adyen-openapi/commit/$(git rev-parse HEAD))."
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
@@ -18,7 +24,7 @@ jobs:
|
||||
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}
|
||||
base: develop
|
||||
branch: automation/models
|
||||
title: Update models
|
||||
body: OpenAPI spec or templates produced new models.
|
||||
title: ${{ steps.vars.outputs.pr_title }}
|
||||
body: ${{ steps.vars.outputs.pr_body }}
|
||||
add-paths: |
|
||||
src/typings
|
||||
|
||||
2
.github/workflows/npmpublish.yml
vendored
2
.github/workflows/npmpublish.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12
|
||||
node-version: 14
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- run: |
|
||||
npm install
|
||||
|
||||
4
Makefile
4
Makefile
@@ -1,6 +1,6 @@
|
||||
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
|
||||
services:=binlookup checkout storedValue terminalManagement payments recurring payouts management legalEntityManagement balancePlatform platformsAccount platformsFund platformsNotificationConfiguration platformsHostedOnboardingPage transfer
|
||||
|
||||
# Generate models (for each service)
|
||||
models: $(services)
|
||||
@@ -13,11 +13,13 @@ payments: spec=PaymentService-v68
|
||||
recurring: spec=RecurringService-v68
|
||||
payouts: spec=PayoutService-v68
|
||||
management: spec=ManagementService-v1
|
||||
legalEntityManagement: spec=LegalEntityService-v2
|
||||
balancePlatform: spec=BalancePlatformService-v2
|
||||
platformsAccount: spec=AccountService-v6
|
||||
platformsFund: spec=FundService-v6
|
||||
platformsNotificationConfiguration: spec=NotificationConfigurationService-v6
|
||||
platformsHostedOnboardingPage: spec=HopService-v6
|
||||
transfer: spec=TransferService-v3
|
||||
|
||||
$(services): build/spec
|
||||
rm -rf src/typings/$@ build/model
|
||||
|
||||
11
README.md
11
README.md
@@ -13,25 +13,26 @@ 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**
|
||||
* [BIN lookup API](https://docs.adyen.com/api-explorer/#/BinLookup/v52/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**
|
||||
* [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**
|
||||
* [Legal Entity Management API](https://docs.adyen.com/api-explorer/#/legalentity/v2/overview): Manage legal entities that contain information required for verification. Current supported version: **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**
|
||||
* [Payouts API](https://docs.adyen.com/api-explorer/#/Payout/v68/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**
|
||||
* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6**
|
||||
* [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**
|
||||
* [Transfers API](https://docs.adyen.com/api-explorer/transfers/3/overview) The Transfers API provides endpoints that you can use to get information about all your transactions, move funds within your balance platform or send funds from your balance platform to a transfer instrument. **v3**
|
||||
|
||||
In addition it supports the following type collections:
|
||||
|
||||
* [Platforms Notifications Webhooks](https://docs.adyen.com/api-explorer/#/NotificationService/v6/overview) Current supported version: **v6**
|
||||
|
||||
For more information, refer to our [documentation](https://docs.adyen.com/) or the [API Explorer](https://docs.adyen.com/api-explorer/).
|
||||
|
||||
@@ -131,7 +132,7 @@ We strongly encourage you to join us in contributing to this repository so every
|
||||
Read our [**contribution guidelines**](CONTRIBUTING.md) to find out how to create a pull request.
|
||||
|
||||
## Support
|
||||
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://support.adyen.com/).
|
||||
If you have a feature request, or spotted a bug or a technical problem, create a GitHub issue. For other questions, contact our [support team](https://www.adyen.help).
|
||||
|
||||
## Licence
|
||||
This repository is available under the [MIT license](LICENSE).
|
||||
|
||||
12
package.json
12
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@adyen/api-library",
|
||||
"version": "12.0.0",
|
||||
"version": "12.1.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": "5.35.1",
|
||||
"@typescript-eslint/parser": "5.35.1",
|
||||
"@typescript-eslint/eslint-plugin": "5.41.0",
|
||||
"@typescript-eslint/parser": "5.41.0",
|
||||
"acorn": "^8.0.1",
|
||||
"coveralls": "3.1.1",
|
||||
"dotenv": "^16.0.0",
|
||||
"eslint": "8.22.0",
|
||||
"eslint": "8.26.0",
|
||||
"jest": "^27.0.6",
|
||||
"jest-ts-auto-mock": "^2.0.0",
|
||||
"kind-of": "^6.0.3",
|
||||
"minimist": ">=1.2.3",
|
||||
"nock": "13.2.9",
|
||||
"release-it": "15.4.0",
|
||||
"release-it": "15.5.0",
|
||||
"ts-auto-mock": "^3.3.5",
|
||||
"ts-jest": "^27.0.4",
|
||||
"ts-loader": "8.0.10",
|
||||
"ttypescript": "^1.5.10",
|
||||
"typescript": "4.7.4"
|
||||
"typescript": "4.8.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"https-proxy-agent": "5.0.1"
|
||||
|
||||
@@ -49,6 +49,8 @@ export const createClient = (apiKey = process.env.ADYEN_API_KEY): Client => {
|
||||
config.terminalManagementEndpoint = Client.TERMINAL_MANAGEMENT_API_ENDPOINT_TEST;
|
||||
config.managementEndpoint = Client.MANAGEMENT_API_ENDPOINT_TEST;
|
||||
config.balancePlatformEndpoint = Client.BALANCE_PLATFORM_API_ENDPOINT_TEST;
|
||||
config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST;
|
||||
config.transfersEndpoint = Client.TRANSFERS_API_VERSION_TEST;
|
||||
|
||||
return new Client({ config });
|
||||
};
|
||||
|
||||
233
src/__mocks__/legalEntityManagement/requests.ts
Normal file
233
src/__mocks__/legalEntityManagement/requests.ts
Normal file
@@ -0,0 +1,233 @@
|
||||
|
||||
export const businessLineInfo = {
|
||||
"capability": "issueBankAccount",
|
||||
"industryCode": "55",
|
||||
"webData": [
|
||||
{
|
||||
"webAddress": "https://www.adyen.com"
|
||||
}
|
||||
],
|
||||
"legalEntityId": "LE322KT223222D5FJ7THR293F",
|
||||
"sourceOfFunds": {
|
||||
"type": "business",
|
||||
"adyenProcessedFunds": "false",
|
||||
"description": "Funds from my flower shop business"
|
||||
}
|
||||
};
|
||||
|
||||
export const businessLineInfoUpdate = {
|
||||
"capability": "string",
|
||||
"industryCode": "string",
|
||||
"legalEntityId": "string",
|
||||
"salesChannels": ["string"],
|
||||
"sourceOfFunds": {
|
||||
"acquiringBusinessLineId": "string",
|
||||
"adyenProcessedFunds": false,
|
||||
"description": "string",
|
||||
"type": "business"
|
||||
},
|
||||
"webData": [{ "webAddress": "string" }],
|
||||
"webDataExemption": { "reason": "noOnlinePresence" }
|
||||
};
|
||||
|
||||
export const document = {
|
||||
"attachment": {
|
||||
"content": "string",
|
||||
"contentType": "string",
|
||||
"filename": "string",
|
||||
"pageName": "string",
|
||||
"pageType": "string"
|
||||
},
|
||||
"attachments": [{
|
||||
"content": "string",
|
||||
"contentType": "string",
|
||||
"filename": "string",
|
||||
"pageName": "string",
|
||||
"pageType": "string"
|
||||
}],
|
||||
"description": "string",
|
||||
"expiryDate": "string",
|
||||
"fileName": "string",
|
||||
"id": "string",
|
||||
"issuerCountry": "string",
|
||||
"issuerState": "string",
|
||||
"number": "string",
|
||||
"owner": {
|
||||
"id": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "bankStatement"
|
||||
};
|
||||
|
||||
export const onboardingLinkInfo = {
|
||||
"locale": "cs-CZ",
|
||||
"redirectUrl": "https://your.redirect-url.com",
|
||||
"themeId": "123456789"
|
||||
};
|
||||
|
||||
export const legalEntityInfo = {
|
||||
"type": "individual",
|
||||
"individual": {
|
||||
"residentialAddress": {
|
||||
"city": "San Francisco",
|
||||
"country": "US",
|
||||
"postalCode": "94107",
|
||||
"street": "Brannan Street 274",
|
||||
"stateOrProvince": "CA"
|
||||
},
|
||||
"phone": {
|
||||
"countryCode": "US",
|
||||
"number": "5551231234",
|
||||
"type": "mobile"
|
||||
},
|
||||
"name": {
|
||||
"firstName": "Simone",
|
||||
"lastName": "Hopper"
|
||||
},
|
||||
"birthData": {
|
||||
"dateOfBirth": "1981-12-01"
|
||||
},
|
||||
"email": "s.hopper@example.com"
|
||||
}
|
||||
};
|
||||
|
||||
export const genericEntityInfo = {
|
||||
"entityAssociations": [{
|
||||
"associatorId": "string",
|
||||
"entityType": "string",
|
||||
"jobTitle": "string",
|
||||
"legalEntityId": "string",
|
||||
"name": "string",
|
||||
"type": "signatory"
|
||||
}],
|
||||
"individual": {
|
||||
"birthData": { "dateOfBirth": "string" },
|
||||
"email": "string",
|
||||
"identificationData": {
|
||||
"expiryDate": "string",
|
||||
"issuerCountry": "string",
|
||||
"issuerState": "string",
|
||||
"nationalIdExempt": false,
|
||||
"number": "string",
|
||||
"type": "bankStatement"
|
||||
},
|
||||
"name": {
|
||||
"firstName": "string",
|
||||
"infix": "string",
|
||||
"lastName": "string"
|
||||
},
|
||||
"nationality": "string",
|
||||
"phone": {
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"residentialAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"taxInformation": [{
|
||||
"country": "string",
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
}],
|
||||
"webData": { "webAddress": "string" }
|
||||
},
|
||||
"organization": {
|
||||
"description": "string",
|
||||
"doingBusinessAs": "string",
|
||||
"email": "string",
|
||||
"legalName": "string",
|
||||
"phone": {
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"principalPlaceOfBusiness": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registeredAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registrationNumber": "string",
|
||||
"stockData": {
|
||||
"marketIdentifier": "string",
|
||||
"stockNumber": "string",
|
||||
"tickerSymbol": "string"
|
||||
},
|
||||
"taxInformation": [{
|
||||
"country": "string",
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
}],
|
||||
"taxReportingClassification": {
|
||||
"businessType": "other",
|
||||
"financialInstitutionNumber": "string",
|
||||
"mainSourceOfIncome": "businessOperation",
|
||||
"type": "nonFinancialNonReportable"
|
||||
},
|
||||
"type": "associationIncorporated",
|
||||
"vatAbsenceReason": "industryExemption",
|
||||
"vatNumber": "string",
|
||||
"webData": { "webAddress": "string" }
|
||||
},
|
||||
"soleProprietorship": {
|
||||
"countryOfGoverningLaw": "string",
|
||||
"doingBusinessAs": "string",
|
||||
"name": "string",
|
||||
"principalPlaceOfBusiness": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registeredAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registrationNumber": "string",
|
||||
"vatAbsenceReason": "industryExemption",
|
||||
"vatNumber": "string"
|
||||
}
|
||||
};
|
||||
|
||||
export const transferInstrumentInfo = {
|
||||
"bankAccount": {
|
||||
"accountNumber": "string",
|
||||
"accountType": "string",
|
||||
"bankBicSwift": "string",
|
||||
"bankCity": "string",
|
||||
"bankCode": "string",
|
||||
"bankName": "string",
|
||||
"branchCode": "string",
|
||||
"checkCode": "string",
|
||||
"countryCode": "string",
|
||||
"currencyCode": "string",
|
||||
"iban": "string"
|
||||
},
|
||||
"legalEntityId": "string",
|
||||
"recurringDetail": {
|
||||
"merchantAccount": "string",
|
||||
"reference": "string",
|
||||
"shopperReference": "string"
|
||||
},
|
||||
"type": "bankAccount"
|
||||
};
|
||||
241
src/__mocks__/legalEntityManagement/responses.ts
Normal file
241
src/__mocks__/legalEntityManagement/responses.ts
Normal file
@@ -0,0 +1,241 @@
|
||||
export const businessLine = {
|
||||
"capability": "receivePayments",
|
||||
"id": "123456789",
|
||||
"industryCode": "123456789",
|
||||
"legalEntityId": "123456789",
|
||||
"salesChannels": ["string"],
|
||||
"sourceOfFunds": {
|
||||
"acquiringBusinessLineId": "string",
|
||||
"adyenProcessedFunds": false,
|
||||
"description": "string",
|
||||
"type": "business"
|
||||
},
|
||||
"webData": [{ "webAddress": "string" }],
|
||||
"webDataExemption": { "reason": "noOnlinePresence" }
|
||||
};
|
||||
|
||||
export const document = {
|
||||
"attachment": {
|
||||
"content": "string",
|
||||
"contentType": "string",
|
||||
"filename": "string",
|
||||
"pageName": "string",
|
||||
"pageType": "string"
|
||||
},
|
||||
"attachments": [{
|
||||
"content": "string",
|
||||
"contentType": "string",
|
||||
"filename": "string",
|
||||
"pageName": "string",
|
||||
"pageType": "string"
|
||||
}],
|
||||
"description": "string",
|
||||
"expiryDate": "string",
|
||||
"fileName": "string",
|
||||
"id": "123456789",
|
||||
"issuerCountry": "string",
|
||||
"issuerState": "string",
|
||||
"number": "string",
|
||||
"owner": {
|
||||
"id": "123456789",
|
||||
"type": "passport"
|
||||
},
|
||||
"type": "driversLicense"
|
||||
};
|
||||
|
||||
export const onboardingLink = { "url": "https://your.redirect-url.com" };
|
||||
|
||||
export const onboardingThemes = {
|
||||
"next": "string",
|
||||
"previous": "string",
|
||||
"themes": [{
|
||||
"createdAt": "2022-10-31T01:30:00.000Z",
|
||||
"description": "string",
|
||||
"id": "123456789",
|
||||
"properties": { "sample": "string" },
|
||||
"updatedAt": "2022-10-31T01:30:00.000Z"
|
||||
}]
|
||||
};
|
||||
|
||||
export const onboardingTheme = {
|
||||
"createdAt": "string",
|
||||
"description": "string",
|
||||
"id": "123456789",
|
||||
"properties": { "sample": "string" },
|
||||
"updatedAt": "string"
|
||||
};
|
||||
|
||||
export const legalEntity = {
|
||||
"documentDetails": [{
|
||||
"active": false,
|
||||
"fileName": "string",
|
||||
"id": "string"
|
||||
}],
|
||||
"documents": [{ "id": "string" }],
|
||||
"entityAssociations": [{
|
||||
"associatorId": "string",
|
||||
"entityType": "string",
|
||||
"jobTitle": "string",
|
||||
"legalEntityId": "string",
|
||||
"name": "string",
|
||||
"type": "signatory"
|
||||
}],
|
||||
"id": "123456789",
|
||||
"individual": {
|
||||
"birthData": { "dateOfBirth": "string" },
|
||||
"email": "string",
|
||||
"identificationData": {
|
||||
"expiryDate": "string",
|
||||
"issuerCountry": "string",
|
||||
"issuerState": "string",
|
||||
"nationalIdExempt": false,
|
||||
"number": "string",
|
||||
"type": "bankStatement"
|
||||
},
|
||||
"name": {
|
||||
"firstName": "string",
|
||||
"infix": "string",
|
||||
"lastName": "string"
|
||||
},
|
||||
"nationality": "string",
|
||||
"phone": {
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"residentialAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"taxInformation": [{
|
||||
"country": "string",
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
}],
|
||||
"webData": { "webAddress": "string" }
|
||||
},
|
||||
"organization": {
|
||||
"description": "string",
|
||||
"doingBusinessAs": "string",
|
||||
"email": "string",
|
||||
"legalName": "string",
|
||||
"phone": {
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
},
|
||||
"principalPlaceOfBusiness": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registeredAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registrationNumber": "string",
|
||||
"stockData": {
|
||||
"marketIdentifier": "string",
|
||||
"stockNumber": "string",
|
||||
"tickerSymbol": "string"
|
||||
},
|
||||
"taxInformation": [{
|
||||
"country": "string",
|
||||
"number": "string",
|
||||
"type": "string"
|
||||
}],
|
||||
"taxReportingClassification": {
|
||||
"businessType": "other",
|
||||
"financialInstitutionNumber": "string",
|
||||
"mainSourceOfIncome": "businessOperation",
|
||||
"type": "nonFinancialNonReportable"
|
||||
},
|
||||
"type": "associationIncorporated",
|
||||
"vatAbsenceReason": "industryExemption",
|
||||
"vatNumber": "string",
|
||||
"webData": { "webAddress": "string" }
|
||||
},
|
||||
"reference": "string",
|
||||
"soleProprietorship": {
|
||||
"countryOfGoverningLaw": "string",
|
||||
"doingBusinessAs": "string",
|
||||
"name": "string",
|
||||
"principalPlaceOfBusiness": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registeredAddress": {
|
||||
"city": "string",
|
||||
"country": "string",
|
||||
"postalCode": "string",
|
||||
"stateOrProvince": "string",
|
||||
"street": "string",
|
||||
"street2": "string"
|
||||
},
|
||||
"registrationNumber": "string",
|
||||
"vatAbsenceReason": "industryExemption",
|
||||
"vatNumber": "string"
|
||||
},
|
||||
"transferInstruments": [{ "id": "string" }],
|
||||
"type": "individual"
|
||||
};
|
||||
|
||||
export const businessLines = {
|
||||
"businessLines": [{
|
||||
"capability": "receivePayments",
|
||||
"id": "123456789",
|
||||
"industryCode": "123456789",
|
||||
"legalEntityId": "123456789",
|
||||
"salesChannels": ["string"],
|
||||
"sourceOfFunds": {
|
||||
"acquiringBusinessLineId": "string",
|
||||
"adyenProcessedFunds": false,
|
||||
"description": "string",
|
||||
"type": "business"
|
||||
},
|
||||
"webData": [{ "webAddress": "string" }],
|
||||
"webDataExemption": { "reason": "noOnlinePresence" }
|
||||
}]
|
||||
};
|
||||
|
||||
export const transferInstrument = {
|
||||
"bankAccount": {
|
||||
"accountNumber": "string",
|
||||
"accountType": "string",
|
||||
"bankBicSwift": "string",
|
||||
"bankCity": "string",
|
||||
"bankCode": "string",
|
||||
"bankName": "string",
|
||||
"branchCode": "string",
|
||||
"checkCode": "string",
|
||||
"countryCode": "string",
|
||||
"currencyCode": "string",
|
||||
"iban": "string"
|
||||
},
|
||||
"documentDetails": [{
|
||||
"active": false,
|
||||
"fileName": "string",
|
||||
"id": "string"
|
||||
}],
|
||||
"id": "123456789",
|
||||
"legalEntityId": "123456789",
|
||||
"recurringDetail": {
|
||||
"merchantAccount": "string",
|
||||
"reference": "string",
|
||||
"shopperReference": "string"
|
||||
},
|
||||
"type": "bankAccount"
|
||||
};
|
||||
135
src/__mocks__/transfers/responses.ts
Normal file
135
src/__mocks__/transfers/responses.ts
Normal file
@@ -0,0 +1,135 @@
|
||||
export const transfersSuccess = {
|
||||
"id" : "1W1UG35U8A9J5ZLG",
|
||||
"amount" : {
|
||||
"value" : 110000,
|
||||
"currency" : "EUR"
|
||||
},
|
||||
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
|
||||
"category" : "bank",
|
||||
"counterparty" : {
|
||||
"accountHolder" : {
|
||||
"fullName" : "A. Klaassen",
|
||||
"address" : {
|
||||
"city" : "San Francisco",
|
||||
"country" : "US",
|
||||
"postalCode" : "94678",
|
||||
"stateOrProvince" : "CA",
|
||||
"street" : "Brannan Street",
|
||||
"street2" : "274"
|
||||
}
|
||||
},
|
||||
"accountIdentification" : {
|
||||
"type" : "numberBic",
|
||||
"accountNumber" : "123456789",
|
||||
"bic" : "BOFAUS3NXXX"
|
||||
}
|
||||
},
|
||||
"priority" : "wire",
|
||||
"referenceForBeneficiary" : "Your reference sent to the beneficiary",
|
||||
"reference" : "Your internal reference for the transfer",
|
||||
"description" : "Your description for the transfer",
|
||||
"direction" : "outgoing",
|
||||
"reason" : "approved",
|
||||
"status" : "authorised"
|
||||
};
|
||||
|
||||
export const getTransactionSuccess = {
|
||||
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
|
||||
"amount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : 9887
|
||||
},
|
||||
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
|
||||
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
|
||||
"bookingDate" : "2022-03-14T12:01:00+01:00",
|
||||
"category" : "bank",
|
||||
"counterparty" : {
|
||||
"balanceAccountId" : "NL29ADYX0000000001"
|
||||
},
|
||||
"createdAt" : "2022-03-14T12:01:00+01:00",
|
||||
"description" : "YOUR_DESCRIPTION",
|
||||
"id" : "IZK7C25U7DYVX03Y",
|
||||
"instructedAmount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : 9887
|
||||
},
|
||||
"reference" : "2L6C6B5U7DYULLXC",
|
||||
"referenceForBeneficiary" : "YOUR_REFERENCE_FOR_BENEFICIARY",
|
||||
"status" : "booked",
|
||||
"transferId" : "2QP32A5U7IWC5WKG",
|
||||
"type" : "bankTransfer",
|
||||
"valueDate" : "2022-03-14T12:01:00+01:00"
|
||||
};
|
||||
|
||||
export const listTransactionsSuccess = {
|
||||
"data" : [
|
||||
{
|
||||
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
|
||||
"amount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -9
|
||||
},
|
||||
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
|
||||
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
|
||||
"bookingDate" : "2022-03-11T11:21:24+01:00",
|
||||
"category" : "internal",
|
||||
"createdAt" : "2022-03-11T11:21:24+01:00",
|
||||
"id" : "1VVF0D5U66PIUIVP",
|
||||
"instructedAmount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -9
|
||||
},
|
||||
"reference" : "REFERENCE_46e8c40e",
|
||||
"status" : "booked",
|
||||
"transferId" : "1VVF0D5U66PIUIVP",
|
||||
"type" : "fee",
|
||||
"valueDate" : "2022-03-11T11:21:24+01:00"
|
||||
},
|
||||
{
|
||||
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
|
||||
"amount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -46
|
||||
},
|
||||
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
|
||||
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
|
||||
"bookingDate" : "2022-03-12T14:22:52+01:00",
|
||||
"category" : "internal",
|
||||
"createdAt" : "2022-03-12T14:22:52+01:00",
|
||||
"id" : "1WEPGD5U6MS1CFK3",
|
||||
"instructedAmount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -46
|
||||
},
|
||||
"reference" : "YOUR_REFERENCE",
|
||||
"status" : "booked",
|
||||
"transferId" : "1WEPGD5U6MS1CFK3",
|
||||
"type" : "fee",
|
||||
"valueDate" : "2022-03-12T14:22:52+01:00"
|
||||
},
|
||||
{
|
||||
"accountHolderId" : "AHA1B2C3D4E5F6G7H8I9J0",
|
||||
"amount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -8
|
||||
},
|
||||
"balanceAccountId" : "BAB8B2C3D4E5F6G7H8D9J6GD4",
|
||||
"balancePlatform" : "YOUR_BALANCE_PLATFORM",
|
||||
"bookingDate" : "2022-03-14T21:00:48+01:00",
|
||||
"createdAt" : "2022-03-14T15:00:00+01:00",
|
||||
"description" : "YOUR_DESCRIPTION_2",
|
||||
"id" : "2QP32A5U7IWC5WKG",
|
||||
"instructedAmount" : {
|
||||
"currency" : "EUR",
|
||||
"value" : -8
|
||||
},
|
||||
"status" : "booked",
|
||||
"valueDate" : "2022-03-14T21:00:48+01:00"
|
||||
}
|
||||
],
|
||||
"_links" : {
|
||||
"next" : {
|
||||
"href" : "https://balanceplatform-api-test.adyen.com/btl/v2/transactions?balancePlatform=Bastronaut&createdUntil=2022-03-21T00%3A00%3A00Z&createdSince=2022-03-11T00%3A00%3A00Z&limit=3&cursor=S2B-TSAjOkIrYlIlbjdqe0RreHRyM32lKRSxubXBHRkhHL2E32XitQQz5SfzpucD5HbHwpM1p6NDR1eXVQLFF6MmY33J32sobDxQYT90MHIud1hwLnd6JitcX32xJ"
|
||||
}
|
||||
}
|
||||
};
|
||||
326
src/__tests__/legalEntityManagement.spec.ts
Normal file
326
src/__tests__/legalEntityManagement.spec.ts
Normal file
@@ -0,0 +1,326 @@
|
||||
import nock from "nock";
|
||||
import Client from "../client";
|
||||
import {createClient} from "../__mocks__/base";
|
||||
import * as models from "../typings/legalEntityManagement/models";
|
||||
import {Document, LegalEntityInfo, OnboardingLinkInfo, TransferInstrumentInfo} from "../typings/legalEntityManagement/models";
|
||||
import {DocumentUpdate} from "../services/legalEntityManagement/documents";
|
||||
import {businessLine, businessLines, document, legalEntity, onboardingLink, onboardingTheme, onboardingThemes, transferInstrument} from "../__mocks__/legalEntityManagement/responses";
|
||||
import TransferEnum = TransferInstrumentInfo.TypeEnum;
|
||||
import TypeEnum = LegalEntityInfo.TypeEnum
|
||||
import DocEnum = Document.TypeEnum
|
||||
import {onboardingLinkInfo} from "../__mocks__/legalEntityManagement/requests";
|
||||
import LegalEntityManagement from "../services/legalEntityManagement";
|
||||
|
||||
let client: Client;
|
||||
let legalEntityManagement: LegalEntityManagement;
|
||||
let scope: nock.Scope;
|
||||
|
||||
beforeEach((): void => {
|
||||
if (!nock.isActive()) {
|
||||
nock.activate();
|
||||
}
|
||||
client = createClient();
|
||||
scope = nock(`${client.config.legalEntityManagementEndpoint}/${Client.LEGAL_ENTITY_MANAGEMENT_API_VERSION}`);
|
||||
legalEntityManagement = new LegalEntityManagement(client);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
nock.cleanAll();
|
||||
});
|
||||
|
||||
describe("Legal Entity Management", (): void => {
|
||||
|
||||
const id = "123456789"
|
||||
|
||||
describe("LegalEntities", (): void => {
|
||||
it("should support POST /legalEntities", async (): Promise<void> => {
|
||||
scope.post("/legalEntities")
|
||||
.reply(200, legalEntity);
|
||||
|
||||
const request: models.LegalEntityInfo = {
|
||||
type : TypeEnum.Individual,
|
||||
individual : undefined
|
||||
};
|
||||
|
||||
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.create(request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe("individual");
|
||||
});
|
||||
|
||||
it("should support GET /legalEntities/{id}", async (): Promise<void> => {
|
||||
scope.get(`/legalEntities/${id}`)
|
||||
.reply(200, legalEntity);
|
||||
|
||||
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.retrieve("123456789");
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe("individual");
|
||||
});
|
||||
|
||||
it("should support PATCH /legalEntities/{id}", async (): Promise<void> => {
|
||||
scope.patch(`/legalEntities/${id}`)
|
||||
.reply(200, legalEntity);
|
||||
|
||||
const request: models.LegalEntityInfo = {
|
||||
type : TypeEnum.Individual,
|
||||
individual : undefined
|
||||
};
|
||||
|
||||
const response: models.LegalEntity = await legalEntityManagement.LegalEntities.update(id, request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe("individual");
|
||||
});
|
||||
|
||||
it("should support GET /legalEntities/{id}/BusinessLines", async (): Promise<void> => {
|
||||
scope.get(`/legalEntities/${id}/businessLines`)
|
||||
.reply(200, businessLines);
|
||||
|
||||
const response: models.BusinessLines = await legalEntityManagement.LegalEntities.listBusinessLines(id);
|
||||
|
||||
expect(response.businessLines).toEqual( [{
|
||||
"capability": "receivePayments",
|
||||
"id": "123456789",
|
||||
"industryCode": "123456789",
|
||||
"legalEntityId": "123456789",
|
||||
"salesChannels": ["string"],
|
||||
"sourceOfFunds": {
|
||||
"acquiringBusinessLineId": "string",
|
||||
"adyenProcessedFunds": false,
|
||||
"description": "string",
|
||||
"type": "business"
|
||||
},
|
||||
"webData": [{ "webAddress": "string" }],
|
||||
"webDataExemption": { "reason": "noOnlinePresence" }
|
||||
}]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe("Transfer Instruments", (): void => {
|
||||
it("should support POST /transferInstruments", async (): Promise<void> => {
|
||||
scope.post("/transferInstruments")
|
||||
.reply(200, transferInstrument);
|
||||
|
||||
const request: models.TransferInstrumentInfo = {
|
||||
type : TransferEnum.BankAccount,
|
||||
legalEntityId : id,
|
||||
bankAccount : {accountNumber: "string",
|
||||
accountType: "string",
|
||||
bankBicSwift: "string",
|
||||
bankCity: "string",
|
||||
bankCode: "string",
|
||||
bankName: "string",
|
||||
branchCode: "string",
|
||||
checkCode: "string",
|
||||
countryCode: "string",
|
||||
currencyCode: "string",
|
||||
iban: "string"
|
||||
}
|
||||
};
|
||||
|
||||
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.create(request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(TransferEnum.BankAccount);
|
||||
});
|
||||
|
||||
it("should support GET /transferInstruments/{id}", async (): Promise<void> => {
|
||||
scope.get(`/transferInstruments/${id}`)
|
||||
.reply(200, transferInstrument);
|
||||
|
||||
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.retrieve(id);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(TransferEnum.BankAccount);
|
||||
});
|
||||
|
||||
it("should support PATCH /transferInstruments/{id}", async (): Promise<void> => {
|
||||
scope.patch(`/transferInstruments/${id}`)
|
||||
.reply(200, transferInstrument);
|
||||
|
||||
const request: models.TransferInstrumentInfo = {
|
||||
type : TransferEnum.BankAccount,
|
||||
legalEntityId : id,
|
||||
bankAccount : {accountNumber: "string",
|
||||
accountType: "string",
|
||||
bankBicSwift: "string",
|
||||
bankCity: "string",
|
||||
bankCode: "string",
|
||||
bankName: "string",
|
||||
branchCode: "string",
|
||||
checkCode: "string",
|
||||
countryCode: "string",
|
||||
currencyCode: "string",
|
||||
iban: "string"
|
||||
}
|
||||
};
|
||||
|
||||
const response: models.TransferInstrument = await legalEntityManagement.TransferInstruments.update(id, request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(TransferEnum.BankAccount);
|
||||
});
|
||||
|
||||
it("should support DELETE /transferInstruments/{id}", async (): Promise<void> => {
|
||||
scope.delete(`/transferInstruments/${id}`)
|
||||
.reply(200);
|
||||
|
||||
await legalEntityManagement.TransferInstruments.delete(id);
|
||||
|
||||
expect(200);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Business Lines", (): void => {
|
||||
it("should support POST /businessLines", async (): Promise<void> => {
|
||||
scope.post("/businessLines")
|
||||
.reply(200, businessLine);
|
||||
|
||||
const request: models.BusinessLineInfo = {
|
||||
capability: "receivePayments",
|
||||
industryCode: id,
|
||||
legalEntityId: id };
|
||||
|
||||
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.create(request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.capability).toBe("receivePayments");
|
||||
expect(response.industryCode).toBe(id);
|
||||
expect(response.legalEntityId).toBe(id);
|
||||
});
|
||||
|
||||
it("should support GET /businessLines/{id}", async (): Promise<void> => {
|
||||
scope.get(`/businessLines/${id}`)
|
||||
.reply(200, businessLine);
|
||||
|
||||
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.retrieve(id);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.capability).toBe("receivePayments");
|
||||
});
|
||||
|
||||
it("should support PATCH /businessLines/{id}", async (): Promise<void> => {
|
||||
scope.patch(`/businessLines/${id}`)
|
||||
.reply(200, businessLine);
|
||||
|
||||
const request: models.BusinessLineInfo = {
|
||||
capability: "receivePayments",
|
||||
industryCode: id,
|
||||
legalEntityId: id };
|
||||
|
||||
const response: models.BusinessLine = await legalEntityManagement.BusinessLineService.update(id, request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.capability).toBe("receivePayments");
|
||||
expect(response.industryCode).toBe(id);
|
||||
expect(response.legalEntityId).toBe(id);
|
||||
});
|
||||
});
|
||||
|
||||
describe("Documents", (): void => {
|
||||
it("should support POST /documents", async (): Promise<void> => {
|
||||
scope.post("/documents")
|
||||
.reply(200, document);
|
||||
|
||||
const request: DocumentUpdate = {
|
||||
attachments: [{
|
||||
content: "string",
|
||||
contentType: "string",
|
||||
filename: "string",
|
||||
pageName: "string",
|
||||
pageType: "string"
|
||||
}],
|
||||
description: "document",
|
||||
owner: {
|
||||
"id": "123456789",
|
||||
"type": "passport"
|
||||
},
|
||||
type : DocEnum.DriversLicense
|
||||
};
|
||||
|
||||
const response: models.Document = await legalEntityManagement.Documents.create(request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(DocEnum.DriversLicense);
|
||||
expect(response.owner).toEqual({id : "123456789", type : "passport" })
|
||||
});
|
||||
|
||||
it("should support GET /documents/{id}", async (): Promise<void> => {
|
||||
scope.get(`/documents/${id}`)
|
||||
.reply(200, document);
|
||||
|
||||
const response: models.Document = await legalEntityManagement.Documents.retrieve(id);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(DocEnum.DriversLicense);
|
||||
expect(response.owner).toEqual({id : "123456789", type : "passport" })
|
||||
});
|
||||
|
||||
it("should support PATCH /documents/{id}", async (): Promise<void> => {
|
||||
scope.patch(`/documents/${id}`)
|
||||
.reply(200, document);
|
||||
|
||||
const request: DocumentUpdate = {
|
||||
attachments: [{
|
||||
content: "string",
|
||||
contentType: "string",
|
||||
filename: "string",
|
||||
pageName: "string",
|
||||
pageType: "string"
|
||||
}],
|
||||
description: "document",
|
||||
owner: {
|
||||
"id": "123456789",
|
||||
"type": "passport"
|
||||
},
|
||||
type : DocEnum.DriversLicense
|
||||
};
|
||||
|
||||
const response: models.Document = await legalEntityManagement.Documents.update(id, request);
|
||||
|
||||
expect(response.id).toBe(id);
|
||||
expect(response.type).toBe(DocEnum.DriversLicense);
|
||||
expect(response.owner).toEqual({id : "123456789", type : "passport" })
|
||||
});
|
||||
|
||||
it("should support DELETE /documents/{id}", async (): Promise<void> => {
|
||||
scope.delete(`/documents/${id}`)
|
||||
.reply(200);
|
||||
|
||||
await legalEntityManagement.Documents.delete(id);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe("OnboardingLinks and Themes", (): void => {
|
||||
it("should support POST /onboardingLinks", async (): Promise<void> => {
|
||||
scope.post(`/legalEntities/${id}/onboardingLinks`)
|
||||
.reply(200, onboardingLink);
|
||||
|
||||
const request: OnboardingLinkInfo = onboardingLinkInfo;
|
||||
|
||||
const response: models.OnboardingLink = await legalEntityManagement.HostedOnboardingPage.create(id, request);
|
||||
|
||||
expect(response.url).toBe("https://your.redirect-url.com");
|
||||
});
|
||||
|
||||
it("should support GET /themes", async (): Promise<void> => {
|
||||
scope.get(`/themes`)
|
||||
.reply(200, onboardingThemes);
|
||||
|
||||
const response: models.OnboardingThemes = await legalEntityManagement.HostedOnboardingPage.listThemes();
|
||||
|
||||
expect(response.themes[0].id).toEqual(id);
|
||||
});
|
||||
|
||||
it("should support GET /themes/{id}", async (): Promise<void> => {
|
||||
scope.get(`/themes/${id}`)
|
||||
.reply(200, onboardingTheme);
|
||||
|
||||
const response: models.OnboardingTheme = await legalEntityManagement.HostedOnboardingPage.retrieveTheme(id);
|
||||
expect(response.id).toBe(id);
|
||||
});
|
||||
});
|
||||
});
|
||||
68
src/__tests__/transfers.spec.ts
Normal file
68
src/__tests__/transfers.spec.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
import nock from "nock";
|
||||
import { createClient } from "../__mocks__/base";
|
||||
import { transfersSuccess, getTransactionSuccess, listTransactionsSuccess } from "../__mocks__/transfers/responses";
|
||||
import Client from "../client";
|
||||
import { Transfers } from "../services";
|
||||
import { TransferInfo, Transfer, Transaction, TransactionSearchResponse, IbanAccountIdentification} from "../typings/transfer/models";
|
||||
|
||||
let client: Client;
|
||||
let transferService: Transfers;
|
||||
let scope: nock.Scope;
|
||||
|
||||
beforeEach((): void => {
|
||||
if (!nock.isActive()) {
|
||||
nock.activate();
|
||||
}
|
||||
client = createClient();
|
||||
transferService = new Transfers(client);
|
||||
scope = nock(`https://balanceplatform-api-test.adyen.com/btl/${Client.TRANSFERS_API_VERSION}`);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
nock.cleanAll();
|
||||
});
|
||||
|
||||
describe("Transfers", (): void => {
|
||||
test("should transfer fund", async (): Promise<void> => {
|
||||
scope.post("/transfers")
|
||||
.reply(200, transfersSuccess);
|
||||
const request = new TransferInfo();
|
||||
request.amount = { currency: "EUR", value: 1000};
|
||||
request.category = TransferInfo.CategoryEnum.Bank;
|
||||
request.counterparty = {
|
||||
balanceAccountId: "123",
|
||||
transferInstrumentId: "transfer_id",
|
||||
bankAccount: {
|
||||
accountHolder: {
|
||||
fullName: "Wally Bizzle"
|
||||
},
|
||||
accountIdentification: {
|
||||
iban: "NLRABO12321",
|
||||
type: IbanAccountIdentification.TypeEnum.Iban
|
||||
}
|
||||
},
|
||||
|
||||
};
|
||||
const response: Transfer = await transferService.transfers(request);
|
||||
expect(response.id).toEqual("1W1UG35U8A9J5ZLG");
|
||||
});
|
||||
|
||||
test("should get transaction", async (): Promise<void> => {
|
||||
scope.get("/transactions/123")
|
||||
.reply(200, getTransactionSuccess);
|
||||
const response: Transaction = await transferService.getTransaction("123");
|
||||
expect(response.id).toEqual("IZK7C25U7DYVX03Y");
|
||||
});
|
||||
|
||||
test("should list transactions", async (): Promise<void> => {
|
||||
scope.get("/transactions")
|
||||
.reply(200, listTransactionsSuccess);
|
||||
const response: TransactionSearchResponse = await transferService.listTransactions();
|
||||
expect(response.data?.length).toEqual(3);
|
||||
if(response.data && response.data?.length > 0) {
|
||||
expect(response?.data[0]?.id).toEqual("1VVF0D5U66PIUIVP");
|
||||
} else {
|
||||
fail();
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -65,6 +65,13 @@ class Client {
|
||||
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";
|
||||
public static LEGAL_ENTITY_MANAGEMENT_API_VERSION = "v2";
|
||||
public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST = "https://kyc-test.adyen.com/lem";
|
||||
public static LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE = "https://kyc-live.adyen.com/lem";
|
||||
public static TRANSFERS_API_VERSION="v3";
|
||||
public static TRANSFERS_API_VERSION_TEST = "https://balanceplatform-api-test.adyen.com/btl";
|
||||
public static TRANSFERS_API_VERSION_LIVE = "https://balanceplatform-api-live.adyen.com/btl";
|
||||
|
||||
|
||||
private _httpClient!: ClientInterface;
|
||||
public config: Config;
|
||||
@@ -108,6 +115,8 @@ class Client {
|
||||
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;
|
||||
this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_TEST;
|
||||
this.config.transfersEndpoint = Client.TRANSFERS_API_VERSION_TEST;
|
||||
} else if (environment === "LIVE") {
|
||||
this.config.endpoint = Client.ENDPOINT_LIVE;
|
||||
this.config.marketPayEndpoint = Client.MARKETPAY_ENDPOINT_LIVE;
|
||||
@@ -118,6 +127,8 @@ class Client {
|
||||
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;
|
||||
this.config.legalEntityManagementEndpoint = Client.LEGAL_ENTITY_MANAGEMENT_API_ENDPOINT_LIVE;
|
||||
this.config.transfersEndpoint = Client.TRANSFERS_API_VERSION_LIVE;
|
||||
|
||||
if (liveEndpointUrlPrefix) {
|
||||
this.config.endpoint =
|
||||
@@ -153,4 +164,4 @@ class Client {
|
||||
}
|
||||
}
|
||||
|
||||
export default Client;
|
||||
export default Client;
|
||||
@@ -39,6 +39,8 @@ interface ConfigConstructor {
|
||||
terminalManagementEndpoint?: string;
|
||||
managementEndpoint?: string;
|
||||
balancePlatformEndpoint?: string;
|
||||
legalEntityManagementEndpoint?: string;
|
||||
transfersEndpoint?: string;
|
||||
}
|
||||
|
||||
class Config {
|
||||
@@ -68,6 +70,8 @@ class Config {
|
||||
public terminalManagementEndpoint?: string;
|
||||
public managementEndpoint?: string;
|
||||
public balancePlatformEndpoint?: string;
|
||||
public legalEntityManagementEndpoint?: string;
|
||||
public transfersEndpoint?: string;
|
||||
|
||||
public constructor(options: ConfigConstructor = {}) {
|
||||
if (options.username) this.username = options.username;
|
||||
@@ -92,6 +96,8 @@ class Config {
|
||||
if (options.terminalManagementEndpoint) this.terminalManagementEndpoint = options.terminalManagementEndpoint;
|
||||
if (options.managementEndpoint) this.managementEndpoint = options.managementEndpoint;
|
||||
if (options.balancePlatformEndpoint) this.balancePlatformEndpoint = options.balancePlatformEndpoint;
|
||||
if (options.legalEntityManagementEndpoint) this.legalEntityManagementEndpoint = options.legalEntityManagementEndpoint;
|
||||
if (options.transfersEndpoint) this.transfersEndpoint = options.transfersEndpoint;
|
||||
}
|
||||
|
||||
public set checkoutEndpoint(checkoutEndpoint: string | undefined) {
|
||||
|
||||
@@ -8,4 +8,6 @@ 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";
|
||||
export { default as Management } from "./management";
|
||||
export { default as LegalEntityManagement } from "./legalEntityManagement";
|
||||
export { default as Transfers } from "./transfers";
|
||||
|
||||
36
src/services/legalEntityManagement.ts
Normal file
36
src/services/legalEntityManagement.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
import Service from "../service";
|
||||
import Client from "../client";
|
||||
import LegalEntities from "./legalEntityManagement/legalEntities";
|
||||
import OnboardingPage from "./legalEntityManagement/hostedOnboardingPage";
|
||||
import TransferInstruments from "./legalEntityManagement/transferInstruments";
|
||||
import BusinessLineService from "./legalEntityManagement/businessLineService";
|
||||
import Documents from "./legalEntityManagement/documents";
|
||||
|
||||
class LegalEntityManagement extends Service {
|
||||
public constructor(client: Client) {
|
||||
super(client);
|
||||
}
|
||||
|
||||
public get LegalEntities() {
|
||||
return new LegalEntities(this.client);
|
||||
}
|
||||
|
||||
public get TransferInstruments() {
|
||||
return new TransferInstruments(this.client);
|
||||
}
|
||||
|
||||
public get BusinessLineService() {
|
||||
return new BusinessLineService(this.client);
|
||||
}
|
||||
|
||||
public get Documents() {
|
||||
return new Documents(this.client);
|
||||
}
|
||||
|
||||
public get HostedOnboardingPage() {
|
||||
return new OnboardingPage(this.client);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default LegalEntityManagement;
|
||||
42
src/services/legalEntityManagement/businessLineService.ts
Normal file
42
src/services/legalEntityManagement/businessLineService.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
import getJsonResponse from "../../helpers/getJsonResponse";
|
||||
import Service from "../../service";
|
||||
import LegalEntityManagementResource from "../resource/legalEntityManagementResource";
|
||||
import {
|
||||
BusinessLine,
|
||||
BusinessLineInfo, BusinessLineInfoUpdate,
|
||||
ObjectSerializer
|
||||
} from "../../typings/legalEntityManagement/models";
|
||||
|
||||
class BusinessLineService extends Service {
|
||||
public async create(request: BusinessLineInfo): Promise<BusinessLine> {
|
||||
const resource = new LegalEntityManagementResource(this, "/businessLines");
|
||||
const response = await getJsonResponse<BusinessLineInfo, BusinessLine>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "POST" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "BusinessLine");
|
||||
}
|
||||
|
||||
public async retrieve(id: string): Promise<BusinessLine> {
|
||||
const resource = new LegalEntityManagementResource(this, `/businessLines/${id}`);
|
||||
const response = await getJsonResponse<string, BusinessLine>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "BusinessLine");
|
||||
}
|
||||
|
||||
public async update(id: string, request: BusinessLineInfoUpdate): Promise<BusinessLine> {
|
||||
const resource = new LegalEntityManagementResource(this, `/businessLines/${id}`);
|
||||
const response = await getJsonResponse<BusinessLineInfoUpdate, BusinessLine>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "PATCH" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "BusinessLine");
|
||||
}
|
||||
}
|
||||
|
||||
export default BusinessLineService;
|
||||
49
src/services/legalEntityManagement/documents.ts
Normal file
49
src/services/legalEntityManagement/documents.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
import getJsonResponse from "../../helpers/getJsonResponse";
|
||||
import Service from "../../service";
|
||||
import LegalEntityManagementResource from "../resource/legalEntityManagementResource";
|
||||
import {Document, ObjectSerializer} from "../../typings/legalEntityManagement/models";
|
||||
|
||||
export type DocumentUpdate = Omit<Document, "id">
|
||||
|
||||
class Documents extends Service {
|
||||
public async create(request: DocumentUpdate): Promise<Document> {
|
||||
const resource = new LegalEntityManagementResource(this, "/documents");
|
||||
const response = await getJsonResponse<DocumentUpdate, Document>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "POST" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "Document");
|
||||
}
|
||||
|
||||
public async retrieve(id: string): Promise<Document> {
|
||||
const resource = new LegalEntityManagementResource(this, `/documents/${id}`);
|
||||
const response = await getJsonResponse<string, Document>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "Document");
|
||||
}
|
||||
|
||||
public async update(id: string, request: DocumentUpdate): Promise<Document> {
|
||||
const resource = new LegalEntityManagementResource(this, `/documents/${id}`);
|
||||
const response = await getJsonResponse<DocumentUpdate, Document>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "PATCH" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "Document");
|
||||
}
|
||||
|
||||
public async delete(id: string): Promise<void> {
|
||||
const resource = new LegalEntityManagementResource(this, `/documents/${id}`);
|
||||
await getJsonResponse<string, string>(
|
||||
resource,
|
||||
"",
|
||||
{method: "DELETE" }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Documents;
|
||||
40
src/services/legalEntityManagement/hostedOnboardingPage.ts
Normal file
40
src/services/legalEntityManagement/hostedOnboardingPage.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
import getJsonResponse from "../../helpers/getJsonResponse";
|
||||
import Service from "../../service";
|
||||
import LegalEntityManagementResource from "../resource/legalEntityManagementResource";
|
||||
import {OnboardingLinkInfo} from "../../typings/legalEntityManagement/onboardingLinkInfo";
|
||||
import {OnboardingLink} from "../../typings/legalEntityManagement/onboardingLink";
|
||||
import {ObjectSerializer, OnboardingTheme, OnboardingThemes} from "../../typings/legalEntityManagement/models";
|
||||
|
||||
class HostedOnboardingPage extends Service {
|
||||
public async create(id: string, request: OnboardingLinkInfo): Promise<OnboardingLink> {
|
||||
const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}/onboardingLinks`);
|
||||
const response = await getJsonResponse<OnboardingLinkInfo, OnboardingLink>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "POST" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "OnboardingLink");
|
||||
}
|
||||
|
||||
public async listThemes(): Promise<OnboardingThemes> {
|
||||
const resource = new LegalEntityManagementResource(this, "/themes");
|
||||
const response = await getJsonResponse<string, OnboardingThemes>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "OnboardingThemes");
|
||||
}
|
||||
|
||||
public async retrieveTheme(id: string): Promise<OnboardingTheme> {
|
||||
const resource = new LegalEntityManagementResource(this, `/themes/${id}`);
|
||||
const response = await getJsonResponse<string, OnboardingTheme>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "OnboardingTheme");
|
||||
}
|
||||
}
|
||||
|
||||
export default HostedOnboardingPage;
|
||||
50
src/services/legalEntityManagement/legalEntities.ts
Normal file
50
src/services/legalEntityManagement/legalEntities.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
import getJsonResponse from "../../helpers/getJsonResponse";
|
||||
import Service from "../../service";
|
||||
import LegalEntityManagementResource from "../resource/legalEntityManagementResource";
|
||||
import {LegalEntity} from "../../typings/legalEntityManagement/legalEntity";
|
||||
import {LegalEntityInfo} from "../../typings/legalEntityManagement/legalEntityInfo";
|
||||
import {BusinessLines, ObjectSerializer} from "../../typings/legalEntityManagement/models";
|
||||
|
||||
class LegalEntities extends Service {
|
||||
public async create(request: LegalEntityInfo): Promise<LegalEntity> {
|
||||
const resource = new LegalEntityManagementResource(this, "/legalEntities");
|
||||
const response = await getJsonResponse<LegalEntityInfo, LegalEntity>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "POST" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "LegalEntity");
|
||||
}
|
||||
|
||||
public async retrieve(id: string): Promise<LegalEntity> {
|
||||
const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}`);
|
||||
const response = await getJsonResponse<string, LegalEntity>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "LegalEntity");
|
||||
}
|
||||
|
||||
public async update(id: string, request: LegalEntityInfo): Promise<LegalEntity> {
|
||||
const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}`);
|
||||
const response = await getJsonResponse<LegalEntityInfo, LegalEntity>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "PATCH" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "LegalEntity");
|
||||
}
|
||||
|
||||
public async listBusinessLines(id: string): Promise<BusinessLines> {
|
||||
const resource = new LegalEntityManagementResource(this, `/legalEntities/${id}/businessLines`);
|
||||
const response = await getJsonResponse<string, BusinessLines>(
|
||||
resource,
|
||||
"",
|
||||
{method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "BusinessLines");
|
||||
}
|
||||
}
|
||||
|
||||
export default LegalEntities;
|
||||
49
src/services/legalEntityManagement/transferInstruments.ts
Normal file
49
src/services/legalEntityManagement/transferInstruments.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
import getJsonResponse from "../../helpers/getJsonResponse";
|
||||
import Service from "../../service";
|
||||
import LegalEntityManagementResource from "../resource/legalEntityManagementResource";
|
||||
import {TransferInstrumentInfo} from "../../typings/legalEntityManagement/transferInstrumentInfo";
|
||||
import {TransferInstrument} from "../../typings/legalEntityManagement/transferInstrument";
|
||||
import {ObjectSerializer} from "../../typings/legalEntityManagement/models";
|
||||
|
||||
class TransferInstruments extends Service {
|
||||
public async create(request: TransferInstrumentInfo): Promise<TransferInstrument> {
|
||||
const resource = new LegalEntityManagementResource(this, "/transferInstruments");
|
||||
const response = await getJsonResponse<TransferInstrumentInfo, TransferInstrument>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "POST" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "TransferInstrument");
|
||||
}
|
||||
|
||||
public async retrieve(id: string): Promise<TransferInstrument> {
|
||||
const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`);
|
||||
const response = await getJsonResponse<string, TransferInstrument>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "TransferInstrument");
|
||||
}
|
||||
|
||||
public async update(id: string, request: TransferInstrumentInfo): Promise<TransferInstrument> {
|
||||
const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`);
|
||||
const response = await getJsonResponse<TransferInstrumentInfo, TransferInstrument>(
|
||||
resource,
|
||||
request,
|
||||
{ method: "PATCH" }
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "TransferInstrument");
|
||||
}
|
||||
|
||||
public async delete(id: string): Promise<void> {
|
||||
const resource = new LegalEntityManagementResource(this, `/transferInstruments/${id}`);
|
||||
await getJsonResponse<string, string>(
|
||||
resource,
|
||||
"",
|
||||
{method: "DELETE" }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default TransferInstruments;
|
||||
14
src/services/resource/TransfersResource.ts
Normal file
14
src/services/resource/TransfersResource.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Client from "../../client";
|
||||
import Service from "../../service";
|
||||
import Resource from "../resource";
|
||||
|
||||
class TransfersResource extends Resource {
|
||||
public constructor(service: Service, endpoint: string) {
|
||||
super(
|
||||
service,
|
||||
`${service.client.config.transfersEndpoint}/${Client.TRANSFERS_API_VERSION}${endpoint}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default TransfersResource;
|
||||
14
src/services/resource/legalEntityManagementResource.ts
Normal file
14
src/services/resource/legalEntityManagementResource.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Client from "../../client";
|
||||
import Service from "../../service";
|
||||
import Resource from "../resource";
|
||||
|
||||
class LegalEntityManagementResource extends Resource {
|
||||
public constructor(service: Service, endpoint: string) {
|
||||
super(
|
||||
service,
|
||||
`${service.client.config.legalEntityManagementEndpoint}/${Client.LEGAL_ENTITY_MANAGEMENT_API_VERSION}${endpoint}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default LegalEntityManagementResource;
|
||||
@@ -62,15 +62,19 @@ class TerminalLocalAPI extends ApiKeyAuthenticatedService {
|
||||
securedPaymentRequest
|
||||
);
|
||||
|
||||
const terminalApiSecuredResponse: TerminalApiSecuredResponse =
|
||||
ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse");
|
||||
// Catch an empty jsonResponse (i.e. Abort Request)
|
||||
if(!jsonResponse) {
|
||||
return new TerminalApiResponse();
|
||||
} else {
|
||||
const terminalApiSecuredResponse: TerminalApiSecuredResponse =
|
||||
ObjectSerializer.deserialize(jsonResponse, "TerminalApiSecuredResponse");
|
||||
|
||||
const response = this.nexoCrypto.decrypt(
|
||||
terminalApiSecuredResponse.SaleToPOIResponse,
|
||||
securityKey,
|
||||
);
|
||||
|
||||
return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse");
|
||||
const response = this.nexoCrypto.decrypt(
|
||||
terminalApiSecuredResponse.SaleToPOIResponse,
|
||||
securityKey,
|
||||
);
|
||||
return ObjectSerializer.deserialize(JSON.parse(response), "TerminalApiResponse");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
47
src/services/transfers.ts
Normal file
47
src/services/transfers.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import Client from "../client";
|
||||
import getJsonResponse from "../helpers/getJsonResponse";
|
||||
import Service from "../service";
|
||||
import { TransferInfo, Transfer, Transaction, TransactionSearchResponse, ObjectSerializer } from "../typings/transfer/models";
|
||||
import TransfersResource from "./resource/TransfersResource";
|
||||
|
||||
class Transfers extends Service {
|
||||
|
||||
private readonly _transfersResource;
|
||||
private readonly _listTransactionsResource;
|
||||
|
||||
public constructor(client: Client) {
|
||||
super(client);
|
||||
this._transfersResource = new TransfersResource(this, "/transfers");
|
||||
this._listTransactionsResource = new TransfersResource(this, "/transactions");
|
||||
}
|
||||
|
||||
public async transfers(request: TransferInfo) : Promise<Transfer> {
|
||||
const response = await getJsonResponse<TransferInfo, Transfer>(
|
||||
this._transfersResource,
|
||||
request,
|
||||
{method: "POST"}
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "Transfer");
|
||||
}
|
||||
|
||||
public async getTransaction(id: string): Promise<Transaction> {
|
||||
const resource = new TransfersResource(this, `/transactions/${id}`);
|
||||
const response = await getJsonResponse<string, Transaction>(
|
||||
resource,
|
||||
"",
|
||||
{ method: "GET"}
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "Transaction");
|
||||
}
|
||||
|
||||
public async listTransactions(): Promise<TransactionSearchResponse> {
|
||||
const response = await getJsonResponse<string, TransactionSearchResponse>(
|
||||
this._listTransactionsResource,
|
||||
"",
|
||||
{ method: "GET"}
|
||||
);
|
||||
return ObjectSerializer.deserialize(response, "TransactionSearchResponse");
|
||||
}
|
||||
}
|
||||
|
||||
export default Transfers;
|
||||
@@ -29,7 +29,7 @@ export class AccountHolder {
|
||||
*/
|
||||
'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).
|
||||
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
|
||||
*/
|
||||
'legalEntityId': string;
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ export class AccountHolder {
|
||||
*/
|
||||
'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.
|
||||
* The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone.
|
||||
*/
|
||||
'status'?: AccountHolder.StatusEnum;
|
||||
/**
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { CapabilityProblem } from './capabilityProblem';
|
||||
import { JSONObject } from './jSONObject';
|
||||
|
||||
export class AccountHolderCapability {
|
||||
@@ -27,7 +26,7 @@ export class AccountHolderCapability {
|
||||
/**
|
||||
* Contains verification errors and the actions that you can take to resolve them.
|
||||
*/
|
||||
'problems'?: Array<CapabilityProblem>;
|
||||
'problems'?: Array<any>;
|
||||
/**
|
||||
* Indicates whether the capability is requested. To check whether the account holder is permitted to use the capability, refer to the `allowed` field.
|
||||
*/
|
||||
@@ -68,7 +67,7 @@ export class AccountHolderCapability {
|
||||
{
|
||||
"name": "problems",
|
||||
"baseName": "problems",
|
||||
"type": "Array<CapabilityProblem>"
|
||||
"type": "Array<any>"
|
||||
},
|
||||
{
|
||||
"name": "requested",
|
||||
|
||||
@@ -25,7 +25,7 @@ export class AccountHolderInfo {
|
||||
*/
|
||||
'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).
|
||||
* The unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) associated with the account holder. Adyen performs a verification process against the legal entity of the account holder.
|
||||
*/
|
||||
'legalEntityId': string;
|
||||
/**
|
||||
|
||||
30
src/typings/balancePlatform/bankAccount.ts
Normal file
30
src/typings/balancePlatform/bankAccount.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 BankAccount {
|
||||
/**
|
||||
* The [International Bank Account Number](https://en.wikipedia.org/wiki/International_Bank_Account_Number) (IBAN).
|
||||
*/
|
||||
'iban': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "iban",
|
||||
"baseName": "iban",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BankAccount.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
/*
|
||||
* 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<VerificationError>;
|
||||
|
||||
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<VerificationError>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CapabilityProblem.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* 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 = <any> 'BankAccount',
|
||||
Document = <any> 'Document',
|
||||
LegalEntity = <any> 'LegalEntity'
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ export class Card {
|
||||
*/
|
||||
'brandVariant': string;
|
||||
/**
|
||||
* The name of the card holder. Maximum length: 26 characters.
|
||||
* The name of the cardholder. Maximum length: 26 characters.
|
||||
*/
|
||||
'cardholderName': string;
|
||||
'configuration'?: CardConfiguration;
|
||||
|
||||
@@ -22,7 +22,7 @@ export class CardInfo {
|
||||
*/
|
||||
'brandVariant': string;
|
||||
/**
|
||||
* The name of the card holder. Maximum length: 26 characters.
|
||||
* The name of the cardholder. Maximum length: 26 characters.
|
||||
*/
|
||||
'cardholderName': string;
|
||||
'configuration'?: CardConfiguration;
|
||||
|
||||
48
src/typings/balancePlatform/cronSweepSchedule.ts
Normal file
48
src/typings/balancePlatform/cronSweepSchedule.ts
Normal file
@@ -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 CronSweepSchedule {
|
||||
/**
|
||||
* A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples.
|
||||
*/
|
||||
'cronExpression': string;
|
||||
/**
|
||||
* The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **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'?: CronSweepSchedule.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "cronExpression",
|
||||
"baseName": "cronExpression",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "CronSweepSchedule.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CronSweepSchedule.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CronSweepSchedule {
|
||||
export enum TypeEnum {
|
||||
Daily = <any> 'daily',
|
||||
Weekly = <any> 'weekly',
|
||||
Monthly = <any> 'monthly',
|
||||
Balance = <any> 'balance',
|
||||
Cron = <any> 'cron'
|
||||
}
|
||||
}
|
||||
@@ -12,7 +12,7 @@ import { Name } from './name';
|
||||
import { PhoneNumber } from './phoneNumber';
|
||||
|
||||
export class DeliveryContact {
|
||||
'address'?: Address2;
|
||||
'address': Address2;
|
||||
/**
|
||||
* The email address of the contact.
|
||||
*/
|
||||
@@ -21,7 +21,7 @@ export class DeliveryContact {
|
||||
* 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;
|
||||
'name': Name;
|
||||
'phoneNumber'?: PhoneNumber;
|
||||
/**
|
||||
* The URL of the contact\'s website.
|
||||
|
||||
@@ -14,7 +14,7 @@ export class EntryModesRestriction {
|
||||
*/
|
||||
'operation': string;
|
||||
/**
|
||||
* List of point-of-sale entry modes. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **token**, **server**, **barcode**, **ocr**.
|
||||
* List of point-of-sale entry modes. Possible values: **barcode**, **chip**, **cof**, **contactless**, **magstripe**, **manual**, **ocr**, **server**.
|
||||
*/
|
||||
'value'?: Array<EntryModesRestriction.ValueEnum>;
|
||||
|
||||
@@ -47,7 +47,6 @@ export namespace EntryModesRestriction {
|
||||
Manual = <any> 'manual',
|
||||
Ocr = <any> 'ocr',
|
||||
Server = <any> 'server',
|
||||
Token = <any> 'token',
|
||||
Unknown = <any> 'unknown'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,16 +22,15 @@ export * from './balanceAccountInfo';
|
||||
export * from './balanceAccountUpdateRequest';
|
||||
export * from './balancePlatform';
|
||||
export * from './balanceSweepConfigurationsResponse';
|
||||
export * from './bankAccount';
|
||||
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 './cronSweepSchedule';
|
||||
export * from './deliveryContact';
|
||||
export * from './differentCurrenciesRestriction';
|
||||
export * from './duration';
|
||||
@@ -90,16 +89,15 @@ import { BalanceAccountInfo } from './balanceAccountInfo';
|
||||
import { BalanceAccountUpdateRequest } from './balanceAccountUpdateRequest';
|
||||
import { BalancePlatform } from './balancePlatform';
|
||||
import { BalanceSweepConfigurationsResponse } from './balanceSweepConfigurationsResponse';
|
||||
import { BankAccount } from './bankAccount';
|
||||
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 { CronSweepSchedule } from './cronSweepSchedule';
|
||||
import { DeliveryContact } from './deliveryContact';
|
||||
import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction';
|
||||
import { Duration } from './duration';
|
||||
@@ -162,10 +160,9 @@ let enumsMap: {[index: string]: any} = {
|
||||
"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,
|
||||
"CronSweepSchedule.TypeEnum": CronSweepSchedule.TypeEnum,
|
||||
"Duration.UnitEnum": Duration.UnitEnum,
|
||||
"EntryModesRestriction.ValueEnum": EntryModesRestriction.ValueEnum,
|
||||
"PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum,
|
||||
@@ -209,16 +206,15 @@ let typeMap: {[index: string]: any} = {
|
||||
"BalanceAccountUpdateRequest": BalanceAccountUpdateRequest,
|
||||
"BalancePlatform": BalancePlatform,
|
||||
"BalanceSweepConfigurationsResponse": BalanceSweepConfigurationsResponse,
|
||||
"BankAccount": BankAccount,
|
||||
"BrandVariantsRestriction": BrandVariantsRestriction,
|
||||
"BulkAddress": BulkAddress,
|
||||
"CapabilityProblem": CapabilityProblem,
|
||||
"CapabilityProblemEntity": CapabilityProblemEntity,
|
||||
"CapabilityProblemEntityRecursive": CapabilityProblemEntityRecursive,
|
||||
"Card": Card,
|
||||
"CardConfiguration": CardConfiguration,
|
||||
"CardInfo": CardInfo,
|
||||
"ContactDetails": ContactDetails,
|
||||
"CountriesRestriction": CountriesRestriction,
|
||||
"CronSweepSchedule": CronSweepSchedule,
|
||||
"DeliveryContact": DeliveryContact,
|
||||
"DifferentCurrenciesRestriction": DifferentCurrenciesRestriction,
|
||||
"Duration": Duration,
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { BankAccount } from './bankAccount';
|
||||
import { Card } from './card';
|
||||
|
||||
export class PaymentInstrument {
|
||||
@@ -14,6 +15,7 @@ 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;
|
||||
'bankAccount'?: BankAccount;
|
||||
'card'?: Card;
|
||||
/**
|
||||
* Your description for the payment instrument, maximum 300 characters.
|
||||
@@ -36,7 +38,7 @@ export class PaymentInstrument {
|
||||
*/
|
||||
'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.
|
||||
* The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
|
||||
*/
|
||||
'status'?: PaymentInstrument.StatusEnum;
|
||||
/**
|
||||
@@ -44,7 +46,7 @@ export class PaymentInstrument {
|
||||
*/
|
||||
'statusReason'?: PaymentInstrument.StatusReasonEnum;
|
||||
/**
|
||||
* Type of payment instrument. Possible value: **card**.
|
||||
* Type of payment instrument. Possible value: **card**, **bankAccount**.
|
||||
*/
|
||||
'type': PaymentInstrument.TypeEnum;
|
||||
|
||||
@@ -56,6 +58,11 @@ export class PaymentInstrument {
|
||||
"baseName": "balanceAccountId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccount",
|
||||
"baseName": "bankAccount",
|
||||
"type": "BankAccount"
|
||||
},
|
||||
{
|
||||
"name": "card",
|
||||
"baseName": "card",
|
||||
@@ -125,6 +132,7 @@ export namespace PaymentInstrument {
|
||||
SuspectedFraud = <any> 'suspectedFraud'
|
||||
}
|
||||
export enum TypeEnum {
|
||||
BankAccount = <any> 'bankAccount',
|
||||
Card = <any> 'card'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ export class PaymentInstrumentInfo {
|
||||
*/
|
||||
'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.
|
||||
* The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
|
||||
*/
|
||||
'status'?: PaymentInstrumentInfo.StatusEnum;
|
||||
/**
|
||||
@@ -40,7 +40,7 @@ export class PaymentInstrumentInfo {
|
||||
*/
|
||||
'statusReason'?: PaymentInstrumentInfo.StatusReasonEnum;
|
||||
/**
|
||||
* Type of payment instrument. Possible value: **card**.
|
||||
* Type of payment instrument. Possible value: **card**, **bankAccount**.
|
||||
*/
|
||||
'type': PaymentInstrumentInfo.TypeEnum;
|
||||
|
||||
@@ -116,6 +116,7 @@ export namespace PaymentInstrumentInfo {
|
||||
SuspectedFraud = <any> 'suspectedFraud'
|
||||
}
|
||||
export enum TypeEnum {
|
||||
BankAccount = <any> 'bankAccount',
|
||||
Card = <any> 'card'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ export class PaymentInstrumentUpdateRequest {
|
||||
'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.
|
||||
* The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
|
||||
*/
|
||||
'status'?: PaymentInstrumentUpdateRequest.StatusEnum;
|
||||
/**
|
||||
|
||||
@@ -14,7 +14,7 @@ export class ProcessingTypesRestriction {
|
||||
*/
|
||||
'operation': string;
|
||||
/**
|
||||
* List of processing types. Possible values: **atmWithdraw**, **pos**, **ecommerce**, **moto**, **recurring**, **balanceInquiry**.
|
||||
* List of processing types. Possible values: **atmWithdraw**, **balanceInquiry**, **ecommerce**, **moto**, **pos**, **recurring**, **token**.
|
||||
*/
|
||||
'value'?: Array<ProcessingTypesRestriction.ValueEnum>;
|
||||
|
||||
@@ -44,7 +44,6 @@ export namespace ProcessingTypesRestriction {
|
||||
Ecommerce = <any> 'ecommerce',
|
||||
Moto = <any> 'moto',
|
||||
Pos = <any> 'pos',
|
||||
PurchaseWithCashback = <any> 'purchaseWithCashback',
|
||||
Recurring = <any> 'recurring',
|
||||
Token = <any> 'token',
|
||||
Unknown = <any> 'unknown'
|
||||
|
||||
@@ -20,10 +20,6 @@ export class RestServiceError {
|
||||
*/
|
||||
'errorCode': string;
|
||||
/**
|
||||
* A URI that identifies the problem type, pointing to human-readable documentation on this problem type.
|
||||
*/
|
||||
'errorType': string;
|
||||
/**
|
||||
* A unique URI that identifies the specific occurrence of the problem.
|
||||
*/
|
||||
'instance'?: string;
|
||||
@@ -44,6 +40,10 @@ export class RestServiceError {
|
||||
* A short, human-readable summary of the problem type.
|
||||
*/
|
||||
'title': string;
|
||||
/**
|
||||
* A URI that identifies the problem type, pointing to human-readable documentation on this problem type.
|
||||
*/
|
||||
'type': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
@@ -58,11 +58,6 @@ export class RestServiceError {
|
||||
"baseName": "errorCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "errorType",
|
||||
"baseName": "errorType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "instance",
|
||||
"baseName": "instance",
|
||||
@@ -92,6 +87,11 @@ export class RestServiceError {
|
||||
"name": "title",
|
||||
"baseName": "title",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
import { CronSweepSchedule } from './cronSweepSchedule';
|
||||
import { SweepCounterparty } from './sweepCounterparty';
|
||||
import { SweepSchedule } from './sweepSchedule';
|
||||
|
||||
@@ -18,10 +19,17 @@ export class SweepConfigurationV2 {
|
||||
*/
|
||||
'currency': string;
|
||||
/**
|
||||
* The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The unique identifier of the sweep.
|
||||
*/
|
||||
'id': string;
|
||||
'schedule': SweepSchedule;
|
||||
/**
|
||||
* The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account.
|
||||
*/
|
||||
'schedule': CronSweepSchedule | 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.
|
||||
*/
|
||||
@@ -47,6 +55,11 @@ export class SweepConfigurationV2 {
|
||||
"baseName": "currency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
@@ -55,7 +68,7 @@ export class SweepConfigurationV2 {
|
||||
{
|
||||
"name": "schedule",
|
||||
"baseName": "schedule",
|
||||
"type": "SweepSchedule"
|
||||
"type": "CronSweepSchedule | SweepSchedule"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
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`.
|
||||
* The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **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;
|
||||
|
||||
@@ -33,6 +33,7 @@ export namespace SweepSchedule {
|
||||
Daily = <any> 'daily',
|
||||
Weekly = <any> 'weekly',
|
||||
Monthly = <any> 'monthly',
|
||||
Balance = <any> 'balance'
|
||||
Balance = <any> 'balance',
|
||||
Cron = <any> 'cron'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ export class TransactionRule {
|
||||
*/
|
||||
'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.
|
||||
* The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.
|
||||
*/
|
||||
'type': TransactionRule.TypeEnum;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ export class TransactionRuleInfo {
|
||||
*/
|
||||
'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.
|
||||
* The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.
|
||||
*/
|
||||
'type': TransactionRuleInfo.TypeEnum;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
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**.
|
||||
* 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; };
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
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).
|
||||
* Base64 encoded data you need to [complete the Apple Pay merchant validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).
|
||||
*/
|
||||
'data': string;
|
||||
|
||||
|
||||
@@ -130,11 +130,11 @@ export class CheckoutBalanceCheckRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
* 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.
|
||||
* The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms.
|
||||
*/
|
||||
'store'?: string;
|
||||
/**
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
|
||||
export class CheckoutBankTransferAction {
|
||||
/**
|
||||
* The name of the account holder.
|
||||
*/
|
||||
'beneficiary'?: string;
|
||||
/**
|
||||
* The BIC of the IBAN.
|
||||
*/
|
||||
'bic'?: string;
|
||||
/**
|
||||
* The url to download payment details with.
|
||||
*/
|
||||
'downloadUrl'?: string;
|
||||
/**
|
||||
* The IBAN of the bank transfer.
|
||||
*/
|
||||
'iban'?: string;
|
||||
/**
|
||||
* Specifies the payment method.
|
||||
*/
|
||||
'paymentMethodType'?: string;
|
||||
/**
|
||||
* The transfer reference.
|
||||
*/
|
||||
'reference'?: string;
|
||||
/**
|
||||
* The e-mail of the shopper, included if an e-mail was sent to the shopper.
|
||||
*/
|
||||
'shopperEmail'?: string;
|
||||
'totalAmount'?: Amount;
|
||||
/**
|
||||
* The type of the action.
|
||||
*/
|
||||
'type': CheckoutBankTransferAction.TypeEnum;
|
||||
/**
|
||||
* 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 {
|
||||
export enum TypeEnum {
|
||||
BankTransfer = <any> 'bankTransfer'
|
||||
}
|
||||
}
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* 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 CheckoutDonationAction {
|
||||
/**
|
||||
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
|
||||
*/
|
||||
'paymentData'?: string;
|
||||
/**
|
||||
* Specifies the payment method.
|
||||
*/
|
||||
'paymentMethodType'?: string;
|
||||
/**
|
||||
* The type of the action.
|
||||
*/
|
||||
'type': CheckoutDonationAction.TypeEnum;
|
||||
/**
|
||||
* 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 {
|
||||
export enum TypeEnum {
|
||||
Donate = <any> 'donate'
|
||||
}
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import { Redirect } from './redirect';
|
||||
|
||||
export class CheckoutOneTimePasscodeAction {
|
||||
/**
|
||||
* A value that must be submitted to the `/payments/details` endpoint to verify this payment.
|
||||
*/
|
||||
'paymentData'?: string;
|
||||
/**
|
||||
* Specifies the payment method.
|
||||
*/
|
||||
'paymentMethodType'?: string;
|
||||
'redirect'?: Redirect;
|
||||
/**
|
||||
* The interval in second between OTP resend.
|
||||
*/
|
||||
'resendInterval'?: number;
|
||||
/**
|
||||
* The maximum number of OTP resend attempts.
|
||||
*/
|
||||
'resendMaxAttempts'?: number;
|
||||
/**
|
||||
* The URL, to which you make POST request to trigger OTP resend.
|
||||
*/
|
||||
'resendUrl'?: string;
|
||||
/**
|
||||
* The type of the action.
|
||||
*/
|
||||
'type': CheckoutOneTimePasscodeAction.TypeEnum;
|
||||
/**
|
||||
* 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 {
|
||||
export enum TypeEnum {
|
||||
OneTimePasscode = <any> 'oneTimePasscode'
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ export class CreatePaymentAmountUpdateRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export class CreatePaymentCaptureRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ export class CreatePaymentLinkRequest {
|
||||
*/
|
||||
'splitCardFundingSources'?: boolean;
|
||||
/**
|
||||
* An array of objects specifying how the payment 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).
|
||||
* An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
@@ -140,7 +140,7 @@ export class CreatePaymentLinkRequest {
|
||||
*/
|
||||
'telephoneNumber'?: string;
|
||||
/**
|
||||
* 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.
|
||||
* A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area.
|
||||
*/
|
||||
'themeId'?: string;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export class CreatePaymentRefundRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
|
||||
|
||||
@@ -50,13 +50,10 @@ export * from './cellulantDetails';
|
||||
export * from './checkoutAwaitAction';
|
||||
export * from './checkoutBalanceCheckRequest';
|
||||
export * from './checkoutBalanceCheckResponse';
|
||||
export * from './checkoutBankTransferAction';
|
||||
export * from './checkoutCancelOrderRequest';
|
||||
export * from './checkoutCancelOrderResponse';
|
||||
export * from './checkoutCreateOrderRequest';
|
||||
export * from './checkoutCreateOrderResponse';
|
||||
export * from './checkoutDonationAction';
|
||||
export * from './checkoutOneTimePasscodeAction';
|
||||
export * from './checkoutOrder';
|
||||
export * from './checkoutOrderResponse';
|
||||
export * from './checkoutQrCodeAction';
|
||||
@@ -139,7 +136,6 @@ export * from './phone';
|
||||
export * from './ratepayDetails';
|
||||
export * from './recurring';
|
||||
export * from './recurringDetail';
|
||||
export * from './redirect';
|
||||
export * from './responseAdditionalData3DSecure';
|
||||
export * from './responseAdditionalDataBillingAddress';
|
||||
export * from './responseAdditionalDataCard';
|
||||
@@ -223,13 +219,10 @@ 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';
|
||||
@@ -312,7 +305,6 @@ 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';
|
||||
@@ -399,11 +391,8 @@ let enumsMap: {[index: string]: any} = {
|
||||
"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,
|
||||
@@ -483,9 +472,7 @@ let enumsMap: {[index: string]: any} = {
|
||||
"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,
|
||||
@@ -567,13 +554,10 @@ let typeMap: {[index: string]: any} = {
|
||||
"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,
|
||||
@@ -656,7 +640,6 @@ let typeMap: {[index: string]: any} = {
|
||||
"RatepayDetails": RatepayDetails,
|
||||
"Recurring": Recurring,
|
||||
"RecurringDetail": RecurringDetail,
|
||||
"Redirect": Redirect,
|
||||
"ResponseAdditionalData3DSecure": ResponseAdditionalData3DSecure,
|
||||
"ResponseAdditionalDataBillingAddress": ResponseAdditionalDataBillingAddress,
|
||||
"ResponseAdditionalDataCard": ResponseAdditionalDataCard,
|
||||
|
||||
@@ -33,7 +33,7 @@ export class PaymentAmountUpdateResource {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ export class PaymentCaptureResource {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
|
||||
@@ -61,6 +61,7 @@ export namespace PaymentDetails {
|
||||
MolpayEbankingVn = <any> 'molpay_ebanking_VN',
|
||||
OnlineBankingPl = <any> 'onlineBanking_PL',
|
||||
OpenbankingUk = <any> 'openbanking_UK',
|
||||
Paybybank = <any> 'paybybank',
|
||||
EbankingFi = <any> 'ebanking_FI',
|
||||
MolpayEbankingMy = <any> 'molpay_ebanking_MY',
|
||||
MolpayEbankingDirectMy = <any> 'molpay_ebanking_direct_MY',
|
||||
|
||||
@@ -243,11 +243,11 @@ export class PaymentDonationRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
* 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.
|
||||
* The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms.
|
||||
*/
|
||||
'store'?: string;
|
||||
/**
|
||||
|
||||
@@ -128,7 +128,7 @@ export class PaymentLinkResponse {
|
||||
*/
|
||||
'splitCardFundingSources'?: boolean;
|
||||
/**
|
||||
* An array of objects specifying how the payment 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).
|
||||
* An array of objects specifying how the payment should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
@@ -148,7 +148,7 @@ export class PaymentLinkResponse {
|
||||
*/
|
||||
'telephoneNumber'?: string;
|
||||
/**
|
||||
* 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.
|
||||
* A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area.
|
||||
*/
|
||||
'themeId'?: string;
|
||||
/**
|
||||
|
||||
@@ -50,7 +50,7 @@ export class PaymentMethodsRequest {
|
||||
*/
|
||||
'splitCardFundingSources'?: boolean;
|
||||
/**
|
||||
* 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.
|
||||
* The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms.
|
||||
*/
|
||||
'store'?: string;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ export class PaymentRefundResource {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the amount should be split between accounts when using Adyen for Platforms. For details, refer to [Providing split information](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
|
||||
@@ -231,11 +231,11 @@ export class PaymentRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
* 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.
|
||||
* The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms.
|
||||
*/
|
||||
'store'?: string;
|
||||
/**
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
|
||||
import { Amount } from './amount';
|
||||
import { CheckoutAwaitAction } from './checkoutAwaitAction';
|
||||
import { CheckoutBankTransferAction } from './checkoutBankTransferAction';
|
||||
import { CheckoutDonationAction } from './checkoutDonationAction';
|
||||
import { CheckoutOneTimePasscodeAction } from './checkoutOneTimePasscodeAction';
|
||||
import { CheckoutOrderResponse } from './checkoutOrderResponse';
|
||||
import { CheckoutQrCodeAction } from './checkoutQrCodeAction';
|
||||
import { CheckoutRedirectAction } from './checkoutRedirectAction';
|
||||
@@ -27,7 +24,7 @@ export class PaymentResponse {
|
||||
/**
|
||||
* Action to be taken for completing the payment.
|
||||
*/
|
||||
'action'?: CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction;
|
||||
'action'?: CheckoutAwaitAction | 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** > **Developers** > **Additional data**.
|
||||
*/
|
||||
@@ -73,7 +70,7 @@ export class PaymentResponse {
|
||||
{
|
||||
"name": "action",
|
||||
"baseName": "action",
|
||||
"type": "CheckoutAwaitAction | CheckoutBankTransferAction | CheckoutDonationAction | CheckoutOneTimePasscodeAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction"
|
||||
"type": "CheckoutAwaitAction | CheckoutQrCodeAction | CheckoutRedirectAction | CheckoutSDKAction | CheckoutThreeDS2Action | CheckoutVoucherAction"
|
||||
},
|
||||
{
|
||||
"name": "additionalData",
|
||||
|
||||
@@ -173,11 +173,11 @@ export class PaymentSetupRequest {
|
||||
*/
|
||||
'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).
|
||||
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
|
||||
*/
|
||||
'splits'?: Array<Split>;
|
||||
/**
|
||||
* 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.
|
||||
* The ecommerce or point-of-sale store that is processing the payment. Used in [partner model integrations](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners#route-payments) for Adyen for Platforms.
|
||||
*/
|
||||
'store'?: string;
|
||||
/**
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* 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 Redirect {
|
||||
/**
|
||||
* When the redirect URL must be accessed via POST, use this data to post to the redirect URL.
|
||||
*/
|
||||
'data'?: { [key: string]: string; };
|
||||
/**
|
||||
* The web method that you must use to access the redirect URL. Possible values: GET, POST.
|
||||
*/
|
||||
'method'?: Redirect.MethodEnum;
|
||||
/**
|
||||
* 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 = <any> 'GET',
|
||||
Post = <any> 'POST'
|
||||
}
|
||||
}
|
||||
@@ -130,9 +130,9 @@ export class ResponseAdditionalDataCommon {
|
||||
*/
|
||||
'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)
|
||||
* The Merchant Advice Code (MAC) can be returned by Mastercard issuers for refused payments. If present, the MAC contains information about why the payment failed, and whether it can be retried. For more information see [Mastercard Merchant Advice Codes](https://docs.adyen.com/development-resources/raw-acquirer-responses#mastercard-merchant-advice-codes).
|
||||
*/
|
||||
'merchantAdviceCode'?: ResponseAdditionalDataCommon.MerchantAdviceCodeEnum;
|
||||
'merchantAdviceCode'?: string;
|
||||
/**
|
||||
* The reference provided for the transaction.
|
||||
*/
|
||||
@@ -402,7 +402,7 @@ export class ResponseAdditionalDataCommon {
|
||||
{
|
||||
"name": "merchantAdviceCode",
|
||||
"baseName": "merchantAdviceCode",
|
||||
"type": "ResponseAdditionalDataCommon.MerchantAdviceCodeEnum"
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
@@ -555,13 +555,6 @@ export namespace ResponseAdditionalDataCommon {
|
||||
Green = <any> 'GREEN',
|
||||
Fraud = <any> 'FRAUD'
|
||||
}
|
||||
export enum MerchantAdviceCodeEnum {
|
||||
_01NewAccountInformationAvailable = <any> '01: New account information available',
|
||||
_02CannotApproveAtThisTimeTryAgainLater = <any> '02: Cannot approve at this time, try again later',
|
||||
_03DoNotTryAgain = <any> '03: Do not try again',
|
||||
_04TokenRequirementsNotFulfilledForThisTokenType = <any> '04: Token requirements not fulfilled for this token type',
|
||||
_21PaymentCancellation = <any> '21: Payment Cancellation'
|
||||
}
|
||||
export enum RecurringProcessingModelEnum {
|
||||
CardOnFile = <any> 'CardOnFile',
|
||||
Subscription = <any> 'Subscription',
|
||||
|
||||
@@ -10,11 +10,11 @@
|
||||
|
||||
export class ResponsePaymentMethod {
|
||||
/**
|
||||
* The payment method brand.
|
||||
* The card brand that the shopper used to pay. Only returned if `paymentMethod.type` is **scheme**.
|
||||
*/
|
||||
'brand'?: string;
|
||||
/**
|
||||
* The payment method type.
|
||||
* The `paymentMethod.type` value used in the request.
|
||||
*/
|
||||
'type'?: string;
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
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**.
|
||||
* 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; };
|
||||
/**
|
||||
|
||||
@@ -22,3 +22,5 @@ export * as storedValue from './storedValue/models';
|
||||
export * as terminal from './terminal/models';
|
||||
export * as terminalManagement from './terminalManagement/models';
|
||||
export * as management from './management/models';
|
||||
export * as legalEntityManagement from './legalEntityManagement/models';
|
||||
export * as transfer from './transfer/models';
|
||||
|
||||
75
src/typings/legalEntityManagement/address.ts
Normal file
75
src/typings/legalEntityManagement/address.ts
Normal file
@@ -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. Required if `stateOrProvince` is provided. If you specify the city, you must also send `postalCode` and `street`.
|
||||
*/
|
||||
'city'?: string;
|
||||
/**
|
||||
* The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
|
||||
*/
|
||||
'country': string;
|
||||
/**
|
||||
* Postal code. Required if `stateOrProvince` and/or `city` is provided.
|
||||
*/
|
||||
'postalCode'?: string;
|
||||
/**
|
||||
* The two-letter ISO 3166-2 state or province code. For example, **CA** in the US. If you specify the state or province, you must also send `city`, `postalCode`, and `street`.
|
||||
*/
|
||||
'stateOrProvince'?: string;
|
||||
/**
|
||||
* The name of the street, and the house or building number. Required if `stateOrProvince` and/or `city` is provided.
|
||||
*/
|
||||
'street'?: string;
|
||||
/**
|
||||
* The apartment, unit, or suite number.
|
||||
*/
|
||||
'street2'?: 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": "postalCode",
|
||||
"baseName": "postalCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stateOrProvince",
|
||||
"baseName": "stateOrProvince",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "street",
|
||||
"baseName": "street",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "street2",
|
||||
"baseName": "street2",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Address.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/legalEntityManagement/attachment.ts
Normal file
66
src/typings/legalEntityManagement/attachment.ts
Normal file
@@ -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 Attachment {
|
||||
/**
|
||||
* The document in Base64-encoded string format.
|
||||
*/
|
||||
'content': string;
|
||||
/**
|
||||
* The file format. Possible values: **application/pdf**, **image/jpg**, **image/jpeg**, **image/png**.
|
||||
*/
|
||||
'contentType'?: string;
|
||||
/**
|
||||
* The name of the file including the file extension.
|
||||
*/
|
||||
'filename'?: string;
|
||||
/**
|
||||
* The name of the file including the file extension.
|
||||
*/
|
||||
'pageName'?: string;
|
||||
/**
|
||||
* Specifies which side of the ID card is uploaded. * When `type` is **driversLicense**, set this to **front** or **back**. * When omitted, we infer the page number based on the order of attachments.
|
||||
*/
|
||||
'pageType'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "content",
|
||||
"baseName": "content",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "contentType",
|
||||
"baseName": "contentType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "filename",
|
||||
"baseName": "filename",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pageName",
|
||||
"baseName": "pageName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pageType",
|
||||
"baseName": "pageType",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Attachment.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
120
src/typings/legalEntityManagement/bankAccountInfo.ts
Normal file
120
src/typings/legalEntityManagement/bankAccountInfo.ts
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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 BankAccountInfo {
|
||||
/**
|
||||
* The bank account number (without separators). When this is provided, the `branchCode` is also required.
|
||||
*/
|
||||
'accountNumber'?: string;
|
||||
/**
|
||||
* The type of bank account.
|
||||
*/
|
||||
'accountType'?: string;
|
||||
/**
|
||||
* The bank\'s BIC or SWIFT code.
|
||||
*/
|
||||
'bankBicSwift'?: string;
|
||||
/**
|
||||
* The city where the bank is located.
|
||||
*/
|
||||
'bankCity'?: string;
|
||||
/**
|
||||
* The bank code of the banking institution with which the bank account is registered.
|
||||
*/
|
||||
'bankCode'?: string;
|
||||
/**
|
||||
* The name of the banking institution where the bank account is held.
|
||||
*/
|
||||
'bankName'?: string;
|
||||
/**
|
||||
* The branch code of the branch under which the bank account is registered. Required when you provide an `accountNumber`. In the following countries, this value corresponds to: * United States: routing number * United Kingdom: sort code * Germany: Bankleitzahl
|
||||
*/
|
||||
'branchCode'?: string;
|
||||
/**
|
||||
* The check code of the bank account.
|
||||
*/
|
||||
'checkCode'?: string;
|
||||
/**
|
||||
* The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the bank account is registered. For example, **NL**.
|
||||
*/
|
||||
'countryCode': string;
|
||||
/**
|
||||
* The account\'s three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). For example, **EUR**.
|
||||
*/
|
||||
'currencyCode': string;
|
||||
/**
|
||||
* The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard.
|
||||
*/
|
||||
'iban'?: 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": "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"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BankAccountInfo.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
30
src/typings/legalEntityManagement/birthData.ts
Normal file
30
src/typings/legalEntityManagement/birthData.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 BirthData {
|
||||
/**
|
||||
* The individual\'s date of birth, in YYYY-MM-DD format.
|
||||
*/
|
||||
'dateOfBirth'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "dateOfBirth",
|
||||
"baseName": "dateOfBirth",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BirthData.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
90
src/typings/legalEntityManagement/businessLine.ts
Normal file
90
src/typings/legalEntityManagement/businessLine.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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 { SourceOfFunds } from './sourceOfFunds';
|
||||
import { WebData } from './webData';
|
||||
import { WebDataExemption } from './webDataExemption';
|
||||
|
||||
export class BusinessLine {
|
||||
/**
|
||||
* The capability for which you are creating the business line. For example, **receivePayments**.
|
||||
*/
|
||||
'capability': string;
|
||||
/**
|
||||
* The unique identifier of the business line.
|
||||
*/
|
||||
'id': string;
|
||||
/**
|
||||
* A code that represents the industry of the legal entity. For example, **4431A** for computer software stores.
|
||||
*/
|
||||
'industryCode': string;
|
||||
/**
|
||||
* Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line.
|
||||
*/
|
||||
'legalEntityId': string;
|
||||
/**
|
||||
* A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**.
|
||||
*/
|
||||
'salesChannels'?: Array<string>;
|
||||
'sourceOfFunds'?: SourceOfFunds;
|
||||
/**
|
||||
* List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object.
|
||||
*/
|
||||
'webData'?: Array<WebData>;
|
||||
'webDataExemption'?: WebDataExemption;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "capability",
|
||||
"baseName": "capability",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "industryCode",
|
||||
"baseName": "industryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntityId",
|
||||
"baseName": "legalEntityId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "salesChannels",
|
||||
"baseName": "salesChannels",
|
||||
"type": "Array<string>"
|
||||
},
|
||||
{
|
||||
"name": "sourceOfFunds",
|
||||
"baseName": "sourceOfFunds",
|
||||
"type": "SourceOfFunds"
|
||||
},
|
||||
{
|
||||
"name": "webData",
|
||||
"baseName": "webData",
|
||||
"type": "Array<WebData>"
|
||||
},
|
||||
{
|
||||
"name": "webDataExemption",
|
||||
"baseName": "webDataExemption",
|
||||
"type": "WebDataExemption"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BusinessLine.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
81
src/typings/legalEntityManagement/businessLineInfo.ts
Normal file
81
src/typings/legalEntityManagement/businessLineInfo.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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 { SourceOfFunds } from './sourceOfFunds';
|
||||
import { WebData } from './webData';
|
||||
import { WebDataExemption } from './webDataExemption';
|
||||
|
||||
export class BusinessLineInfo {
|
||||
/**
|
||||
* The capability for which you are creating the business line. For example, **receivePayments**.
|
||||
*/
|
||||
'capability': string;
|
||||
/**
|
||||
* A code that represents the industry of the legal entity. For example, **4431A** for computer software stores.
|
||||
*/
|
||||
'industryCode': string;
|
||||
/**
|
||||
* Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line.
|
||||
*/
|
||||
'legalEntityId': string;
|
||||
/**
|
||||
* A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**.
|
||||
*/
|
||||
'salesChannels'?: Array<string>;
|
||||
'sourceOfFunds'?: SourceOfFunds;
|
||||
/**
|
||||
* List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object.
|
||||
*/
|
||||
'webData'?: Array<WebData>;
|
||||
'webDataExemption'?: WebDataExemption;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "capability",
|
||||
"baseName": "capability",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "industryCode",
|
||||
"baseName": "industryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntityId",
|
||||
"baseName": "legalEntityId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "salesChannels",
|
||||
"baseName": "salesChannels",
|
||||
"type": "Array<string>"
|
||||
},
|
||||
{
|
||||
"name": "sourceOfFunds",
|
||||
"baseName": "sourceOfFunds",
|
||||
"type": "SourceOfFunds"
|
||||
},
|
||||
{
|
||||
"name": "webData",
|
||||
"baseName": "webData",
|
||||
"type": "Array<WebData>"
|
||||
},
|
||||
{
|
||||
"name": "webDataExemption",
|
||||
"baseName": "webDataExemption",
|
||||
"type": "WebDataExemption"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BusinessLineInfo.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
81
src/typings/legalEntityManagement/businessLineInfoUpdate.ts
Normal file
81
src/typings/legalEntityManagement/businessLineInfoUpdate.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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 { SourceOfFunds } from './sourceOfFunds';
|
||||
import { WebData } from './webData';
|
||||
import { WebDataExemption } from './webDataExemption';
|
||||
|
||||
export class BusinessLineInfoUpdate {
|
||||
/**
|
||||
* The capability for which you are creating the business line. For example, **receivePayments**.
|
||||
*/
|
||||
'capability'?: string;
|
||||
/**
|
||||
* A code that represents the industry of your legal entity. For example, **4431A** for computer software stores.
|
||||
*/
|
||||
'industryCode'?: string;
|
||||
/**
|
||||
* Unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id) that owns the business line.
|
||||
*/
|
||||
'legalEntityId'?: string;
|
||||
/**
|
||||
* A list of channels where goods or services are sold. You cannot combine point of sale and ecommerce in one business line. Possible values and combinations: - For point of sale: **pos** and **posMoto** - For ecommerce: **eCommerce** and **ecomMoto** - For Pay by Link: **payByLink** Required only in combination with the `capability` to **receivePayments** or **receiveFromPlatformPayments**.
|
||||
*/
|
||||
'salesChannels'?: Array<string>;
|
||||
'sourceOfFunds'?: SourceOfFunds;
|
||||
/**
|
||||
* List of website URLs where your user\'s goods or services are sold. When this is required for a capability but your user does not have an online presence, provide the reason in the `webDataExemption` object.
|
||||
*/
|
||||
'webData'?: Array<WebData>;
|
||||
'webDataExemption'?: WebDataExemption;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "capability",
|
||||
"baseName": "capability",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "industryCode",
|
||||
"baseName": "industryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntityId",
|
||||
"baseName": "legalEntityId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "salesChannels",
|
||||
"baseName": "salesChannels",
|
||||
"type": "Array<string>"
|
||||
},
|
||||
{
|
||||
"name": "sourceOfFunds",
|
||||
"baseName": "sourceOfFunds",
|
||||
"type": "SourceOfFunds"
|
||||
},
|
||||
{
|
||||
"name": "webData",
|
||||
"baseName": "webData",
|
||||
"type": "Array<WebData>"
|
||||
},
|
||||
{
|
||||
"name": "webDataExemption",
|
||||
"baseName": "webDataExemption",
|
||||
"type": "WebDataExemption"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BusinessLineInfoUpdate.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
31
src/typings/legalEntityManagement/businessLines.ts
Normal file
31
src/typings/legalEntityManagement/businessLines.ts
Normal file
@@ -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 { BusinessLine } from './businessLine';
|
||||
|
||||
export class BusinessLines {
|
||||
/**
|
||||
* List of business lines.
|
||||
*/
|
||||
'businessLines': Array<BusinessLine>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "businessLines",
|
||||
"baseName": "businessLines",
|
||||
"type": "Array<BusinessLine>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BusinessLines.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
133
src/typings/legalEntityManagement/document.ts
Normal file
133
src/typings/legalEntityManagement/document.ts
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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 { Attachment } from './attachment';
|
||||
import { OwnerEntity } from './ownerEntity';
|
||||
|
||||
export class Document {
|
||||
'attachment'?: Attachment;
|
||||
/**
|
||||
* Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document.
|
||||
*/
|
||||
'attachments': Array<Attachment>;
|
||||
/**
|
||||
* Your description for the document.
|
||||
*/
|
||||
'description': string;
|
||||
/**
|
||||
* The expiry date of the document, in YYYY-MM-DD format.
|
||||
*/
|
||||
'expiryDate'?: string;
|
||||
/**
|
||||
* The filename of the document.
|
||||
*/
|
||||
'fileName'?: string;
|
||||
/**
|
||||
* The unique identifier of the document.
|
||||
*/
|
||||
'id': string;
|
||||
/**
|
||||
* The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
|
||||
*/
|
||||
'issuerCountry'?: string;
|
||||
/**
|
||||
* The state or province where the document was issued (AU only).
|
||||
*/
|
||||
'issuerState'?: string;
|
||||
/**
|
||||
* The number in the document.
|
||||
*/
|
||||
'number'?: string;
|
||||
'owner': OwnerEntity;
|
||||
/**
|
||||
* Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
|
||||
*/
|
||||
'type': Document.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "attachment",
|
||||
"baseName": "attachment",
|
||||
"type": "Attachment"
|
||||
},
|
||||
{
|
||||
"name": "attachments",
|
||||
"baseName": "attachments",
|
||||
"type": "Array<Attachment>"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "expiryDate",
|
||||
"baseName": "expiryDate",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fileName",
|
||||
"baseName": "fileName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerCountry",
|
||||
"baseName": "issuerCountry",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerState",
|
||||
"baseName": "issuerState",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "number",
|
||||
"baseName": "number",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "owner",
|
||||
"baseName": "owner",
|
||||
"type": "OwnerEntity"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "Document.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Document.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Document {
|
||||
export enum TypeEnum {
|
||||
BankStatement = <any> 'bankStatement',
|
||||
DriversLicense = <any> 'driversLicense',
|
||||
IdentityCard = <any> 'identityCard',
|
||||
NationalIdNumber = <any> 'nationalIdNumber',
|
||||
Passport = <any> 'passport',
|
||||
ProofOfAddress = <any> 'proofOfAddress',
|
||||
ProofOfNationalIdNumber = <any> 'proofOfNationalIdNumber',
|
||||
ProofOfResidency = <any> 'proofOfResidency',
|
||||
RegistrationDocument = <any> 'registrationDocument',
|
||||
VatDocument = <any> 'vatDocument',
|
||||
ProofOfOrganizationTaxInfo = <any> 'proofOfOrganizationTaxInfo',
|
||||
ProofOfIndustry = <any> 'proofOfIndustry',
|
||||
ConstitutionalDocument = <any> 'constitutionalDocument'
|
||||
}
|
||||
}
|
||||
@@ -8,39 +8,41 @@
|
||||
*/
|
||||
|
||||
|
||||
export class CapabilityProblemEntityRecursive {
|
||||
export class DocumentReference {
|
||||
/**
|
||||
* The ID of the entity.
|
||||
* Identifies whether the document is active and used for checks.
|
||||
*/
|
||||
'active'?: boolean;
|
||||
/**
|
||||
* Document name.
|
||||
*/
|
||||
'fileName'?: string;
|
||||
/**
|
||||
* The unique identifier of the resource.
|
||||
*/
|
||||
'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",
|
||||
"name": "active",
|
||||
"baseName": "active",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "fileName",
|
||||
"baseName": "fileName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "CapabilityProblemEntityRecursive.TypeEnum"
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CapabilityProblemEntityRecursive.attributeTypeMap;
|
||||
return DocumentReference.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CapabilityProblemEntityRecursive {
|
||||
export enum TypeEnum {
|
||||
BankAccount = <any> 'BankAccount',
|
||||
Document = <any> 'Document',
|
||||
LegalEntity = <any> 'LegalEntity'
|
||||
}
|
||||
}
|
||||
30
src/typings/legalEntityManagement/entityReference.ts
Normal file
30
src/typings/legalEntityManagement/entityReference.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 EntityReference {
|
||||
/**
|
||||
* The unique identifier of the resource.
|
||||
*/
|
||||
'id'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return EntityReference.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
52
src/typings/legalEntityManagement/genericEntityInfo.ts
Normal file
52
src/typings/legalEntityManagement/genericEntityInfo.ts
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
import { Individual } from './individual';
|
||||
import { LegalEntityAssociation } from './legalEntityAssociation';
|
||||
import { Organization } from './organization';
|
||||
import { SoleProprietorship } from './soleProprietorship';
|
||||
|
||||
export class GenericEntityInfo {
|
||||
/**
|
||||
* List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
|
||||
*/
|
||||
'entityAssociations'?: Array<LegalEntityAssociation>;
|
||||
'individual'?: Individual;
|
||||
'organization'?: Organization;
|
||||
'soleProprietorship'?: SoleProprietorship;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "entityAssociations",
|
||||
"baseName": "entityAssociations",
|
||||
"type": "Array<LegalEntityAssociation>"
|
||||
},
|
||||
{
|
||||
"name": "individual",
|
||||
"baseName": "individual",
|
||||
"type": "Individual"
|
||||
},
|
||||
{
|
||||
"name": "organization",
|
||||
"baseName": "organization",
|
||||
"type": "Organization"
|
||||
},
|
||||
{
|
||||
"name": "soleProprietorship",
|
||||
"baseName": "soleProprietorship",
|
||||
"type": "SoleProprietorship"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GenericEntityInfo.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
92
src/typings/legalEntityManagement/identificationData.ts
Normal file
92
src/typings/legalEntityManagement/identificationData.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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 IdentificationData {
|
||||
/**
|
||||
* The expiry date of the document, in YYYY-MM-DD format.
|
||||
*/
|
||||
'expiryDate'?: string;
|
||||
/**
|
||||
* The two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code where the document was issued. For example, **US**.
|
||||
*/
|
||||
'issuerCountry'?: string;
|
||||
/**
|
||||
* The state or province where the document was issued (AU only).
|
||||
*/
|
||||
'issuerState'?: string;
|
||||
/**
|
||||
* Applies only to individuals in the US. Set to **true** if the individual does not have an SSN. To verify their identity, Adyen will require them to upload an ID document.
|
||||
*/
|
||||
'nationalIdExempt'?: boolean;
|
||||
/**
|
||||
* The number in the document.
|
||||
*/
|
||||
'number'?: string;
|
||||
/**
|
||||
* Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. When providing ID numbers: * For **individual**, the `type` values can be **driversLicense**, **identityCard**, **nationalIdNumber**, or **passport**. When uploading documents: * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, or **proofOfIndustry**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, or **proofOfIndividualTaxId**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
|
||||
*/
|
||||
'type': IdentificationData.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "expiryDate",
|
||||
"baseName": "expiryDate",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerCountry",
|
||||
"baseName": "issuerCountry",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerState",
|
||||
"baseName": "issuerState",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "nationalIdExempt",
|
||||
"baseName": "nationalIdExempt",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "number",
|
||||
"baseName": "number",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "IdentificationData.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return IdentificationData.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace IdentificationData {
|
||||
export enum TypeEnum {
|
||||
BankStatement = <any> 'bankStatement',
|
||||
DriversLicense = <any> 'driversLicense',
|
||||
IdentityCard = <any> 'identityCard',
|
||||
NationalIdNumber = <any> 'nationalIdNumber',
|
||||
Passport = <any> 'passport',
|
||||
ProofOfAddress = <any> 'proofOfAddress',
|
||||
ProofOfNationalIdNumber = <any> 'proofOfNationalIdNumber',
|
||||
ProofOfResidency = <any> 'proofOfResidency',
|
||||
RegistrationDocument = <any> 'registrationDocument',
|
||||
VatDocument = <any> 'vatDocument',
|
||||
ProofOfOrganizationTaxInfo = <any> 'proofOfOrganizationTaxInfo',
|
||||
ProofOfIndustry = <any> 'proofOfIndustry',
|
||||
ConstitutionalDocument = <any> 'constitutionalDocument'
|
||||
}
|
||||
}
|
||||
91
src/typings/legalEntityManagement/individual.ts
Normal file
91
src/typings/legalEntityManagement/individual.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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 { BirthData } from './birthData';
|
||||
import { IdentificationData } from './identificationData';
|
||||
import { Name } from './name';
|
||||
import { PhoneNumber } from './phoneNumber';
|
||||
import { TaxInformation } from './taxInformation';
|
||||
import { WebData } from './webData';
|
||||
|
||||
export class Individual {
|
||||
'birthData'?: BirthData;
|
||||
/**
|
||||
* The email address of the legal entity.
|
||||
*/
|
||||
'email'?: string;
|
||||
'identificationData'?: IdentificationData;
|
||||
'name': Name;
|
||||
/**
|
||||
* The individual\'s nationality.
|
||||
*/
|
||||
'nationality'?: string;
|
||||
'phone'?: PhoneNumber;
|
||||
'residentialAddress': Address;
|
||||
/**
|
||||
* The tax information of the individual.
|
||||
*/
|
||||
'taxInformation'?: Array<TaxInformation>;
|
||||
'webData'?: WebData;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "birthData",
|
||||
"baseName": "birthData",
|
||||
"type": "BirthData"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "identificationData",
|
||||
"baseName": "identificationData",
|
||||
"type": "IdentificationData"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "Name"
|
||||
},
|
||||
{
|
||||
"name": "nationality",
|
||||
"baseName": "nationality",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"baseName": "phone",
|
||||
"type": "PhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "residentialAddress",
|
||||
"baseName": "residentialAddress",
|
||||
"type": "Address"
|
||||
},
|
||||
{
|
||||
"name": "taxInformation",
|
||||
"baseName": "taxInformation",
|
||||
"type": "Array<TaxInformation>"
|
||||
},
|
||||
{
|
||||
"name": "webData",
|
||||
"baseName": "webData",
|
||||
"type": "WebData"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Individual.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
117
src/typings/legalEntityManagement/legalEntity.ts
Normal file
117
src/typings/legalEntityManagement/legalEntity.ts
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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 { DocumentReference } from './documentReference';
|
||||
import { EntityReference } from './entityReference';
|
||||
import { Individual } from './individual';
|
||||
import { LegalEntityAssociation } from './legalEntityAssociation';
|
||||
import { Organization } from './organization';
|
||||
import { SoleProprietorship } from './soleProprietorship';
|
||||
|
||||
export class LegalEntity {
|
||||
/**
|
||||
* List of documents uploaded for the legal entity.
|
||||
*/
|
||||
'documentDetails'?: Array<DocumentReference>;
|
||||
/**
|
||||
* List of documents uploaded for the legal entity.
|
||||
*/
|
||||
'documents'?: Array<EntityReference>;
|
||||
/**
|
||||
* List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
|
||||
*/
|
||||
'entityAssociations'?: Array<LegalEntityAssociation>;
|
||||
/**
|
||||
* The unique identifier of the legal entity.
|
||||
*/
|
||||
'id': string;
|
||||
'individual'?: Individual;
|
||||
'organization'?: Organization;
|
||||
/**
|
||||
* Your reference for the legal entity, maximum 150 characters.
|
||||
*/
|
||||
'reference'?: string;
|
||||
'soleProprietorship'?: SoleProprietorship;
|
||||
/**
|
||||
* List of transfer instruments owned by the legal entity.
|
||||
*/
|
||||
'transferInstruments'?: Array<EntityReference>;
|
||||
/**
|
||||
* The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**.
|
||||
*/
|
||||
'type': LegalEntity.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "documentDetails",
|
||||
"baseName": "documentDetails",
|
||||
"type": "Array<DocumentReference>"
|
||||
},
|
||||
{
|
||||
"name": "documents",
|
||||
"baseName": "documents",
|
||||
"type": "Array<EntityReference>"
|
||||
},
|
||||
{
|
||||
"name": "entityAssociations",
|
||||
"baseName": "entityAssociations",
|
||||
"type": "Array<LegalEntityAssociation>"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "individual",
|
||||
"baseName": "individual",
|
||||
"type": "Individual"
|
||||
},
|
||||
{
|
||||
"name": "organization",
|
||||
"baseName": "organization",
|
||||
"type": "Organization"
|
||||
},
|
||||
{
|
||||
"name": "reference",
|
||||
"baseName": "reference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "soleProprietorship",
|
||||
"baseName": "soleProprietorship",
|
||||
"type": "SoleProprietorship"
|
||||
},
|
||||
{
|
||||
"name": "transferInstruments",
|
||||
"baseName": "transferInstruments",
|
||||
"type": "Array<EntityReference>"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "LegalEntity.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return LegalEntity.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace LegalEntity {
|
||||
export enum TypeEnum {
|
||||
Individual = <any> 'individual',
|
||||
Organization = <any> 'organization',
|
||||
SoleProprietorship = <any> 'soleProprietorship',
|
||||
Trust = <any> 'trust',
|
||||
UnincorporatedPartnership = <any> 'unincorporatedPartnership'
|
||||
}
|
||||
}
|
||||
82
src/typings/legalEntityManagement/legalEntityAssociation.ts
Normal file
82
src/typings/legalEntityManagement/legalEntityAssociation.ts
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
|
||||
export class LegalEntityAssociation {
|
||||
/**
|
||||
* The unique identifier of another legal entity with which the `legalEntityId` is associated. When the `legalEntityId` is associated to legal entities other than the current one, the response returns all the associations.
|
||||
*/
|
||||
'associatorId'?: string;
|
||||
/**
|
||||
* The legal entity type of associated legal entity. For example, **organization**, **soleProprietorship** or **individual**.
|
||||
*/
|
||||
'entityType'?: string;
|
||||
/**
|
||||
* The individual\'s job title if the `type` is **uboThroughControl** or **signatory**.
|
||||
*/
|
||||
'jobTitle'?: string;
|
||||
/**
|
||||
* The unique identifier of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id).
|
||||
*/
|
||||
'legalEntityId': string;
|
||||
/**
|
||||
* The name of the associated [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). - For **individual**, `name.firstName` and `name.lastName`. - For **organization**, `legalName`. - For **soleProprietorship**, `name`.
|
||||
*/
|
||||
'name'?: string;
|
||||
/**
|
||||
* Defines the relationship of the legal entity to the current legal entity. For example, **uboThroughOwnership**, **uboThroughControl**, or **signatory**.
|
||||
*/
|
||||
'type': LegalEntityAssociation.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "associatorId",
|
||||
"baseName": "associatorId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "entityType",
|
||||
"baseName": "entityType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "jobTitle",
|
||||
"baseName": "jobTitle",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntityId",
|
||||
"baseName": "legalEntityId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "LegalEntityAssociation.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return LegalEntityAssociation.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace LegalEntityAssociation {
|
||||
export enum TypeEnum {
|
||||
Signatory = <any> 'signatory',
|
||||
UboThroughControl = <any> 'uboThroughControl',
|
||||
UboThroughOwnership = <any> 'uboThroughOwnership'
|
||||
}
|
||||
}
|
||||
79
src/typings/legalEntityManagement/legalEntityInfo.ts
Normal file
79
src/typings/legalEntityManagement/legalEntityInfo.ts
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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 { Individual } from './individual';
|
||||
import { LegalEntityAssociation } from './legalEntityAssociation';
|
||||
import { Organization } from './organization';
|
||||
import { SoleProprietorship } from './soleProprietorship';
|
||||
|
||||
export class LegalEntityInfo {
|
||||
/**
|
||||
* List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories.
|
||||
*/
|
||||
'entityAssociations'?: Array<LegalEntityAssociation>;
|
||||
'individual'?: Individual;
|
||||
'organization'?: Organization;
|
||||
/**
|
||||
* Your reference for the legal entity, maximum 150 characters.
|
||||
*/
|
||||
'reference'?: string;
|
||||
'soleProprietorship'?: SoleProprietorship;
|
||||
/**
|
||||
* The type of legal entity. Possible values: **individual**, **organization**, or **soleProprietorship**.
|
||||
*/
|
||||
'type': LegalEntityInfo.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "entityAssociations",
|
||||
"baseName": "entityAssociations",
|
||||
"type": "Array<LegalEntityAssociation>"
|
||||
},
|
||||
{
|
||||
"name": "individual",
|
||||
"baseName": "individual",
|
||||
"type": "Individual"
|
||||
},
|
||||
{
|
||||
"name": "organization",
|
||||
"baseName": "organization",
|
||||
"type": "Organization"
|
||||
},
|
||||
{
|
||||
"name": "reference",
|
||||
"baseName": "reference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "soleProprietorship",
|
||||
"baseName": "soleProprietorship",
|
||||
"type": "SoleProprietorship"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "LegalEntityInfo.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return LegalEntityInfo.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace LegalEntityInfo {
|
||||
export enum TypeEnum {
|
||||
Individual = <any> 'individual',
|
||||
Organization = <any> 'organization',
|
||||
SoleProprietorship = <any> 'soleProprietorship',
|
||||
Trust = <any> 'trust',
|
||||
UnincorporatedPartnership = <any> 'unincorporatedPartnership'
|
||||
}
|
||||
}
|
||||
267
src/typings/legalEntityManagement/models.ts
Normal file
267
src/typings/legalEntityManagement/models.ts
Normal file
@@ -0,0 +1,267 @@
|
||||
/*
|
||||
* 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 './address';
|
||||
export * from './attachment';
|
||||
export * from './bankAccountInfo';
|
||||
export * from './birthData';
|
||||
export * from './businessLine';
|
||||
export * from './businessLineInfo';
|
||||
export * from './businessLineInfoUpdate';
|
||||
export * from './businessLines';
|
||||
export * from './document';
|
||||
export * from './documentReference';
|
||||
export * from './entityReference';
|
||||
export * from './genericEntityInfo';
|
||||
export * from './identificationData';
|
||||
export * from './individual';
|
||||
export * from './legalEntity';
|
||||
export * from './legalEntityAssociation';
|
||||
export * from './legalEntityInfo';
|
||||
export * from './name';
|
||||
export * from './onboardingLink';
|
||||
export * from './onboardingLinkInfo';
|
||||
export * from './onboardingTheme';
|
||||
export * from './onboardingThemes';
|
||||
export * from './organization';
|
||||
export * from './ownerEntity';
|
||||
export * from './phoneNumber';
|
||||
export * from './recurringDetail';
|
||||
export * from './serviceError';
|
||||
export * from './soleProprietorship';
|
||||
export * from './sourceOfFunds';
|
||||
export * from './stockData';
|
||||
export * from './taxInformation';
|
||||
export * from './taxReportingClassification';
|
||||
export * from './transferInstrument';
|
||||
export * from './transferInstrumentInfo';
|
||||
export * from './webData';
|
||||
export * from './webDataExemption';
|
||||
|
||||
|
||||
import { Address } from './address';
|
||||
import { Attachment } from './attachment';
|
||||
import { BankAccountInfo } from './bankAccountInfo';
|
||||
import { BirthData } from './birthData';
|
||||
import { BusinessLine } from './businessLine';
|
||||
import { BusinessLineInfo } from './businessLineInfo';
|
||||
import { BusinessLineInfoUpdate } from './businessLineInfoUpdate';
|
||||
import { BusinessLines } from './businessLines';
|
||||
import { Document } from './document';
|
||||
import { DocumentReference } from './documentReference';
|
||||
import { EntityReference } from './entityReference';
|
||||
import { GenericEntityInfo } from './genericEntityInfo';
|
||||
import { IdentificationData } from './identificationData';
|
||||
import { Individual } from './individual';
|
||||
import { LegalEntity } from './legalEntity';
|
||||
import { LegalEntityAssociation } from './legalEntityAssociation';
|
||||
import { LegalEntityInfo } from './legalEntityInfo';
|
||||
import { Name } from './name';
|
||||
import { OnboardingLink } from './onboardingLink';
|
||||
import { OnboardingLinkInfo } from './onboardingLinkInfo';
|
||||
import { OnboardingTheme } from './onboardingTheme';
|
||||
import { OnboardingThemes } from './onboardingThemes';
|
||||
import { Organization } from './organization';
|
||||
import { OwnerEntity } from './ownerEntity';
|
||||
import { PhoneNumber } from './phoneNumber';
|
||||
import { RecurringDetail } from './recurringDetail';
|
||||
import { ServiceError } from './serviceError';
|
||||
import { SoleProprietorship } from './soleProprietorship';
|
||||
import { SourceOfFunds } from './sourceOfFunds';
|
||||
import { StockData } from './stockData';
|
||||
import { TaxInformation } from './taxInformation';
|
||||
import { TaxReportingClassification } from './taxReportingClassification';
|
||||
import { TransferInstrument } from './transferInstrument';
|
||||
import { TransferInstrumentInfo } from './transferInstrumentInfo';
|
||||
import { WebData } from './webData';
|
||||
import { WebDataExemption } from './webDataExemption';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
"string",
|
||||
"boolean",
|
||||
"double",
|
||||
"integer",
|
||||
"long",
|
||||
"float",
|
||||
"number",
|
||||
"any"
|
||||
];
|
||||
|
||||
let enumsMap: {[index: string]: any} = {
|
||||
"Document.TypeEnum": Document.TypeEnum,
|
||||
"IdentificationData.TypeEnum": IdentificationData.TypeEnum,
|
||||
"LegalEntity.TypeEnum": LegalEntity.TypeEnum,
|
||||
"LegalEntityAssociation.TypeEnum": LegalEntityAssociation.TypeEnum,
|
||||
"LegalEntityInfo.TypeEnum": LegalEntityInfo.TypeEnum,
|
||||
"Organization.TypeEnum": Organization.TypeEnum,
|
||||
"Organization.VatAbsenceReasonEnum": Organization.VatAbsenceReasonEnum,
|
||||
"SoleProprietorship.VatAbsenceReasonEnum": SoleProprietorship.VatAbsenceReasonEnum,
|
||||
"SourceOfFunds.TypeEnum": SourceOfFunds.TypeEnum,
|
||||
"TaxReportingClassification.BusinessTypeEnum": TaxReportingClassification.BusinessTypeEnum,
|
||||
"TaxReportingClassification.MainSourceOfIncomeEnum": TaxReportingClassification.MainSourceOfIncomeEnum,
|
||||
"TaxReportingClassification.TypeEnum": TaxReportingClassification.TypeEnum,
|
||||
"TransferInstrument.TypeEnum": TransferInstrument.TypeEnum,
|
||||
"TransferInstrumentInfo.TypeEnum": TransferInstrumentInfo.TypeEnum,
|
||||
"WebDataExemption.ReasonEnum": WebDataExemption.ReasonEnum,
|
||||
}
|
||||
|
||||
let typeMap: {[index: string]: any} = {
|
||||
"Address": Address,
|
||||
"Attachment": Attachment,
|
||||
"BankAccountInfo": BankAccountInfo,
|
||||
"BirthData": BirthData,
|
||||
"BusinessLine": BusinessLine,
|
||||
"BusinessLineInfo": BusinessLineInfo,
|
||||
"BusinessLineInfoUpdate": BusinessLineInfoUpdate,
|
||||
"BusinessLines": BusinessLines,
|
||||
"Document": Document,
|
||||
"DocumentReference": DocumentReference,
|
||||
"EntityReference": EntityReference,
|
||||
"GenericEntityInfo": GenericEntityInfo,
|
||||
"IdentificationData": IdentificationData,
|
||||
"Individual": Individual,
|
||||
"LegalEntity": LegalEntity,
|
||||
"LegalEntityAssociation": LegalEntityAssociation,
|
||||
"LegalEntityInfo": LegalEntityInfo,
|
||||
"Name": Name,
|
||||
"OnboardingLink": OnboardingLink,
|
||||
"OnboardingLinkInfo": OnboardingLinkInfo,
|
||||
"OnboardingTheme": OnboardingTheme,
|
||||
"OnboardingThemes": OnboardingThemes,
|
||||
"Organization": Organization,
|
||||
"OwnerEntity": OwnerEntity,
|
||||
"PhoneNumber": PhoneNumber,
|
||||
"RecurringDetail": RecurringDetail,
|
||||
"ServiceError": ServiceError,
|
||||
"SoleProprietorship": SoleProprietorship,
|
||||
"SourceOfFunds": SourceOfFunds,
|
||||
"StockData": StockData,
|
||||
"TaxInformation": TaxInformation,
|
||||
"TaxReportingClassification": TaxReportingClassification,
|
||||
"TransferInstrument": TransferInstrument,
|
||||
"TransferInstrumentInfo": TransferInstrumentInfo,
|
||||
"WebData": WebData,
|
||||
"WebDataExemption": WebDataExemption,
|
||||
}
|
||||
|
||||
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> => 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> => 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
48
src/typings/legalEntityManagement/name.ts
Normal file
48
src/typings/legalEntityManagement/name.ts
Normal file
@@ -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 Name {
|
||||
/**
|
||||
* 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;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "firstName",
|
||||
"baseName": "firstName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "infix",
|
||||
"baseName": "infix",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "lastName",
|
||||
"baseName": "lastName",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Name.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
30
src/typings/legalEntityManagement/onboardingLink.ts
Normal file
30
src/typings/legalEntityManagement/onboardingLink.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* 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 OnboardingLink {
|
||||
/**
|
||||
* The URL of the hosted onboarding page where you need to redirect your user. This URL expires after 4 minutes and can only be used once. If the link expires, you need to create a new link.
|
||||
*/
|
||||
'url'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "url",
|
||||
"baseName": "url",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return OnboardingLink.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
48
src/typings/legalEntityManagement/onboardingLinkInfo.ts
Normal file
48
src/typings/legalEntityManagement/onboardingLinkInfo.ts
Normal file
@@ -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 OnboardingLinkInfo {
|
||||
/**
|
||||
* The language that will be used for the page, specified by a combination of two letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language and [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country codes. Possible values: **cs-CZ**, **de-DE**, **en-US**, **es-ES**, **it-IT**, **nl-NL**, **no-NO**, **pl-PL**, **pt-PT**, **sv-SE**. 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.
|
||||
*/
|
||||
'locale'?: string;
|
||||
/**
|
||||
* The URL where the user is redirected after they complete hosted onboarding.
|
||||
*/
|
||||
'redirectUrl'?: string;
|
||||
/**
|
||||
* The unique identifier of the hosted onboarding theme.
|
||||
*/
|
||||
'themeId'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "locale",
|
||||
"baseName": "locale",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "redirectUrl",
|
||||
"baseName": "redirectUrl",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "themeId",
|
||||
"baseName": "themeId",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return OnboardingLinkInfo.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/legalEntityManagement/onboardingTheme.ts
Normal file
66
src/typings/legalEntityManagement/onboardingTheme.ts
Normal file
@@ -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 OnboardingTheme {
|
||||
/**
|
||||
* The creation date of the theme.
|
||||
*/
|
||||
'createdAt': Date;
|
||||
/**
|
||||
* The description of the theme.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The unique identifier of the theme.
|
||||
*/
|
||||
'id': string;
|
||||
/**
|
||||
* The properties of the theme.
|
||||
*/
|
||||
'properties': { [key: string]: string; };
|
||||
/**
|
||||
* The date when the theme was last updated.
|
||||
*/
|
||||
'updatedAt'?: Date;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "createdAt",
|
||||
"baseName": "createdAt",
|
||||
"type": "Date"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "id",
|
||||
"baseName": "id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "properties",
|
||||
"baseName": "properties",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "updatedAt",
|
||||
"baseName": "updatedAt",
|
||||
"type": "Date"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return OnboardingTheme.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
49
src/typings/legalEntityManagement/onboardingThemes.ts
Normal file
49
src/typings/legalEntityManagement/onboardingThemes.ts
Normal file
@@ -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 { OnboardingTheme } from './onboardingTheme';
|
||||
|
||||
export class OnboardingThemes {
|
||||
/**
|
||||
* The next page. Only present if there is a next page.
|
||||
*/
|
||||
'next'?: string;
|
||||
/**
|
||||
* The previous page. Only present if there is a previous page.
|
||||
*/
|
||||
'previous'?: string;
|
||||
/**
|
||||
* List of onboarding themes.
|
||||
*/
|
||||
'themes': Array<OnboardingTheme>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "next",
|
||||
"baseName": "next",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "previous",
|
||||
"baseName": "previous",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "themes",
|
||||
"baseName": "themes",
|
||||
"type": "Array<OnboardingTheme>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return OnboardingThemes.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
158
src/typings/legalEntityManagement/organization.ts
Normal file
158
src/typings/legalEntityManagement/organization.ts
Normal file
@@ -0,0 +1,158 @@
|
||||
/*
|
||||
* 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 { PhoneNumber } from './phoneNumber';
|
||||
import { StockData } from './stockData';
|
||||
import { TaxInformation } from './taxInformation';
|
||||
import { TaxReportingClassification } from './taxReportingClassification';
|
||||
import { WebData } from './webData';
|
||||
|
||||
export class Organization {
|
||||
/**
|
||||
* Your description for the organization.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The organization\'s trading name, if different from the registered legal name.
|
||||
*/
|
||||
'doingBusinessAs'?: string;
|
||||
/**
|
||||
* The email address of the legal entity.
|
||||
*/
|
||||
'email'?: string;
|
||||
/**
|
||||
* The organization\'s legal name.
|
||||
*/
|
||||
'legalName': string;
|
||||
'phone'?: PhoneNumber;
|
||||
'principalPlaceOfBusiness'?: Address;
|
||||
'registeredAddress': Address;
|
||||
/**
|
||||
* The organization\'s registration number.
|
||||
*/
|
||||
'registrationNumber'?: string;
|
||||
'stockData'?: StockData;
|
||||
/**
|
||||
* The tax information of the organization.
|
||||
*/
|
||||
'taxInformation'?: Array<TaxInformation>;
|
||||
'taxReportingClassification'?: TaxReportingClassification;
|
||||
/**
|
||||
* Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**.
|
||||
*/
|
||||
'type'?: Organization.TypeEnum;
|
||||
/**
|
||||
* The reason the organization has not provided a VAT number. Possible values: **industryExemption**, **belowTaxThreshold**.
|
||||
*/
|
||||
'vatAbsenceReason'?: Organization.VatAbsenceReasonEnum;
|
||||
/**
|
||||
* The organization\'s VAT number.
|
||||
*/
|
||||
'vatNumber'?: string;
|
||||
'webData'?: WebData;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "doingBusinessAs",
|
||||
"baseName": "doingBusinessAs",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalName",
|
||||
"baseName": "legalName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phone",
|
||||
"baseName": "phone",
|
||||
"type": "PhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "principalPlaceOfBusiness",
|
||||
"baseName": "principalPlaceOfBusiness",
|
||||
"type": "Address"
|
||||
},
|
||||
{
|
||||
"name": "registeredAddress",
|
||||
"baseName": "registeredAddress",
|
||||
"type": "Address"
|
||||
},
|
||||
{
|
||||
"name": "registrationNumber",
|
||||
"baseName": "registrationNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stockData",
|
||||
"baseName": "stockData",
|
||||
"type": "StockData"
|
||||
},
|
||||
{
|
||||
"name": "taxInformation",
|
||||
"baseName": "taxInformation",
|
||||
"type": "Array<TaxInformation>"
|
||||
},
|
||||
{
|
||||
"name": "taxReportingClassification",
|
||||
"baseName": "taxReportingClassification",
|
||||
"type": "TaxReportingClassification"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "Organization.TypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "vatAbsenceReason",
|
||||
"baseName": "vatAbsenceReason",
|
||||
"type": "Organization.VatAbsenceReasonEnum"
|
||||
},
|
||||
{
|
||||
"name": "vatNumber",
|
||||
"baseName": "vatNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "webData",
|
||||
"baseName": "webData",
|
||||
"type": "WebData"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Organization.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Organization {
|
||||
export enum TypeEnum {
|
||||
AssociationIncorporated = <any> 'associationIncorporated',
|
||||
GovernmentalOrganization = <any> 'governmentalOrganization',
|
||||
ListedPublicCompany = <any> 'listedPublicCompany',
|
||||
NonProfit = <any> 'nonProfit',
|
||||
PartnershipIncorporated = <any> 'partnershipIncorporated',
|
||||
PrivateCompany = <any> 'privateCompany'
|
||||
}
|
||||
export enum VatAbsenceReasonEnum {
|
||||
IndustryExemption = <any> 'industryExemption',
|
||||
BelowTaxThreshold = <any> 'belowTaxThreshold'
|
||||
}
|
||||
}
|
||||
39
src/typings/legalEntityManagement/ownerEntity.ts
Normal file
39
src/typings/legalEntityManagement/ownerEntity.ts
Normal file
@@ -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 OwnerEntity {
|
||||
/**
|
||||
* Unique identifier of the resource that owns the document. For `type` **legalEntity**, this value is the unique identifier of the [legal entity](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/legalEntities__resParam_id). For `type` **bankAccount**, this value is the unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id).
|
||||
*/
|
||||
'id': string;
|
||||
/**
|
||||
* Type of resource that owns the document. Possible values: **legalEntity**, **bankAccount**.
|
||||
*/
|
||||
'type': string;
|
||||
|
||||
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": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return OwnerEntity.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
39
src/typings/legalEntityManagement/phoneNumber.ts
Normal file
39
src/typings/legalEntityManagement/phoneNumber.ts
Normal file
@@ -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 PhoneNumber {
|
||||
/**
|
||||
* The full phone number, including the country code. For example, **+3112345678**.
|
||||
*/
|
||||
'number': string;
|
||||
/**
|
||||
* The type of phone number. Possible values: **mobile**, **landline**, **sip**, **fax.**
|
||||
*/
|
||||
'type'?: string;
|
||||
|
||||
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": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PhoneNumber.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
48
src/typings/legalEntityManagement/recurringDetail.ts
Normal file
48
src/typings/legalEntityManagement/recurringDetail.ts
Normal file
@@ -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 RecurringDetail {
|
||||
/**
|
||||
* The merchant account used when the payment details were stored.
|
||||
*/
|
||||
'merchantAccount'?: string;
|
||||
/**
|
||||
* The `recurringDetailReference` returned in the response when the payment details were stored.
|
||||
*/
|
||||
'reference'?: string;
|
||||
/**
|
||||
* The unique identifier used when the payment details were stored.
|
||||
*/
|
||||
'shopperReference'?: 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"
|
||||
},
|
||||
{
|
||||
"name": "shopperReference",
|
||||
"baseName": "shopperReference",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return RecurringDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/legalEntityManagement/serviceError.ts
Normal file
66
src/typings/legalEntityManagement/serviceError.ts
Normal file
@@ -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 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;
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user