mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
Merge pull request #712 from Adyen/PW-4977/regenerate_platforms_account_types
updated platformAccounts API types
This commit is contained in:
@@ -23,7 +23,7 @@ import { createBasicAuthClient } from "../__mocks__/base";
|
||||
import { documentContent } from "../__mocks__/platforms/documentContent";
|
||||
import { Client, Platforms } from "../index";
|
||||
|
||||
import A = IPlatformsAccount;
|
||||
import * as A from "../typings/platformsAccount/models";
|
||||
import F = IPlatformsFund;
|
||||
import N = IPlatformsNotificationConfiguration;
|
||||
import H = IPlatformsHostedOnboardingPage;
|
||||
@@ -50,7 +50,7 @@ const accountHolderDetails: AccountHolderDetails = {
|
||||
individualDetails: {
|
||||
name: {
|
||||
firstName: "John",
|
||||
gender: "MALE",
|
||||
gender: A.ViasName.GenderEnum.Male,
|
||||
lastName: "Smith"
|
||||
}
|
||||
},
|
||||
@@ -194,40 +194,40 @@ describe.skip("Platforms Test E2E", function(): void {
|
||||
accountHolder = await platforms.Account.createAccountHolder({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
accountHolderDetails,
|
||||
legalEntity: "Individual",
|
||||
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
|
||||
});
|
||||
|
||||
account = await platforms.Account.createAccount({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
description: "This is a new account",
|
||||
metadata: {meta: "data"},
|
||||
payoutSchedule: "WEEKLY"
|
||||
payoutSchedule: A.CreateAccountRequest.PayoutScheduleEnum.Weekly,
|
||||
});
|
||||
|
||||
accountHolderToSuspend = await platforms.Account.createAccountHolder({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
accountHolderDetails,
|
||||
legalEntity: "Individual"
|
||||
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
|
||||
});
|
||||
|
||||
accountToClose = await platforms.Account.createAccount({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
description: "This is a new account",
|
||||
metadata: {meta: "data"},
|
||||
payoutSchedule: "WEEKLY"
|
||||
payoutSchedule: A.CreateAccountRequest.PayoutScheduleEnum.Weekly,
|
||||
});
|
||||
|
||||
accountHolderToUnSuspend = await platforms.Account.createAccountHolder({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
accountHolderDetails,
|
||||
legalEntity: "Individual"
|
||||
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
|
||||
});
|
||||
await platforms.Account.suspendAccountHolder({ accountHolderCode: accountHolderToUnSuspend.accountHolderCode});
|
||||
|
||||
accountHolderToClose = await platforms.Account.createAccountHolder({
|
||||
accountHolderCode: generateRandomCode(),
|
||||
accountHolderDetails,
|
||||
legalEntity: "Individual"
|
||||
legalEntity: A.CreateAccountHolderRequest.LegalEntityEnum.Individual,
|
||||
});
|
||||
|
||||
notificationConfigurationToRetrieve = await platforms.NotificationConfiguration.createNotificationConfiguration({
|
||||
@@ -284,7 +284,7 @@ describe.skip("Platforms Test E2E", function(): void {
|
||||
try {
|
||||
const result = await platforms.Account.checkAccountHolder({
|
||||
accountHolderCode: accountHolder.accountHolderCode,
|
||||
accountStateType: "Processing",
|
||||
accountStateType: A.PerformVerificationRequest.AccountStateTypeEnum.Processing,
|
||||
tier: 2
|
||||
});
|
||||
expect(result.resultCode).toEqual("Success");
|
||||
@@ -309,7 +309,7 @@ describe.skip("Platforms Test E2E", function(): void {
|
||||
documentContent,
|
||||
documentDetail: {
|
||||
accountHolderCode: account.accountHolderCode,
|
||||
documentType: "ID_CARD_FRONT",
|
||||
documentType: A.DocumentDetail.DocumentTypeEnum.IdCardFront,
|
||||
description: "test document 000",
|
||||
filename: "IDCardFront.png"
|
||||
}
|
||||
@@ -327,7 +327,7 @@ describe.skip("Platforms Test E2E", function(): void {
|
||||
documentContent,
|
||||
documentDetail: {
|
||||
accountHolderCode: account.accountHolderCode,
|
||||
documentType: "ID_CARD_FRONT",
|
||||
documentType: A.DocumentDetail.DocumentTypeEnum.IdCardFront,
|
||||
description: "test document 000",
|
||||
filename: "IDCardFront.png"
|
||||
}
|
||||
@@ -381,7 +381,7 @@ describe.skip("Platforms Test E2E", function(): void {
|
||||
const result = await platforms.Account.updateAccountHolderState({
|
||||
accountHolderCode: accountHolder.accountHolderCode,
|
||||
disable: false,
|
||||
stateType: "Payout"
|
||||
stateType: A.UpdateAccountHolderStateRequest.StateTypeEnum.Payout
|
||||
});
|
||||
expect(result.pspReference).toBeDefined();
|
||||
} catch (e) {
|
||||
|
||||
@@ -25,6 +25,36 @@ import getJsonResponse from "./../helpers/getJsonResponse";
|
||||
import PlatformsFund from "./resource/platforms/fund";
|
||||
import PlatformsHostedOnboardingPage from "./resource/platforms/hop";
|
||||
import PlatformsNotificationConfiguration from "./resource/platforms/notificationConfiguration";
|
||||
import {
|
||||
GetAccountHolderRequest,
|
||||
GetUploadedDocumentsRequest,
|
||||
GetAccountHolderResponse,
|
||||
GetUploadedDocumentsResponse,
|
||||
CreateAccountHolderRequest,
|
||||
CreateAccountHolderResponse,
|
||||
CloseAccountHolderRequest,
|
||||
CloseAccountHolderResponse,
|
||||
CreateAccountRequest,
|
||||
CreateAccountResponse,
|
||||
DeleteBankAccountRequest,
|
||||
GenericResponse,
|
||||
DeletePayoutMethodRequest,
|
||||
UpdateAccountRequest,
|
||||
UpdateAccountResponse,
|
||||
UploadDocumentRequest,
|
||||
UnSuspendAccountHolderRequest,
|
||||
UnSuspendAccountHolderResponse,
|
||||
CloseAccountRequest,
|
||||
CloseAccountResponse,
|
||||
SuspendAccountHolderRequest,
|
||||
SuspendAccountHolderResponse,
|
||||
UpdateAccountHolderRequest,
|
||||
UpdateAccountHolderResponse,
|
||||
DeleteShareholderRequest,
|
||||
PerformVerificationRequest,
|
||||
UpdateAccountHolderStateRequest,
|
||||
GetAccountHolderStatusResponse
|
||||
} from "../typings/platformsAccount/models";
|
||||
|
||||
type AccountType = AccountTypesEnum.Accounts;
|
||||
type VerificationType = AccountTypesEnum.Verification;
|
||||
@@ -125,41 +155,41 @@ class Platforms extends Service {
|
||||
}
|
||||
|
||||
public get Account(): {
|
||||
getAccountHolder: (request: IPlatformsAccount.GetAccountHolderRequest) => Promise<IPlatformsAccount.GetAccountHolderResponse>;
|
||||
getUploadedDocuments: (request: IPlatformsAccount.GetUploadedDocumentsRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
|
||||
createAccountHolder: (request: IPlatformsAccount.CreateAccountHolderRequest) => Promise<IPlatformsAccount.CreateAccountHolderResponse>;
|
||||
closeAccountHolder: (request: IPlatformsAccount.CloseAccountHolderRequest) => Promise<IPlatformsAccount.CloseAccountHolderResponse>;
|
||||
createAccount: (request: IPlatformsAccount.CreateAccountRequest) => Promise<IPlatformsAccount.CreateAccountResponse>;
|
||||
deleteBankAccounts: (request: IPlatformsAccount.DeleteBankAccountRequest) => Promise<IPlatformsAccount.GenericResponse>;
|
||||
deletePayoutMethods: (request: IPlatformsAccount.DeletePayoutMethodRequest) => Promise<IPlatformsAccount.GenericResponse>;
|
||||
updateAccount: (request: IPlatformsAccount.UpdateAccountRequest) => Promise<IPlatformsAccount.UpdateAccountResponse>;
|
||||
uploadDocument: (request: IPlatformsAccount.UploadDocumentRequest) => Promise<IPlatformsAccount.GetUploadedDocumentsResponse>;
|
||||
unSuspendAccountHolder: (request: IPlatformsAccount.UnSuspendAccountHolderRequest) => Promise<IPlatformsAccount.UnSuspendAccountHolderResponse>;
|
||||
closeAccount: (request: IPlatformsAccount.CloseAccountRequest) => Promise<IPlatformsAccount.CloseAccountResponse>;
|
||||
suspendAccountHolder: (request: IPlatformsAccount.SuspendAccountHolderRequest) => Promise<IPlatformsAccount.SuspendAccountHolderResponse>;
|
||||
updateAccountHolder: (request: IPlatformsAccount.UpdateAccountHolderRequest) => Promise<IPlatformsAccount.UpdateAccountHolderResponse>;
|
||||
deleteShareholders: (request: IPlatformsAccount.DeleteShareholderRequest) => Promise<IPlatformsAccount.GenericResponse>;
|
||||
checkAccountHolder: (request: IPlatformsAccount.PerformVerificationRequest) => Promise<IPlatformsAccount.GenericResponse>;
|
||||
updateAccountHolderState: (request: IPlatformsAccount.UpdateAccountHolderStateRequest) => Promise<IPlatformsAccount.GetAccountHolderStatusResponse>;
|
||||
getAccountHolder: (request: GetAccountHolderRequest) => Promise<GetAccountHolderResponse>;
|
||||
getUploadedDocuments: (request: GetUploadedDocumentsRequest) => Promise<GetUploadedDocumentsResponse>;
|
||||
createAccountHolder: (request: CreateAccountHolderRequest) => Promise<CreateAccountHolderResponse>;
|
||||
closeAccountHolder: (request: CloseAccountHolderRequest) => Promise<CloseAccountHolderResponse>;
|
||||
createAccount: (request: CreateAccountRequest) => Promise<CreateAccountResponse>;
|
||||
deleteBankAccounts: (request: DeleteBankAccountRequest) => Promise<GenericResponse>;
|
||||
deletePayoutMethods: (request: DeletePayoutMethodRequest) => Promise<GenericResponse>;
|
||||
updateAccount: (request: UpdateAccountRequest) => Promise<UpdateAccountResponse>;
|
||||
uploadDocument: (request: UploadDocumentRequest) => Promise<GetUploadedDocumentsResponse>;
|
||||
unSuspendAccountHolder: (request: UnSuspendAccountHolderRequest) => Promise<UnSuspendAccountHolderResponse>;
|
||||
closeAccount: (request: CloseAccountRequest) => Promise<CloseAccountResponse>;
|
||||
suspendAccountHolder: (request: SuspendAccountHolderRequest) => Promise<SuspendAccountHolderResponse>;
|
||||
updateAccountHolder: (request: UpdateAccountHolderRequest) => Promise<UpdateAccountHolderResponse>;
|
||||
deleteShareholders: (request: DeleteShareholderRequest) => Promise<GenericResponse>;
|
||||
checkAccountHolder: (request: PerformVerificationRequest) => Promise<GenericResponse>;
|
||||
updateAccountHolderState: (request: UpdateAccountHolderStateRequest) => Promise<GetAccountHolderStatusResponse>;
|
||||
} {
|
||||
const closeAccount = this.createRequest<AccountsAccount, IPlatformsAccount.CloseAccountRequest, IPlatformsAccount.CloseAccountResponse>(this._closeAccount);
|
||||
const updateAccount = this.createRequest<AccountsAccount, IPlatformsAccount.UpdateAccountRequest, IPlatformsAccount.UpdateAccountResponse>(this._updateAccount);
|
||||
const createAccount = this.createRequest<AccountsAccount, IPlatformsAccount.CreateAccountRequest, IPlatformsAccount.CreateAccountResponse>(this._createAccount);
|
||||
const closeAccount = this.createRequest<AccountsAccount, CloseAccountRequest, CloseAccountResponse>(this._closeAccount);
|
||||
const updateAccount = this.createRequest<AccountsAccount, UpdateAccountRequest, UpdateAccountResponse>(this._updateAccount);
|
||||
const createAccount = this.createRequest<AccountsAccount, CreateAccountRequest, CreateAccountResponse>(this._createAccount);
|
||||
|
||||
const uploadDocument = this.createRequest<AccountsVerification, IPlatformsAccount.UploadDocumentRequest, IPlatformsAccount.GetUploadedDocumentsResponse>(this._uploadDocument);
|
||||
const getUploadedDocuments = this.createRequest<AccountsVerification, IPlatformsAccount.GetUploadedDocumentsRequest, IPlatformsAccount.GetUploadedDocumentsResponse>(this._getUploadedDocuments);
|
||||
const deleteBankAccounts = this.createRequest<AccountsVerification, IPlatformsAccount.DeleteBankAccountRequest, IPlatformsAccount.GenericResponse>(this._deleteBankAccounts);
|
||||
const deletePayoutMethods = this.createRequest<AccountsVerification, IPlatformsAccount.DeletePayoutMethodRequest, IPlatformsAccount.GenericResponse>(this._deletePayoutMethods);
|
||||
const deleteShareholders = this.createRequest<AccountsVerification, IPlatformsAccount.DeleteShareholderRequest, IPlatformsAccount.GenericResponse>(this._deleteShareholders);
|
||||
const uploadDocument = this.createRequest<AccountsVerification, UploadDocumentRequest, GetUploadedDocumentsResponse>(this._uploadDocument);
|
||||
const getUploadedDocuments = this.createRequest<AccountsVerification, GetUploadedDocumentsRequest, GetUploadedDocumentsResponse>(this._getUploadedDocuments);
|
||||
const deleteBankAccounts = this.createRequest<AccountsVerification, DeleteBankAccountRequest, GenericResponse>(this._deleteBankAccounts);
|
||||
const deletePayoutMethods = this.createRequest<AccountsVerification, DeletePayoutMethodRequest, GenericResponse>(this._deletePayoutMethods);
|
||||
const deleteShareholders = this.createRequest<AccountsVerification, DeleteShareholderRequest, GenericResponse>(this._deleteShareholders);
|
||||
|
||||
const createAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.CreateAccountHolderRequest, IPlatformsAccount.CreateAccountHolderResponse>(this._createAccountHolder);
|
||||
const getAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.GetAccountHolderRequest, IPlatformsAccount.GetAccountHolderResponse>(this._getAccountHolder);
|
||||
const updateAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.UpdateAccountHolderRequest, IPlatformsAccount.UpdateAccountHolderResponse>(this._updateAccountHolder);
|
||||
const updateAccountHolderState = this.createRequest<AccountsAccountHolders, IPlatformsAccount.UpdateAccountHolderStateRequest, IPlatformsAccount.GetAccountHolderStatusResponse>(this._updateAccountHolderState);
|
||||
const suspendAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.SuspendAccountHolderRequest, IPlatformsAccount.SuspendAccountHolderResponse>(this._suspendAccountHolder);
|
||||
const unSuspendAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.UnSuspendAccountHolderRequest, IPlatformsAccount.UnSuspendAccountHolderResponse>(this._unSuspendAccountHolder);
|
||||
const closeAccountHolder = this.createRequest<AccountsAccountHolders, IPlatformsAccount.CloseAccountHolderRequest, IPlatformsAccount.CloseAccountHolderResponse>(this._closeAccountHolder);
|
||||
const checkAccountHolder = this.createRequest<AccountsVerification, IPlatformsAccount.PerformVerificationRequest, IPlatformsAccount.GenericResponse>(this._checkAccountHolder);
|
||||
const createAccountHolder = this.createRequest<AccountsAccountHolders, CreateAccountHolderRequest, CreateAccountHolderResponse>(this._createAccountHolder);
|
||||
const getAccountHolder = this.createRequest<AccountsAccountHolders, GetAccountHolderRequest, GetAccountHolderResponse>(this._getAccountHolder);
|
||||
const updateAccountHolder = this.createRequest<AccountsAccountHolders, UpdateAccountHolderRequest, UpdateAccountHolderResponse>(this._updateAccountHolder);
|
||||
const updateAccountHolderState = this.createRequest<AccountsAccountHolders, UpdateAccountHolderStateRequest, GetAccountHolderStatusResponse>(this._updateAccountHolderState);
|
||||
const suspendAccountHolder = this.createRequest<AccountsAccountHolders, SuspendAccountHolderRequest, SuspendAccountHolderResponse>(this._suspendAccountHolder);
|
||||
const unSuspendAccountHolder = this.createRequest<AccountsAccountHolders, UnSuspendAccountHolderRequest, UnSuspendAccountHolderResponse>(this._unSuspendAccountHolder);
|
||||
const closeAccountHolder = this.createRequest<AccountsAccountHolders, CloseAccountHolderRequest, CloseAccountHolderResponse>(this._closeAccountHolder);
|
||||
const checkAccountHolder = this.createRequest<AccountsVerification, PerformVerificationRequest, GenericResponse>(this._checkAccountHolder);
|
||||
|
||||
const accounts = { closeAccount, updateAccount, createAccount };
|
||||
const verification = { uploadDocument, getUploadedDocuments, deleteBankAccounts, deletePayoutMethods, deleteShareholders, checkAccountHolder };
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
/// <reference path="payouts.ts" />
|
||||
/// <reference path="requestOptions.ts" />
|
||||
/// <reference path="terminal/models.ts" />
|
||||
/// <reference path="platformsAccount.ts" />
|
||||
/// <reference path="platformsFund.ts" />
|
||||
/// <reference path="platformsHostedOnboardingPage.ts" />
|
||||
/// <reference path="platformsNotificationConfiguration.ts" />
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
119
src/typings/platformsAccount/account.ts
Normal file
119
src/typings/platformsAccount/account.ts
Normal file
@@ -0,0 +1,119 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {PayoutScheduleResponse} from './payoutScheduleResponse';
|
||||
|
||||
export class Account {
|
||||
/**
|
||||
* The code of the account.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
/**
|
||||
* The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The beneficiary of the account.
|
||||
*/
|
||||
'beneficiaryAccount'?: string;
|
||||
/**
|
||||
* The reason that a beneficiary has been set up for this account. This may have been supplied during the setup of a beneficiary at the discretion of the executing user.
|
||||
*/
|
||||
'beneficiaryMerchantReference'?: string;
|
||||
/**
|
||||
* A description of the account.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
'payoutSchedule'?: PayoutScheduleResponse;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: Account.PayoutSpeedEnum;
|
||||
/**
|
||||
* The status of the account. Possible values: `Active`, `Inactive`, `Suspended`, `Closed`.
|
||||
*/
|
||||
'status'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{ name: string, baseName: string, type: string }> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "beneficiaryAccount",
|
||||
"baseName": "beneficiaryAccount",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "beneficiaryMerchantReference",
|
||||
"baseName": "beneficiaryMerchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSchedule",
|
||||
"baseName": "payoutSchedule",
|
||||
"type": "PayoutScheduleResponse"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "Account.PayoutSpeedEnum"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "string"
|
||||
}];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Account.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Account {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any>'INSTANT',
|
||||
SameDay = <any>'SAME_DAY',
|
||||
Standard = <any>'STANDARD'
|
||||
}
|
||||
}
|
||||
56
src/typings/platformsAccount/accountEvent.ts
Normal file
56
src/typings/platformsAccount/accountEvent.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class AccountEvent {
|
||||
/**
|
||||
* The event. >Permitted values: `InactivateAccount`, `RefundNotPaidOutTransfers`. For more information, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks).
|
||||
*/
|
||||
'event': AccountEvent.EventEnum;
|
||||
/**
|
||||
* The date on which the event will take place.
|
||||
*/
|
||||
'executionDate': Date;
|
||||
/**
|
||||
* The reason why this event has been created.
|
||||
*/
|
||||
'reason': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "event",
|
||||
"baseName": "event",
|
||||
"type": "AccountEvent.EventEnum"
|
||||
},
|
||||
{
|
||||
"name": "executionDate",
|
||||
"baseName": "executionDate",
|
||||
"type": "Date"
|
||||
},
|
||||
{
|
||||
"name": "reason",
|
||||
"baseName": "reason",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountEvent.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace AccountEvent {
|
||||
export enum EventEnum {
|
||||
InactivateAccount = <any> 'InactivateAccount',
|
||||
RefundNotPaidOutTransfers = <any> 'RefundNotPaidOutTransfers'
|
||||
}
|
||||
}
|
||||
145
src/typings/platformsAccount/accountHolderDetails.ts
Normal file
145
src/typings/platformsAccount/accountHolderDetails.ts
Normal file
@@ -0,0 +1,145 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {BankAccountDetail} from './bankAccountDetail';
|
||||
import {BusinessDetails} from './businessDetails';
|
||||
import {IndividualDetails} from './individualDetails';
|
||||
import {LegalArrangementDetail} from './legalArrangementDetail';
|
||||
import {PayoutMethod} from './payoutMethod';
|
||||
import {StoreDetail} from './storeDetail';
|
||||
import {ViasAddress} from './viasAddress';
|
||||
|
||||
export class AccountHolderDetails {
|
||||
'address'?: ViasAddress;
|
||||
/**
|
||||
* Array of bank accounts associated with the account holder. For details about the required `BankAccountDetail` fields, refer to [Bank account check](https://docs.adyen.com/platforms/verification-checks/bank-account-check).
|
||||
*/
|
||||
'bankAccountDetails'?: Array<BankAccountDetail>;
|
||||
/**
|
||||
* The opaque reference value returned by the Adyen API during bank account login.
|
||||
*/
|
||||
'bankAggregatorDataReference'?: string;
|
||||
'businessDetails'?: BusinessDetails;
|
||||
/**
|
||||
* The email address of the account holder.
|
||||
*/
|
||||
'email': string;
|
||||
/**
|
||||
* The phone number of the account holder 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;
|
||||
'individualDetails'?: IndividualDetails;
|
||||
/**
|
||||
* Array that contains information about legal arrangements, used when the account holder is acting on behalf of different parties or is part of a contractual business agreement.
|
||||
*/
|
||||
'legalArrangements'?: Array<LegalArrangementDetail>;
|
||||
/**
|
||||
* The Merchant Category Code of the account holder. > If not specified in the request, this will be derived from the platform account (which is configured by Adyen).
|
||||
*/
|
||||
'merchantCategoryCode'?: string;
|
||||
/**
|
||||
* A set of key and value pairs for general use by the account holder or merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > The values being stored have a maximum length of eighty (80) characters and will be truncated if necessary. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* Array of tokenized card details associated with the account holder. For details about how you can use the tokens to pay out, refer to [Pay out to cards](https://docs.adyen.com/platforms/payout-to-cards).
|
||||
*/
|
||||
'payoutMethods'?: Array<PayoutMethod>;
|
||||
'principalBusinessAddress'?: ViasAddress;
|
||||
/**
|
||||
* Array of stores associated with the account holder. Required when onboarding account holders that have an Adyen [point of sale](https://docs.adyen.com/platforms/platforms-for-pos).
|
||||
*/
|
||||
'storeDetails'?: Array<StoreDetail>;
|
||||
/**
|
||||
* The URL of the website of the account holder.
|
||||
*/
|
||||
'webAddress': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountDetails",
|
||||
"baseName": "bankAccountDetails",
|
||||
"type": "Array<BankAccountDetail>"
|
||||
},
|
||||
{
|
||||
"name": "bankAggregatorDataReference",
|
||||
"baseName": "bankAggregatorDataReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "businessDetails",
|
||||
"baseName": "businessDetails",
|
||||
"type": "BusinessDetails"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fullPhoneNumber",
|
||||
"baseName": "fullPhoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "individualDetails",
|
||||
"baseName": "individualDetails",
|
||||
"type": "IndividualDetails"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangements",
|
||||
"baseName": "legalArrangements",
|
||||
"type": "Array<LegalArrangementDetail>"
|
||||
},
|
||||
{
|
||||
"name": "merchantCategoryCode",
|
||||
"baseName": "merchantCategoryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethods",
|
||||
"baseName": "payoutMethods",
|
||||
"type": "Array<PayoutMethod>"
|
||||
},
|
||||
{
|
||||
"name": "principalBusinessAddress",
|
||||
"baseName": "principalBusinessAddress",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "storeDetails",
|
||||
"baseName": "storeDetails",
|
||||
"type": "Array<StoreDetail>"
|
||||
},
|
||||
{
|
||||
"name": "webAddress",
|
||||
"baseName": "webAddress",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderDetails.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
74
src/typings/platformsAccount/accountHolderStatus.ts
Normal file
74
src/typings/platformsAccount/accountHolderStatus.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountEvent} from './accountEvent';
|
||||
import {AccountPayoutState} from './accountPayoutState';
|
||||
import {AccountProcessingState} from './accountProcessingState';
|
||||
|
||||
export class AccountHolderStatus {
|
||||
/**
|
||||
* A list of events scheduled for the account holder.
|
||||
*/
|
||||
'events'?: Array<AccountEvent>;
|
||||
'payoutState'?: AccountPayoutState;
|
||||
'processingState'?: AccountProcessingState;
|
||||
/**
|
||||
* The status of the account holder. >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`.
|
||||
*/
|
||||
'status': AccountHolderStatus.StatusEnum;
|
||||
/**
|
||||
* The reason why the status was assigned to the account holder.
|
||||
*/
|
||||
'statusReason'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "events",
|
||||
"baseName": "events",
|
||||
"type": "Array<AccountEvent>"
|
||||
},
|
||||
{
|
||||
"name": "payoutState",
|
||||
"baseName": "payoutState",
|
||||
"type": "AccountPayoutState"
|
||||
},
|
||||
{
|
||||
"name": "processingState",
|
||||
"baseName": "processingState",
|
||||
"type": "AccountProcessingState"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "AccountHolderStatus.StatusEnum"
|
||||
},
|
||||
{
|
||||
"name": "statusReason",
|
||||
"baseName": "statusReason",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderStatus.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace AccountHolderStatus {
|
||||
export enum StatusEnum {
|
||||
Active = <any> 'Active',
|
||||
Closed = <any> 'Closed',
|
||||
Inactive = <any> 'Inactive',
|
||||
Suspended = <any> 'Suspended'
|
||||
}
|
||||
}
|
||||
76
src/typings/platformsAccount/accountPayoutState.ts
Normal file
76
src/typings/platformsAccount/accountPayoutState.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {Amount} from './amount';
|
||||
|
||||
export class AccountPayoutState {
|
||||
/**
|
||||
* Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder\'s accounts. If this field is true, payouts will be permitted for any of the account holder\'s accounts.
|
||||
*/
|
||||
'allowPayout'?: boolean;
|
||||
/**
|
||||
* The reason why payouts (to all of the account holder\'s accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why.
|
||||
*/
|
||||
'disableReason'?: string;
|
||||
/**
|
||||
* Indicates whether payouts have been disabled (by the platform) for all of the account holder\'s accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder\'s accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors.
|
||||
*/
|
||||
'disabled'?: boolean;
|
||||
/**
|
||||
* The reason why payouts (to all of the account holder\'s accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen.
|
||||
*/
|
||||
'notAllowedReason'?: string;
|
||||
'payoutLimit'?: Amount;
|
||||
/**
|
||||
* The payout tier that the account holder occupies.
|
||||
*/
|
||||
'tierNumber'?: number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "allowPayout",
|
||||
"baseName": "allowPayout",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "disableReason",
|
||||
"baseName": "disableReason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"baseName": "disabled",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "notAllowedReason",
|
||||
"baseName": "notAllowedReason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutLimit",
|
||||
"baseName": "payoutLimit",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "tierNumber",
|
||||
"baseName": "tierNumber",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountPayoutState.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
64
src/typings/platformsAccount/accountProcessingState.ts
Normal file
64
src/typings/platformsAccount/accountProcessingState.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {Amount} from './amount';
|
||||
|
||||
export class AccountProcessingState {
|
||||
/**
|
||||
* The reason why processing has been disabled.
|
||||
*/
|
||||
'disableReason'?: string;
|
||||
/**
|
||||
* Indicates whether the processing of payments is allowed.
|
||||
*/
|
||||
'disabled'?: boolean;
|
||||
'processedFrom'?: Amount;
|
||||
'processedTo'?: Amount;
|
||||
/**
|
||||
* The processing tier that the account holder occupies.
|
||||
*/
|
||||
'tierNumber'?: number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "disableReason",
|
||||
"baseName": "disableReason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disabled",
|
||||
"baseName": "disabled",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "processedFrom",
|
||||
"baseName": "processedFrom",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "processedTo",
|
||||
"baseName": "processedTo",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "tierNumber",
|
||||
"baseName": "tierNumber",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountProcessingState.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
41
src/typings/platformsAccount/amount.ts
Normal file
41
src/typings/platformsAccount/amount.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class Amount {
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
|
||||
*/
|
||||
'currency': string;
|
||||
/**
|
||||
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
|
||||
*/
|
||||
'value': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "currency",
|
||||
"baseName": "currency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"baseName": "value",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Amount.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
257
src/typings/platformsAccount/bankAccountDetail.ts
Normal file
257
src/typings/platformsAccount/bankAccountDetail.ts
Normal file
@@ -0,0 +1,257 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class BankAccountDetail {
|
||||
/**
|
||||
* The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'accountNumber'?: string;
|
||||
/**
|
||||
* The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'accountType'?: string;
|
||||
/**
|
||||
* The name of the bank account.
|
||||
*/
|
||||
'bankAccountName'?: string;
|
||||
/**
|
||||
* Merchant reference to the bank account.
|
||||
*/
|
||||
'bankAccountReference'?: string;
|
||||
/**
|
||||
* The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankBicSwift'?: string;
|
||||
/**
|
||||
* The city in which the bank branch is located. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankCity'?: string;
|
||||
/**
|
||||
* The bank code of the banking institution with which the bank account is registered. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankCode'?: string;
|
||||
/**
|
||||
* The name of the banking institution with which the bank account is held. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankName'?: string;
|
||||
/**
|
||||
* The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'branchCode'?: string;
|
||||
/**
|
||||
* The check code of the bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'checkCode'?: string;
|
||||
/**
|
||||
* The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'countryCode'?: string;
|
||||
/**
|
||||
* The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'currencyCode'?: string;
|
||||
/**
|
||||
* The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'iban'?: string;
|
||||
/**
|
||||
* The city of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerCity'?: string;
|
||||
/**
|
||||
* The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerCountryCode'?: string;
|
||||
/**
|
||||
* The date of birth of the bank account owner.
|
||||
*/
|
||||
'ownerDateOfBirth'?: string;
|
||||
/**
|
||||
* The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerHouseNumberOrName'?: string;
|
||||
/**
|
||||
* The name of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerName'?: string;
|
||||
/**
|
||||
* The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerNationality'?: string;
|
||||
/**
|
||||
* The postal code of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerPostalCode'?: string;
|
||||
/**
|
||||
* The state of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerState'?: string;
|
||||
/**
|
||||
* The street name of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerStreet'?: string;
|
||||
/**
|
||||
* If set to true, the bank account is a primary account.
|
||||
*/
|
||||
'primaryAccount'?: boolean;
|
||||
/**
|
||||
* The tax ID number. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'taxId'?: string;
|
||||
/**
|
||||
* The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'urlForVerification'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountNumber",
|
||||
"baseName": "accountNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountType",
|
||||
"baseName": "accountType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountName",
|
||||
"baseName": "bankAccountName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountReference",
|
||||
"baseName": "bankAccountReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankBicSwift",
|
||||
"baseName": "bankBicSwift",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankCity",
|
||||
"baseName": "bankCity",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankCode",
|
||||
"baseName": "bankCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankName",
|
||||
"baseName": "bankName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "branchCode",
|
||||
"baseName": "branchCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "checkCode",
|
||||
"baseName": "checkCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "countryCode",
|
||||
"baseName": "countryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "currencyCode",
|
||||
"baseName": "currencyCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "iban",
|
||||
"baseName": "iban",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerCity",
|
||||
"baseName": "ownerCity",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerCountryCode",
|
||||
"baseName": "ownerCountryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerDateOfBirth",
|
||||
"baseName": "ownerDateOfBirth",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerHouseNumberOrName",
|
||||
"baseName": "ownerHouseNumberOrName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerName",
|
||||
"baseName": "ownerName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerNationality",
|
||||
"baseName": "ownerNationality",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerPostalCode",
|
||||
"baseName": "ownerPostalCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerState",
|
||||
"baseName": "ownerState",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerStreet",
|
||||
"baseName": "ownerStreet",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "primaryAccount",
|
||||
"baseName": "primaryAccount",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "taxId",
|
||||
"baseName": "taxId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "urlForVerification",
|
||||
"baseName": "urlForVerification",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BankAccountDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
107
src/typings/platformsAccount/businessDetails.ts
Normal file
107
src/typings/platformsAccount/businessDetails.ts
Normal file
@@ -0,0 +1,107 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ShareholderContact} from './shareholderContact';
|
||||
import {SignatoryContact} from './signatoryContact';
|
||||
|
||||
export class BusinessDetails {
|
||||
/**
|
||||
* The registered name of the company (if it differs from the legal name of the company).
|
||||
*/
|
||||
'doingBusinessAs'?: string;
|
||||
/**
|
||||
* The legal name of the company.
|
||||
*/
|
||||
'legalBusinessName'?: string;
|
||||
/**
|
||||
* The registration number of the company.
|
||||
*/
|
||||
'registrationNumber'?: string;
|
||||
/**
|
||||
* Array containing information about individuals associated with the account holder either through ownership or control. For details about how you can identify them, refer to [Identity check](https://docs.adyen.com/platforms/verification-checks/identity-check).
|
||||
*/
|
||||
'shareholders'?: Array<ShareholderContact>;
|
||||
/**
|
||||
* Signatories associated with the company. Each array entry should represent one signatory.
|
||||
*/
|
||||
'signatories'?: Array<SignatoryContact>;
|
||||
/**
|
||||
* Market Identifier Code (MIC).
|
||||
*/
|
||||
'stockExchange'?: string;
|
||||
/**
|
||||
* International Securities Identification Number (ISIN).
|
||||
*/
|
||||
'stockNumber'?: string;
|
||||
/**
|
||||
* Stock Ticker symbol.
|
||||
*/
|
||||
'stockTicker'?: string;
|
||||
/**
|
||||
* The tax ID of the company.
|
||||
*/
|
||||
'taxId'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "doingBusinessAs",
|
||||
"baseName": "doingBusinessAs",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalBusinessName",
|
||||
"baseName": "legalBusinessName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "registrationNumber",
|
||||
"baseName": "registrationNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholders",
|
||||
"baseName": "shareholders",
|
||||
"type": "Array<ShareholderContact>"
|
||||
},
|
||||
{
|
||||
"name": "signatories",
|
||||
"baseName": "signatories",
|
||||
"type": "Array<SignatoryContact>"
|
||||
},
|
||||
{
|
||||
"name": "stockExchange",
|
||||
"baseName": "stockExchange",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stockNumber",
|
||||
"baseName": "stockNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stockTicker",
|
||||
"baseName": "stockTicker",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "taxId",
|
||||
"baseName": "taxId",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BusinessDetails.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
32
src/typings/platformsAccount/closeAccountHolderRequest.ts
Normal file
32
src/typings/platformsAccount/closeAccountHolderRequest.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class CloseAccountHolderRequest {
|
||||
/**
|
||||
* The code of the Account Holder to be closed.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CloseAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
59
src/typings/platformsAccount/closeAccountHolderResponse.ts
Normal file
59
src/typings/platformsAccount/closeAccountHolderResponse.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class CloseAccountHolderResponse {
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CloseAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
32
src/typings/platformsAccount/closeAccountRequest.ts
Normal file
32
src/typings/platformsAccount/closeAccountRequest.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class CloseAccountRequest {
|
||||
/**
|
||||
* The code of account to be closed.
|
||||
*/
|
||||
'accountCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CloseAccountRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
78
src/typings/platformsAccount/closeAccountResponse.ts
Normal file
78
src/typings/platformsAccount/closeAccountResponse.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class CloseAccountResponse {
|
||||
/**
|
||||
* The account code of the account that is closed.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
/**
|
||||
* The new status of the account. >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`.
|
||||
*/
|
||||
'status': CloseAccountResponse.StatusEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "CloseAccountResponse.StatusEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CloseAccountResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CloseAccountResponse {
|
||||
export enum StatusEnum {
|
||||
Active = <any> 'Active',
|
||||
Closed = <any> 'Closed',
|
||||
Inactive = <any> 'Inactive',
|
||||
Suspended = <any> 'Suspended'
|
||||
}
|
||||
}
|
||||
103
src/typings/platformsAccount/createAccountHolderRequest.ts
Normal file
103
src/typings/platformsAccount/createAccountHolderRequest.ts
Normal file
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
|
||||
export class CreateAccountHolderRequest {
|
||||
/**
|
||||
* Your unique identifier for the prospective account holder. The length must be between three (3) and fifty (50) characters long. Only letters, digits, and hyphens (-) are allowed.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'accountHolderDetails': AccountHolderDetails;
|
||||
/**
|
||||
* If set to **true**, an account with the default options is automatically created for the account holder. By default, this field is set to **true**.
|
||||
*/
|
||||
'createDefaultAccount'?: boolean;
|
||||
/**
|
||||
* A description of the prospective account holder, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The legal entity type of the account holder. This determines the information that should be provided in the request. Possible values: **Business**, **Individual**, or **NonProfit**. * If set to **Business** or **NonProfit**, then `accountHolderDetails.businessDetails` must be provided, with at least one entry in the `accountHolderDetails.businessDetails.shareholders` list. * If set to **Individual**, then `accountHolderDetails.individualDetails` must be provided.
|
||||
*/
|
||||
'legalEntity': CreateAccountHolderRequest.LegalEntityEnum;
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.
|
||||
*/
|
||||
'primaryCurrency'?: string;
|
||||
/**
|
||||
* The starting [processing tier](https://docs.adyen.com/platforms/onboarding-and-verification/precheck-kyc-information) for the prospective account holder.
|
||||
*/
|
||||
'processingTier'?: number;
|
||||
/**
|
||||
* The identifier of the profile that applies to this entity.
|
||||
*/
|
||||
'verificationProfile'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderDetails",
|
||||
"baseName": "accountHolderDetails",
|
||||
"type": "AccountHolderDetails"
|
||||
},
|
||||
{
|
||||
"name": "createDefaultAccount",
|
||||
"baseName": "createDefaultAccount",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntity",
|
||||
"baseName": "legalEntity",
|
||||
"type": "CreateAccountHolderRequest.LegalEntityEnum"
|
||||
},
|
||||
{
|
||||
"name": "primaryCurrency",
|
||||
"baseName": "primaryCurrency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "processingTier",
|
||||
"baseName": "processingTier",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "verificationProfile",
|
||||
"baseName": "verificationProfile",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CreateAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CreateAccountHolderRequest {
|
||||
export enum LegalEntityEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
136
src/typings/platformsAccount/createAccountHolderResponse.ts
Normal file
136
src/typings/platformsAccount/createAccountHolderResponse.ts
Normal file
@@ -0,0 +1,136 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {KYCVerificationResult2} from './kYCVerificationResult2';
|
||||
|
||||
export class CreateAccountHolderResponse {
|
||||
/**
|
||||
* The code of a new account created for the account holder.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
/**
|
||||
* The code of the new account holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'accountHolderDetails': AccountHolderDetails;
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* The description of the new account holder.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A list of fields that caused the `/createAccountHolder` request to fail.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The type of legal entity of the new account holder.
|
||||
*/
|
||||
'legalEntity': CreateAccountHolderResponse.LegalEntityEnum;
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.
|
||||
*/
|
||||
'primaryCurrency'?: string;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
'verification': KYCVerificationResult2;
|
||||
/**
|
||||
* The identifier of the profile that applies to this entity.
|
||||
*/
|
||||
'verificationProfile'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderDetails",
|
||||
"baseName": "accountHolderDetails",
|
||||
"type": "AccountHolderDetails"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "legalEntity",
|
||||
"baseName": "legalEntity",
|
||||
"type": "CreateAccountHolderResponse.LegalEntityEnum"
|
||||
},
|
||||
{
|
||||
"name": "primaryCurrency",
|
||||
"baseName": "primaryCurrency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "verification",
|
||||
"baseName": "verification",
|
||||
"type": "KYCVerificationResult2"
|
||||
},
|
||||
{
|
||||
"name": "verificationProfile",
|
||||
"baseName": "verificationProfile",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CreateAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CreateAccountHolderResponse {
|
||||
export enum LegalEntityEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
120
src/typings/platformsAccount/createAccountRequest.ts
Normal file
120
src/typings/platformsAccount/createAccountRequest.ts
Normal file
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class CreateAccountRequest {
|
||||
/**
|
||||
* The code of Account Holder under which to create the account.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* A description of the account, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
/**
|
||||
* The payout schedule of the prospective account. >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`.
|
||||
*/
|
||||
'payoutSchedule'?: CreateAccountRequest.PayoutScheduleEnum;
|
||||
/**
|
||||
* The reason for the payout schedule choice. >Required if the payoutSchedule is `HOLD`.
|
||||
*/
|
||||
'payoutScheduleReason'?: string;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: CreateAccountRequest.PayoutSpeedEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSchedule",
|
||||
"baseName": "payoutSchedule",
|
||||
"type": "CreateAccountRequest.PayoutScheduleEnum"
|
||||
},
|
||||
{
|
||||
"name": "payoutScheduleReason",
|
||||
"baseName": "payoutScheduleReason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "CreateAccountRequest.PayoutSpeedEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CreateAccountRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CreateAccountRequest {
|
||||
export enum PayoutScheduleEnum {
|
||||
BiweeklyOn1StAnd15ThAtMidnight = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT',
|
||||
BiweeklyOn1StAnd15ThAtNoon = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON',
|
||||
Daily = <any> 'DAILY',
|
||||
Daily6Pm = <any> 'DAILY_6PM',
|
||||
DailyAu = <any> 'DAILY_AU',
|
||||
DailyEu = <any> 'DAILY_EU',
|
||||
DailySg = <any> 'DAILY_SG',
|
||||
DailyUs = <any> 'DAILY_US',
|
||||
Default = <any> 'DEFAULT',
|
||||
Every6HoursFromMidnight = <any> 'EVERY_6_HOURS_FROM_MIDNIGHT',
|
||||
Hold = <any> 'HOLD',
|
||||
Monthly = <any> 'MONTHLY',
|
||||
MonthlyOn15ThAtMidnight = <any> 'MONTHLY_ON_15TH_AT_MIDNIGHT',
|
||||
Weekly = <any> 'WEEKLY',
|
||||
WeeklyOnTueFriMidnight = <any> 'WEEKLY_ON_TUE_FRI_MIDNIGHT',
|
||||
Yearly = <any> 'YEARLY'
|
||||
}
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
}
|
||||
144
src/typings/platformsAccount/createAccountResponse.ts
Normal file
144
src/typings/platformsAccount/createAccountResponse.ts
Normal file
@@ -0,0 +1,144 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {PayoutScheduleResponse} from './payoutScheduleResponse';
|
||||
|
||||
export class CreateAccountResponse {
|
||||
/**
|
||||
* The code of the new account.
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The code of the account holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The description of the account.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A list of fields that caused the `/createAccount` request to fail.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* A set of key and value pairs containing metadata.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
'payoutSchedule'?: PayoutScheduleResponse;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: CreateAccountResponse.PayoutSpeedEnum;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
/**
|
||||
* The status of the account. >Permitted values: `Active`.
|
||||
*/
|
||||
'status': CreateAccountResponse.StatusEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSchedule",
|
||||
"baseName": "payoutSchedule",
|
||||
"type": "PayoutScheduleResponse"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "CreateAccountResponse.PayoutSpeedEnum"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "CreateAccountResponse.StatusEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return CreateAccountResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace CreateAccountResponse {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
export enum StatusEnum {
|
||||
Active = <any> 'Active',
|
||||
Closed = <any> 'Closed',
|
||||
Inactive = <any> 'Inactive',
|
||||
Suspended = <any> 'Suspended'
|
||||
}
|
||||
}
|
||||
41
src/typings/platformsAccount/deleteBankAccountRequest.ts
Normal file
41
src/typings/platformsAccount/deleteBankAccountRequest.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class DeleteBankAccountRequest {
|
||||
/**
|
||||
* The code of the Account Holder from which to delete the Bank Account(s).
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The code(s) of the Bank Accounts to be deleted.
|
||||
*/
|
||||
'bankAccountUUIDs': Array<string>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUIDs",
|
||||
"baseName": "bankAccountUUIDs",
|
||||
"type": "Array<string>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DeleteBankAccountRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
41
src/typings/platformsAccount/deletePayoutMethodRequest.ts
Normal file
41
src/typings/platformsAccount/deletePayoutMethodRequest.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class DeletePayoutMethodRequest {
|
||||
/**
|
||||
* The code of the account holder, from which to delete the payout methods.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The codes of the payout methods to be deleted.
|
||||
*/
|
||||
'payoutMethodCodes': Array<string>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCodes",
|
||||
"baseName": "payoutMethodCodes",
|
||||
"type": "Array<string>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DeletePayoutMethodRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
41
src/typings/platformsAccount/deleteShareholderRequest.ts
Normal file
41
src/typings/platformsAccount/deleteShareholderRequest.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class DeleteShareholderRequest {
|
||||
/**
|
||||
* The code of the Account Holder from which to delete the Shareholders.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The code(s) of the Shareholders to be deleted.
|
||||
*/
|
||||
'shareholderCodes': Array<string>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCodes",
|
||||
"baseName": "shareholderCodes",
|
||||
"type": "Array<string>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DeleteShareholderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
41
src/typings/platformsAccount/deleteSignatoriesRequest.ts
Normal file
41
src/typings/platformsAccount/deleteSignatoriesRequest.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class DeleteSignatoriesRequest {
|
||||
/**
|
||||
* The code of the account holder from which to delete the signatories.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* Array of codes of the signatories to be deleted.
|
||||
*/
|
||||
'signatoryCodes': Array<string>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "signatoryCodes",
|
||||
"baseName": "signatoryCodes",
|
||||
"type": "Array<string>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DeleteSignatoriesRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
103
src/typings/platformsAccount/documentDetail.ts
Normal file
103
src/typings/platformsAccount/documentDetail.ts
Normal file
@@ -0,0 +1,103 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class DocumentDetail {
|
||||
/**
|
||||
* The code of account holder, to which the document applies.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The unique ID of the Bank Account to which the document applies. >Required if the `documentType` is **BANK_STATEMENT**, where a document is being submitted in order to verify a bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a bank account.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* Description of the document.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The type of the document. Refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks) for details on when each document type should be submitted and for the accepted file formats. Permitted values: * **BANK_STATEMENT**: A file containing a bank statement or other document proving ownership of a specific bank account. * **COMPANY_REGISTRATION_SCREENING** (Supported from v5 and later): A file containing a company registration document. * **PASSPORT**: A file containing the identity page(s) of a passport. * **ID_CARD_FRONT**: A file containing only the front of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **ID_CARD_BACK**: A file containing only the back of the ID card. In order for a document to be usable, both the **ID_CARD_FRONT** and **ID_CARD_BACK** must be submitted. * **DRIVING_LICENCE_FRONT**: A file containing only the front of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_BACK** must be submitted. * **DRIVING_LICENCE_BACK**: A file containing only the back of the driving licence. In order for a document to be usable, both the **DRIVING_LICENCE_FRONT** and **DRIVING_LICENCE_FRONT** must be submitted.
|
||||
*/
|
||||
'documentType': DocumentDetail.DocumentTypeEnum;
|
||||
/**
|
||||
* Filename of the document.
|
||||
*/
|
||||
'filename': string;
|
||||
/**
|
||||
* The code of the shareholder, to which the document applies. Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) for details on when a document should be submitted in order to verify a shareholder.>Required if the account holder referred to by the `accountHolderCode` has a `legalEntity` of type **Business** and the `documentType` is either **PASSPORT**, **ID_CARD_FRONT**, **ID_CARD_BACK**, **DRIVING_LICENCE_FRONT**, or **DRIVING_LICENCE_BACK**. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on when a document should be submitted in order to verify a shareholder.
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
/**
|
||||
* The code of the signatory, to which the document applies
|
||||
*/
|
||||
'signatoryCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "documentType",
|
||||
"baseName": "documentType",
|
||||
"type": "DocumentDetail.DocumentTypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "filename",
|
||||
"baseName": "filename",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "signatoryCode",
|
||||
"baseName": "signatoryCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DocumentDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace DocumentDetail {
|
||||
export enum DocumentTypeEnum {
|
||||
BankStatement = <any> 'BANK_STATEMENT',
|
||||
Bsn = <any> 'BSN',
|
||||
CompanyRegistrationScreening = <any> 'COMPANY_REGISTRATION_SCREENING',
|
||||
ConstitutionalDocument = <any> 'CONSTITUTIONAL_DOCUMENT',
|
||||
DrivingLicence = <any> 'DRIVING_LICENCE',
|
||||
DrivingLicenceBack = <any> 'DRIVING_LICENCE_BACK',
|
||||
DrivingLicenceFront = <any> 'DRIVING_LICENCE_FRONT',
|
||||
IdCard = <any> 'ID_CARD',
|
||||
IdCardBack = <any> 'ID_CARD_BACK',
|
||||
IdCardFront = <any> 'ID_CARD_FRONT',
|
||||
Passport = <any> 'PASSPORT',
|
||||
Ssn = <any> 'SSN',
|
||||
SupportingDocuments = <any> 'SUPPORTING_DOCUMENTS'
|
||||
}
|
||||
}
|
||||
49
src/typings/platformsAccount/errorFieldType.ts
Normal file
49
src/typings/platformsAccount/errorFieldType.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {FieldType} from './fieldType';
|
||||
|
||||
export class ErrorFieldType {
|
||||
/**
|
||||
* The validation error code.
|
||||
*/
|
||||
'errorCode'?: number;
|
||||
/**
|
||||
* A description of the validation error.
|
||||
*/
|
||||
'errorDescription'?: string;
|
||||
'fieldType'?: FieldType;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "errorCode",
|
||||
"baseName": "errorCode",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "errorDescription",
|
||||
"baseName": "errorDescription",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fieldType",
|
||||
"baseName": "fieldType",
|
||||
"type": "FieldType"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ErrorFieldType.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
187
src/typings/platformsAccount/fieldType.ts
Normal file
187
src/typings/platformsAccount/fieldType.ts
Normal file
@@ -0,0 +1,187 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class FieldType {
|
||||
/**
|
||||
* The full name of the property.
|
||||
*/
|
||||
'field'?: string;
|
||||
/**
|
||||
* The type of the field.
|
||||
*/
|
||||
'fieldName'?: FieldType.FieldNameEnum;
|
||||
/**
|
||||
* The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "field",
|
||||
"baseName": "field",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fieldName",
|
||||
"baseName": "fieldName",
|
||||
"type": "FieldType.FieldNameEnum"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return FieldType.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace FieldType {
|
||||
export enum FieldNameEnum {
|
||||
AccountCode = <any> 'accountCode',
|
||||
AccountHolderCode = <any> 'accountHolderCode',
|
||||
AccountHolderDetails = <any> 'accountHolderDetails',
|
||||
AccountNumber = <any> 'accountNumber',
|
||||
AccountStateType = <any> 'accountStateType',
|
||||
AccountStatus = <any> 'accountStatus',
|
||||
AccountType = <any> 'accountType',
|
||||
Address = <any> 'address',
|
||||
BankAccount = <any> 'bankAccount',
|
||||
BankAccountCode = <any> 'bankAccountCode',
|
||||
BankAccountName = <any> 'bankAccountName',
|
||||
BankAccountUuid = <any> 'bankAccountUUID',
|
||||
BankBicSwift = <any> 'bankBicSwift',
|
||||
BankCity = <any> 'bankCity',
|
||||
BankCode = <any> 'bankCode',
|
||||
BankName = <any> 'bankName',
|
||||
BankStatement = <any> 'bankStatement',
|
||||
BranchCode = <any> 'branchCode',
|
||||
BusinessContact = <any> 'businessContact',
|
||||
CardToken = <any> 'cardToken',
|
||||
CheckCode = <any> 'checkCode',
|
||||
City = <any> 'city',
|
||||
CompanyRegistration = <any> 'companyRegistration',
|
||||
ConstitutionalDocument = <any> 'constitutionalDocument',
|
||||
Country = <any> 'country',
|
||||
CountryCode = <any> 'countryCode',
|
||||
Currency = <any> 'currency',
|
||||
CurrencyCode = <any> 'currencyCode',
|
||||
DateOfBirth = <any> 'dateOfBirth',
|
||||
Description = <any> 'description',
|
||||
DestinationAccountCode = <any> 'destinationAccountCode',
|
||||
Document = <any> 'document',
|
||||
DocumentExpirationDate = <any> 'documentExpirationDate',
|
||||
DocumentIssuerCountry = <any> 'documentIssuerCountry',
|
||||
DocumentIssuerState = <any> 'documentIssuerState',
|
||||
DocumentName = <any> 'documentName',
|
||||
DocumentNumber = <any> 'documentNumber',
|
||||
DocumentType = <any> 'documentType',
|
||||
DoingBusinessAs = <any> 'doingBusinessAs',
|
||||
DrivingLicence = <any> 'drivingLicence',
|
||||
DrivingLicenceBack = <any> 'drivingLicenceBack',
|
||||
DrivingLicense = <any> 'drivingLicense',
|
||||
Email = <any> 'email',
|
||||
FirstName = <any> 'firstName',
|
||||
FormType = <any> 'formType',
|
||||
FullPhoneNumber = <any> 'fullPhoneNumber',
|
||||
Gender = <any> 'gender',
|
||||
HopWebserviceUser = <any> 'hopWebserviceUser',
|
||||
HouseNumberOrName = <any> 'houseNumberOrName',
|
||||
Iban = <any> 'iban',
|
||||
IdCard = <any> 'idCard',
|
||||
IdCardBack = <any> 'idCardBack',
|
||||
IdCardFront = <any> 'idCardFront',
|
||||
IdNumber = <any> 'idNumber',
|
||||
IdentityDocument = <any> 'identityDocument',
|
||||
IndividualDetails = <any> 'individualDetails',
|
||||
JobTitle = <any> 'jobTitle',
|
||||
LastName = <any> 'lastName',
|
||||
LegalArrangement = <any> 'legalArrangement',
|
||||
LegalArrangementCode = <any> 'legalArrangementCode',
|
||||
LegalArrangementEntity = <any> 'legalArrangementEntity',
|
||||
LegalArrangementEntityCode = <any> 'legalArrangementEntityCode',
|
||||
LegalArrangementLegalForm = <any> 'legalArrangementLegalForm',
|
||||
LegalArrangementMember = <any> 'legalArrangementMember',
|
||||
LegalArrangementName = <any> 'legalArrangementName',
|
||||
LegalArrangementReference = <any> 'legalArrangementReference',
|
||||
LegalArrangementRegistrationNumber = <any> 'legalArrangementRegistrationNumber',
|
||||
LegalArrangementTaxNumber = <any> 'legalArrangementTaxNumber',
|
||||
LegalArrangementType = <any> 'legalArrangementType',
|
||||
LegalBusinessName = <any> 'legalBusinessName',
|
||||
LegalEntity = <any> 'legalEntity',
|
||||
LegalEntityType = <any> 'legalEntityType',
|
||||
MerchantAccount = <any> 'merchantAccount',
|
||||
MerchantCategoryCode = <any> 'merchantCategoryCode',
|
||||
MerchantReference = <any> 'merchantReference',
|
||||
MicroDeposit = <any> 'microDeposit',
|
||||
Name = <any> 'name',
|
||||
Nationality = <any> 'nationality',
|
||||
OriginalReference = <any> 'originalReference',
|
||||
OwnerCity = <any> 'ownerCity',
|
||||
OwnerCountryCode = <any> 'ownerCountryCode',
|
||||
OwnerHouseNumberOrName = <any> 'ownerHouseNumberOrName',
|
||||
OwnerName = <any> 'ownerName',
|
||||
OwnerPostalCode = <any> 'ownerPostalCode',
|
||||
OwnerState = <any> 'ownerState',
|
||||
OwnerStreet = <any> 'ownerStreet',
|
||||
Passport = <any> 'passport',
|
||||
PassportNumber = <any> 'passportNumber',
|
||||
PayoutMethodCode = <any> 'payoutMethodCode',
|
||||
PersonalData = <any> 'personalData',
|
||||
PhoneCountryCode = <any> 'phoneCountryCode',
|
||||
PhoneNumber = <any> 'phoneNumber',
|
||||
PostalCode = <any> 'postalCode',
|
||||
PrimaryCurrency = <any> 'primaryCurrency',
|
||||
Reason = <any> 'reason',
|
||||
RegistrationNumber = <any> 'registrationNumber',
|
||||
ReturnUrl = <any> 'returnUrl',
|
||||
Schedule = <any> 'schedule',
|
||||
Shareholder = <any> 'shareholder',
|
||||
ShareholderCode = <any> 'shareholderCode',
|
||||
ShareholderCodeAndSignatoryCode = <any> 'shareholderCodeAndSignatoryCode',
|
||||
ShareholderCodeOrSignatoryCode = <any> 'shareholderCodeOrSignatoryCode',
|
||||
ShareholderType = <any> 'shareholderType',
|
||||
ShopperInteraction = <any> 'shopperInteraction',
|
||||
Signatory = <any> 'signatory',
|
||||
SignatoryCode = <any> 'signatoryCode',
|
||||
SocialSecurityNumber = <any> 'socialSecurityNumber',
|
||||
SourceAccountCode = <any> 'sourceAccountCode',
|
||||
SplitAccount = <any> 'splitAccount',
|
||||
SplitCurrency = <any> 'splitCurrency',
|
||||
SplitValue = <any> 'splitValue',
|
||||
Splits = <any> 'splits',
|
||||
StateOrProvince = <any> 'stateOrProvince',
|
||||
Status = <any> 'status',
|
||||
StockExchange = <any> 'stockExchange',
|
||||
StockNumber = <any> 'stockNumber',
|
||||
StockTicker = <any> 'stockTicker',
|
||||
Store = <any> 'store',
|
||||
StoreDetail = <any> 'storeDetail',
|
||||
StoreName = <any> 'storeName',
|
||||
StoreReference = <any> 'storeReference',
|
||||
Street = <any> 'street',
|
||||
TaxId = <any> 'taxId',
|
||||
Tier = <any> 'tier',
|
||||
TierNumber = <any> 'tierNumber',
|
||||
TransferCode = <any> 'transferCode',
|
||||
Unknown = <any> 'unknown',
|
||||
Value = <any> 'value',
|
||||
VerificationType = <any> 'verificationType',
|
||||
VirtualAccount = <any> 'virtualAccount',
|
||||
VisaNumber = <any> 'visaNumber',
|
||||
WebAddress = <any> 'webAddress',
|
||||
Year = <any> 'year'
|
||||
}
|
||||
}
|
||||
52
src/typings/platformsAccount/genericResponse.ts
Normal file
52
src/typings/platformsAccount/genericResponse.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class GenericResponse {
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GenericResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
50
src/typings/platformsAccount/getAccountHolderRequest.ts
Normal file
50
src/typings/platformsAccount/getAccountHolderRequest.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class GetAccountHolderRequest {
|
||||
/**
|
||||
* The code of the account of which to retrieve the details. > Required if no `accountHolderCode` is provided.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
/**
|
||||
* The code of the account holder of which to retrieve the details. > Required if no `accountCode` is provided.
|
||||
*/
|
||||
'accountHolderCode'?: string;
|
||||
/**
|
||||
* True if the request should return the account holder details
|
||||
*/
|
||||
'showDetails'?: boolean;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "showDetails",
|
||||
"baseName": "showDetails",
|
||||
"type": "boolean"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
146
src/typings/platformsAccount/getAccountHolderResponse.ts
Normal file
146
src/typings/platformsAccount/getAccountHolderResponse.ts
Normal file
@@ -0,0 +1,146 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {Account} from './account';
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {KYCVerificationResult2} from './kYCVerificationResult2';
|
||||
|
||||
export class GetAccountHolderResponse {
|
||||
/**
|
||||
* The code of the account holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'accountHolderDetails': AccountHolderDetails;
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* A list of the accounts under the account holder.
|
||||
*/
|
||||
'accounts'?: Array<Account>;
|
||||
/**
|
||||
* The description of the account holder.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The legal entity of the account holder.
|
||||
*/
|
||||
'legalEntity': GetAccountHolderResponse.LegalEntityEnum;
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.
|
||||
*/
|
||||
'primaryCurrency'?: string;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
/**
|
||||
* The time that shows how up to date is the information in the response.
|
||||
*/
|
||||
'systemUpToDateTime'?: Date;
|
||||
'verification': KYCVerificationResult2;
|
||||
/**
|
||||
* The identifier of the profile that applies to this entity.
|
||||
*/
|
||||
'verificationProfile'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderDetails",
|
||||
"baseName": "accountHolderDetails",
|
||||
"type": "AccountHolderDetails"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "accounts",
|
||||
"baseName": "accounts",
|
||||
"type": "Array<Account>"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "legalEntity",
|
||||
"baseName": "legalEntity",
|
||||
"type": "GetAccountHolderResponse.LegalEntityEnum"
|
||||
},
|
||||
{
|
||||
"name": "primaryCurrency",
|
||||
"baseName": "primaryCurrency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "systemUpToDateTime",
|
||||
"baseName": "systemUpToDateTime",
|
||||
"type": "Date"
|
||||
},
|
||||
{
|
||||
"name": "verification",
|
||||
"baseName": "verification",
|
||||
"type": "KYCVerificationResult2"
|
||||
},
|
||||
{
|
||||
"name": "verificationProfile",
|
||||
"baseName": "verificationProfile",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace GetAccountHolderResponse {
|
||||
export enum LegalEntityEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class GetAccountHolderStatusResponse {
|
||||
/**
|
||||
* The code of the Account Holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetAccountHolderStatusResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
50
src/typings/platformsAccount/getTaxFormRequest.ts
Normal file
50
src/typings/platformsAccount/getTaxFormRequest.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class GetTaxFormRequest {
|
||||
/**
|
||||
* The account holder code you provided when you created the account holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* Type of the requested tax form. For example, 1099-K.
|
||||
*/
|
||||
'formType': string;
|
||||
/**
|
||||
* Applicable tax year in the YYYY format.
|
||||
*/
|
||||
'year': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "formType",
|
||||
"baseName": "formType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "year",
|
||||
"baseName": "year",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetTaxFormRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
70
src/typings/platformsAccount/getTaxFormResponse.ts
Normal file
70
src/typings/platformsAccount/getTaxFormResponse.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class GetTaxFormResponse {
|
||||
/**
|
||||
* The content of the tax form in the Base64 binary format.
|
||||
*/
|
||||
'content'?: string;
|
||||
/**
|
||||
* The content type of the tax form.
|
||||
*/
|
||||
'contentType'?: string;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "content",
|
||||
"baseName": "content",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "contentType",
|
||||
"baseName": "contentType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetTaxFormResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
50
src/typings/platformsAccount/getUploadedDocumentsRequest.ts
Normal file
50
src/typings/platformsAccount/getUploadedDocumentsRequest.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class GetUploadedDocumentsRequest {
|
||||
/**
|
||||
* The code of the Account Holder for which to retrieve the documents.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The code of the Bank Account for which to retrieve the documents.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The code of the Shareholder for which to retrieve the documents.
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetUploadedDocumentsRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
62
src/typings/platformsAccount/getUploadedDocumentsResponse.ts
Normal file
62
src/typings/platformsAccount/getUploadedDocumentsResponse.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {DocumentDetail} from './documentDetail';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class GetUploadedDocumentsResponse {
|
||||
/**
|
||||
* A list of the documents and their details.
|
||||
*/
|
||||
'documentDetails'?: Array<DocumentDetail>;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "documentDetails",
|
||||
"baseName": "documentDetails",
|
||||
"type": "Array<DocumentDetail>"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return GetUploadedDocumentsResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
38
src/typings/platformsAccount/individualDetails.ts
Normal file
38
src/typings/platformsAccount/individualDetails.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ViasName} from './viasName';
|
||||
import {ViasPersonalData} from './viasPersonalData';
|
||||
|
||||
export class IndividualDetails {
|
||||
'name'?: ViasName;
|
||||
'personalData'?: ViasPersonalData;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "ViasName"
|
||||
},
|
||||
{
|
||||
"name": "personalData",
|
||||
"baseName": "personalData",
|
||||
"type": "ViasPersonalData"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return IndividualDetails.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
34
src/typings/platformsAccount/kYCCheckResult2.ts
Normal file
34
src/typings/platformsAccount/kYCCheckResult2.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCCheckResult2 {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCCheckResult2.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
82
src/typings/platformsAccount/kYCCheckStatusData.ts
Normal file
82
src/typings/platformsAccount/kYCCheckStatusData.ts
Normal file
@@ -0,0 +1,82 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckSummary} from './kYCCheckSummary';
|
||||
|
||||
export class KYCCheckStatusData {
|
||||
/**
|
||||
* A list of the fields required for execution of the check.
|
||||
*/
|
||||
'requiredFields'?: Array<string>;
|
||||
/**
|
||||
* The status of the check. Possible values: **AWAITING_DATA** , **DATA_PROVIDED**, **FAILED**, **INVALID_DATA**, **PASSED**, **PENDING**, **RETRY_LIMIT_REACHED**.
|
||||
*/
|
||||
'status': KYCCheckStatusData.StatusEnum;
|
||||
'summary'?: KYCCheckSummary;
|
||||
/**
|
||||
* The type of check. Possible values: * **BANK_ACCOUNT_VERIFICATION**: Used in v5 and earlier. Replaced by **PAYOUT_METHOD_VERIFICATION** in v6 and later. * **COMPANY_VERIFICATION** * **CARD_VERIFICATION** * **IDENTITY_VERIFICATION** * **LEGAL_ARRANGEMENT_VERIFICATION** * **NONPROFIT_VERIFICATION** * **PASSPORT_VERIFICATION** * **PAYOUT_METHOD_VERIFICATION**: Used in v6 and later. * **PCI_VERIFICATION**
|
||||
*/
|
||||
'type': KYCCheckStatusData.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "requiredFields",
|
||||
"baseName": "requiredFields",
|
||||
"type": "Array<string>"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "KYCCheckStatusData.StatusEnum"
|
||||
},
|
||||
{
|
||||
"name": "summary",
|
||||
"baseName": "summary",
|
||||
"type": "KYCCheckSummary"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "KYCCheckStatusData.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCCheckStatusData.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace KYCCheckStatusData {
|
||||
export enum StatusEnum {
|
||||
AwaitingData = <any> 'AWAITING_DATA',
|
||||
DataProvided = <any> 'DATA_PROVIDED',
|
||||
Failed = <any> 'FAILED',
|
||||
InvalidData = <any> 'INVALID_DATA',
|
||||
Passed = <any> 'PASSED',
|
||||
Pending = <any> 'PENDING',
|
||||
PendingReview = <any> 'PENDING_REVIEW',
|
||||
RetryLimitReached = <any> 'RETRY_LIMIT_REACHED',
|
||||
Unchecked = <any> 'UNCHECKED'
|
||||
}
|
||||
export enum TypeEnum {
|
||||
BankAccountVerification = <any> 'BANK_ACCOUNT_VERIFICATION',
|
||||
CardVerification = <any> 'CARD_VERIFICATION',
|
||||
CompanyVerification = <any> 'COMPANY_VERIFICATION',
|
||||
IdentityVerification = <any> 'IDENTITY_VERIFICATION',
|
||||
LegalArrangementVerification = <any> 'LEGAL_ARRANGEMENT_VERIFICATION',
|
||||
NonprofitVerification = <any> 'NONPROFIT_VERIFICATION',
|
||||
PassportVerification = <any> 'PASSPORT_VERIFICATION',
|
||||
PayoutMethodVerification = <any> 'PAYOUT_METHOD_VERIFICATION',
|
||||
PciVerification = <any> 'PCI_VERIFICATION'
|
||||
}
|
||||
}
|
||||
41
src/typings/platformsAccount/kYCCheckSummary.ts
Normal file
41
src/typings/platformsAccount/kYCCheckSummary.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class KYCCheckSummary {
|
||||
/**
|
||||
* The code of the check. For possible values, refer to [Verification codes](https://docs.adyen.com/platforms/verification-codes).
|
||||
*/
|
||||
'kycCheckCode'?: number;
|
||||
/**
|
||||
* A description of the check.
|
||||
*/
|
||||
'kycCheckDescription'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "kycCheckCode",
|
||||
"baseName": "kycCheckCode",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "kycCheckDescription",
|
||||
"baseName": "kycCheckDescription",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCCheckSummary.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCLegalArrangementCheckResult {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
/**
|
||||
* The unique ID of the legal arrangement to which the check applies.
|
||||
*/
|
||||
'legalArrangementCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementCode",
|
||||
"baseName": "legalArrangementCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCLegalArrangementCheckResult.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCLegalArrangementEntityCheckResult {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
/**
|
||||
* The unique ID of the legal arrangement to which the entity belongs.
|
||||
*/
|
||||
'legalArrangementCode'?: string;
|
||||
/**
|
||||
* The unique ID of the legal arrangement entity to which the check applies.
|
||||
*/
|
||||
'legalArrangementEntityCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementCode",
|
||||
"baseName": "legalArrangementCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementEntityCode",
|
||||
"baseName": "legalArrangementEntityCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCLegalArrangementEntityCheckResult.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
43
src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts
Normal file
43
src/typings/platformsAccount/kYCPayoutMethodCheckResult.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCPayoutMethodCheckResult {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
/**
|
||||
* The unique ID of the payoput method to which the check applies.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCPayoutMethodCheckResult.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
61
src/typings/platformsAccount/kYCShareholderCheckResult.ts
Normal file
61
src/typings/platformsAccount/kYCShareholderCheckResult.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCShareholderCheckResult {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
/**
|
||||
* The unique ID of the legal arrangement to which the shareholder belongs, if applicable.
|
||||
*/
|
||||
'legalArrangementCode'?: string;
|
||||
/**
|
||||
* The unique ID of the legal arrangement entity to which the shareholder belongs, if applicable.
|
||||
*/
|
||||
'legalArrangementEntityCode'?: string;
|
||||
/**
|
||||
* The code of the shareholder to which the check applies.
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementCode",
|
||||
"baseName": "legalArrangementCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementEntityCode",
|
||||
"baseName": "legalArrangementEntityCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCShareholderCheckResult.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
43
src/typings/platformsAccount/kYCSignatoryCheckResult.ts
Normal file
43
src/typings/platformsAccount/kYCSignatoryCheckResult.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
|
||||
export class KYCSignatoryCheckResult {
|
||||
/**
|
||||
* A list of the checks and their statuses.
|
||||
*/
|
||||
'checks'?: Array<KYCCheckStatusData>;
|
||||
/**
|
||||
* The code of the signatory to which the check applies.
|
||||
*/
|
||||
'signatoryCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "checks",
|
||||
"baseName": "checks",
|
||||
"type": "Array<KYCCheckStatusData>"
|
||||
},
|
||||
{
|
||||
"name": "signatoryCode",
|
||||
"baseName": "signatoryCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCSignatoryCheckResult.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
81
src/typings/platformsAccount/kYCVerificationResult2.ts
Normal file
81
src/typings/platformsAccount/kYCVerificationResult2.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {KYCCheckResult2} from './kYCCheckResult2';
|
||||
import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult';
|
||||
import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult';
|
||||
import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult';
|
||||
import {KYCShareholderCheckResult} from './kYCShareholderCheckResult';
|
||||
import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult';
|
||||
|
||||
export class KYCVerificationResult2 {
|
||||
'accountHolder'?: KYCCheckResult2;
|
||||
/**
|
||||
* The results of the checks on the legal arrangements.
|
||||
*/
|
||||
'legalArrangements'?: Array<KYCLegalArrangementCheckResult>;
|
||||
/**
|
||||
* The results of the checks on the legal arrangement entities.
|
||||
*/
|
||||
'legalArrangementsEntities'?: Array<KYCLegalArrangementEntityCheckResult>;
|
||||
/**
|
||||
* The results of the checks on the payout methods.
|
||||
*/
|
||||
'payoutMethods'?: Array<KYCPayoutMethodCheckResult>;
|
||||
/**
|
||||
* The results of the checks on the shareholders.
|
||||
*/
|
||||
'shareholders'?: Array<KYCShareholderCheckResult>;
|
||||
/**
|
||||
* The results of the checks on the signatories.
|
||||
*/
|
||||
'signatories'?: Array<KYCSignatoryCheckResult>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolder",
|
||||
"baseName": "accountHolder",
|
||||
"type": "KYCCheckResult2"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangements",
|
||||
"baseName": "legalArrangements",
|
||||
"type": "Array<KYCLegalArrangementCheckResult>"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementsEntities",
|
||||
"baseName": "legalArrangementsEntities",
|
||||
"type": "Array<KYCLegalArrangementEntityCheckResult>"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethods",
|
||||
"baseName": "payoutMethods",
|
||||
"type": "Array<KYCPayoutMethodCheckResult>"
|
||||
},
|
||||
{
|
||||
"name": "shareholders",
|
||||
"baseName": "shareholders",
|
||||
"type": "Array<KYCShareholderCheckResult>"
|
||||
},
|
||||
{
|
||||
"name": "signatories",
|
||||
"baseName": "signatories",
|
||||
"type": "Array<KYCSignatoryCheckResult>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return KYCVerificationResult2.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
130
src/typings/platformsAccount/legalArrangementDetail.ts
Normal file
130
src/typings/platformsAccount/legalArrangementDetail.ts
Normal file
@@ -0,0 +1,130 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail';
|
||||
import {ViasAddress} from './viasAddress';
|
||||
|
||||
export class LegalArrangementDetail {
|
||||
'address'?: ViasAddress;
|
||||
/**
|
||||
* Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement. Required when updating an existing legal arrangement entry in an `/updateAccountHolder` request.
|
||||
*/
|
||||
'legalArrangementCode'?: string;
|
||||
/**
|
||||
* Array that contains information about the entities or members that are part of the legal arrangement.
|
||||
*/
|
||||
'legalArrangementEntities'?: Array<LegalArrangementEntityDetail>;
|
||||
/**
|
||||
* Your reference for the legal arrangement. Must be between 3 to 128 characters.
|
||||
*/
|
||||
'legalArrangementReference'?: string;
|
||||
/**
|
||||
* The structure of the legal arrangement as defined according to legislations in the country. Possible values: **CashManagementTrust**, **CorporateUnitTrust**, **DeceasedEstate**, **DiscretionaryInvestmentTrust**, **DiscretionaryServicesManagementTrust**, **DiscretionaryTradingTrust**, **FirstHomeSaverAccountsTrust**, **FixedTrust**, **FixedUnitTrust**, **HybridTrust**, **ListedPublicUnitTrust**, **OtherTrust**, **PooledSuperannuationTrust**, **PublicTradingTrust**, **UnlistedPublicUnitTrust**, **LimitedPartnership**, **FamilyPartnership**, **OtherPartnership**.
|
||||
*/
|
||||
'legalForm'?: LegalArrangementDetail.LegalFormEnum;
|
||||
/**
|
||||
* The legal name of the legal arrangement.
|
||||
*/
|
||||
'name'?: string;
|
||||
/**
|
||||
* The registration number of the legal arrangement.
|
||||
*/
|
||||
'registrationNumber'?: string;
|
||||
/**
|
||||
* The tax identification number of the legal arrangement.
|
||||
*/
|
||||
'taxNumber'?: string;
|
||||
/**
|
||||
* The type of legal arrangement. Possible values: - **Trust** - A legal agreement where the account holder is a trustee that manages assets for beneficiaries. - **Partnership** - A legal arrangement where the account holder is a partner that has an agreement with one or more partners to manage, operate and share profits of their jointly-owned business.
|
||||
*/
|
||||
'type'?: LegalArrangementDetail.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementCode",
|
||||
"baseName": "legalArrangementCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementEntities",
|
||||
"baseName": "legalArrangementEntities",
|
||||
"type": "Array<LegalArrangementEntityDetail>"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementReference",
|
||||
"baseName": "legalArrangementReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalForm",
|
||||
"baseName": "legalForm",
|
||||
"type": "LegalArrangementDetail.LegalFormEnum"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "registrationNumber",
|
||||
"baseName": "registrationNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "taxNumber",
|
||||
"baseName": "taxNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "LegalArrangementDetail.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return LegalArrangementDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace LegalArrangementDetail {
|
||||
export enum LegalFormEnum {
|
||||
CashManagementTrust = <any> 'CashManagementTrust',
|
||||
CorporateUnitTrust = <any> 'CorporateUnitTrust',
|
||||
DeceasedEstate = <any> 'DeceasedEstate',
|
||||
DiscretionaryInvestmentTrust = <any> 'DiscretionaryInvestmentTrust',
|
||||
DiscretionaryServicesManagementTrust = <any> 'DiscretionaryServicesManagementTrust',
|
||||
DiscretionaryTradingTrust = <any> 'DiscretionaryTradingTrust',
|
||||
FirstHomeSaverAccountsTrust = <any> 'FirstHomeSaverAccountsTrust',
|
||||
FixedTrust = <any> 'FixedTrust',
|
||||
FixedUnitTrust = <any> 'FixedUnitTrust',
|
||||
HybridTrust = <any> 'HybridTrust',
|
||||
ListedPublicUnitTrust = <any> 'ListedPublicUnitTrust',
|
||||
OtherTrust = <any> 'OtherTrust',
|
||||
PooledSuperannuationTrust = <any> 'PooledSuperannuationTrust',
|
||||
PublicTradingTrust = <any> 'PublicTradingTrust',
|
||||
UnlistedPublicUnitTrust = <any> 'UnlistedPublicUnitTrust',
|
||||
LimitedPartnership = <any> 'LimitedPartnership',
|
||||
FamilyPartnership = <any> 'FamilyPartnership',
|
||||
OtherPartnership = <any> 'OtherPartnership'
|
||||
}
|
||||
export enum TypeEnum {
|
||||
Partnership = <any> 'Partnership',
|
||||
Trust = <any> 'Trust'
|
||||
}
|
||||
}
|
||||
136
src/typings/platformsAccount/legalArrangementEntityDetail.ts
Normal file
136
src/typings/platformsAccount/legalArrangementEntityDetail.ts
Normal file
@@ -0,0 +1,136 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {BusinessDetails} from './businessDetails';
|
||||
import {IndividualDetails} from './individualDetails';
|
||||
import {ViasAddress} from './viasAddress';
|
||||
import {ViasPhoneNumber} from './viasPhoneNumber';
|
||||
|
||||
export class LegalArrangementEntityDetail {
|
||||
'address'?: ViasAddress;
|
||||
'businessDetails'?: BusinessDetails;
|
||||
/**
|
||||
* The e-mail address of the entity.
|
||||
*/
|
||||
'email'?: string;
|
||||
/**
|
||||
* The 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;
|
||||
'individualDetails'?: IndividualDetails;
|
||||
/**
|
||||
* Adyen-generated unique alphanumeric identifier (UUID) for the entry, returned in the response when you create a legal arrangement entity.
|
||||
*/
|
||||
'legalArrangementEntityCode'?: string;
|
||||
/**
|
||||
* Your reference for the legal arrangement entity.
|
||||
*/
|
||||
'legalArrangementEntityReference'?: string;
|
||||
/**
|
||||
* The role of the entity in the legal arrangement. The values depend on the `legalArragementType`. Possible values: - For `legalArragementType` **Trust**, you can use **Trustee**, **Settlor**, **Protector**, **Beneficiary**, or **Shareholder**. - For `legalArragementType` **Partnership**, you can use **Partner** or **Shareholder**.
|
||||
*/
|
||||
'legalArrangementMember'?: LegalArrangementEntityDetail.LegalArrangementMemberEnum;
|
||||
/**
|
||||
* The legal entity type. Possible values: **Business**, **Individual**, **NonProfit**, **PublicCompany**, or **Partnership**.
|
||||
*/
|
||||
'legalEntityType': LegalArrangementEntityDetail.LegalEntityTypeEnum;
|
||||
'phoneNumber'?: ViasPhoneNumber;
|
||||
/**
|
||||
* The URL of the website of the contact.
|
||||
*/
|
||||
'webAddress'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "businessDetails",
|
||||
"baseName": "businessDetails",
|
||||
"type": "BusinessDetails"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fullPhoneNumber",
|
||||
"baseName": "fullPhoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "individualDetails",
|
||||
"baseName": "individualDetails",
|
||||
"type": "IndividualDetails"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementEntityCode",
|
||||
"baseName": "legalArrangementEntityCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementEntityReference",
|
||||
"baseName": "legalArrangementEntityReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalArrangementMember",
|
||||
"baseName": "legalArrangementMember",
|
||||
"type": "LegalArrangementEntityDetail.LegalArrangementMemberEnum"
|
||||
},
|
||||
{
|
||||
"name": "legalEntityType",
|
||||
"baseName": "legalEntityType",
|
||||
"type": "LegalArrangementEntityDetail.LegalEntityTypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "phoneNumber",
|
||||
"baseName": "phoneNumber",
|
||||
"type": "ViasPhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "webAddress",
|
||||
"baseName": "webAddress",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return LegalArrangementEntityDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace LegalArrangementEntityDetail {
|
||||
export enum LegalArrangementMemberEnum {
|
||||
Associate = <any> 'Associate',
|
||||
Beneficiary = <any> 'Beneficiary',
|
||||
Chairman = <any> 'Chairman',
|
||||
Partner = <any> 'Partner',
|
||||
Protector = <any> 'Protector',
|
||||
Secretary = <any> 'Secretary',
|
||||
Settlor = <any> 'Settlor',
|
||||
Shareholder = <any> 'Shareholder',
|
||||
Treasurer = <any> 'Treasurer',
|
||||
Trustee = <any> 'Trustee'
|
||||
}
|
||||
export enum LegalEntityTypeEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
397
src/typings/platformsAccount/models.ts
Normal file
397
src/typings/platformsAccount/models.ts
Normal file
@@ -0,0 +1,397 @@
|
||||
/*
|
||||
* ######
|
||||
* ######
|
||||
* ############ ####( ###### #####. ###### ############ ############
|
||||
* ############# #####( ###### #####. ###### ############# #############
|
||||
* ###### #####( ###### #####. ###### ##### ###### ##### ######
|
||||
* ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
|
||||
* ###### ###### #####( ###### #####. ###### ##### ##### ######
|
||||
* ############# ############# ############# ############# ##### ######
|
||||
* ############ ############ ############# ############ ##### ######
|
||||
* ######
|
||||
* #############
|
||||
* ############
|
||||
* Adyen NodeJS API Library
|
||||
* Copyright (c) 2020 Adyen B.V.
|
||||
* This file is open source and available under the MIT license.
|
||||
* See the LICENSE file for more info.
|
||||
*/
|
||||
|
||||
export * from './account';
|
||||
export * from './accountEvent';
|
||||
export * from './accountHolderDetails';
|
||||
export * from './accountHolderStatus';
|
||||
export * from './accountPayoutState';
|
||||
export * from './accountProcessingState';
|
||||
export * from './amount';
|
||||
export * from './bankAccountDetail';
|
||||
export * from './businessDetails';
|
||||
export * from './closeAccountHolderRequest';
|
||||
export * from './closeAccountHolderResponse';
|
||||
export * from './closeAccountRequest';
|
||||
export * from './closeAccountResponse';
|
||||
export * from './createAccountHolderRequest';
|
||||
export * from './createAccountHolderResponse';
|
||||
export * from './createAccountRequest';
|
||||
export * from './createAccountResponse';
|
||||
export * from './deleteBankAccountRequest';
|
||||
export * from './deletePayoutMethodRequest';
|
||||
export * from './deleteShareholderRequest';
|
||||
export * from './deleteSignatoriesRequest';
|
||||
export * from './documentDetail';
|
||||
export * from './errorFieldType';
|
||||
export * from './fieldType';
|
||||
export * from './genericResponse';
|
||||
export * from './getAccountHolderRequest';
|
||||
export * from './getAccountHolderResponse';
|
||||
export * from './getAccountHolderStatusResponse';
|
||||
export * from './getTaxFormRequest';
|
||||
export * from './getTaxFormResponse';
|
||||
export * from './getUploadedDocumentsRequest';
|
||||
export * from './getUploadedDocumentsResponse';
|
||||
export * from './individualDetails';
|
||||
export * from './kYCCheckResult2';
|
||||
export * from './kYCCheckStatusData';
|
||||
export * from './kYCCheckSummary';
|
||||
export * from './kYCLegalArrangementCheckResult';
|
||||
export * from './kYCLegalArrangementEntityCheckResult';
|
||||
export * from './kYCPayoutMethodCheckResult';
|
||||
export * from './kYCShareholderCheckResult';
|
||||
export * from './kYCSignatoryCheckResult';
|
||||
export * from './kYCVerificationResult2';
|
||||
export * from './legalArrangementDetail';
|
||||
export * from './legalArrangementEntityDetail';
|
||||
export * from './payoutMethod';
|
||||
export * from './payoutScheduleResponse';
|
||||
export * from './performVerificationRequest';
|
||||
export * from './personalDocumentData';
|
||||
export * from './serviceError';
|
||||
export * from './shareholderContact';
|
||||
export * from './signatoryContact';
|
||||
export * from './storeDetail';
|
||||
export * from './suspendAccountHolderRequest';
|
||||
export * from './suspendAccountHolderResponse';
|
||||
export * from './unSuspendAccountHolderRequest';
|
||||
export * from './unSuspendAccountHolderResponse';
|
||||
export * from './updateAccountHolderRequest';
|
||||
export * from './updateAccountHolderResponse';
|
||||
export * from './updateAccountHolderStateRequest';
|
||||
export * from './updateAccountRequest';
|
||||
export * from './updateAccountResponse';
|
||||
export * from './updatePayoutScheduleRequest';
|
||||
export * from './uploadDocumentRequest';
|
||||
export * from './viasAddress';
|
||||
export * from './viasName';
|
||||
export * from './viasPersonalData';
|
||||
export * from './viasPhoneNumber';
|
||||
|
||||
import * as fs from 'fs';
|
||||
import {Account} from './account';
|
||||
import {AccountEvent} from './accountEvent';
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {AccountPayoutState} from './accountPayoutState';
|
||||
import {AccountProcessingState} from './accountProcessingState';
|
||||
import {Amount} from './amount';
|
||||
import {BankAccountDetail} from './bankAccountDetail';
|
||||
import {BusinessDetails} from './businessDetails';
|
||||
import {CloseAccountHolderRequest} from './closeAccountHolderRequest';
|
||||
import {CloseAccountHolderResponse} from './closeAccountHolderResponse';
|
||||
import {CloseAccountRequest} from './closeAccountRequest';
|
||||
import {CloseAccountResponse} from './closeAccountResponse';
|
||||
import {CreateAccountHolderRequest} from './createAccountHolderRequest';
|
||||
import {CreateAccountHolderResponse} from './createAccountHolderResponse';
|
||||
import {CreateAccountRequest} from './createAccountRequest';
|
||||
import {CreateAccountResponse} from './createAccountResponse';
|
||||
import {DeleteBankAccountRequest} from './deleteBankAccountRequest';
|
||||
import {DeletePayoutMethodRequest} from './deletePayoutMethodRequest';
|
||||
import {DeleteShareholderRequest} from './deleteShareholderRequest';
|
||||
import {DeleteSignatoriesRequest} from './deleteSignatoriesRequest';
|
||||
import {DocumentDetail} from './documentDetail';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {FieldType} from './fieldType';
|
||||
import {GenericResponse} from './genericResponse';
|
||||
import {GetAccountHolderRequest} from './getAccountHolderRequest';
|
||||
import {GetAccountHolderResponse} from './getAccountHolderResponse';
|
||||
import {GetAccountHolderStatusResponse} from './getAccountHolderStatusResponse';
|
||||
import {GetTaxFormRequest} from './getTaxFormRequest';
|
||||
import {GetTaxFormResponse} from './getTaxFormResponse';
|
||||
import {GetUploadedDocumentsRequest} from './getUploadedDocumentsRequest';
|
||||
import {GetUploadedDocumentsResponse} from './getUploadedDocumentsResponse';
|
||||
import {IndividualDetails} from './individualDetails';
|
||||
import {KYCCheckResult2} from './kYCCheckResult2';
|
||||
import {KYCCheckStatusData} from './kYCCheckStatusData';
|
||||
import {KYCCheckSummary} from './kYCCheckSummary';
|
||||
import {KYCLegalArrangementCheckResult} from './kYCLegalArrangementCheckResult';
|
||||
import {KYCLegalArrangementEntityCheckResult} from './kYCLegalArrangementEntityCheckResult';
|
||||
import {KYCPayoutMethodCheckResult} from './kYCPayoutMethodCheckResult';
|
||||
import {KYCShareholderCheckResult} from './kYCShareholderCheckResult';
|
||||
import {KYCSignatoryCheckResult} from './kYCSignatoryCheckResult';
|
||||
import {KYCVerificationResult2} from './kYCVerificationResult2';
|
||||
import {LegalArrangementDetail} from './legalArrangementDetail';
|
||||
import {LegalArrangementEntityDetail} from './legalArrangementEntityDetail';
|
||||
import {PayoutMethod} from './payoutMethod';
|
||||
import {PayoutScheduleResponse} from './payoutScheduleResponse';
|
||||
import {PerformVerificationRequest} from './performVerificationRequest';
|
||||
import {PersonalDocumentData} from './personalDocumentData';
|
||||
import {ServiceError} from './serviceError';
|
||||
import {ShareholderContact} from './shareholderContact';
|
||||
import {SignatoryContact} from './signatoryContact';
|
||||
import {StoreDetail} from './storeDetail';
|
||||
import {SuspendAccountHolderRequest} from './suspendAccountHolderRequest';
|
||||
import {SuspendAccountHolderResponse} from './suspendAccountHolderResponse';
|
||||
import {UnSuspendAccountHolderRequest} from './unSuspendAccountHolderRequest';
|
||||
import {UnSuspendAccountHolderResponse} from './unSuspendAccountHolderResponse';
|
||||
import {UpdateAccountHolderRequest} from './updateAccountHolderRequest';
|
||||
import {UpdateAccountHolderResponse} from './updateAccountHolderResponse';
|
||||
import {UpdateAccountHolderStateRequest} from './updateAccountHolderStateRequest';
|
||||
import {UpdateAccountRequest} from './updateAccountRequest';
|
||||
import {UpdateAccountResponse} from './updateAccountResponse';
|
||||
import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest';
|
||||
import {UploadDocumentRequest} from './uploadDocumentRequest';
|
||||
import {ViasAddress} from './viasAddress';
|
||||
import {ViasName} from './viasName';
|
||||
import {ViasPersonalData} from './viasPersonalData';
|
||||
import {ViasPhoneNumber} from './viasPhoneNumber';
|
||||
|
||||
export interface RequestDetailedFile {
|
||||
value: Buffer;
|
||||
options?: {
|
||||
filename?: string;
|
||||
contentType?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
||||
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
"string",
|
||||
"boolean",
|
||||
"double",
|
||||
"integer",
|
||||
"long",
|
||||
"float",
|
||||
"number",
|
||||
"any"
|
||||
];
|
||||
|
||||
let enumsMap: {[index: string]: any} = {
|
||||
"Account.PayoutSpeedEnum": Account.PayoutSpeedEnum,
|
||||
"AccountEvent.EventEnum": AccountEvent.EventEnum,
|
||||
"AccountHolderStatus.StatusEnum": AccountHolderStatus.StatusEnum,
|
||||
"CloseAccountResponse.StatusEnum": CloseAccountResponse.StatusEnum,
|
||||
"CreateAccountHolderRequest.LegalEntityEnum": CreateAccountHolderRequest.LegalEntityEnum,
|
||||
"CreateAccountHolderResponse.LegalEntityEnum": CreateAccountHolderResponse.LegalEntityEnum,
|
||||
"CreateAccountRequest.PayoutScheduleEnum": CreateAccountRequest.PayoutScheduleEnum,
|
||||
"CreateAccountRequest.PayoutSpeedEnum": CreateAccountRequest.PayoutSpeedEnum,
|
||||
"CreateAccountResponse.PayoutSpeedEnum": CreateAccountResponse.PayoutSpeedEnum,
|
||||
"CreateAccountResponse.StatusEnum": CreateAccountResponse.StatusEnum,
|
||||
"DocumentDetail.DocumentTypeEnum": DocumentDetail.DocumentTypeEnum,
|
||||
"FieldType.FieldNameEnum": FieldType.FieldNameEnum,
|
||||
"GetAccountHolderResponse.LegalEntityEnum": GetAccountHolderResponse.LegalEntityEnum,
|
||||
"KYCCheckStatusData.StatusEnum": KYCCheckStatusData.StatusEnum,
|
||||
"KYCCheckStatusData.TypeEnum": KYCCheckStatusData.TypeEnum,
|
||||
"LegalArrangementDetail.LegalFormEnum": LegalArrangementDetail.LegalFormEnum,
|
||||
"LegalArrangementDetail.TypeEnum": LegalArrangementDetail.TypeEnum,
|
||||
"LegalArrangementEntityDetail.LegalArrangementMemberEnum": LegalArrangementEntityDetail.LegalArrangementMemberEnum,
|
||||
"LegalArrangementEntityDetail.LegalEntityTypeEnum": LegalArrangementEntityDetail.LegalEntityTypeEnum,
|
||||
"PayoutMethod.PayoutMethodTypeEnum": PayoutMethod.PayoutMethodTypeEnum,
|
||||
"PayoutScheduleResponse.ScheduleEnum": PayoutScheduleResponse.ScheduleEnum,
|
||||
"PerformVerificationRequest.AccountStateTypeEnum": PerformVerificationRequest.AccountStateTypeEnum,
|
||||
"PersonalDocumentData.TypeEnum": PersonalDocumentData.TypeEnum,
|
||||
"ShareholderContact.ShareholderTypeEnum": ShareholderContact.ShareholderTypeEnum,
|
||||
"StoreDetail.ShopperInteractionEnum": StoreDetail.ShopperInteractionEnum,
|
||||
"StoreDetail.StatusEnum": StoreDetail.StatusEnum,
|
||||
"UpdateAccountHolderRequest.LegalEntityEnum": UpdateAccountHolderRequest.LegalEntityEnum,
|
||||
"UpdateAccountHolderResponse.LegalEntityEnum": UpdateAccountHolderResponse.LegalEntityEnum,
|
||||
"UpdateAccountHolderStateRequest.StateTypeEnum": UpdateAccountHolderStateRequest.StateTypeEnum,
|
||||
"UpdateAccountRequest.PayoutSpeedEnum": UpdateAccountRequest.PayoutSpeedEnum,
|
||||
"UpdateAccountResponse.PayoutSpeedEnum": UpdateAccountResponse.PayoutSpeedEnum,
|
||||
"UpdatePayoutScheduleRequest.ActionEnum": UpdatePayoutScheduleRequest.ActionEnum,
|
||||
"UpdatePayoutScheduleRequest.ScheduleEnum": UpdatePayoutScheduleRequest.ScheduleEnum,
|
||||
"ViasName.GenderEnum": ViasName.GenderEnum,
|
||||
"ViasPhoneNumber.PhoneTypeEnum": ViasPhoneNumber.PhoneTypeEnum,
|
||||
}
|
||||
|
||||
let typeMap: {[index: string]: any} = {
|
||||
"Account": Account,
|
||||
"AccountEvent": AccountEvent,
|
||||
"AccountHolderDetails": AccountHolderDetails,
|
||||
"AccountHolderStatus": AccountHolderStatus,
|
||||
"AccountPayoutState": AccountPayoutState,
|
||||
"AccountProcessingState": AccountProcessingState,
|
||||
"Amount": Amount,
|
||||
"BankAccountDetail": BankAccountDetail,
|
||||
"BusinessDetails": BusinessDetails,
|
||||
"CloseAccountHolderRequest": CloseAccountHolderRequest,
|
||||
"CloseAccountHolderResponse": CloseAccountHolderResponse,
|
||||
"CloseAccountRequest": CloseAccountRequest,
|
||||
"CloseAccountResponse": CloseAccountResponse,
|
||||
"CreateAccountHolderRequest": CreateAccountHolderRequest,
|
||||
"CreateAccountHolderResponse": CreateAccountHolderResponse,
|
||||
"CreateAccountRequest": CreateAccountRequest,
|
||||
"CreateAccountResponse": CreateAccountResponse,
|
||||
"DeleteBankAccountRequest": DeleteBankAccountRequest,
|
||||
"DeletePayoutMethodRequest": DeletePayoutMethodRequest,
|
||||
"DeleteShareholderRequest": DeleteShareholderRequest,
|
||||
"DeleteSignatoriesRequest": DeleteSignatoriesRequest,
|
||||
"DocumentDetail": DocumentDetail,
|
||||
"ErrorFieldType": ErrorFieldType,
|
||||
"FieldType": FieldType,
|
||||
"GenericResponse": GenericResponse,
|
||||
"GetAccountHolderRequest": GetAccountHolderRequest,
|
||||
"GetAccountHolderResponse": GetAccountHolderResponse,
|
||||
"GetAccountHolderStatusResponse": GetAccountHolderStatusResponse,
|
||||
"GetTaxFormRequest": GetTaxFormRequest,
|
||||
"GetTaxFormResponse": GetTaxFormResponse,
|
||||
"GetUploadedDocumentsRequest": GetUploadedDocumentsRequest,
|
||||
"GetUploadedDocumentsResponse": GetUploadedDocumentsResponse,
|
||||
"IndividualDetails": IndividualDetails,
|
||||
"KYCCheckResult2": KYCCheckResult2,
|
||||
"KYCCheckStatusData": KYCCheckStatusData,
|
||||
"KYCCheckSummary": KYCCheckSummary,
|
||||
"KYCLegalArrangementCheckResult": KYCLegalArrangementCheckResult,
|
||||
"KYCLegalArrangementEntityCheckResult": KYCLegalArrangementEntityCheckResult,
|
||||
"KYCPayoutMethodCheckResult": KYCPayoutMethodCheckResult,
|
||||
"KYCShareholderCheckResult": KYCShareholderCheckResult,
|
||||
"KYCSignatoryCheckResult": KYCSignatoryCheckResult,
|
||||
"KYCVerificationResult2": KYCVerificationResult2,
|
||||
"LegalArrangementDetail": LegalArrangementDetail,
|
||||
"LegalArrangementEntityDetail": LegalArrangementEntityDetail,
|
||||
"PayoutMethod": PayoutMethod,
|
||||
"PayoutScheduleResponse": PayoutScheduleResponse,
|
||||
"PerformVerificationRequest": PerformVerificationRequest,
|
||||
"PersonalDocumentData": PersonalDocumentData,
|
||||
"ServiceError": ServiceError,
|
||||
"ShareholderContact": ShareholderContact,
|
||||
"SignatoryContact": SignatoryContact,
|
||||
"StoreDetail": StoreDetail,
|
||||
"SuspendAccountHolderRequest": SuspendAccountHolderRequest,
|
||||
"SuspendAccountHolderResponse": SuspendAccountHolderResponse,
|
||||
"UnSuspendAccountHolderRequest": UnSuspendAccountHolderRequest,
|
||||
"UnSuspendAccountHolderResponse": UnSuspendAccountHolderResponse,
|
||||
"UpdateAccountHolderRequest": UpdateAccountHolderRequest,
|
||||
"UpdateAccountHolderResponse": UpdateAccountHolderResponse,
|
||||
"UpdateAccountHolderStateRequest": UpdateAccountHolderStateRequest,
|
||||
"UpdateAccountRequest": UpdateAccountRequest,
|
||||
"UpdateAccountResponse": UpdateAccountResponse,
|
||||
"UpdatePayoutScheduleRequest": UpdatePayoutScheduleRequest,
|
||||
"UploadDocumentRequest": UploadDocumentRequest,
|
||||
"ViasAddress": ViasAddress,
|
||||
"ViasName": ViasName,
|
||||
"ViasPersonalData": ViasPersonalData,
|
||||
"ViasPhoneNumber": ViasPhoneNumber,
|
||||
}
|
||||
|
||||
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 (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;
|
||||
}
|
||||
}
|
||||
}
|
||||
58
src/typings/platformsAccount/payoutMethod.ts
Normal file
58
src/typings/platformsAccount/payoutMethod.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class PayoutMethod {
|
||||
'merchantAccount': string;
|
||||
'payoutMethodCode'?: string;
|
||||
'payoutMethodType'?: PayoutMethod.PayoutMethodTypeEnum;
|
||||
'recurringDetailReference': string;
|
||||
'shopperReference': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "merchantAccount",
|
||||
"baseName": "merchantAccount",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodType",
|
||||
"baseName": "payoutMethodType",
|
||||
"type": "PayoutMethod.PayoutMethodTypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "recurringDetailReference",
|
||||
"baseName": "recurringDetailReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shopperReference",
|
||||
"baseName": "shopperReference",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PayoutMethod.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PayoutMethod {
|
||||
export enum PayoutMethodTypeEnum {
|
||||
CardToken = <any> 'CardToken'
|
||||
}
|
||||
}
|
||||
61
src/typings/platformsAccount/payoutScheduleResponse.ts
Normal file
61
src/typings/platformsAccount/payoutScheduleResponse.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class PayoutScheduleResponse {
|
||||
/**
|
||||
* The date of the next scheduled payout.
|
||||
*/
|
||||
'nextScheduledPayout'?: Date;
|
||||
/**
|
||||
* The payout schedule of the account. >Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`.
|
||||
*/
|
||||
'schedule': PayoutScheduleResponse.ScheduleEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "nextScheduledPayout",
|
||||
"baseName": "nextScheduledPayout",
|
||||
"type": "Date"
|
||||
},
|
||||
{
|
||||
"name": "schedule",
|
||||
"baseName": "schedule",
|
||||
"type": "PayoutScheduleResponse.ScheduleEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PayoutScheduleResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PayoutScheduleResponse {
|
||||
export enum ScheduleEnum {
|
||||
BiweeklyOn1StAnd15ThAtMidnight = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT',
|
||||
BiweeklyOn1StAnd15ThAtNoon = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON',
|
||||
Daily = <any> 'DAILY',
|
||||
Daily6Pm = <any> 'DAILY_6PM',
|
||||
DailyAu = <any> 'DAILY_AU',
|
||||
DailyEu = <any> 'DAILY_EU',
|
||||
DailySg = <any> 'DAILY_SG',
|
||||
DailyUs = <any> 'DAILY_US',
|
||||
Default = <any> 'DEFAULT',
|
||||
Every6HoursFromMidnight = <any> 'EVERY_6_HOURS_FROM_MIDNIGHT',
|
||||
Hold = <any> 'HOLD',
|
||||
Monthly = <any> 'MONTHLY',
|
||||
MonthlyOn15ThAtMidnight = <any> 'MONTHLY_ON_15TH_AT_MIDNIGHT',
|
||||
Weekly = <any> 'WEEKLY',
|
||||
WeeklyOnTueFriMidnight = <any> 'WEEKLY_ON_TUE_FRI_MIDNIGHT',
|
||||
Yearly = <any> 'YEARLY'
|
||||
}
|
||||
}
|
||||
60
src/typings/platformsAccount/performVerificationRequest.ts
Normal file
60
src/typings/platformsAccount/performVerificationRequest.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class PerformVerificationRequest {
|
||||
/**
|
||||
* The code of the account holder to verify.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* The state required for the account holder. > Permitted values: `Processing`, `Payout`.
|
||||
*/
|
||||
'accountStateType': PerformVerificationRequest.AccountStateTypeEnum;
|
||||
/**
|
||||
* The tier required for the account holder.
|
||||
*/
|
||||
'tier': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountStateType",
|
||||
"baseName": "accountStateType",
|
||||
"type": "PerformVerificationRequest.AccountStateTypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "tier",
|
||||
"baseName": "tier",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PerformVerificationRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PerformVerificationRequest {
|
||||
export enum AccountStateTypeEnum {
|
||||
LimitedPayout = <any> 'LimitedPayout',
|
||||
LimitedProcessing = <any> 'LimitedProcessing',
|
||||
LimitlessPayout = <any> 'LimitlessPayout',
|
||||
LimitlessProcessing = <any> 'LimitlessProcessing',
|
||||
Payout = <any> 'Payout',
|
||||
Processing = <any> 'Processing'
|
||||
}
|
||||
}
|
||||
77
src/typings/platformsAccount/personalDocumentData.ts
Normal file
77
src/typings/platformsAccount/personalDocumentData.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class PersonalDocumentData {
|
||||
/**
|
||||
* The expiry date of the document, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.
|
||||
*/
|
||||
'expirationDate'?: string;
|
||||
/**
|
||||
* The country where the document was issued, in the two-character [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **NL**.
|
||||
*/
|
||||
'issuerCountry'?: string;
|
||||
/**
|
||||
* The state where the document was issued (if applicable).
|
||||
*/
|
||||
'issuerState'?: string;
|
||||
/**
|
||||
* The number in the document.
|
||||
*/
|
||||
'number'?: string;
|
||||
/**
|
||||
* The type of the document. Possible values: **ID**, **DRIVINGLICENSE**, **PASSPORT**, **SOCIALSECURITY**, **VISA**. To delete an existing entry for a document `type`, send only the `type` field in your request.
|
||||
*/
|
||||
'type': PersonalDocumentData.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "expirationDate",
|
||||
"baseName": "expirationDate",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerCountry",
|
||||
"baseName": "issuerCountry",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "issuerState",
|
||||
"baseName": "issuerState",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "number",
|
||||
"baseName": "number",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "PersonalDocumentData.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PersonalDocumentData.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PersonalDocumentData {
|
||||
export enum TypeEnum {
|
||||
Drivinglicense = <any> 'DRIVINGLICENSE',
|
||||
Id = <any> 'ID',
|
||||
Passport = <any> 'PASSPORT',
|
||||
Socialsecurity = <any> 'SOCIALSECURITY',
|
||||
Visa = <any> 'VISA'
|
||||
}
|
||||
}
|
||||
68
src/typings/platformsAccount/serviceError.ts
Normal file
68
src/typings/platformsAccount/serviceError.ts
Normal file
@@ -0,0 +1,68 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
122
src/typings/platformsAccount/shareholderContact.ts
Normal file
122
src/typings/platformsAccount/shareholderContact.ts
Normal file
@@ -0,0 +1,122 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ViasAddress} from './viasAddress';
|
||||
import {ViasName} from './viasName';
|
||||
import {ViasPersonalData} from './viasPersonalData';
|
||||
import {ViasPhoneNumber} from './viasPhoneNumber';
|
||||
|
||||
export class ShareholderContact {
|
||||
'address'?: ViasAddress;
|
||||
/**
|
||||
* The e-mail address of the person.
|
||||
*/
|
||||
'email'?: string;
|
||||
/**
|
||||
* The phone number of the person 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;
|
||||
/**
|
||||
* Job title of the person. Required when the `shareholderType` is **Controller**. Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.
|
||||
*/
|
||||
'jobTitle'?: string;
|
||||
'name'?: ViasName;
|
||||
'personalData'?: ViasPersonalData;
|
||||
'phoneNumber'?: ViasPhoneNumber;
|
||||
/**
|
||||
* The unique identifier (UUID) of the shareholder entry. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Shareholder will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Shareholder will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Shareholder is provided, the update of the Shareholder will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Shareholder is provided, the existing Shareholder will be updated.**
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
/**
|
||||
* Your reference for the shareholder entry.
|
||||
*/
|
||||
'shareholderReference'?: string;
|
||||
/**
|
||||
* Specifies how the person is associated with the account holder. Possible values: * **Owner**: Individuals who directly or indirectly own 25% or more of a company. * **Controller**: Individuals who are members of senior management staff responsible for managing a company or organization.
|
||||
*/
|
||||
'shareholderType'?: ShareholderContact.ShareholderTypeEnum;
|
||||
/**
|
||||
* The URL of the person\'s website.
|
||||
*/
|
||||
'webAddress'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fullPhoneNumber",
|
||||
"baseName": "fullPhoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "jobTitle",
|
||||
"baseName": "jobTitle",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "ViasName"
|
||||
},
|
||||
{
|
||||
"name": "personalData",
|
||||
"baseName": "personalData",
|
||||
"type": "ViasPersonalData"
|
||||
},
|
||||
{
|
||||
"name": "phoneNumber",
|
||||
"baseName": "phoneNumber",
|
||||
"type": "ViasPhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderReference",
|
||||
"baseName": "shareholderReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "shareholderType",
|
||||
"baseName": "shareholderType",
|
||||
"type": "ShareholderContact.ShareholderTypeEnum"
|
||||
},
|
||||
{
|
||||
"name": "webAddress",
|
||||
"baseName": "webAddress",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ShareholderContact.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace ShareholderContact {
|
||||
export enum ShareholderTypeEnum {
|
||||
Controller = <any> 'Controller',
|
||||
Owner = <any> 'Owner',
|
||||
Signatory = <any> 'Signatory'
|
||||
}
|
||||
}
|
||||
106
src/typings/platformsAccount/signatoryContact.ts
Normal file
106
src/typings/platformsAccount/signatoryContact.ts
Normal file
@@ -0,0 +1,106 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ViasAddress} from './viasAddress';
|
||||
import {ViasName} from './viasName';
|
||||
import {ViasPersonalData} from './viasPersonalData';
|
||||
import {ViasPhoneNumber} from './viasPhoneNumber';
|
||||
|
||||
export class SignatoryContact {
|
||||
'address'?: ViasAddress;
|
||||
/**
|
||||
* The e-mail address of the person.
|
||||
*/
|
||||
'email'?: string;
|
||||
/**
|
||||
* The phone number of the person 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;
|
||||
/**
|
||||
* Job title of the signatory. Example values: **Chief Executive Officer**, **Chief Financial Officer**, **Chief Operating Officer**, **President**, **Vice President**, **Executive President**, **Managing Member**, **Partner**, **Treasurer**, **Director**, or **Other**.
|
||||
*/
|
||||
'jobTitle'?: string;
|
||||
'name'?: ViasName;
|
||||
'personalData'?: ViasPersonalData;
|
||||
'phoneNumber'?: ViasPhoneNumber;
|
||||
/**
|
||||
* The unique identifier (UUID) of the Signatory. >**If, during an Account Holder create or update request, this field is left blank (but other fields provided), a new Signatory will be created with a procedurally-generated UUID.** >**If, during an Account Holder create request, a UUID is provided, the creation of the Signatory will fail while the creation of the Account Holder will continue.** >**If, during an Account Holder update request, a UUID that is not correlated with an existing Signatory is provided, the update of the Signatory will fail.** >**If, during an Account Holder update request, a UUID that is correlated with an existing Signatory is provided, the existing Signatory will be updated.**
|
||||
*/
|
||||
'signatoryCode'?: string;
|
||||
/**
|
||||
* Your reference for the Signatory.
|
||||
*/
|
||||
'signatoryReference'?: string;
|
||||
/**
|
||||
* The URL of the person\'s website.
|
||||
*/
|
||||
'webAddress'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"baseName": "email",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fullPhoneNumber",
|
||||
"baseName": "fullPhoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "jobTitle",
|
||||
"baseName": "jobTitle",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"baseName": "name",
|
||||
"type": "ViasName"
|
||||
},
|
||||
{
|
||||
"name": "personalData",
|
||||
"baseName": "personalData",
|
||||
"type": "ViasPersonalData"
|
||||
},
|
||||
{
|
||||
"name": "phoneNumber",
|
||||
"baseName": "phoneNumber",
|
||||
"type": "ViasPhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "signatoryCode",
|
||||
"baseName": "signatoryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "signatoryReference",
|
||||
"baseName": "signatoryReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "webAddress",
|
||||
"baseName": "webAddress",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return SignatoryContact.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
150
src/typings/platformsAccount/storeDetail.ts
Normal file
150
src/typings/platformsAccount/storeDetail.ts
Normal file
@@ -0,0 +1,150 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ViasAddress} from './viasAddress';
|
||||
import {ViasPhoneNumber} from './viasPhoneNumber';
|
||||
|
||||
export class StoreDetail {
|
||||
'address': ViasAddress;
|
||||
/**
|
||||
* The phone number of the store 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;
|
||||
/**
|
||||
* The merchant account to which the store belongs.
|
||||
*/
|
||||
'merchantAccount': string;
|
||||
/**
|
||||
* The merchant category code (MCC) that classifies the business of the account holder.
|
||||
*/
|
||||
'merchantCategoryCode': string;
|
||||
'phoneNumber'?: ViasPhoneNumber;
|
||||
/**
|
||||
* The sales channel. Possible values: **Ecommerce**, **POS**.
|
||||
*/
|
||||
'shopperInteraction'?: StoreDetail.ShopperInteractionEnum;
|
||||
/**
|
||||
* The unique reference for the split configuration, returned when you configure splits in your Customer Area. When this is provided, the `virtualAccount` is also required. Adyen uses the configuration and the `virtualAccount` to split funds between accounts in your platform.
|
||||
*/
|
||||
'splitConfigurationUUID'?: string;
|
||||
/**
|
||||
* The status of the store. Possible values: **Pending**, **Active**, **Inactive**, **InactiveWithModifications**, **Closed**.
|
||||
*/
|
||||
'status'?: StoreDetail.StatusEnum;
|
||||
/**
|
||||
* Adyen-generated unique alphanumeric identifier (UUID) for the store, returned in the response when you create a store. Required when updating an existing store in an `/updateAccountHolder` request.
|
||||
*/
|
||||
'store'?: string;
|
||||
/**
|
||||
* The name of the account holder\'s store, between 3 to 22 characters in length. This value will be shown in shopper statements.
|
||||
*/
|
||||
'storeName'?: string;
|
||||
/**
|
||||
* Your unique identifier for the store, between 3 to 128 characters in length. This value will be shown as the store description in your Customer Area.
|
||||
*/
|
||||
'storeReference': string;
|
||||
/**
|
||||
* The account holder\'s `accountCode` where the split amount will be sent. Required when you provide the `splitConfigurationUUID`.
|
||||
*/
|
||||
'virtualAccount'?: string;
|
||||
/**
|
||||
* URL of the ecommerce store.
|
||||
*/
|
||||
'webAddress'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "address",
|
||||
"baseName": "address",
|
||||
"type": "ViasAddress"
|
||||
},
|
||||
{
|
||||
"name": "fullPhoneNumber",
|
||||
"baseName": "fullPhoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantAccount",
|
||||
"baseName": "merchantAccount",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantCategoryCode",
|
||||
"baseName": "merchantCategoryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phoneNumber",
|
||||
"baseName": "phoneNumber",
|
||||
"type": "ViasPhoneNumber"
|
||||
},
|
||||
{
|
||||
"name": "shopperInteraction",
|
||||
"baseName": "shopperInteraction",
|
||||
"type": "StoreDetail.ShopperInteractionEnum"
|
||||
},
|
||||
{
|
||||
"name": "splitConfigurationUUID",
|
||||
"baseName": "splitConfigurationUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "StoreDetail.StatusEnum"
|
||||
},
|
||||
{
|
||||
"name": "store",
|
||||
"baseName": "store",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "storeName",
|
||||
"baseName": "storeName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "storeReference",
|
||||
"baseName": "storeReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "virtualAccount",
|
||||
"baseName": "virtualAccount",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "webAddress",
|
||||
"baseName": "webAddress",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return StoreDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace StoreDetail {
|
||||
export enum ShopperInteractionEnum {
|
||||
Ecommerce = <any> 'Ecommerce',
|
||||
Pos = <any> 'POS'
|
||||
}
|
||||
export enum StatusEnum {
|
||||
Active = <any> 'Active',
|
||||
Closed = <any> 'Closed',
|
||||
Inactive = <any> 'Inactive',
|
||||
InactiveWithModifications = <any> 'InactiveWithModifications',
|
||||
Pending = <any> 'Pending'
|
||||
}
|
||||
}
|
||||
32
src/typings/platformsAccount/suspendAccountHolderRequest.ts
Normal file
32
src/typings/platformsAccount/suspendAccountHolderRequest.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class SuspendAccountHolderRequest {
|
||||
/**
|
||||
* The code of the account holder to be suspended.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return SuspendAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
59
src/typings/platformsAccount/suspendAccountHolderResponse.ts
Normal file
59
src/typings/platformsAccount/suspendAccountHolderResponse.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class SuspendAccountHolderResponse {
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return SuspendAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class UnSuspendAccountHolderRequest {
|
||||
/**
|
||||
* The code of the account holder to be reinstated.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UnSuspendAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
|
||||
export class UnSuspendAccountHolderResponse {
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UnSuspendAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
94
src/typings/platformsAccount/updateAccountHolderRequest.ts
Normal file
94
src/typings/platformsAccount/updateAccountHolderRequest.ts
Normal file
@@ -0,0 +1,94 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
|
||||
export class UpdateAccountHolderRequest {
|
||||
/**
|
||||
* The code of the Account Holder to be updated.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'accountHolderDetails'?: AccountHolderDetails;
|
||||
/**
|
||||
* A description of the account holder, maximum 256 characters. You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The legal entity type of the account holder. This determines the information that should be provided in the request. Possible values: **Business**, **Individual**, or **NonProfit**. * If set to **Business** or **NonProfit**, then `accountHolderDetails.businessDetails` must be provided, with at least one entry in the `accountHolderDetails.businessDetails.shareholders` list. * If set to **Individual**, then `accountHolderDetails.individualDetails` must be provided.
|
||||
*/
|
||||
'legalEntity'?: UpdateAccountHolderRequest.LegalEntityEnum;
|
||||
/**
|
||||
* The primary three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), to which the account holder should be updated.
|
||||
*/
|
||||
'primaryCurrency'?: string;
|
||||
/**
|
||||
* The processing tier to which the Account Holder should be updated. >The processing tier can not be lowered through this request. >Required if accountHolderDetails are not provided.
|
||||
*/
|
||||
'processingTier'?: number;
|
||||
/**
|
||||
* The identifier of the profile that applies to this entity.
|
||||
*/
|
||||
'verificationProfile'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderDetails",
|
||||
"baseName": "accountHolderDetails",
|
||||
"type": "AccountHolderDetails"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "legalEntity",
|
||||
"baseName": "legalEntity",
|
||||
"type": "UpdateAccountHolderRequest.LegalEntityEnum"
|
||||
},
|
||||
{
|
||||
"name": "primaryCurrency",
|
||||
"baseName": "primaryCurrency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "processingTier",
|
||||
"baseName": "processingTier",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "verificationProfile",
|
||||
"baseName": "verificationProfile",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdateAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdateAccountHolderRequest {
|
||||
export enum LegalEntityEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
127
src/typings/platformsAccount/updateAccountHolderResponse.ts
Normal file
127
src/typings/platformsAccount/updateAccountHolderResponse.ts
Normal file
@@ -0,0 +1,127 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {AccountHolderDetails} from './accountHolderDetails';
|
||||
import {AccountHolderStatus} from './accountHolderStatus';
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {KYCVerificationResult2} from './kYCVerificationResult2';
|
||||
|
||||
export class UpdateAccountHolderResponse {
|
||||
/**
|
||||
* The code of the account holder.
|
||||
*/
|
||||
'accountHolderCode'?: string;
|
||||
'accountHolderDetails'?: AccountHolderDetails;
|
||||
'accountHolderStatus': AccountHolderStatus;
|
||||
/**
|
||||
* The description of the account holder.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* in case the account holder has not been updated, contains account holder fields, that did not pass the validation.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The legal entity of the account holder.
|
||||
*/
|
||||
'legalEntity': UpdateAccountHolderResponse.LegalEntityEnum;
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes), with which the prospective account holder primarily deals.
|
||||
*/
|
||||
'primaryCurrency'?: string;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
'verification': KYCVerificationResult2;
|
||||
/**
|
||||
* The identifier of the profile that applies to this entity.
|
||||
*/
|
||||
'verificationProfile'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderDetails",
|
||||
"baseName": "accountHolderDetails",
|
||||
"type": "AccountHolderDetails"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderStatus",
|
||||
"baseName": "accountHolderStatus",
|
||||
"type": "AccountHolderStatus"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "legalEntity",
|
||||
"baseName": "legalEntity",
|
||||
"type": "UpdateAccountHolderResponse.LegalEntityEnum"
|
||||
},
|
||||
{
|
||||
"name": "primaryCurrency",
|
||||
"baseName": "primaryCurrency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "verification",
|
||||
"baseName": "verification",
|
||||
"type": "KYCVerificationResult2"
|
||||
},
|
||||
{
|
||||
"name": "verificationProfile",
|
||||
"baseName": "verificationProfile",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdateAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdateAccountHolderResponse {
|
||||
export enum LegalEntityEnum {
|
||||
Business = <any> 'Business',
|
||||
Individual = <any> 'Individual',
|
||||
NonProfit = <any> 'NonProfit',
|
||||
Partnership = <any> 'Partnership',
|
||||
PublicCompany = <any> 'PublicCompany'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class UpdateAccountHolderStateRequest {
|
||||
/**
|
||||
* The code of the Account Holder on which to update the state.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* If true, disable the requested state. If false, enable the requested state.
|
||||
*/
|
||||
'disable': boolean;
|
||||
/**
|
||||
* The reason that the state is being updated. >Required if the state is being disabled.
|
||||
*/
|
||||
'reason'?: string;
|
||||
/**
|
||||
* The state to be updated. >Permitted values are: `Processing`, `Payout`
|
||||
*/
|
||||
'stateType': UpdateAccountHolderStateRequest.StateTypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disable",
|
||||
"baseName": "disable",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "reason",
|
||||
"baseName": "reason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stateType",
|
||||
"baseName": "stateType",
|
||||
"type": "UpdateAccountHolderStateRequest.StateTypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdateAccountHolderStateRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdateAccountHolderStateRequest {
|
||||
export enum StateTypeEnum {
|
||||
LimitedPayout = <any> 'LimitedPayout',
|
||||
LimitedProcessing = <any> 'LimitedProcessing',
|
||||
LimitlessPayout = <any> 'LimitlessPayout',
|
||||
LimitlessProcessing = <any> 'LimitlessProcessing',
|
||||
Payout = <any> 'Payout',
|
||||
Processing = <any> 'Processing'
|
||||
}
|
||||
}
|
||||
92
src/typings/platformsAccount/updateAccountRequest.ts
Normal file
92
src/typings/platformsAccount/updateAccountRequest.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {UpdatePayoutScheduleRequest} from './updatePayoutScheduleRequest';
|
||||
|
||||
export class UpdateAccountRequest {
|
||||
/**
|
||||
* The code of the account to update.
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* A description of the account, maximum 256 characters.You can use alphanumeric characters (A-Z, a-z, 0-9), white spaces, and underscores `_`.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A set of key and value pairs for general use by the merchant. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
'payoutSchedule'?: UpdatePayoutScheduleRequest;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: UpdateAccountRequest.PayoutSpeedEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSchedule",
|
||||
"baseName": "payoutSchedule",
|
||||
"type": "UpdatePayoutScheduleRequest"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "UpdateAccountRequest.PayoutSpeedEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdateAccountRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdateAccountRequest {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
}
|
||||
120
src/typings/platformsAccount/updateAccountResponse.ts
Normal file
120
src/typings/platformsAccount/updateAccountResponse.ts
Normal file
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {ErrorFieldType} from './errorFieldType';
|
||||
import {PayoutScheduleResponse} from './payoutScheduleResponse';
|
||||
|
||||
export class UpdateAccountResponse {
|
||||
/**
|
||||
* The code of the account.
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The bankAccountUUID of the bank account held by the account holder to couple the account with. Scheduled payouts in currencies matching the currency of this bank account will be sent to this bank account. Payouts in different currencies will be sent to a matching bank account of the account holder.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The description of the account.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A list of fields that caused the `/updateAccount` request to fail.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* A set of key and value pairs containing metadata.
|
||||
*/
|
||||
'metadata'?: { [key: string]: string; };
|
||||
/**
|
||||
* The payout method code held by the account holder to couple the account with. Scheduled card payouts will be sent using this payout method code.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
'payoutSchedule'?: PayoutScheduleResponse;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: UpdateAccountResponse.PayoutSpeedEnum;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"baseName": "metadata",
|
||||
"type": "{ [key: string]: string; }"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSchedule",
|
||||
"baseName": "payoutSchedule",
|
||||
"type": "PayoutScheduleResponse"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "UpdateAccountResponse.PayoutSpeedEnum"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdateAccountResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdateAccountResponse {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
}
|
||||
75
src/typings/platformsAccount/updatePayoutScheduleRequest.ts
Normal file
75
src/typings/platformsAccount/updatePayoutScheduleRequest.ts
Normal file
@@ -0,0 +1,75 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class UpdatePayoutScheduleRequest {
|
||||
/**
|
||||
* Direction on how to handle any payouts that have already been scheduled. Permitted values: * `CLOSE` will close the existing batch of payouts. * `UPDATE` will reschedule the existing batch to the new schedule. * `NOTHING` (**default**) will allow the payout to proceed.
|
||||
*/
|
||||
'action'?: UpdatePayoutScheduleRequest.ActionEnum;
|
||||
/**
|
||||
* The reason for the payout schedule update. > This field is required when the `schedule` parameter is set to `HOLD`.
|
||||
*/
|
||||
'reason'?: string;
|
||||
/**
|
||||
* The payout schedule to which the account is to be updated. Permitted values: `DEFAULT`, `HOLD`, `DAILY`, `WEEKLY`, `MONTHLY`. `HOLD` will prevent scheduled payouts from happening but will still allow manual payouts to occur.
|
||||
*/
|
||||
'schedule': UpdatePayoutScheduleRequest.ScheduleEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "action",
|
||||
"baseName": "action",
|
||||
"type": "UpdatePayoutScheduleRequest.ActionEnum"
|
||||
},
|
||||
{
|
||||
"name": "reason",
|
||||
"baseName": "reason",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "schedule",
|
||||
"baseName": "schedule",
|
||||
"type": "UpdatePayoutScheduleRequest.ScheduleEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UpdatePayoutScheduleRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace UpdatePayoutScheduleRequest {
|
||||
export enum ActionEnum {
|
||||
Close = <any> 'CLOSE',
|
||||
Nothing = <any> 'NOTHING',
|
||||
Update = <any> 'UPDATE'
|
||||
}
|
||||
export enum ScheduleEnum {
|
||||
BiweeklyOn1StAnd15ThAtMidnight = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_MIDNIGHT',
|
||||
BiweeklyOn1StAnd15ThAtNoon = <any> 'BIWEEKLY_ON_1ST_AND_15TH_AT_NOON',
|
||||
Daily = <any> 'DAILY',
|
||||
Daily6Pm = <any> 'DAILY_6PM',
|
||||
DailyAu = <any> 'DAILY_AU',
|
||||
DailyEu = <any> 'DAILY_EU',
|
||||
DailySg = <any> 'DAILY_SG',
|
||||
DailyUs = <any> 'DAILY_US',
|
||||
Default = <any> 'DEFAULT',
|
||||
Every6HoursFromMidnight = <any> 'EVERY_6_HOURS_FROM_MIDNIGHT',
|
||||
Hold = <any> 'HOLD',
|
||||
Monthly = <any> 'MONTHLY',
|
||||
MonthlyOn15ThAtMidnight = <any> 'MONTHLY_ON_15TH_AT_MIDNIGHT',
|
||||
Weekly = <any> 'WEEKLY',
|
||||
WeeklyOnTueFriMidnight = <any> 'WEEKLY_ON_TUE_FRI_MIDNIGHT',
|
||||
Yearly = <any> 'YEARLY'
|
||||
}
|
||||
}
|
||||
40
src/typings/platformsAccount/uploadDocumentRequest.ts
Normal file
40
src/typings/platformsAccount/uploadDocumentRequest.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {DocumentDetail} from './documentDetail';
|
||||
|
||||
export class UploadDocumentRequest {
|
||||
/**
|
||||
* The content of the document, in Base64-encoded string format. To learn about document requirements, refer to [Verification checks](https://docs.adyen.com/platforms/verification-checks).
|
||||
*/
|
||||
'documentContent': string;
|
||||
'documentDetail': DocumentDetail;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "documentContent",
|
||||
"baseName": "documentContent",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "documentDetail",
|
||||
"baseName": "documentDetail",
|
||||
"type": "DocumentDetail"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return UploadDocumentRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
77
src/typings/platformsAccount/viasAddress.ts
Normal file
77
src/typings/platformsAccount/viasAddress.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class ViasAddress {
|
||||
/**
|
||||
* The name of the city. >Required if either `houseNumberOrName`, `street`, `postalCode`, or `stateOrProvince` are provided.
|
||||
*/
|
||||
'city'?: string;
|
||||
/**
|
||||
* The two-character country code of the address. The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). > If you don\'t know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
|
||||
*/
|
||||
'country': string;
|
||||
/**
|
||||
* The number or name of the house.
|
||||
*/
|
||||
'houseNumberOrName'?: string;
|
||||
/**
|
||||
* The postal code. >A maximum of five (5) digits for an address in the USA, or a maximum of ten (10) characters for an address in all other countries. >Required if either `houseNumberOrName`, `street`, `city`, or `stateOrProvince` are provided.
|
||||
*/
|
||||
'postalCode'?: string;
|
||||
/**
|
||||
* The abbreviation of the state or province. >Two (2) characters for an address in the USA or Canada, or a maximum of three (3) characters for an address in all other countries. >Required for an address in the USA or Canada if either `houseNumberOrName`, `street`, `city`, or `postalCode` are provided.
|
||||
*/
|
||||
'stateOrProvince'?: string;
|
||||
/**
|
||||
* The name of the street. >The house number should not be included in this field; it should be separately provided via `houseNumberOrName`. >Required if either `houseNumberOrName`, `city`, `postalCode`, or `stateOrProvince` are provided.
|
||||
*/
|
||||
'street'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "city",
|
||||
"baseName": "city",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "country",
|
||||
"baseName": "country",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "houseNumberOrName",
|
||||
"baseName": "houseNumberOrName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "postalCode",
|
||||
"baseName": "postalCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "stateOrProvince",
|
||||
"baseName": "stateOrProvince",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "street",
|
||||
"baseName": "street",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ViasAddress.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/platformsAccount/viasName.ts
Normal file
66
src/typings/platformsAccount/viasName.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class ViasName {
|
||||
/**
|
||||
* The first name.
|
||||
*/
|
||||
'firstName': string;
|
||||
/**
|
||||
* The gender. >The following values are permitted: `MALE`, `FEMALE`, `UNKNOWN`.
|
||||
*/
|
||||
'gender'?: ViasName.GenderEnum;
|
||||
/**
|
||||
* The name\'s infix, if applicable. >A maximum length of twenty (20) characters is imposed.
|
||||
*/
|
||||
'infix'?: string;
|
||||
/**
|
||||
* The last name.
|
||||
*/
|
||||
'lastName': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "firstName",
|
||||
"baseName": "firstName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "gender",
|
||||
"baseName": "gender",
|
||||
"type": "ViasName.GenderEnum"
|
||||
},
|
||||
{
|
||||
"name": "infix",
|
||||
"baseName": "infix",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "lastName",
|
||||
"baseName": "lastName",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ViasName.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace ViasName {
|
||||
export enum GenderEnum {
|
||||
Male = <any> 'MALE',
|
||||
Female = <any> 'FEMALE',
|
||||
Unknown = <any> 'UNKNOWN'
|
||||
}
|
||||
}
|
||||
52
src/typings/platformsAccount/viasPersonalData.ts
Normal file
52
src/typings/platformsAccount/viasPersonalData.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import {PersonalDocumentData} from './personalDocumentData';
|
||||
|
||||
export class ViasPersonalData {
|
||||
/**
|
||||
* The person\'s date of birth, in ISO-8601 YYYY-MM-DD format. For example, **2000-01-31**.
|
||||
*/
|
||||
'dateOfBirth'?: string;
|
||||
/**
|
||||
* Array that contains information about the person\'s identification document. You can submit only one entry per document type.
|
||||
*/
|
||||
'documentData'?: Array<PersonalDocumentData>;
|
||||
/**
|
||||
* The nationality of the person represented by a two-character country code, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. For example, **NL**.
|
||||
*/
|
||||
'nationality'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "dateOfBirth",
|
||||
"baseName": "dateOfBirth",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "documentData",
|
||||
"baseName": "documentData",
|
||||
"type": "Array<PersonalDocumentData>"
|
||||
},
|
||||
{
|
||||
"name": "nationality",
|
||||
"baseName": "nationality",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ViasPersonalData.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
58
src/typings/platformsAccount/viasPhoneNumber.ts
Normal file
58
src/typings/platformsAccount/viasPhoneNumber.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* Adyen for Platforms: Account API
|
||||
* The Account API provides endpoints for managing account-related entities on your platform. These related entities include account holders, accounts, bank accounts, shareholders, and KYC-related documents. The management operations include actions such as creation, retrieval, updating, and deletion of them. For more information, refer to our [documentation](https://docs.adyen.com/platforms). ## Authentication To connect to the Account API, you must use basic authentication credentials of your web service user. If you don\'t have one, contact the [Adyen Support Team](https://support.adyen.com/hc/en-us/requests/new). Then use its credentials to authenticate your request, for example: ``` curl -U \"ws@MarketPlace.YourMarketPlace\":\"YourWsPassword\" \\ -H \"Content-Type: application/json\" \\ ... ``` Note that when going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints). ## Versioning The Account API supports versioning of its endpoints through a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number. For example: ``` https://cal-test.adyen.com/cal/services/Account/v6/createAccountHolder ```
|
||||
*
|
||||
* The version of the OpenAPI document: 6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
export class ViasPhoneNumber {
|
||||
/**
|
||||
* The two-character country code of the phone number. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\').
|
||||
*/
|
||||
'phoneCountryCode': string;
|
||||
/**
|
||||
* The phone number. >The inclusion of the phone number country code is not necessary.
|
||||
*/
|
||||
'phoneNumber': string;
|
||||
/**
|
||||
* The type of the phone number. >The following values are permitted: `Landline`, `Mobile`, `SIP`, `Fax`.
|
||||
*/
|
||||
'phoneType'?: ViasPhoneNumber.PhoneTypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "phoneCountryCode",
|
||||
"baseName": "phoneCountryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phoneNumber",
|
||||
"baseName": "phoneNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "phoneType",
|
||||
"baseName": "phoneType",
|
||||
"type": "ViasPhoneNumber.PhoneTypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ViasPhoneNumber.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace ViasPhoneNumber {
|
||||
export enum PhoneTypeEnum {
|
||||
Fax = <any> 'Fax',
|
||||
Landline = <any> 'Landline',
|
||||
Mobile = <any> 'Mobile',
|
||||
Sip = <any> 'SIP'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user