Skip to content

Commit 453bb88

Browse files
authored
Merge pull request #1495 from Adyen/generate-balance-platform-models
Generate BalancePlatform models
2 parents 39f2f76 + 0206376 commit 453bb88

16 files changed

+199
-18
lines changed

src/typings/balancePlatform/balanceAccount.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class BalanceAccount {
2020
*/
2121
'balances'?: Array<Balance>;
2222
/**
23-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
23+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
2424
*/
2525
'defaultCurrencyCode'?: string;
2626
/**

src/typings/balancePlatform/balanceAccountBase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class BalanceAccountBase {
1515
*/
1616
'accountHolderId': string;
1717
/**
18-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
18+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
1919
*/
2020
'defaultCurrencyCode'?: string;
2121
/**

src/typings/balancePlatform/balanceAccountInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class BalanceAccountInfo {
1515
*/
1616
'accountHolderId': string;
1717
/**
18-
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
18+
* The default three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance account. This is the currency displayed on the Balance Account overview page in your Customer Area. The default value is **EUR**. > After a balance account is created, you cannot change its default currency.
1919
*/
2020
'defaultCurrencyCode'?: string;
2121
/**

src/typings/balancePlatform/bankIdentification.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class BankIdentification {
1818
*/
1919
'identification'?: string;
2020
/**
21-
* The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**.
21+
* The type of the identification. Possible values: **iban**, **routingNumber**, **sortCode**, **bic**.
2222
*/
2323
'identificationType'?: BankIdentification.IdentificationTypeEnum;
2424

@@ -48,6 +48,7 @@ export class BankIdentification {
4848

4949
export namespace BankIdentification {
5050
export enum IdentificationTypeEnum {
51+
Bic = 'bic',
5152
Iban = 'iban',
5253
RoutingNumber = 'routingNumber',
5354
SortCode = 'sortCode'

src/typings/balancePlatform/createSweepConfigurationV2.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class CreateSweepConfigurationV2 {
2626
*/
2727
'description'?: string;
2828
/**
29-
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
29+
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
3030
*/
3131
'priorities'?: Array<CreateSweepConfigurationV2.PrioritiesEnum>;
3232
/**
@@ -172,6 +172,7 @@ export namespace CreateSweepConfigurationV2 {
172172
DirectDebitNotSupported = 'directDebitNotSupported',
173173
Error = 'error',
174174
NotEnoughBalance = 'notEnoughBalance',
175+
Pending = 'pending',
175176
PendingApproval = 'pendingApproval',
176177
PendingExecution = 'pendingExecution',
177178
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',

src/typings/balancePlatform/invalidField.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010

1111
export class InvalidField {
12-
/**
13-
* Description of the validation error.
14-
*/
15-
'message': string;
1612
/**
1713
* The field that has an invalid value.
1814
*/
@@ -21,15 +17,14 @@ export class InvalidField {
2117
* The invalid value.
2218
*/
2319
'value': string;
20+
/**
21+
* Description of the validation error.
22+
*/
23+
'message': string;
2424

2525
static discriminator: string | undefined = undefined;
2626

2727
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28-
{
29-
"name": "message",
30-
"baseName": "message",
31-
"type": "string"
32-
},
3328
{
3429
"name": "name",
3530
"baseName": "name",
@@ -39,6 +34,11 @@ export class InvalidField {
3934
"name": "value",
4035
"baseName": "value",
4136
"type": "string"
37+
},
38+
{
39+
"name": "message",
40+
"baseName": "message",
41+
"type": "string"
4242
} ];
4343

4444
static getAttributeTypeMap() {

src/typings/balancePlatform/models.ts

+10
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export * from './transferRoute';
159159
export * from './transferRouteRequest';
160160
export * from './transferRouteResponse';
161161
export * from './uKLocalAccountIdentification';
162+
export * from './uSInstantPayoutAddressRequirement';
162163
export * from './uSInternationalAchAddressRequirement';
163164
export * from './uSLocalAccountIdentification';
164165
export * from './updateNetworkTokenRequest';
@@ -167,6 +168,8 @@ export * from './updateSweepConfigurationV2';
167168
export * from './verificationDeadline';
168169
export * from './verificationError';
169170
export * from './verificationErrorRecursive';
171+
export * from './walletProviderAccountScoreRestriction';
172+
export * from './walletProviderDeviceScore';
170173

171174

172175
import { AULocalAccountIdentification } from './aULocalAccountIdentification';
@@ -320,6 +323,7 @@ import { TransferRoute } from './transferRoute';
320323
import { TransferRouteRequest } from './transferRouteRequest';
321324
import { TransferRouteResponse } from './transferRouteResponse';
322325
import { UKLocalAccountIdentification } from './uKLocalAccountIdentification';
326+
import { USInstantPayoutAddressRequirement } from './uSInstantPayoutAddressRequirement';
323327
import { USInternationalAchAddressRequirement } from './uSInternationalAchAddressRequirement';
324328
import { USLocalAccountIdentification } from './uSLocalAccountIdentification';
325329
import { UpdateNetworkTokenRequest } from './updateNetworkTokenRequest';
@@ -328,6 +332,8 @@ import { UpdateSweepConfigurationV2 } from './updateSweepConfigurationV2';
328332
import { VerificationDeadline } from './verificationDeadline';
329333
import { VerificationError } from './verificationError';
330334
import { VerificationErrorRecursive } from './verificationErrorRecursive';
335+
import { WalletProviderAccountScoreRestriction } from './walletProviderAccountScoreRestriction';
336+
import { WalletProviderDeviceScore } from './walletProviderDeviceScore';
331337

332338
/* tslint:disable:no-unused-variable */
333339
let primitives = [
@@ -440,6 +446,7 @@ let enumsMap: {[index: string]: any} = {
440446
"TransferRouteRequest.CategoryEnum": TransferRouteRequest.CategoryEnum,
441447
"TransferRouteRequest.PrioritiesEnum": TransferRouteRequest.PrioritiesEnum,
442448
"UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum,
449+
"USInstantPayoutAddressRequirement.TypeEnum": USInstantPayoutAddressRequirement.TypeEnum,
443450
"USInternationalAchAddressRequirement.TypeEnum": USInternationalAchAddressRequirement.TypeEnum,
444451
"USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum,
445452
"USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum,
@@ -611,6 +618,7 @@ let typeMap: {[index: string]: any} = {
611618
"TransferRouteRequest": TransferRouteRequest,
612619
"TransferRouteResponse": TransferRouteResponse,
613620
"UKLocalAccountIdentification": UKLocalAccountIdentification,
621+
"USInstantPayoutAddressRequirement": USInstantPayoutAddressRequirement,
614622
"USInternationalAchAddressRequirement": USInternationalAchAddressRequirement,
615623
"USLocalAccountIdentification": USLocalAccountIdentification,
616624
"UpdateNetworkTokenRequest": UpdateNetworkTokenRequest,
@@ -619,6 +627,8 @@ let typeMap: {[index: string]: any} = {
619627
"VerificationDeadline": VerificationDeadline,
620628
"VerificationError": VerificationError,
621629
"VerificationErrorRecursive": VerificationErrorRecursive,
630+
"WalletProviderAccountScoreRestriction": WalletProviderAccountScoreRestriction,
631+
"WalletProviderDeviceScore": WalletProviderDeviceScore,
622632
}
623633

624634
export class ObjectSerializer {

src/typings/balancePlatform/paymentInstrument.ts

+18
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ export class PaymentInstrument {
4646
*/
4747
'reference'?: string;
4848
/**
49+
* The unique identifier of the payment instrument that replaced this payment instrument.
50+
*/
51+
'replacedById'?: string;
52+
/**
53+
* The unique identifier of the payment instrument that is replaced by this payment instrument.
54+
*/
55+
'replacementOfId'?: string;
56+
/**
4957
* The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone.
5058
*/
5159
'status'?: PaymentInstrument.StatusEnum;
@@ -110,6 +118,16 @@ export class PaymentInstrument {
110118
"baseName": "reference",
111119
"type": "string"
112120
},
121+
{
122+
"name": "replacedById",
123+
"baseName": "replacedById",
124+
"type": "string"
125+
},
126+
{
127+
"name": "replacementOfId",
128+
"baseName": "replacementOfId",
129+
"type": "string"
130+
},
113131
{
114132
"name": "status",
115133
"baseName": "status",

src/typings/balancePlatform/sweepConfigurationV2.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SweepConfigurationV2 {
3030
*/
3131
'id': string;
3232
/**
33-
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority you list first. If that\'s not possible, it moves on to the next option in the order of your provided priorities. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
33+
* The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities, ordered by your preference. Adyen will try to pay out using the priorities in the given order. If the first priority is not currently supported or enabled for your platform, the system will try the next one, and so on. The request will be accepted as long as **at least one** of the provided priorities is valid (i.e., supported by Adyen and activated for your platform). For example, if you provide `[\"wire\",\"regular\"]`, and `wire` is not supported but `regular` is, the request will still be accepted and processed. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see optional priorities setup for [marketplaces](https://docs.adyen.com/marketplaces/payout-to-users/scheduled-payouts#optional-priorities-setup) or [platforms](https://docs.adyen.com/platforms/payout-to-users/scheduled-payouts#optional-priorities-setup).
3434
*/
3535
'priorities'?: Array<SweepConfigurationV2.PrioritiesEnum>;
3636
/**
@@ -181,6 +181,7 @@ export namespace SweepConfigurationV2 {
181181
DirectDebitNotSupported = 'directDebitNotSupported',
182182
Error = 'error',
183183
NotEnoughBalance = 'notEnoughBalance',
184+
Pending = 'pending',
184185
PendingApproval = 'pendingApproval',
185186
PendingExecution = 'pendingExecution',
186187
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',

src/typings/balancePlatform/transactionRuleRestrictions.ts

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import { SourceAccountTypesRestriction } from './sourceAccountTypesRestriction';
2929
import { TimeOfDayRestriction } from './timeOfDayRestriction';
3030
import { TokenRequestorsRestriction } from './tokenRequestorsRestriction';
3131
import { TotalAmountRestriction } from './totalAmountRestriction';
32+
import { WalletProviderAccountScoreRestriction } from './walletProviderAccountScoreRestriction';
33+
import { WalletProviderDeviceScore } from './walletProviderDeviceScore';
3234

3335
export class TransactionRuleRestrictions {
3436
'activeNetworkTokens'?: ActiveNetworkTokensRestriction | null;
@@ -53,6 +55,8 @@ export class TransactionRuleRestrictions {
5355
'timeOfDay'?: TimeOfDayRestriction | null;
5456
'tokenRequestors'?: TokenRequestorsRestriction | null;
5557
'totalAmount'?: TotalAmountRestriction | null;
58+
'walletProviderAccountScore'?: WalletProviderAccountScoreRestriction | null;
59+
'walletProviderDeviceScore'?: WalletProviderDeviceScore | null;
5660

5761
static discriminator: string | undefined = undefined;
5862

@@ -166,6 +170,16 @@ export class TransactionRuleRestrictions {
166170
"name": "totalAmount",
167171
"baseName": "totalAmount",
168172
"type": "TotalAmountRestriction | null"
173+
},
174+
{
175+
"name": "walletProviderAccountScore",
176+
"baseName": "walletProviderAccountScore",
177+
"type": "WalletProviderAccountScoreRestriction | null"
178+
},
179+
{
180+
"name": "walletProviderDeviceScore",
181+
"baseName": "walletProviderDeviceScore",
182+
"type": "WalletProviderDeviceScore | null"
169183
} ];
170184

171185
static getAttributeTypeMap() {

src/typings/balancePlatform/transferRoute.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequire
1313
import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement';
1414
import { IbanAccountIdentificationRequirement } from './ibanAccountIdentificationRequirement';
1515
import { PaymentInstrumentRequirement } from './paymentInstrumentRequirement';
16+
import { USInstantPayoutAddressRequirement } from './uSInstantPayoutAddressRequirement';
1617
import { USInternationalAchAddressRequirement } from './uSInternationalAchAddressRequirement';
1718

1819
export class TransferRoute {
@@ -35,7 +36,7 @@ export class TransferRoute {
3536
/**
3637
* A set of rules defined by clearing houses and banking partners. Your transfer request must adhere to these rules to ensure successful initiation of transfer. Based on the priority, one or more requirements may be returned. Each requirement is defined with a `type` and `description`.
3738
*/
38-
'requirements'?: Array<AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement>;
39+
'requirements'?: Array<AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement>;
3940

4041
static discriminator: string | undefined = undefined;
4142

@@ -63,7 +64,7 @@ export class TransferRoute {
6364
{
6465
"name": "requirements",
6566
"baseName": "requirements",
66-
"type": "Array<AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement>"
67+
"type": "Array<AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInstantPayoutAddressRequirement | USInternationalAchAddressRequirement>"
6768
} ];
6869

6970
static getAttributeTypeMap() {

0 commit comments

Comments
 (0)