Skip to content

Commit ffdd558

Browse files
committed
Generate Transfer webhooks
1 parent 526b986 commit ffdd558

11 files changed

+143
-14
lines changed

src/typings/transferWebhooks/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

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+
}
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/transferWebhooks/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/transferWebhooks/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/transferWebhooks/models.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export * from './ibanAccountIdentification';
3535
export * from './internalCategoryData';
3636
export * from './internalReviewTrackingData';
3737
export * from './issuedCard';
38+
export * from './issuingTransactionData';
3839
export * from './leg';
40+
export * from './lodging';
3941
export * from './merchantData';
4042
export * from './merchantPurchaseData';
4143
export * from './modification';
@@ -94,7 +96,9 @@ import { IbanAccountIdentification } from './ibanAccountIdentification';
9496
import { InternalCategoryData } from './internalCategoryData';
9597
import { InternalReviewTrackingData } from './internalReviewTrackingData';
9698
import { IssuedCard } from './issuedCard';
99+
import { IssuingTransactionData } from './issuingTransactionData';
97100
import { Leg } from './leg';
101+
import { Lodging } from './lodging';
98102
import { MerchantData } from './merchantData';
99103
import { MerchantPurchaseData } from './merchantPurchaseData';
100104
import { Modification } from './modification';
@@ -161,6 +165,7 @@ let enumsMap: {[index: string]: any} = {
161165
"IssuedCard.PanEntryModeEnum": IssuedCard.PanEntryModeEnum,
162166
"IssuedCard.ProcessingTypeEnum": IssuedCard.ProcessingTypeEnum,
163167
"IssuedCard.TypeEnum": IssuedCard.TypeEnum,
168+
"IssuingTransactionData.TypeEnum": IssuingTransactionData.TypeEnum,
164169
"MerchantPurchaseData.TypeEnum": MerchantPurchaseData.TypeEnum,
165170
"Modification.StatusEnum": Modification.StatusEnum,
166171
"NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum,
@@ -181,6 +186,7 @@ let enumsMap: {[index: string]: any} = {
181186
"TransferEvent.StatusEnum": TransferEvent.StatusEnum,
182187
"TransferEvent.TypeEnum": TransferEvent.TypeEnum,
183188
"TransferNotificationRequest.TypeEnum": TransferNotificationRequest.TypeEnum,
189+
"TransferReview.ScaOnApprovalEnum": TransferReview.ScaOnApprovalEnum,
184190
"UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum,
185191
"USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum,
186192
"USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum,
@@ -214,7 +220,9 @@ let typeMap: {[index: string]: any} = {
214220
"InternalCategoryData": InternalCategoryData,
215221
"InternalReviewTrackingData": InternalReviewTrackingData,
216222
"IssuedCard": IssuedCard,
223+
"IssuingTransactionData": IssuingTransactionData,
217224
"Leg": Leg,
225+
"Lodging": Lodging,
218226
"MerchantData": MerchantData,
219227
"MerchantPurchaseData": MerchantPurchaseData,
220228
"Modification": Modification,

src/typings/transferWebhooks/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/transferWebhooks/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',

src/typings/transferWebhooks/transferEvent.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ import { ConfirmationTrackingData } from './confirmationTrackingData';
1414
import { EstimationTrackingData } from './estimationTrackingData';
1515
import { ExternalReason } from './externalReason';
1616
import { InternalReviewTrackingData } from './internalReviewTrackingData';
17+
import { IssuingTransactionData } from './issuingTransactionData';
1718
import { MerchantPurchaseData } from './merchantPurchaseData';
1819
import { Modification } from './modification';
1920

2021
export class TransferEvent {
2122
'amount'?: Amount | null;
2223
/**
23-
* The amount adjustments in this transfer.
24+
* The amount adjustments in this transfer. Only applicable for [issuing](https://docs.adyen.com/issuing/) integrations.
2425
*/
2526
'amountAdjustments'?: Array<AmountAdjustment>;
2627
/**
@@ -38,7 +39,7 @@ export class TransferEvent {
3839
/**
3940
* A list of event data.
4041
*/
41-
'eventsData'?: Array<MerchantPurchaseData>;
42+
'eventsData'?: Array<IssuingTransactionData | MerchantPurchaseData>;
4243
'externalReason'?: ExternalReason | null;
4344
/**
4445
* The unique identifier of the transfer event.
@@ -110,7 +111,7 @@ export class TransferEvent {
110111
{
111112
"name": "eventsData",
112113
"baseName": "eventsData",
113-
"type": "Array<MerchantPurchaseData>"
114+
"type": "Array<IssuingTransactionData | MerchantPurchaseData>"
114115
},
115116
{
116117
"name": "externalReason",
@@ -195,6 +196,7 @@ export namespace TransferEvent {
195196
DirectDebitNotSupported = 'directDebitNotSupported',
196197
Error = 'error',
197198
NotEnoughBalance = 'notEnoughBalance',
199+
Pending = 'pending',
198200
PendingApproval = 'pendingApproval',
199201
PendingExecution = 'pendingExecution',
200202
RefusedByCounterpartyBank = 'refusedByCounterpartyBank',

src/typings/transferWebhooks/transferNotificationMerchantData.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ export class TransferNotificationMerchantData {
2626
*/
2727
'mcc'?: string;
2828
/**
29-
* The merchant identifier.
29+
* The unique identifier of the merchant.
3030
*/
3131
'merchantId'?: string;
3232
/**
3333
* The name of the merchant\'s shop or service.
3434
*/
3535
'name'?: string;
3636
/**
37-
* The merchant postal code.
37+
* The postal code of the merchant.
3838
*/
3939
'postalCode'?: string;
4040

0 commit comments

Comments
 (0)