mirror of
https://github.com/jlengrand/adyen-node-api-library.git
synced 2026-03-10 08:01:20 +00:00
PW-6843: Add /debitAccountHolder endpoint (#938)
* PW-6843: Add /debitAccountHolder endpoint * PW-6843: Fix imports Co-authored-by: Alexandros Moraitis <amoraitis@outlook.com>
This commit is contained in:
@@ -30,6 +30,7 @@ import AccountHolderDetails = A.AccountHolderDetails;
|
||||
import NotificationConfigurationDetails = N.NotificationConfigurationDetails;
|
||||
import HttpClientException from "../httpClient/httpClientException";
|
||||
import { GetOnboardingUrlRequest, GetOnboardingUrlResponse, GetPciUrlRequest, GetPciUrlResponse } from "../typings/platformsHostedOnboardingPage/models";
|
||||
import { DebitAccountHolderRequest, DebitAccountHolderResponse } from "../typings/platformsFund/models";
|
||||
|
||||
let client: Client;
|
||||
let platforms: Platforms;
|
||||
@@ -138,6 +139,7 @@ describe("Platforms Test", function () {
|
||||
["refundFundsTransfer", createMock<F.RefundFundsTransferRequest>(), createMock<F.RefundFundsTransferResponse>()],
|
||||
["setupBeneficiary", createMock<F.SetupBeneficiaryRequest>(), createMock<F.SetupBeneficiaryResponse>()],
|
||||
["refundNotPaidOutTransfers", createMock<F.RefundNotPaidOutTransfersRequest>(), createMock<F.RefundNotPaidOutTransfersResponse>()],
|
||||
["debitAccountHolder", createMock<DebitAccountHolderRequest>(), createMock<DebitAccountHolderResponse>()],
|
||||
];
|
||||
test.each(cases)(
|
||||
"should %p",
|
||||
|
||||
@@ -44,6 +44,7 @@ import {
|
||||
GetPciUrlRequest,
|
||||
GetPciUrlResponse
|
||||
} from "../typings/platformsHostedOnboardingPage/models";
|
||||
import { DebitAccountHolderRequest, DebitAccountHolderResponse } from "../typings/platformsFund/models";
|
||||
|
||||
type AccountType = AccountTypesEnum.Accounts;
|
||||
type VerificationType = AccountTypesEnum.Verification;
|
||||
@@ -85,6 +86,7 @@ class Platforms extends Service {
|
||||
private readonly _refundFundsTransfer: PlatformsFund;
|
||||
private readonly _setupBeneficiary: PlatformsFund;
|
||||
private readonly _refundNotPaidOutTransfers: PlatformsFund;
|
||||
private readonly _debitAccountHolder: PlatformsFund;
|
||||
|
||||
/* HOP */
|
||||
private readonly _getOnboardingUrl: PlatformsHostedOnboardingPage;
|
||||
@@ -129,6 +131,7 @@ class Platforms extends Service {
|
||||
this._refundFundsTransfer = new PlatformsFund(this, "/refundFundsTransfer");
|
||||
this._setupBeneficiary = new PlatformsFund(this, "/setupBeneficiary");
|
||||
this._refundNotPaidOutTransfers = new PlatformsFund(this, "/refundNotPaidOutTransfers");
|
||||
this._debitAccountHolder = new PlatformsFund(this, "/debitAccountHolder");
|
||||
|
||||
// HOP
|
||||
this._getOnboardingUrl = new PlatformsHostedOnboardingPage(this, "/getOnboardingUrl");
|
||||
@@ -201,6 +204,7 @@ class Platforms extends Service {
|
||||
refundFundsTransfer: (request: IPlatformsFund.RefundFundsTransferRequest) => Promise<IPlatformsFund.RefundFundsTransferResponse>;
|
||||
payoutAccountHolder: (request: IPlatformsFund.PayoutAccountHolderRequest) => Promise<IPlatformsFund.PayoutAccountHolderResponse>;
|
||||
accountHolderBalance: (request: IPlatformsFund.AccountHolderBalanceRequest) => Promise<IPlatformsFund.AccountHolderBalanceResponse>;
|
||||
debitAccountHolder: (request: DebitAccountHolderRequest) => Promise<DebitAccountHolderResponse>;
|
||||
} {
|
||||
const accountHolderBalance = this.createRequest<PlatformsFund, IPlatformsFund.AccountHolderBalanceRequest, IPlatformsFund.AccountHolderBalanceResponse>(this._accountHolderBalance);
|
||||
const accountHolderTransactionList = this.createRequest<PlatformsFund, IPlatformsFund.AccountHolderTransactionListRequest, IPlatformsFund.AccountHolderTransactionListResponse>(this._accountHolderTransactionList);
|
||||
@@ -209,8 +213,9 @@ class Platforms extends Service {
|
||||
const refundFundsTransfer = this.createRequest<PlatformsFund, IPlatformsFund.RefundFundsTransferRequest, IPlatformsFund.RefundFundsTransferResponse>(this._refundFundsTransfer);
|
||||
const setupBeneficiary = this.createRequest<PlatformsFund, IPlatformsFund.SetupBeneficiaryRequest, IPlatformsFund.SetupBeneficiaryResponse>(this._setupBeneficiary);
|
||||
const refundNotPaidOutTransfers = this.createRequest<PlatformsFund, IPlatformsFund.RefundNotPaidOutTransfersRequest, IPlatformsFund.RefundNotPaidOutTransfersResponse>(this._refundNotPaidOutTransfers);
|
||||
const debitAccountHolder = this.createRequest<PlatformsFund, DebitAccountHolderRequest, DebitAccountHolderResponse>(this._debitAccountHolder);
|
||||
|
||||
return { accountHolderBalance, accountHolderTransactionList, payoutAccountHolder, refundFundsTransfer, transferFunds, setupBeneficiary, refundNotPaidOutTransfers };
|
||||
return { accountHolderBalance, accountHolderTransactionList, payoutAccountHolder, refundFundsTransfer, transferFunds, setupBeneficiary, refundNotPaidOutTransfers, debitAccountHolder };
|
||||
}
|
||||
|
||||
public get HostedOnboardingPage(): {
|
||||
|
||||
@@ -30,7 +30,8 @@ type Endpoints =
|
||||
"/transferFunds"|
|
||||
"/refundFundsTransfer"|
|
||||
"/setupBeneficiary"|
|
||||
"/refundNotPaidOutTransfers";
|
||||
"/refundNotPaidOutTransfers" |
|
||||
"/debitAccountHolder";
|
||||
|
||||
|
||||
class PlatformsFund extends Resource {
|
||||
|
||||
@@ -16,6 +16,7 @@ export * as notification from './notification/models';
|
||||
export * as platformsNotifications from './platformsNotifications/models';
|
||||
export * as platformsAccount from './platformsAccount/models';
|
||||
export * as platformsHostedOnboardingPage from './platformsHostedOnboardingPage/models';
|
||||
export * as platformsFund from './platformsFund/models';
|
||||
export * as recurring from './recurring/models';
|
||||
export * as storedValue from './storedValue/models';
|
||||
export * as terminal from './terminal/models';
|
||||
|
||||
37
src/typings/platformsFund/accountDetailBalance.ts
Normal file
37
src/typings/platformsFund/accountDetailBalance.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { DetailBalance } from './detailBalance';
|
||||
|
||||
export class AccountDetailBalance {
|
||||
/**
|
||||
* The code of the account that holds the balance.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
'detailBalance'?: DetailBalance;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "detailBalance",
|
||||
"baseName": "detailBalance",
|
||||
"type": "DetailBalance"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountDetailBalance.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
30
src/typings/platformsFund/accountHolderBalanceRequest.ts
Normal file
30
src/typings/platformsFund/accountHolderBalanceRequest.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class AccountHolderBalanceRequest {
|
||||
/**
|
||||
* The code of the Account Holder of which to retrieve the balance.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderBalanceRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/platformsFund/accountHolderBalanceResponse.ts
Normal file
66
src/typings/platformsFund/accountHolderBalanceResponse.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { AccountDetailBalance } from './accountDetailBalance';
|
||||
import { DetailBalance } from './detailBalance';
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class AccountHolderBalanceResponse {
|
||||
/**
|
||||
* A list of each account and their balances.
|
||||
*/
|
||||
'balancePerAccount'?: Array<AccountDetailBalance>;
|
||||
/**
|
||||
* 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;
|
||||
'totalBalance'?: DetailBalance;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "balancePerAccount",
|
||||
"baseName": "balancePerAccount",
|
||||
"type": "Array<AccountDetailBalance>"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "totalBalance",
|
||||
"baseName": "totalBalance",
|
||||
"type": "DetailBalance"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderBalanceResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { TransactionListForAccount } from './transactionListForAccount';
|
||||
|
||||
export class AccountHolderTransactionListRequest {
|
||||
/**
|
||||
* The code of the account holder that owns the account(s) of which retrieve the transaction list.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
/**
|
||||
* A list of accounts to include in the transaction list. If left blank, the last fifty (50) transactions for all accounts of the account holder will be included.
|
||||
*/
|
||||
'transactionListsPerAccount'?: Array<TransactionListForAccount>;
|
||||
/**
|
||||
* A list of statuses to include in the transaction list. If left blank, all transactions will be included. >Permitted values: >* `PendingCredit` - a pending balance credit. >* `CreditFailed` - a pending credit failure; the balance will not be credited. >* `Credited` - a credited balance. >* `PendingDebit` - a pending balance debit (e.g., a refund). >* `CreditClosed` - a pending credit closed; the balance will not be credited. >* `CreditSuspended` - a pending credit closed; the balance will not be credited. >* `DebitFailed` - a pending debit failure; the balance will not be debited. >* `Debited` - a debited balance (e.g., a refund). >* `DebitReversedReceived` - a pending refund reversal. >* `DebitedReversed` - a reversed refund. >* `ChargebackReceived` - a received chargeback request. >* `Chargeback` - a processed chargeback. >* `ChargebackReversedReceived` - a pending chargeback reversal. >* `ChargebackReversed` - a reversed chargeback. >* `Converted` - converted. >* `ManualCorrected` - manual booking/adjustment by Adyen. >* `Payout` - a payout. >* `PayoutReversed` - a reversed payout. >* `PendingFundTransfer` - a pending transfer of funds from one account to another. >* `FundTransfer` - a transfer of funds from one account to another.
|
||||
*/
|
||||
'transactionStatuses'?: Array<AccountHolderTransactionListRequest.TransactionStatusesEnum>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "transactionListsPerAccount",
|
||||
"baseName": "transactionListsPerAccount",
|
||||
"type": "Array<TransactionListForAccount>"
|
||||
},
|
||||
{
|
||||
"name": "transactionStatuses",
|
||||
"baseName": "transactionStatuses",
|
||||
"type": "Array<AccountHolderTransactionListRequest.TransactionStatusesEnum>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderTransactionListRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace AccountHolderTransactionListRequest {
|
||||
export enum TransactionStatusesEnum {
|
||||
BalanceNotPaidOutTransfer = <any> 'BalanceNotPaidOutTransfer',
|
||||
Chargeback = <any> 'Chargeback',
|
||||
ChargebackCorrection = <any> 'ChargebackCorrection',
|
||||
ChargebackCorrectionReceived = <any> 'ChargebackCorrectionReceived',
|
||||
ChargebackReceived = <any> 'ChargebackReceived',
|
||||
ChargebackReversed = <any> 'ChargebackReversed',
|
||||
ChargebackReversedCorrection = <any> 'ChargebackReversedCorrection',
|
||||
ChargebackReversedCorrectionReceived = <any> 'ChargebackReversedCorrectionReceived',
|
||||
ChargebackReversedReceived = <any> 'ChargebackReversedReceived',
|
||||
Converted = <any> 'Converted',
|
||||
CreditClosed = <any> 'CreditClosed',
|
||||
CreditFailed = <any> 'CreditFailed',
|
||||
CreditReversed = <any> 'CreditReversed',
|
||||
CreditReversedReceived = <any> 'CreditReversedReceived',
|
||||
CreditSuspended = <any> 'CreditSuspended',
|
||||
Credited = <any> 'Credited',
|
||||
DebitFailed = <any> 'DebitFailed',
|
||||
DebitReversedReceived = <any> 'DebitReversedReceived',
|
||||
Debited = <any> 'Debited',
|
||||
DebitedReversed = <any> 'DebitedReversed',
|
||||
DepositCorrectionCredited = <any> 'DepositCorrectionCredited',
|
||||
DepositCorrectionDebited = <any> 'DepositCorrectionDebited',
|
||||
Fee = <any> 'Fee',
|
||||
FundTransfer = <any> 'FundTransfer',
|
||||
FundTransferReversed = <any> 'FundTransferReversed',
|
||||
InvoiceDeductionCredited = <any> 'InvoiceDeductionCredited',
|
||||
InvoiceDeductionDebited = <any> 'InvoiceDeductionDebited',
|
||||
ManualCorrected = <any> 'ManualCorrected',
|
||||
ManualCorrectionCredited = <any> 'ManualCorrectionCredited',
|
||||
ManualCorrectionDebited = <any> 'ManualCorrectionDebited',
|
||||
MerchantPayin = <any> 'MerchantPayin',
|
||||
MerchantPayinReversed = <any> 'MerchantPayinReversed',
|
||||
Payout = <any> 'Payout',
|
||||
PayoutReversed = <any> 'PayoutReversed',
|
||||
PendingCredit = <any> 'PendingCredit',
|
||||
PendingDebit = <any> 'PendingDebit',
|
||||
PendingFundTransfer = <any> 'PendingFundTransfer',
|
||||
ReCredited = <any> 'ReCredited',
|
||||
ReCreditedReceived = <any> 'ReCreditedReceived',
|
||||
SecondChargeback = <any> 'SecondChargeback',
|
||||
SecondChargebackCorrection = <any> 'SecondChargebackCorrection',
|
||||
SecondChargebackCorrectionReceived = <any> 'SecondChargebackCorrectionReceived',
|
||||
SecondChargebackReceived = <any> 'SecondChargebackReceived'
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { AccountTransactionList } from './accountTransactionList';
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class AccountHolderTransactionListResponse {
|
||||
/**
|
||||
* A list of the transactions.
|
||||
*/
|
||||
'accountTransactionLists'?: Array<AccountTransactionList>;
|
||||
/**
|
||||
* 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": "accountTransactionLists",
|
||||
"baseName": "accountTransactionLists",
|
||||
"type": "Array<AccountTransactionList>"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountHolderTransactionListResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
49
src/typings/platformsFund/accountTransactionList.ts
Normal file
49
src/typings/platformsFund/accountTransactionList.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Transaction } from './transaction';
|
||||
|
||||
export class AccountTransactionList {
|
||||
/**
|
||||
* The code of the account.
|
||||
*/
|
||||
'accountCode'?: string;
|
||||
/**
|
||||
* Indicates whether there is a next page of transactions available.
|
||||
*/
|
||||
'hasNextPage'?: boolean;
|
||||
/**
|
||||
* The list of transactions.
|
||||
*/
|
||||
'transactions'?: Array<Transaction>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "hasNextPage",
|
||||
"baseName": "hasNextPage",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "transactions",
|
||||
"baseName": "transactions",
|
||||
"type": "Array<Transaction>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return AccountTransactionList.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
39
src/typings/platformsFund/amount.ts
Normal file
39
src/typings/platformsFund/amount.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class Amount {
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
|
||||
*/
|
||||
'currency': string;
|
||||
/**
|
||||
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
|
||||
*/
|
||||
'value': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "currency",
|
||||
"baseName": "currency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"baseName": "value",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Amount.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
255
src/typings/platformsFund/bankAccountDetail.ts
Normal file
255
src/typings/platformsFund/bankAccountDetail.ts
Normal file
@@ -0,0 +1,255 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class BankAccountDetail {
|
||||
/**
|
||||
* The bank account number (without separators). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'accountNumber'?: string;
|
||||
/**
|
||||
* The type of bank account. Only applicable to bank accounts held in the USA. The permitted values are: `checking`, `savings`. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'accountType'?: string;
|
||||
/**
|
||||
* The name of the bank account.
|
||||
*/
|
||||
'bankAccountName'?: string;
|
||||
/**
|
||||
* Merchant reference to the bank account.
|
||||
*/
|
||||
'bankAccountReference'?: string;
|
||||
/**
|
||||
* The unique identifier (UUID) of the Bank Account. >If, during an account holder create or update request, this field is left blank (but other fields provided), a new Bank Account will be created with a procedurally-generated UUID. >If, during an account holder create request, a UUID is provided, the creation of the Bank Account will fail while the creation of the account holder will continue. >If, during an account holder update request, a UUID that is not correlated with an existing Bank Account is provided, the update of the account holder will fail. >If, during an account holder update request, a UUID that is correlated with an existing Bank Account is provided, the existing Bank Account will be updated.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* The bank identifier code. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankBicSwift'?: string;
|
||||
/**
|
||||
* The city in which the bank branch is located. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankCity'?: string;
|
||||
/**
|
||||
* The bank code of the banking institution with which the bank account is registered. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankCode'?: string;
|
||||
/**
|
||||
* The name of the banking institution with which the bank account is held. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'bankName'?: string;
|
||||
/**
|
||||
* The branch code of the branch under which the bank account is registered. The value to be specified in this parameter depends on the country of the bank account: * United States - Routing number * United Kingdom - Sort code * Germany - Bankleitzahl >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'branchCode'?: string;
|
||||
/**
|
||||
* The check code of the bank account. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'checkCode'?: string;
|
||||
/**
|
||||
* The two-letter country code in which the bank account is registered. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'countryCode'?: string;
|
||||
/**
|
||||
* The currency in which the bank account deals. >The permitted currency codes are defined in ISO-4217 (e.g. \'EUR\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'currencyCode'?: string;
|
||||
/**
|
||||
* The international bank account number. >The IBAN standard is defined in ISO-13616. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'iban'?: string;
|
||||
/**
|
||||
* The city of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerCity'?: string;
|
||||
/**
|
||||
* The country code of the country of residence of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerCountryCode'?: string;
|
||||
/**
|
||||
* The date of birth of the bank account owner. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).
|
||||
*/
|
||||
'ownerDateOfBirth'?: string;
|
||||
/**
|
||||
* The house name or number of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerHouseNumberOrName'?: string;
|
||||
/**
|
||||
* The name of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerName'?: string;
|
||||
/**
|
||||
* The country code of the country of nationality of the bank account owner. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. \'NL\'). >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerNationality'?: string;
|
||||
/**
|
||||
* The postal code of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerPostalCode'?: string;
|
||||
/**
|
||||
* The state of residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerState'?: string;
|
||||
/**
|
||||
* The street name of the residence of the bank account owner. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'ownerStreet'?: string;
|
||||
/**
|
||||
* If set to true, the bank account is a primary account.
|
||||
*/
|
||||
'primaryAccount'?: boolean;
|
||||
/**
|
||||
* The tax ID number. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'taxId'?: string;
|
||||
/**
|
||||
* The URL to be used for bank account verification. This may be generated on bank account creation. >Refer to the [Onboarding and verification](https://docs.adyen.com/platforms/onboarding-and-verification) section for details on field requirements.
|
||||
*/
|
||||
'urlForVerification'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountNumber",
|
||||
"baseName": "accountNumber",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountType",
|
||||
"baseName": "accountType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountName",
|
||||
"baseName": "bankAccountName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountReference",
|
||||
"baseName": "bankAccountReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankBicSwift",
|
||||
"baseName": "bankBicSwift",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankCity",
|
||||
"baseName": "bankCity",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankCode",
|
||||
"baseName": "bankCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankName",
|
||||
"baseName": "bankName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "branchCode",
|
||||
"baseName": "branchCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "checkCode",
|
||||
"baseName": "checkCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "countryCode",
|
||||
"baseName": "countryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "currencyCode",
|
||||
"baseName": "currencyCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "iban",
|
||||
"baseName": "iban",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerCity",
|
||||
"baseName": "ownerCity",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerCountryCode",
|
||||
"baseName": "ownerCountryCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerDateOfBirth",
|
||||
"baseName": "ownerDateOfBirth",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerHouseNumberOrName",
|
||||
"baseName": "ownerHouseNumberOrName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerName",
|
||||
"baseName": "ownerName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerNationality",
|
||||
"baseName": "ownerNationality",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerPostalCode",
|
||||
"baseName": "ownerPostalCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerState",
|
||||
"baseName": "ownerState",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "ownerStreet",
|
||||
"baseName": "ownerStreet",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "primaryAccount",
|
||||
"baseName": "primaryAccount",
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"name": "taxId",
|
||||
"baseName": "taxId",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "urlForVerification",
|
||||
"baseName": "urlForVerification",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return BankAccountDetail.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
74
src/typings/platformsFund/debitAccountHolderRequest.ts
Normal file
74
src/typings/platformsFund/debitAccountHolderRequest.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
import { Split } from './split';
|
||||
|
||||
export class DebitAccountHolderRequest {
|
||||
/**
|
||||
* The code of the account holder.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'amount': Amount;
|
||||
/**
|
||||
* The Adyen-generated unique alphanumeric identifier (UUID) of the account holder\'s bank account.
|
||||
*/
|
||||
'bankAccountUUID': string;
|
||||
/**
|
||||
* A description of the direct debit. Maximum length: 35 characters. Allowed characters: **a-z**, **A-Z**, **0-9**, and special characters **_/?:().,\'+ \";**.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* Your merchant account.
|
||||
*/
|
||||
'merchantAccount': string;
|
||||
/**
|
||||
* Contains instructions on how to split the funds between the accounts in your platform. The request must have at least one split item.
|
||||
*/
|
||||
'splits': Array<Split>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantAccount",
|
||||
"baseName": "merchantAccount",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "splits",
|
||||
"baseName": "splits",
|
||||
"type": "Array<Split>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DebitAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
76
src/typings/platformsFund/debitAccountHolderResponse.ts
Normal file
76
src/typings/platformsFund/debitAccountHolderResponse.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class DebitAccountHolderResponse {
|
||||
/**
|
||||
* The code of the account holder.
|
||||
*/
|
||||
'accountHolderCode'?: string;
|
||||
/**
|
||||
* The Adyen-generated unique alphanumeric identifier (UUID) of the account holder\'s bank account.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* List of the `reference` values from the `split` array in the request.
|
||||
*/
|
||||
'merchantReferences'?: Array<string>;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "merchantReferences",
|
||||
"baseName": "merchantReferences",
|
||||
"type": "Array<string>"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DebitAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
49
src/typings/platformsFund/detailBalance.ts
Normal file
49
src/typings/platformsFund/detailBalance.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
|
||||
export class DetailBalance {
|
||||
/**
|
||||
* The list of balances held by the account.
|
||||
*/
|
||||
'balance'?: Array<Amount>;
|
||||
/**
|
||||
* The list of on hold balances held by the account.
|
||||
*/
|
||||
'onHoldBalance'?: Array<Amount>;
|
||||
/**
|
||||
* The list of pending balances held by the account.
|
||||
*/
|
||||
'pendingBalance'?: Array<Amount>;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "balance",
|
||||
"baseName": "balance",
|
||||
"type": "Array<Amount>"
|
||||
},
|
||||
{
|
||||
"name": "onHoldBalance",
|
||||
"baseName": "onHoldBalance",
|
||||
"type": "Array<Amount>"
|
||||
},
|
||||
{
|
||||
"name": "pendingBalance",
|
||||
"baseName": "pendingBalance",
|
||||
"type": "Array<Amount>"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return DetailBalance.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
46
src/typings/platformsFund/errorFieldType.ts
Normal file
46
src/typings/platformsFund/errorFieldType.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { FieldType } from './fieldType';
|
||||
|
||||
export class ErrorFieldType {
|
||||
/**
|
||||
* The validation error code.
|
||||
*/
|
||||
'errorCode'?: number;
|
||||
/**
|
||||
* A description of the validation error.
|
||||
*/
|
||||
'errorDescription'?: string;
|
||||
'fieldType'?: FieldType;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "errorCode",
|
||||
"baseName": "errorCode",
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"name": "errorDescription",
|
||||
"baseName": "errorDescription",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fieldType",
|
||||
"baseName": "fieldType",
|
||||
"type": "FieldType"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ErrorFieldType.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
208
src/typings/platformsFund/fieldType.ts
Normal file
208
src/typings/platformsFund/fieldType.ts
Normal file
@@ -0,0 +1,208 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class FieldType {
|
||||
/**
|
||||
* The full name of the property.
|
||||
*/
|
||||
'field'?: string;
|
||||
/**
|
||||
* The type of the field.
|
||||
*/
|
||||
'fieldName'?: FieldType.FieldNameEnum;
|
||||
/**
|
||||
* The code of the shareholder that the field belongs to. If empty, the field belongs to an account holder.
|
||||
*/
|
||||
'shareholderCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "field",
|
||||
"baseName": "field",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "fieldName",
|
||||
"baseName": "fieldName",
|
||||
"type": "FieldType.FieldNameEnum"
|
||||
},
|
||||
{
|
||||
"name": "shareholderCode",
|
||||
"baseName": "shareholderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return FieldType.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace FieldType {
|
||||
export enum FieldNameEnum {
|
||||
AccountCode = <any> 'accountCode',
|
||||
AccountHolderCode = <any> 'accountHolderCode',
|
||||
AccountHolderDetails = <any> 'accountHolderDetails',
|
||||
AccountNumber = <any> 'accountNumber',
|
||||
AccountStateType = <any> 'accountStateType',
|
||||
AccountStatus = <any> 'accountStatus',
|
||||
AccountType = <any> 'accountType',
|
||||
Address = <any> 'address',
|
||||
BalanceAccount = <any> 'balanceAccount',
|
||||
BalanceAccountActive = <any> 'balanceAccountActive',
|
||||
BalanceAccountCode = <any> 'balanceAccountCode',
|
||||
BalanceAccountId = <any> 'balanceAccountId',
|
||||
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',
|
||||
DocumentContent = <any> 'documentContent',
|
||||
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',
|
||||
Infix = <any> 'infix',
|
||||
JobTitle = <any> 'jobTitle',
|
||||
LastName = <any> 'lastName',
|
||||
LastReviewDate = <any> 'lastReviewDate',
|
||||
LegalArrangement = <any> 'legalArrangement',
|
||||
LegalArrangementCode = <any> 'legalArrangementCode',
|
||||
LegalArrangementEntity = <any> 'legalArrangementEntity',
|
||||
LegalArrangementEntityCode = <any> 'legalArrangementEntityCode',
|
||||
LegalArrangementLegalForm = <any> 'legalArrangementLegalForm',
|
||||
LegalArrangementMember = <any> 'legalArrangementMember',
|
||||
LegalArrangementMembers = <any> 'legalArrangementMembers',
|
||||
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',
|
||||
OwnerDateOfBirth = <any> 'ownerDateOfBirth',
|
||||
OwnerHouseNumberOrName = <any> 'ownerHouseNumberOrName',
|
||||
OwnerName = <any> 'ownerName',
|
||||
OwnerPostalCode = <any> 'ownerPostalCode',
|
||||
OwnerState = <any> 'ownerState',
|
||||
OwnerStreet = <any> 'ownerStreet',
|
||||
Passport = <any> 'passport',
|
||||
PassportNumber = <any> 'passportNumber',
|
||||
PayoutMethodCode = <any> 'payoutMethodCode',
|
||||
PayoutSchedule = <any> 'payoutSchedule',
|
||||
PciSelfAssessment = <any> 'pciSelfAssessment',
|
||||
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',
|
||||
SplitConfigurationUuid = <any> 'splitConfigurationUUID',
|
||||
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',
|
||||
UltimateParentCompany = <any> 'ultimateParentCompany',
|
||||
UltimateParentCompanyAddressDetails = <any> 'ultimateParentCompanyAddressDetails',
|
||||
UltimateParentCompanyAddressDetailsCountry = <any> 'ultimateParentCompanyAddressDetailsCountry',
|
||||
UltimateParentCompanyBusinessDetails = <any> 'ultimateParentCompanyBusinessDetails',
|
||||
UltimateParentCompanyBusinessDetailsLegalBusinessName = <any> 'ultimateParentCompanyBusinessDetailsLegalBusinessName',
|
||||
UltimateParentCompanyBusinessDetailsRegistrationNumber = <any> 'ultimateParentCompanyBusinessDetailsRegistrationNumber',
|
||||
UltimateParentCompanyCode = <any> 'ultimateParentCompanyCode',
|
||||
UltimateParentCompanyStockExchange = <any> 'ultimateParentCompanyStockExchange',
|
||||
UltimateParentCompanyStockNumber = <any> 'ultimateParentCompanyStockNumber',
|
||||
UltimateParentCompanyStockNumberOrStockTicker = <any> 'ultimateParentCompanyStockNumberOrStockTicker',
|
||||
UltimateParentCompanyStockTicker = <any> 'ultimateParentCompanyStockTicker',
|
||||
Unknown = <any> 'unknown',
|
||||
Value = <any> 'value',
|
||||
VerificationType = <any> 'verificationType',
|
||||
VirtualAccount = <any> 'virtualAccount',
|
||||
VisaNumber = <any> 'visaNumber',
|
||||
WebAddress = <any> 'webAddress',
|
||||
Year = <any> 'year'
|
||||
}
|
||||
}
|
||||
234
src/typings/platformsFund/models.ts
Normal file
234
src/typings/platformsFund/models.ts
Normal file
@@ -0,0 +1,234 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export * from './accountDetailBalance';
|
||||
export * from './accountHolderBalanceRequest';
|
||||
export * from './accountHolderBalanceResponse';
|
||||
export * from './accountHolderTransactionListRequest';
|
||||
export * from './accountHolderTransactionListResponse';
|
||||
export * from './accountTransactionList';
|
||||
export * from './amount';
|
||||
export * from './bankAccountDetail';
|
||||
export * from './debitAccountHolderRequest';
|
||||
export * from './debitAccountHolderResponse';
|
||||
export * from './detailBalance';
|
||||
export * from './errorFieldType';
|
||||
export * from './fieldType';
|
||||
export * from './payoutAccountHolderRequest';
|
||||
export * from './payoutAccountHolderResponse';
|
||||
export * from './refundFundsTransferRequest';
|
||||
export * from './refundFundsTransferResponse';
|
||||
export * from './refundNotPaidOutTransfersRequest';
|
||||
export * from './refundNotPaidOutTransfersResponse';
|
||||
export * from './serviceError';
|
||||
export * from './setupBeneficiaryRequest';
|
||||
export * from './setupBeneficiaryResponse';
|
||||
export * from './split';
|
||||
export * from './splitAmount';
|
||||
export * from './transaction';
|
||||
export * from './transactionListForAccount';
|
||||
export * from './transferFundsRequest';
|
||||
export * from './transferFundsResponse';
|
||||
|
||||
|
||||
import { AccountDetailBalance } from './accountDetailBalance';
|
||||
import { AccountHolderBalanceRequest } from './accountHolderBalanceRequest';
|
||||
import { AccountHolderBalanceResponse } from './accountHolderBalanceResponse';
|
||||
import { AccountHolderTransactionListRequest } from './accountHolderTransactionListRequest';
|
||||
import { AccountHolderTransactionListResponse } from './accountHolderTransactionListResponse';
|
||||
import { AccountTransactionList } from './accountTransactionList';
|
||||
import { Amount } from './amount';
|
||||
import { BankAccountDetail } from './bankAccountDetail';
|
||||
import { DebitAccountHolderRequest } from './debitAccountHolderRequest';
|
||||
import { DebitAccountHolderResponse } from './debitAccountHolderResponse';
|
||||
import { DetailBalance } from './detailBalance';
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
import { FieldType } from './fieldType';
|
||||
import { PayoutAccountHolderRequest } from './payoutAccountHolderRequest';
|
||||
import { PayoutAccountHolderResponse } from './payoutAccountHolderResponse';
|
||||
import { RefundFundsTransferRequest } from './refundFundsTransferRequest';
|
||||
import { RefundFundsTransferResponse } from './refundFundsTransferResponse';
|
||||
import { RefundNotPaidOutTransfersRequest } from './refundNotPaidOutTransfersRequest';
|
||||
import { RefundNotPaidOutTransfersResponse } from './refundNotPaidOutTransfersResponse';
|
||||
import { ServiceError } from './serviceError';
|
||||
import { SetupBeneficiaryRequest } from './setupBeneficiaryRequest';
|
||||
import { SetupBeneficiaryResponse } from './setupBeneficiaryResponse';
|
||||
import { Split } from './split';
|
||||
import { SplitAmount } from './splitAmount';
|
||||
import { Transaction } from './transaction';
|
||||
import { TransactionListForAccount } from './transactionListForAccount';
|
||||
import { TransferFundsRequest } from './transferFundsRequest';
|
||||
import { TransferFundsResponse } from './transferFundsResponse';
|
||||
|
||||
/* tslint:disable:no-unused-variable */
|
||||
let primitives = [
|
||||
"string",
|
||||
"boolean",
|
||||
"double",
|
||||
"integer",
|
||||
"long",
|
||||
"float",
|
||||
"number",
|
||||
"any"
|
||||
];
|
||||
|
||||
let enumsMap: {[index: string]: any} = {
|
||||
"AccountHolderTransactionListRequest.TransactionStatusesEnum": AccountHolderTransactionListRequest.TransactionStatusesEnum,
|
||||
"FieldType.FieldNameEnum": FieldType.FieldNameEnum,
|
||||
"PayoutAccountHolderRequest.PayoutSpeedEnum": PayoutAccountHolderRequest.PayoutSpeedEnum,
|
||||
"PayoutAccountHolderResponse.PayoutSpeedEnum": PayoutAccountHolderResponse.PayoutSpeedEnum,
|
||||
"Split.TypeEnum": Split.TypeEnum,
|
||||
"Transaction.TransactionStatusEnum": Transaction.TransactionStatusEnum,
|
||||
}
|
||||
|
||||
let typeMap: {[index: string]: any} = {
|
||||
"AccountDetailBalance": AccountDetailBalance,
|
||||
"AccountHolderBalanceRequest": AccountHolderBalanceRequest,
|
||||
"AccountHolderBalanceResponse": AccountHolderBalanceResponse,
|
||||
"AccountHolderTransactionListRequest": AccountHolderTransactionListRequest,
|
||||
"AccountHolderTransactionListResponse": AccountHolderTransactionListResponse,
|
||||
"AccountTransactionList": AccountTransactionList,
|
||||
"Amount": Amount,
|
||||
"BankAccountDetail": BankAccountDetail,
|
||||
"DebitAccountHolderRequest": DebitAccountHolderRequest,
|
||||
"DebitAccountHolderResponse": DebitAccountHolderResponse,
|
||||
"DetailBalance": DetailBalance,
|
||||
"ErrorFieldType": ErrorFieldType,
|
||||
"FieldType": FieldType,
|
||||
"PayoutAccountHolderRequest": PayoutAccountHolderRequest,
|
||||
"PayoutAccountHolderResponse": PayoutAccountHolderResponse,
|
||||
"RefundFundsTransferRequest": RefundFundsTransferRequest,
|
||||
"RefundFundsTransferResponse": RefundFundsTransferResponse,
|
||||
"RefundNotPaidOutTransfersRequest": RefundNotPaidOutTransfersRequest,
|
||||
"RefundNotPaidOutTransfersResponse": RefundNotPaidOutTransfersResponse,
|
||||
"ServiceError": ServiceError,
|
||||
"SetupBeneficiaryRequest": SetupBeneficiaryRequest,
|
||||
"SetupBeneficiaryResponse": SetupBeneficiaryResponse,
|
||||
"Split": Split,
|
||||
"SplitAmount": SplitAmount,
|
||||
"Transaction": Transaction,
|
||||
"TransactionListForAccount": TransactionListForAccount,
|
||||
"TransferFundsRequest": TransferFundsRequest,
|
||||
"TransferFundsResponse": TransferFundsResponse,
|
||||
}
|
||||
|
||||
export class ObjectSerializer {
|
||||
public static findCorrectType(data: any, expectedType: string) {
|
||||
if (data == undefined) {
|
||||
return expectedType;
|
||||
} else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) {
|
||||
return expectedType;
|
||||
} else if (expectedType === "Date") {
|
||||
return expectedType;
|
||||
} else {
|
||||
if (enumsMap[expectedType]) {
|
||||
return expectedType;
|
||||
}
|
||||
|
||||
if (!typeMap[expectedType]) {
|
||||
return expectedType; // w/e we don't know the type
|
||||
}
|
||||
|
||||
// Check the discriminator
|
||||
let discriminatorProperty = typeMap[expectedType].discriminator;
|
||||
if (discriminatorProperty == null) {
|
||||
return expectedType; // the type does not have a discriminator. use it.
|
||||
} else {
|
||||
if (data[discriminatorProperty]) {
|
||||
var discriminatorType = data[discriminatorProperty];
|
||||
if(typeMap[discriminatorType]){
|
||||
return discriminatorType; // use the type given in the discriminator
|
||||
} else {
|
||||
return expectedType; // discriminator did not map to a type
|
||||
}
|
||||
} else {
|
||||
return expectedType; // discriminator was not present (or an empty string)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static serialize(data: any, type: string) {
|
||||
if (data == undefined) {
|
||||
return data;
|
||||
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
||||
return data;
|
||||
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
||||
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
||||
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
||||
let transformedData: any[] = [];
|
||||
for (let index = 0; index < data.length; index++) {
|
||||
let datum = data[index];
|
||||
transformedData.push(ObjectSerializer.serialize(datum, subType));
|
||||
}
|
||||
return transformedData;
|
||||
} else if (type === "Date") {
|
||||
return data.toISOString();
|
||||
} else if (type === "SaleToAcquirerData") {
|
||||
const dataString = JSON.stringify(data);
|
||||
return Buffer.from(dataString).toString("base64");
|
||||
} else {
|
||||
if (enumsMap[type]) {
|
||||
return data;
|
||||
}
|
||||
if (!typeMap[type]) { // in case we dont know the type
|
||||
return data;
|
||||
}
|
||||
|
||||
// Get the actual type of this object
|
||||
type = this.findCorrectType(data, type);
|
||||
|
||||
// get the map for the correct type.
|
||||
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
||||
let instance: {[index: string]: any} = {};
|
||||
for (let index = 0; index < attributeTypes.length; index++) {
|
||||
let attributeType = attributeTypes[index];
|
||||
instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type);
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
public static deserialize(data: any, type: string) {
|
||||
// polymorphism may change the actual type.
|
||||
type = ObjectSerializer.findCorrectType(data, type);
|
||||
if (data == undefined) {
|
||||
return data;
|
||||
} else if (primitives.indexOf(type.toLowerCase()) !== -1) {
|
||||
return data;
|
||||
} else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6
|
||||
let subType: string = type.replace("Array<", ""); // Array<Type> => Type>
|
||||
subType = subType.substring(0, subType.length - 1); // Type> => Type
|
||||
let transformedData: any[] = [];
|
||||
for (let index = 0; index < data.length; index++) {
|
||||
let datum = data[index];
|
||||
transformedData.push(ObjectSerializer.deserialize(datum, subType));
|
||||
}
|
||||
return transformedData;
|
||||
} else if (type === "Date") {
|
||||
return new Date(data);
|
||||
} else {
|
||||
if (enumsMap[type]) {// is Enum
|
||||
return data;
|
||||
}
|
||||
|
||||
if (!typeMap[type]) { // dont know the type
|
||||
return data;
|
||||
}
|
||||
let instance = new typeMap[type]();
|
||||
let attributeTypes = typeMap[type].getAttributeTypeMap();
|
||||
for (let index = 0; index < attributeTypes.length; index++) {
|
||||
let attributeType = attributeTypes[index];
|
||||
instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type);
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
98
src/typings/platformsFund/payoutAccountHolderRequest.ts
Normal file
98
src/typings/platformsFund/payoutAccountHolderRequest.ts
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
|
||||
export class PayoutAccountHolderRequest {
|
||||
/**
|
||||
* The code of the account from which the payout is to be made.
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The code of the Account Holder who owns the account from which the payout is to be made. The Account Holder is the party to which the payout will be made.
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
'amount'?: Amount;
|
||||
/**
|
||||
* The unique ID of the Bank Account held by the Account Holder to which the payout is to be made. If left blank, a bank account is automatically selected.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* A description of the payout. Maximum 35 characters. Allowed: **abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/?:().,\'+ \";**
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The unique ID of the payout method held by the Account Holder to which the payout is to be made. If left blank, a payout instrument is automatically selected.
|
||||
*/
|
||||
'payoutMethodCode'?: string;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: PayoutAccountHolderRequest.PayoutSpeedEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutMethodCode",
|
||||
"baseName": "payoutMethodCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "PayoutAccountHolderRequest.PayoutSpeedEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PayoutAccountHolderRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PayoutAccountHolderRequest {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
}
|
||||
83
src/typings/platformsFund/payoutAccountHolderResponse.ts
Normal file
83
src/typings/platformsFund/payoutAccountHolderResponse.ts
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class PayoutAccountHolderResponse {
|
||||
/**
|
||||
* The unique ID of the Bank Account to which the payout was made.
|
||||
*/
|
||||
'bankAccountUUID'?: string;
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* Speed with which payouts for this account are processed. Permitted values: `STANDARD`, `SAME_DAY`.
|
||||
*/
|
||||
'payoutSpeed'?: PayoutAccountHolderResponse.PayoutSpeedEnum;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "bankAccountUUID",
|
||||
"baseName": "bankAccountUUID",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutSpeed",
|
||||
"baseName": "payoutSpeed",
|
||||
"type": "PayoutAccountHolderResponse.PayoutSpeedEnum"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return PayoutAccountHolderResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace PayoutAccountHolderResponse {
|
||||
export enum PayoutSpeedEnum {
|
||||
Instant = <any> 'INSTANT',
|
||||
SameDay = <any> 'SAME_DAY',
|
||||
Standard = <any> 'STANDARD'
|
||||
}
|
||||
}
|
||||
46
src/typings/platformsFund/refundFundsTransferRequest.ts
Normal file
46
src/typings/platformsFund/refundFundsTransferRequest.ts
Normal file
@@ -0,0 +1,46 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
|
||||
export class RefundFundsTransferRequest {
|
||||
'amount': Amount;
|
||||
/**
|
||||
* A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* A PSP reference of the original fund transfer.
|
||||
*/
|
||||
'originalReference': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "originalReference",
|
||||
"baseName": "originalReference",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return RefundFundsTransferRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
76
src/typings/platformsFund/refundFundsTransferResponse.ts
Normal file
76
src/typings/platformsFund/refundFundsTransferResponse.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class RefundFundsTransferResponse {
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The value supplied by the executing user when initiating the transfer refund; may be used to link multiple transactions.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The message of the response.
|
||||
*/
|
||||
'message'?: string;
|
||||
/**
|
||||
* A PSP reference of the original fund transfer.
|
||||
*/
|
||||
'originalReference'?: string;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"baseName": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "originalReference",
|
||||
"baseName": "originalReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return RefundFundsTransferResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class RefundNotPaidOutTransfersRequest {
|
||||
/**
|
||||
* The code of the account from which to perform the refund(s).
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The code of the Account Holder which owns the account from which to perform the refund(s).
|
||||
*/
|
||||
'accountHolderCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "accountHolderCode",
|
||||
"baseName": "accountHolderCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return RefundNotPaidOutTransfersRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class RefundNotPaidOutTransfersResponse {
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<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 RefundNotPaidOutTransfersResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
66
src/typings/platformsFund/serviceError.ts
Normal file
66
src/typings/platformsFund/serviceError.ts
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class ServiceError {
|
||||
/**
|
||||
* The error code mapped to the error message.
|
||||
*/
|
||||
'errorCode'?: string;
|
||||
/**
|
||||
* The category of the error.
|
||||
*/
|
||||
'errorType'?: string;
|
||||
/**
|
||||
* A short explanation of the issue.
|
||||
*/
|
||||
'message'?: string;
|
||||
/**
|
||||
* The PSP reference of the payment.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The HTTP response status.
|
||||
*/
|
||||
'status'?: number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "errorCode",
|
||||
"baseName": "errorCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "errorType",
|
||||
"baseName": "errorType",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "message",
|
||||
"baseName": "message",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "status",
|
||||
"baseName": "status",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return ServiceError.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
48
src/typings/platformsFund/setupBeneficiaryRequest.ts
Normal file
48
src/typings/platformsFund/setupBeneficiaryRequest.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class SetupBeneficiaryRequest {
|
||||
/**
|
||||
* The destination account code.
|
||||
*/
|
||||
'destinationAccountCode': string;
|
||||
/**
|
||||
* A value that can be supplied at the discretion of the executing user.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The benefactor account.
|
||||
*/
|
||||
'sourceAccountCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "destinationAccountCode",
|
||||
"baseName": "destinationAccountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "sourceAccountCode",
|
||||
"baseName": "sourceAccountCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return SetupBeneficiaryRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
49
src/typings/platformsFund/setupBeneficiaryResponse.ts
Normal file
49
src/typings/platformsFund/setupBeneficiaryResponse.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class SetupBeneficiaryResponse {
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<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 SetupBeneficiaryResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
76
src/typings/platformsFund/split.ts
Normal file
76
src/typings/platformsFund/split.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { SplitAmount } from './splitAmount';
|
||||
|
||||
export class Split {
|
||||
/**
|
||||
* Unique identifier of the account where the split amount should be sent. This is required if `type` is **MarketPlace** or **BalanceAccount**.
|
||||
*/
|
||||
'account'?: string;
|
||||
'amount': SplitAmount;
|
||||
/**
|
||||
* A description of this split.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* Your reference for the split, which you can use to link the split to other operations such as captures and refunds. This is required if `type` is **MarketPlace** or **BalanceAccount**. For the other types, we also recommend sending a reference so you can reconcile the split and the associated payment in the transaction overview and in the reports. If the reference is not provided, the split is reported as part of the aggregated [TransferBalance record type](https://docs.adyen.com/reporting/marketpay-payments-accounting-report) in Adyen for Platforms.
|
||||
*/
|
||||
'reference'?: string;
|
||||
/**
|
||||
* The type of split. Possible values: **Default**, **PaymentFee**, **VAT**, **Commission**, **MarketPlace**, **BalanceAccount**, **Remainder**.
|
||||
*/
|
||||
'type': Split.TypeEnum;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "account",
|
||||
"baseName": "account",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "SplitAmount"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "reference",
|
||||
"baseName": "reference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"baseName": "type",
|
||||
"type": "Split.TypeEnum"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Split.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Split {
|
||||
export enum TypeEnum {
|
||||
BalanceAccount = <any> 'BalanceAccount',
|
||||
Commission = <any> 'Commission',
|
||||
Default = <any> 'Default',
|
||||
MarketPlace = <any> 'MarketPlace',
|
||||
PaymentFee = <any> 'PaymentFee',
|
||||
Remainder = <any> 'Remainder',
|
||||
Vat = <any> 'VAT',
|
||||
Verification = <any> 'Verification'
|
||||
}
|
||||
}
|
||||
39
src/typings/platformsFund/splitAmount.ts
Normal file
39
src/typings/platformsFund/splitAmount.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class SplitAmount {
|
||||
/**
|
||||
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). If this value is not provided, the currency in which the payment is made will be used.
|
||||
*/
|
||||
'currency'?: string;
|
||||
/**
|
||||
* The amount in [minor units](https://docs.adyen.com/development-resources/currency-codes).
|
||||
*/
|
||||
'value': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "currency",
|
||||
"baseName": "currency",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"baseName": "value",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return SplitAmount.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
208
src/typings/platformsFund/transaction.ts
Normal file
208
src/typings/platformsFund/transaction.ts
Normal file
@@ -0,0 +1,208 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
import { BankAccountDetail } from './bankAccountDetail';
|
||||
|
||||
export class Transaction {
|
||||
'amount'?: Amount;
|
||||
'bankAccountDetail'?: BankAccountDetail;
|
||||
/**
|
||||
* The merchant reference of a related capture.
|
||||
*/
|
||||
'captureMerchantReference'?: string;
|
||||
/**
|
||||
* The psp reference of a related capture.
|
||||
*/
|
||||
'capturePspReference'?: string;
|
||||
/**
|
||||
* The date on which the transaction was performed.
|
||||
*/
|
||||
'creationDate'?: Date;
|
||||
/**
|
||||
* A description of the transaction.
|
||||
*/
|
||||
'description'?: string;
|
||||
/**
|
||||
* The code of the account to which funds were credited during an outgoing fund transfer.
|
||||
*/
|
||||
'destinationAccountCode'?: string;
|
||||
/**
|
||||
* The psp reference of the related dispute.
|
||||
*/
|
||||
'disputePspReference'?: string;
|
||||
/**
|
||||
* The reason code of a dispute.
|
||||
*/
|
||||
'disputeReasonCode'?: string;
|
||||
/**
|
||||
* The merchant reference of a transaction.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The psp reference of the related authorisation or transfer.
|
||||
*/
|
||||
'paymentPspReference'?: string;
|
||||
/**
|
||||
* The psp reference of the related payout.
|
||||
*/
|
||||
'payoutPspReference'?: string;
|
||||
/**
|
||||
* The psp reference of a transaction.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The code of the account from which funds were debited during an incoming fund transfer.
|
||||
*/
|
||||
'sourceAccountCode'?: string;
|
||||
/**
|
||||
* The status of the transaction. >Permitted values: `PendingCredit`, `CreditFailed`, `CreditClosed`, `CreditSuspended`, `Credited`, `Converted`, `PendingDebit`, `DebitFailed`, `Debited`, `DebitReversedReceived`, `DebitedReversed`, `ChargebackReceived`, `Chargeback`, `ChargebackReversedReceived`, `ChargebackReversed`, `Payout`, `PayoutReversed`, `FundTransfer`, `PendingFundTransfer`, `ManualCorrected`.
|
||||
*/
|
||||
'transactionStatus'?: Transaction.TransactionStatusEnum;
|
||||
/**
|
||||
* The transfer code of the transaction.
|
||||
*/
|
||||
'transferCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "bankAccountDetail",
|
||||
"baseName": "bankAccountDetail",
|
||||
"type": "BankAccountDetail"
|
||||
},
|
||||
{
|
||||
"name": "captureMerchantReference",
|
||||
"baseName": "captureMerchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "capturePspReference",
|
||||
"baseName": "capturePspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "creationDate",
|
||||
"baseName": "creationDate",
|
||||
"type": "Date"
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"baseName": "description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "destinationAccountCode",
|
||||
"baseName": "destinationAccountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disputePspReference",
|
||||
"baseName": "disputePspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "disputeReasonCode",
|
||||
"baseName": "disputeReasonCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "paymentPspReference",
|
||||
"baseName": "paymentPspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "payoutPspReference",
|
||||
"baseName": "payoutPspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "sourceAccountCode",
|
||||
"baseName": "sourceAccountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "transactionStatus",
|
||||
"baseName": "transactionStatus",
|
||||
"type": "Transaction.TransactionStatusEnum"
|
||||
},
|
||||
{
|
||||
"name": "transferCode",
|
||||
"baseName": "transferCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return Transaction.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
export namespace Transaction {
|
||||
export enum TransactionStatusEnum {
|
||||
BalanceNotPaidOutTransfer = <any> 'BalanceNotPaidOutTransfer',
|
||||
Chargeback = <any> 'Chargeback',
|
||||
ChargebackCorrection = <any> 'ChargebackCorrection',
|
||||
ChargebackCorrectionReceived = <any> 'ChargebackCorrectionReceived',
|
||||
ChargebackReceived = <any> 'ChargebackReceived',
|
||||
ChargebackReversed = <any> 'ChargebackReversed',
|
||||
ChargebackReversedCorrection = <any> 'ChargebackReversedCorrection',
|
||||
ChargebackReversedCorrectionReceived = <any> 'ChargebackReversedCorrectionReceived',
|
||||
ChargebackReversedReceived = <any> 'ChargebackReversedReceived',
|
||||
Converted = <any> 'Converted',
|
||||
CreditClosed = <any> 'CreditClosed',
|
||||
CreditFailed = <any> 'CreditFailed',
|
||||
CreditReversed = <any> 'CreditReversed',
|
||||
CreditReversedReceived = <any> 'CreditReversedReceived',
|
||||
CreditSuspended = <any> 'CreditSuspended',
|
||||
Credited = <any> 'Credited',
|
||||
DebitFailed = <any> 'DebitFailed',
|
||||
DebitReversedReceived = <any> 'DebitReversedReceived',
|
||||
Debited = <any> 'Debited',
|
||||
DebitedReversed = <any> 'DebitedReversed',
|
||||
DepositCorrectionCredited = <any> 'DepositCorrectionCredited',
|
||||
DepositCorrectionDebited = <any> 'DepositCorrectionDebited',
|
||||
Fee = <any> 'Fee',
|
||||
FundTransfer = <any> 'FundTransfer',
|
||||
FundTransferReversed = <any> 'FundTransferReversed',
|
||||
InvoiceDeductionCredited = <any> 'InvoiceDeductionCredited',
|
||||
InvoiceDeductionDebited = <any> 'InvoiceDeductionDebited',
|
||||
ManualCorrected = <any> 'ManualCorrected',
|
||||
ManualCorrectionCredited = <any> 'ManualCorrectionCredited',
|
||||
ManualCorrectionDebited = <any> 'ManualCorrectionDebited',
|
||||
MerchantPayin = <any> 'MerchantPayin',
|
||||
MerchantPayinReversed = <any> 'MerchantPayinReversed',
|
||||
Payout = <any> 'Payout',
|
||||
PayoutReversed = <any> 'PayoutReversed',
|
||||
PendingCredit = <any> 'PendingCredit',
|
||||
PendingDebit = <any> 'PendingDebit',
|
||||
PendingFundTransfer = <any> 'PendingFundTransfer',
|
||||
ReCredited = <any> 'ReCredited',
|
||||
ReCreditedReceived = <any> 'ReCreditedReceived',
|
||||
SecondChargeback = <any> 'SecondChargeback',
|
||||
SecondChargebackCorrection = <any> 'SecondChargebackCorrection',
|
||||
SecondChargebackCorrectionReceived = <any> 'SecondChargebackCorrectionReceived',
|
||||
SecondChargebackReceived = <any> 'SecondChargebackReceived'
|
||||
}
|
||||
}
|
||||
39
src/typings/platformsFund/transactionListForAccount.ts
Normal file
39
src/typings/platformsFund/transactionListForAccount.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
|
||||
export class TransactionListForAccount {
|
||||
/**
|
||||
* The account for which to retrieve the transactions.
|
||||
*/
|
||||
'accountCode': string;
|
||||
/**
|
||||
* The page of transactions to retrieve. Each page lists fifty (50) transactions. The most recent transactions are included on page 1.
|
||||
*/
|
||||
'page': number;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "accountCode",
|
||||
"baseName": "accountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "page",
|
||||
"baseName": "page",
|
||||
"type": "number"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return TransactionListForAccount.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
64
src/typings/platformsFund/transferFundsRequest.ts
Normal file
64
src/typings/platformsFund/transferFundsRequest.ts
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { Amount } from './amount';
|
||||
|
||||
export class TransferFundsRequest {
|
||||
'amount': Amount;
|
||||
/**
|
||||
* The code of the account to which the funds are to be credited. >The state of the Account Holder of this account must be Active.
|
||||
*/
|
||||
'destinationAccountCode': string;
|
||||
/**
|
||||
* A value that can be supplied at the discretion of the executing user in order to link multiple transactions to one another.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The code of the account from which the funds are to be debited. >The state of the Account Holder of this account must be Active and allow payouts.
|
||||
*/
|
||||
'sourceAccountCode': string;
|
||||
/**
|
||||
* The code related to the type of transfer being performed. >The permitted codes differ for each platform account and are defined in their service level agreement.
|
||||
*/
|
||||
'transferCode': string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "amount",
|
||||
"baseName": "amount",
|
||||
"type": "Amount"
|
||||
},
|
||||
{
|
||||
"name": "destinationAccountCode",
|
||||
"baseName": "destinationAccountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "sourceAccountCode",
|
||||
"baseName": "sourceAccountCode",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "transferCode",
|
||||
"baseName": "transferCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return TransferFundsRequest.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
58
src/typings/platformsFund/transferFundsResponse.ts
Normal file
58
src/typings/platformsFund/transferFundsResponse.ts
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* The version of the OpenAPI document: v6
|
||||
* Contact: developer-experience@adyen.com
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit this class manually.
|
||||
*/
|
||||
|
||||
import { ErrorFieldType } from './errorFieldType';
|
||||
|
||||
export class TransferFundsResponse {
|
||||
/**
|
||||
* Contains field validation errors that would prevent requests from being processed.
|
||||
*/
|
||||
'invalidFields'?: Array<ErrorFieldType>;
|
||||
/**
|
||||
* The value supplied by the executing user when initiating the transfer; may be used to link multiple transactions.
|
||||
*/
|
||||
'merchantReference'?: string;
|
||||
/**
|
||||
* The reference of a request. Can be used to uniquely identify the request.
|
||||
*/
|
||||
'pspReference'?: string;
|
||||
/**
|
||||
* The result code.
|
||||
*/
|
||||
'resultCode'?: string;
|
||||
|
||||
static discriminator: string | undefined = undefined;
|
||||
|
||||
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
||||
{
|
||||
"name": "invalidFields",
|
||||
"baseName": "invalidFields",
|
||||
"type": "Array<ErrorFieldType>"
|
||||
},
|
||||
{
|
||||
"name": "merchantReference",
|
||||
"baseName": "merchantReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "pspReference",
|
||||
"baseName": "pspReference",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "resultCode",
|
||||
"baseName": "resultCode",
|
||||
"type": "string"
|
||||
} ];
|
||||
|
||||
static getAttributeTypeMap() {
|
||||
return TransferFundsResponse.attributeTypeMap;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user