Skip to content

Commit d3644f0

Browse files
committed
Generate TransactionWebhooks
1 parent c9106af commit d3644f0

18 files changed

+780
-350
lines changed

src/typings/transactionWebhooks/amount.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,35 @@ export class Amount {
1212
/**
1313
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
1414
*/
15-
'currency': string;
15+
"currency": string;
1616
/**
1717
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
1818
*/
19-
'value': number;
19+
"value": number;
2020

21-
static discriminator: string | undefined = undefined;
21+
static readonly discriminator: string | undefined = undefined;
2222

23-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23+
static readonly mapping: {[index: string]: string} | undefined = undefined;
24+
25+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2426
{
2527
"name": "currency",
2628
"baseName": "currency",
27-
"type": "string"
29+
"type": "string",
30+
"format": ""
2831
},
2932
{
3033
"name": "value",
3134
"baseName": "value",
32-
"type": "number"
35+
"type": "number",
36+
"format": "int64"
3337
} ];
3438

3539
static getAttributeTypeMap() {
3640
return Amount.attributeTypeMap;
3741
}
42+
43+
public constructor() {
44+
}
3845
}
3946

src/typings/transactionWebhooks/balancePlatformNotificationResponse.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,25 @@ export class BalancePlatformNotificationResponse {
1212
/**
1313
* Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
1414
*/
15-
'notificationResponse'?: string;
15+
"notificationResponse"?: string;
1616

17-
static discriminator: string | undefined = undefined;
17+
static readonly discriminator: string | undefined = undefined;
1818

19-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
19+
static readonly mapping: {[index: string]: string} | undefined = undefined;
20+
21+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2022
{
2123
"name": "notificationResponse",
2224
"baseName": "notificationResponse",
23-
"type": "string"
25+
"type": "string",
26+
"format": ""
2427
} ];
2528

2629
static getAttributeTypeMap() {
2730
return BalancePlatformNotificationResponse.attributeTypeMap;
2831
}
32+
33+
public constructor() {
34+
}
2935
}
3036

src/typings/transactionWebhooks/bankCategoryData.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,36 @@ export class BankCategoryData {
1212
/**
1313
* 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 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).
1414
*/
15-
'priority'?: BankCategoryData.PriorityEnum;
15+
"priority"?: BankCategoryData.PriorityEnum;
1616
/**
1717
* **bank**
1818
*/
19-
'type'?: BankCategoryData.TypeEnum;
19+
"type"?: BankCategoryData.TypeEnum;
2020

21-
static discriminator: string | undefined = undefined;
21+
static readonly discriminator: string | undefined = undefined;
2222

23-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
23+
static readonly mapping: {[index: string]: string} | undefined = undefined;
24+
25+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2426
{
2527
"name": "priority",
2628
"baseName": "priority",
27-
"type": "BankCategoryData.PriorityEnum"
29+
"type": "BankCategoryData.PriorityEnum",
30+
"format": ""
2831
},
2932
{
3033
"name": "type",
3134
"baseName": "type",
32-
"type": "BankCategoryData.TypeEnum"
35+
"type": "BankCategoryData.TypeEnum",
36+
"format": ""
3337
} ];
3438

3539
static getAttributeTypeMap() {
3640
return BankCategoryData.attributeTypeMap;
3741
}
42+
43+
public constructor() {
44+
}
3845
}
3946

4047
export namespace BankCategoryData {

src/typings/transactionWebhooks/internalCategoryData.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,46 @@ export class InternalCategoryData {
1212
/**
1313
* The capture\'s merchant reference included in the transfer.
1414
*/
15-
'modificationMerchantReference'?: string;
15+
"modificationMerchantReference"?: string;
1616
/**
1717
* The capture reference included in the transfer.
1818
*/
19-
'modificationPspReference'?: string;
19+
"modificationPspReference"?: string;
2020
/**
2121
* **internal**
2222
*/
23-
'type'?: InternalCategoryData.TypeEnum;
23+
"type"?: InternalCategoryData.TypeEnum;
2424

25-
static discriminator: string | undefined = undefined;
25+
static readonly discriminator: string | undefined = undefined;
2626

27-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
27+
static readonly mapping: {[index: string]: string} | undefined = undefined;
28+
29+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
2830
{
2931
"name": "modificationMerchantReference",
3032
"baseName": "modificationMerchantReference",
31-
"type": "string"
33+
"type": "string",
34+
"format": ""
3235
},
3336
{
3437
"name": "modificationPspReference",
3538
"baseName": "modificationPspReference",
36-
"type": "string"
39+
"type": "string",
40+
"format": ""
3741
},
3842
{
3943
"name": "type",
4044
"baseName": "type",
41-
"type": "InternalCategoryData.TypeEnum"
45+
"type": "InternalCategoryData.TypeEnum",
46+
"format": ""
4247
} ];
4348

4449
static getAttributeTypeMap() {
4550
return InternalCategoryData.attributeTypeMap;
4651
}
52+
53+
public constructor() {
54+
}
4755
}
4856

4957
export namespace InternalCategoryData {

src/typings/transactionWebhooks/issuedCard.ts

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,87 +7,101 @@
77
* Do not edit this class manually.
88
*/
99

10-
import { RelayedAuthorisationData } from './relayedAuthorisationData';
11-
import { TransferNotificationValidationFact } from './transferNotificationValidationFact';
10+
import { RelayedAuthorisationData } from "./relayedAuthorisationData";
11+
import { TransferNotificationValidationFact } from "./transferNotificationValidationFact";
12+
1213

1314
export class IssuedCard {
1415
/**
1516
* The authorisation type. For example, **defaultAuthorisation**, **preAuthorisation**, **finalAuthorisation**
1617
*/
17-
'authorisationType'?: string;
18+
"authorisationType"?: string;
1819
/**
1920
* Indicates the method used for entering the PAN to initiate a transaction. Possible values: **manual**, **chip**, **magstripe**, **contactless**, **cof**, **ecommerce**, **token**.
2021
*/
21-
'panEntryMode'?: IssuedCard.PanEntryModeEnum;
22+
"panEntryMode"?: IssuedCard.PanEntryModeEnum;
2223
/**
2324
* Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments.
2425
*/
25-
'processingType'?: IssuedCard.ProcessingTypeEnum;
26-
'relayedAuthorisationData'?: RelayedAuthorisationData | null;
26+
"processingType"?: IssuedCard.ProcessingTypeEnum;
27+
"relayedAuthorisationData"?: RelayedAuthorisationData;
2728
/**
2829
* The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments.
2930
*/
30-
'schemeTraceId'?: string;
31+
"schemeTraceId"?: string;
3132
/**
3233
* The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.
3334
*/
34-
'schemeUniqueTransactionId'?: string;
35+
"schemeUniqueTransactionId"?: string;
3536
/**
3637
* **issuedCard**
3738
*/
38-
'type'?: IssuedCard.TypeEnum;
39+
"type"?: IssuedCard.TypeEnum;
3940
/**
4041
* The evaluation of the validation facts. See [validation checks](https://docs.adyen.com/issuing/validation-checks) for more information.
4142
*/
42-
'validationFacts'?: Array<TransferNotificationValidationFact>;
43+
"validationFacts"?: Array<TransferNotificationValidationFact>;
44+
45+
static readonly discriminator: string | undefined = undefined;
4346

44-
static discriminator: string | undefined = undefined;
47+
static readonly mapping: {[index: string]: string} | undefined = undefined;
4548

46-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
49+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
4750
{
4851
"name": "authorisationType",
4952
"baseName": "authorisationType",
50-
"type": "string"
53+
"type": "string",
54+
"format": ""
5155
},
5256
{
5357
"name": "panEntryMode",
5458
"baseName": "panEntryMode",
55-
"type": "IssuedCard.PanEntryModeEnum"
59+
"type": "IssuedCard.PanEntryModeEnum",
60+
"format": ""
5661
},
5762
{
5863
"name": "processingType",
5964
"baseName": "processingType",
60-
"type": "IssuedCard.ProcessingTypeEnum"
65+
"type": "IssuedCard.ProcessingTypeEnum",
66+
"format": ""
6167
},
6268
{
6369
"name": "relayedAuthorisationData",
6470
"baseName": "relayedAuthorisationData",
65-
"type": "RelayedAuthorisationData | null"
71+
"type": "RelayedAuthorisationData",
72+
"format": ""
6673
},
6774
{
6875
"name": "schemeTraceId",
6976
"baseName": "schemeTraceId",
70-
"type": "string"
77+
"type": "string",
78+
"format": ""
7179
},
7280
{
7381
"name": "schemeUniqueTransactionId",
7482
"baseName": "schemeUniqueTransactionId",
75-
"type": "string"
83+
"type": "string",
84+
"format": ""
7685
},
7786
{
7887
"name": "type",
7988
"baseName": "type",
80-
"type": "IssuedCard.TypeEnum"
89+
"type": "IssuedCard.TypeEnum",
90+
"format": ""
8191
},
8292
{
8393
"name": "validationFacts",
8494
"baseName": "validationFacts",
85-
"type": "Array<TransferNotificationValidationFact>"
95+
"type": "Array<TransferNotificationValidationFact>",
96+
"format": ""
8697
} ];
8798

8899
static getAttributeTypeMap() {
89100
return IssuedCard.attributeTypeMap;
90101
}
102+
103+
public constructor() {
104+
}
91105
}
92106

93107
export namespace IssuedCard {

0 commit comments

Comments
 (0)