Skip to content

Commit a554eb5

Browse files
[transferwebhooks] Automated update from Adyen/adyen-openapi@37c03ec
1 parent 8b52153 commit a554eb5

File tree

8 files changed

+72
-7
lines changed

8 files changed

+72
-7
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 { Amount } from "./amount";
11+
12+
13+
export class InterchangeData {
14+
"interchangeAmount"?: Amount | null;
15+
/**
16+
* A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.
17+
*/
18+
"interchangeRateIndicator"?: string;
19+
/**
20+
* The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.
21+
*/
22+
"type": InterchangeData.TypeEnum;
23+
24+
static readonly discriminator: string | undefined = undefined;
25+
26+
static readonly mapping: {[index: string]: string} | undefined = undefined;
27+
28+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
29+
{
30+
"name": "interchangeAmount",
31+
"baseName": "interchangeAmount",
32+
"type": "Amount | null",
33+
"format": ""
34+
},
35+
{
36+
"name": "interchangeRateIndicator",
37+
"baseName": "interchangeRateIndicator",
38+
"type": "string",
39+
"format": ""
40+
},
41+
{
42+
"name": "type",
43+
"baseName": "type",
44+
"type": "InterchangeData.TypeEnum",
45+
"format": ""
46+
} ];
47+
48+
static getAttributeTypeMap() {
49+
return InterchangeData.attributeTypeMap;
50+
}
51+
52+
public constructor() {
53+
}
54+
}
55+
56+
export namespace InterchangeData {
57+
export enum TypeEnum {
58+
InterchangeData = 'interchangeData'
59+
}
60+
}

src/typings/transferWebhooks/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export * from "./externalReason"
2424
export * from "./hKLocalAccountIdentification"
2525
export * from "./hULocalAccountIdentification"
2626
export * from "./ibanAccountIdentification"
27+
export * from "./interchangeData"
2728
export * from "./internalCategoryData"
2829
export * from "./internalReviewTrackingData"
2930
export * from "./issuedCard"

src/typings/transferWebhooks/modification.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export namespace Modification {
111111
Failed = 'failed',
112112
Fee = 'fee',
113113
FeePending = 'feePending',
114+
InterchangeAdjusted = 'interchangeAdjusted',
114115
InternalTransfer = 'internalTransfer',
115116
InternalTransferPending = 'internalTransferPending',
116117
InvoiceDeduction = 'invoiceDeduction',

src/typings/transferWebhooks/objectSerializer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { ExternalReason } from "./externalReason";
2626
import { HKLocalAccountIdentification } from "./hKLocalAccountIdentification";
2727
import { HULocalAccountIdentification } from "./hULocalAccountIdentification";
2828
import { IbanAccountIdentification } from "./ibanAccountIdentification";
29+
import { InterchangeData } from "./interchangeData";
2930
import { InternalCategoryData } from "./internalCategoryData";
3031
import { InternalReviewTrackingData } from "./internalReviewTrackingData";
3132
import { IssuedCard } from "./issuedCard";
@@ -98,6 +99,7 @@ let enumsMap: Set<string> = new Set<string>([
9899
"HKLocalAccountIdentification.TypeEnum",
99100
"HULocalAccountIdentification.TypeEnum",
100101
"IbanAccountIdentification.TypeEnum",
102+
"InterchangeData.TypeEnum",
101103
"InternalCategoryData.TypeEnum",
102104
"InternalReviewTrackingData.ReasonEnum",
103105
"InternalReviewTrackingData.StatusEnum",
@@ -171,6 +173,7 @@ let typeMap: {[index: string]: any} = {
171173
"HKLocalAccountIdentification": HKLocalAccountIdentification,
172174
"HULocalAccountIdentification": HULocalAccountIdentification,
173175
"IbanAccountIdentification": IbanAccountIdentification,
176+
"InterchangeData": InterchangeData,
174177
"InternalCategoryData": InternalCategoryData,
175178
"InternalReviewTrackingData": InternalReviewTrackingData,
176179
"IssuedCard": IssuedCard,

src/typings/transferWebhooks/transferData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ export namespace TransferData {
431431
Failed = 'failed',
432432
Fee = 'fee',
433433
FeePending = 'feePending',
434+
InterchangeAdjusted = 'interchangeAdjusted',
434435
InternalTransfer = 'internalTransfer',
435436
InternalTransferPending = 'internalTransferPending',
436437
InvoiceDeduction = 'invoiceDeduction',

src/typings/transferWebhooks/transferDataTracking.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ export type TransferDataTracking = ConfirmationTrackingData | EstimationTracking
3030
*/
3131
export class TransferDataTrackingClass {
3232

33-
static readonly discriminator: string | undefined = "type";
33+
static readonly discriminator: string = "type";
3434

35-
static readonly mapping: {[index: string]: string} | undefined = {
36-
"confirmation": "ConfirmationTrackingData",
37-
"estimation": "EstimationTrackingData",
38-
"internalReview": "InternalReviewTrackingData"
39-
};
35+
static readonly mapping: {[index: string]: string} | undefined = undefined;
4036
}

src/typings/transferWebhooks/transferEvent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ export namespace TransferEvent {
321321
Failed = 'failed',
322322
Fee = 'fee',
323323
FeePending = 'feePending',
324+
InterchangeAdjusted = 'interchangeAdjusted',
324325
InternalTransfer = 'internalTransfer',
325326
InternalTransferPending = 'internalTransferPending',
326327
InvoiceDeduction = 'invoiceDeduction',
@@ -356,6 +357,7 @@ export namespace TransferEvent {
356357
}
357358
export enum TypeEnum {
358359
Accounting = 'accounting',
360+
Tracing = 'tracing',
359361
Tracking = 'tracking'
360362
}
361363
}

src/typings/transferWebhooks/transferEventEventsDataInner.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Do not edit this class manually.
88
*/
99

10+
import { InterchangeData } from "./interchangeData";
1011
import { IssuingTransactionData } from "./issuingTransactionData";
1112
import { MerchantPurchaseData } from "./merchantPurchaseData";
1213

@@ -16,7 +17,7 @@ import { MerchantPurchaseData } from "./merchantPurchaseData";
1617
* Type
1718
* @export
1819
*/
19-
export type TransferEventEventsDataInner = IssuingTransactionData | MerchantPurchaseData;
20+
export type TransferEventEventsDataInner = InterchangeData | IssuingTransactionData | MerchantPurchaseData;
2021

2122
/**
2223
* @type TransferEventEventsDataInnerClass

0 commit comments

Comments
 (0)