Skip to content

Commit 5b767e3

Browse files
authored
Merge pull request #1607 from Adyen/sdk-automation/transfers
[transfers] Code generation: update services and models
2 parents 86a46df + a20d7b0 commit 5b767e3

13 files changed

+289
-15
lines changed

src/typings/transfers/amount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010

1111
export class Amount {
1212
/**
13-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
13+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount.
1414
*/
1515
"currency": string;
1616
/**
17-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
17+
* The numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
1919
"value": number;
2020

src/typings/transfers/bankAccountV3.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { PartyIdentification } from "./partyIdentification";
1414
export class BankAccountV3 {
1515
"accountHolder": PartyIdentification;
1616
"accountIdentification": BankAccountV3AccountIdentification;
17+
/**
18+
* The unique token that identifies the stored bank account details of the counterparty for a payout.
19+
*/
20+
"storedPaymentMethodId"?: string;
1721

1822
static readonly discriminator: string | undefined = undefined;
1923

@@ -31,6 +35,12 @@ export class BankAccountV3 {
3135
"baseName": "accountIdentification",
3236
"type": "BankAccountV3AccountIdentification",
3337
"format": ""
38+
},
39+
{
40+
"name": "storedPaymentMethodId",
41+
"baseName": "storedPaymentMethodId",
42+
"type": "string",
43+
"format": ""
3444
} ];
3545

3646
static getAttributeTypeMap() {

src/typings/transfers/bankCategoryData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
export class BankCategoryData {
1212
/**
13-
* The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 within the United States and in [SEPA locations](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).
13+
* The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 within the United States and in [SEPA locations](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).
1414
*/
1515
"priority"?: BankCategoryData.PriorityEnum;
1616
/**
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/*
2+
* The version of the OpenAPI document: v4
3+
*
4+
*
5+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6+
* https://openapi-generator.tech
7+
* Do not edit this class manually.
8+
*/
9+
10+
import { CardIdentification } from "./cardIdentification";
11+
12+
13+
export class FundingInstrument {
14+
"cardIdentification"?: CardIdentification | null;
15+
/**
16+
* The unique reference assigned by the card network for the pay-in transaction.
17+
*/
18+
"networkPaymentReference"?: string;
19+
/**
20+
* Your internal reference that identifies this funding instrument. Required if `sourceOfFunds` is **DEPOSIT_ACCOUNT**.
21+
*/
22+
"reference"?: string;
23+
/**
24+
* Indicates where the funds used for the transfer originated. Possible values are: - **DEBIT** for card-to-card transfers. - **DEPOSIT_ACCOUNT** for wallet-to-card transfers.
25+
*/
26+
"sourceOfFunds"?: FundingInstrument.SourceOfFundsEnum;
27+
28+
static readonly discriminator: string | undefined = undefined;
29+
30+
static readonly mapping: {[index: string]: string} | undefined = undefined;
31+
32+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
33+
{
34+
"name": "cardIdentification",
35+
"baseName": "cardIdentification",
36+
"type": "CardIdentification | null",
37+
"format": ""
38+
},
39+
{
40+
"name": "networkPaymentReference",
41+
"baseName": "networkPaymentReference",
42+
"type": "string",
43+
"format": ""
44+
},
45+
{
46+
"name": "reference",
47+
"baseName": "reference",
48+
"type": "string",
49+
"format": ""
50+
},
51+
{
52+
"name": "sourceOfFunds",
53+
"baseName": "sourceOfFunds",
54+
"type": "FundingInstrument.SourceOfFundsEnum",
55+
"format": ""
56+
} ];
57+
58+
static getAttributeTypeMap() {
59+
return FundingInstrument.attributeTypeMap;
60+
}
61+
62+
public constructor() {
63+
}
64+
}
65+
66+
export namespace FundingInstrument {
67+
export enum SourceOfFundsEnum {
68+
Debit = 'DEBIT',
69+
DepositAccount = 'DEPOSIT_ACCOUNT'
70+
}
71+
}

src/typings/transfers/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export * from "./executionDate"
3030
export * from "./externalReason"
3131
export * from "./fee"
3232
export * from "./findTransfersResponse"
33+
export * from "./fundingInstrument"
3334
export * from "./hKLocalAccountIdentification"
3435
export * from "./hULocalAccountIdentification"
3536
export * from "./ibanAccountIdentification"

src/typings/transfers/objectSerializer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { ExecutionDate } from "./executionDate";
3232
import { ExternalReason } from "./externalReason";
3333
import { Fee } from "./fee";
3434
import { FindTransfersResponse } from "./findTransfersResponse";
35+
import { FundingInstrument } from "./fundingInstrument";
3536
import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification";
3637
import { HULocalAccountIdentification } from "./hULocalAccountIdentification";
3738
import { IbanAccountIdentification } from "./ibanAccountIdentification";
@@ -122,6 +123,7 @@ let enumsMap: Set<string> = new Set<string>([
122123
"ConfirmationTrackingData.TypeEnum",
123124
"DKLocalAccountIdentification.TypeEnum",
124125
"EstimationTrackingData.TypeEnum",
126+
"FundingInstrument.SourceOfFundsEnum",
125127
"HKLocalAccountIdentification.TypeEnum",
126128
"HULocalAccountIdentification.TypeEnum",
127129
"IbanAccountIdentification.TypeEnum",
@@ -216,6 +218,7 @@ let typeMap: {[index: string]: any} = {
216218
"ExternalReason": ExternalReason,
217219
"Fee": Fee,
218220
"FindTransfersResponse": FindTransfersResponse,
221+
"FundingInstrument": FundingInstrument,
219222
"HKLocalAccountIdentification": HKLocalAccountIdentification,
220223
"HULocalAccountIdentification": HULocalAccountIdentification,
221224
"IbanAccountIdentification": IbanAccountIdentification,

src/typings/transfers/platformPayment.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class PlatformPayment {
2222
*/
2323
"paymentMerchantReference"?: string;
2424
/**
25-
* Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: the acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: all transaction fees due to Adyen. This is the aggregated amount of Adyen\'s commission and markup. * **AdyenMarkup**: the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: the amount booked to your user after the deduction of the relevant fees. * **Commission**: your platform\'s or marketplace\'s commission on a transaction. * **DCCPlatformCommission**: the Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: the aggregated amount of all transaction fees. * **Remainder**: the leftover amount after currency conversion. * **SchemeFee**: the scheme fee incurred on a transaction. * **Surcharge**: the surcharge paid by the customer on a transaction. * **Tip**: the tip paid by the customer. * **TopUp**: an incoming transfer to top up your user\'s balance account. * **VAT**: the value-added tax charged on the payment.
25+
* Specifies the nature of the transfer. This parameter helps categorize transfers so you can reconcile transactions at a later time, using the Balance Platform Accounting Report for [marketplaces](https://docs.adyen.com/marketplaces/reports-and-fees/balance-platform-accounting-report/) or [platforms](https://docs.adyen.com/platforms/reports-and-fees/balance-platform-accounting-report/). Possible values: * **AcquiringFees**: The acquiring fee (the aggregated amount of interchange and scheme fee) incurred on a transaction. * **AdyenCommission**: The transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing). * **AdyenFees**: All transaction fees due to Adyen. This is the aggregated amount of Adyen\'s commission and markup. * **AdyenMarkup**: The transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: The amount booked to your user after the deduction of the relevant fees. * **Commission**: Your platform\'s or marketplace\'s commission on a transaction. * **DCCPlatformCommission**: **deprecated** The Dynamic Currency Conversion (DCC) fee on a transaction. * **DCCMarkup**: The Dynamic Currency Conversion (DCC) fee on a transaction. * **Interchange**: The interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: The aggregated amount of all transaction fees. * **Remainder**: The leftover amount after currency conversion. * **SchemeFee**: The scheme fee incurred on a transaction. * **Surcharge**: The surcharge paid by the customer on a transaction. * **Tip**: The tip paid by the customer. * **TopUp**: An incoming transfer to top up your user\'s balance account. * **VAT**: The value-added tax charged on the payment.
2626
*/
2727
"platformPaymentType"?: PlatformPayment.PlatformPaymentTypeEnum;
2828
/**
@@ -93,6 +93,7 @@ export namespace PlatformPayment {
9393
BalanceAccount = 'BalanceAccount',
9494
ChargebackRemainder = 'ChargebackRemainder',
9595
Commission = 'Commission',
96+
DccMarkup = 'DCCMarkup',
9697
DccPlatformCommission = 'DCCPlatformCommission',
9798
Default = 'Default',
9899
Interchange = 'Interchange',

src/typings/transfers/routingDetails.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class RoutingDetails {
1818
*/
1919
"errorCode"?: string;
2020
/**
21-
* The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 within the United States and in [SEPA locations](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).
21+
* The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. 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 within the United States and in [SEPA locations](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).
2222
*/
2323
"priority"?: RoutingDetails.PriorityEnum;
2424
/**

0 commit comments

Comments
 (0)