Skip to content

Commit dab82ee

Browse files
committed
Generate Transfers API
1 parent f496d41 commit dab82ee

13 files changed

+149
-16
lines changed

src/typings/transfers/address.ts

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

1111
export class Address {
1212
/**
13-
* The name of the city. Supported characters: [a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ | and Space.
13+
* The name of the city. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**.
1414
*/
1515
'city'?: string;
1616
/**
1717
* The two-character ISO 3166-1 alpha-2 country code. For example, **US**, **NL**, or **GB**.
1818
*/
1919
'country': string;
2020
/**
21-
* First line of the street address. Supported characters: [a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ | and Space.
21+
* The first line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**.
2222
*/
2323
'line1'?: string;
2424
/**
25-
* Second line of the street address. Supported characters: [a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ | and Space.
25+
* The second line of the street address. Supported characters: **[a-z] [A-Z] [0-9] . - — / # , ’ ° ( ) : ; [ ] & \\ |** and Space. > Required when the `category` is **card**.
2626
*/
2727
'line2'?: string;
2828
/**
29-
* The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: [a-z] [A-Z] [0-9] and Space.
29+
* The postal code. Maximum length: * 5 digits for an address in the US. * 10 characters for an address in all other countries. Supported characters: **[a-z] [A-Z] [0-9]** and Space. > Required for addresses in the US.
3030
*/
3131
'postalCode'?: string;
3232
/**
33-
* The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
33+
* The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
3434
*/
3535
'stateOrProvince'?: string;
3636

src/typings/transfers/capitalGrant.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class CapitalGrant {
3232
'id': string;
3333
'repayment'?: Repayment | null;
3434
/**
35-
* The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**.
35+
* The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**, **WrittenOff**, **Failed**, **Revoked**.
3636
*/
3737
'status': CapitalGrant.StatusEnum;
3838

@@ -94,6 +94,9 @@ export namespace CapitalGrant {
9494
export enum StatusEnum {
9595
Pending = 'Pending',
9696
Active = 'Active',
97-
Repaid = 'Repaid'
97+
Repaid = 'Repaid',
98+
Failed = 'Failed',
99+
WrittenOff = 'WrittenOff',
100+
Revoked = 'Revoked'
98101
}
99102
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
11+
export class IssuingTransactionData {
12+
/**
13+
* captureCycleId associated with transfer event.
14+
*/
15+
'captureCycleId'?: string;
16+
/**
17+
* The type of events data. Possible values: - **issuingTransactionData**: issuing transaction data
18+
*/
19+
'type': IssuingTransactionData.TypeEnum;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "captureCycleId",
26+
"baseName": "captureCycleId",
27+
"type": "string"
28+
},
29+
{
30+
"name": "type",
31+
"baseName": "type",
32+
"type": "IssuingTransactionData.TypeEnum"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return IssuingTransactionData.attributeTypeMap;
37+
}
38+
}
39+
40+
export namespace IssuingTransactionData {
41+
export enum TypeEnum {
42+
IssuingTransactionData = 'issuingTransactionData'
43+
}
44+
}

src/typings/transfers/lodging.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
11+
export class Lodging {
12+
/**
13+
* The check-in date.
14+
*/
15+
'checkInDate'?: string;
16+
/**
17+
* The total number of nights the room is booked for.
18+
*/
19+
'numberOfNights'?: number;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "checkInDate",
26+
"baseName": "checkInDate",
27+
"type": "string"
28+
},
29+
{
30+
"name": "numberOfNights",
31+
"baseName": "numberOfNights",
32+
"type": "number"
33+
} ];
34+
35+
static getAttributeTypeMap() {
36+
return Lodging.attributeTypeMap;
37+
}
38+
}
39+

src/typings/transfers/merchantData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ export class MerchantData {
1919
*/
2020
'mcc'?: string;
2121
/**
22-
* The merchant identifier.
22+
* The unique identifier of the merchant.
2323
*/
2424
'merchantId'?: string;
2525
'nameLocation'?: NameLocation | null;
2626
/**
27-
* The merchant postal code.
27+
* The postal code of the merchant.
2828
*/
2929
'postalCode'?: string;
3030

src/typings/transfers/merchantPurchaseData.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
*/
99

1010
import { Airline } from './airline';
11+
import { Lodging } from './lodging';
1112

1213
export class MerchantPurchaseData {
1314
'airline'?: Airline | null;
1415
/**
16+
* Lodging information.
17+
*/
18+
'lodging'?: Array<Lodging>;
19+
/**
1520
* The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data
1621
*/
1722
'type': MerchantPurchaseData.TypeEnum;
@@ -24,6 +29,11 @@ export class MerchantPurchaseData {
2429
"baseName": "airline",
2530
"type": "Airline | null"
2631
},
32+
{
33+
"name": "lodging",
34+
"baseName": "lodging",
35+
"type": "Array<Lodging>"
36+
},
2737
{
2838
"name": "type",
2939
"baseName": "type",

src/typings/transfers/models.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ export * from './internalCategoryData';
4545
export * from './internalReviewTrackingData';
4646
export * from './invalidField';
4747
export * from './issuedCard';
48+
export * from './issuingTransactionData';
4849
export * from './leg';
4950
export * from './link';
5051
export * from './links';
52+
export * from './lodging';
5153
export * from './merchantData';
5254
export * from './merchantPurchaseData';
5355
export * from './modification';
@@ -130,9 +132,11 @@ import { InternalCategoryData } from './internalCategoryData';
130132
import { InternalReviewTrackingData } from './internalReviewTrackingData';
131133
import { InvalidField } from './invalidField';
132134
import { IssuedCard } from './issuedCard';
135+
import { IssuingTransactionData } from './issuingTransactionData';
133136
import { Leg } from './leg';
134137
import { Link } from './link';
135138
import { Links } from './links';
139+
import { Lodging } from './lodging';
136140
import { MerchantData } from './merchantData';
137141
import { MerchantPurchaseData } from './merchantPurchaseData';
138142
import { Modification } from './modification';
@@ -214,6 +218,7 @@ let enumsMap: {[index: string]: any} = {
214218
"IssuedCard.PanEntryModeEnum": IssuedCard.PanEntryModeEnum,
215219
"IssuedCard.ProcessingTypeEnum": IssuedCard.ProcessingTypeEnum,
216220
"IssuedCard.TypeEnum": IssuedCard.TypeEnum,
221+
"IssuingTransactionData.TypeEnum": IssuingTransactionData.TypeEnum,
217222
"MerchantPurchaseData.TypeEnum": MerchantPurchaseData.TypeEnum,
218223
"Modification.StatusEnum": Modification.StatusEnum,
219224
"NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum,
@@ -245,6 +250,7 @@ let enumsMap: {[index: string]: any} = {
245250
"TransferInfo.PrioritiesEnum": TransferInfo.PrioritiesEnum,
246251
"TransferInfo.PriorityEnum": TransferInfo.PriorityEnum,
247252
"TransferInfo.TypeEnum": TransferInfo.TypeEnum,
253+
"TransferReview.ScaOnApprovalEnum": TransferReview.ScaOnApprovalEnum,
248254
"UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum,
249255
"USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum,
250256
"USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum,
@@ -289,9 +295,11 @@ let typeMap: {[index: string]: any} = {
289295
"InternalReviewTrackingData": InternalReviewTrackingData,
290296
"InvalidField": InvalidField,
291297
"IssuedCard": IssuedCard,
298+
"IssuingTransactionData": IssuingTransactionData,
292299
"Leg": Leg,
293300
"Link": Link,
294301
"Links": Links,
302+
"Lodging": Lodging,
295303
"MerchantData": MerchantData,
296304
"MerchantPurchaseData": MerchantPurchaseData,
297305
"Modification": Modification,

src/typings/transfers/platformPayment.ts

Lines changed: 3 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**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for 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**: for all the transaction fees due to Adyen. This is the sum of Adyen\'s commission and Adyen\'s markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform\'s commission on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user\'s balance account. * **VAT**: for the Value Added Tax.
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**: for the acquiring fee incurred on a transaction. * **AdyenCommission**: for 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**: for all the transaction fees due to Adyen. This is the sum of Adyen\'s commission and Adyen\'s markup. * **AdyenMarkup**: for the transaction fee due to Adyen under [Interchange++ pricing](https://www.adyen.com/pricing). * **BalanceAccount**: or the sale amount of a transaction. * **Commission**: for your platform\'s commission on a transaction. * **DCCPlatformCommission**: for the DCC Commission for the platform on a transaction. * **Interchange**: for the interchange fee (fee paid to the issuer) incurred on a transaction. * **PaymentFee**: for all of the transaction fees. * **Remainder**: for the left over amount after currency conversion. * **SchemeFee**: for the scheme fee incurred on a transaction. This is the sum of the interchange fees and the acquiring fees. * **Surcharge**: for the surcharge paid by the customer on a transaction. * **Tip**: for the tip paid by the customer. * **TopUp**: for an incoming transfer to top up your user\'s balance account. * **VAT**: for the Value Added Tax.
2626
*/
2727
'platformPaymentType'?: PlatformPayment.PlatformPaymentTypeEnum;
2828
/**
@@ -80,7 +80,9 @@ export namespace PlatformPayment {
8080
AdyenFees = 'AdyenFees',
8181
AdyenMarkup = 'AdyenMarkup',
8282
BalanceAccount = 'BalanceAccount',
83+
ChargebackRemainder = 'ChargebackRemainder',
8384
Commission = 'Commission',
85+
DccPlatformCommission = 'DCCPlatformCommission',
8486
Default = 'Default',
8587
Interchange = 'Interchange',
8688
PaymentFee = 'PaymentFee',

src/typings/transfers/transfer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export namespace Transfer {
199199
DirectDebitNotSupported = 'directDebitNotSupported',
200200
Error = 'error',
201201
NotEnoughBalance = 'notEnoughBalance',
202+
Pending = 'pending',
202203
PendingApproval = 'pendingApproval',
203204
PendingExecution = 'pendingExecution',
204205
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',

src/typings/transfers/transferData.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { BankCategoryData } from './bankCategoryData';
1313
import { ConfirmationTrackingData } from './confirmationTrackingData';
1414
import { DirectDebitInformation } from './directDebitInformation';
1515
import { EstimationTrackingData } from './estimationTrackingData';
16+
import { ExternalReason } from './externalReason';
1617
import { InternalCategoryData } from './internalCategoryData';
1718
import { InternalReviewTrackingData } from './internalReviewTrackingData';
1819
import { IssuedCard } from './issuedCard';
@@ -59,13 +60,14 @@ export class TransferData {
5960
*/
6061
'direction'?: TransferData.DirectionEnum;
6162
/**
62-
* The event id listed under events, that triggered the notification.
63+
* The unique identifier of the latest transfer event. Included only when the `category` is **issuedCard**.
6364
*/
6465
'eventId'?: string;
6566
/**
6667
* The list of events leading up to the current status of the transfer.
6768
*/
6869
'events'?: Array<TransferEvent>;
70+
'externalReason'?: ExternalReason | null;
6971
/**
7072
* The ID of the resource.
7173
*/
@@ -175,6 +177,11 @@ export class TransferData {
175177
"baseName": "events",
176178
"type": "Array<TransferEvent>"
177179
},
180+
{
181+
"name": "externalReason",
182+
"baseName": "externalReason",
183+
"type": "ExternalReason | null"
184+
},
178185
{
179186
"name": "id",
180187
"baseName": "id",
@@ -265,6 +272,7 @@ export namespace TransferData {
265272
DirectDebitNotSupported = 'directDebitNotSupported',
266273
Error = 'error',
267274
NotEnoughBalance = 'notEnoughBalance',
275+
Pending = 'pending',
268276
PendingApproval = 'pendingApproval',
269277
PendingExecution = 'pendingExecution',
270278
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',

0 commit comments

Comments
 (0)