Skip to content

Commit a251e48

Browse files
[checkout] Automated update from Adyen/adyen-openapi@2462fa5
1 parent e0c07e0 commit a251e48

26 files changed

Lines changed: 700 additions & 31 deletions
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/*
2+
* The version of the OpenAPI document: v71
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 AlmaDetails {
12+
/**
13+
* The checkout attempt identifier.
14+
*/
15+
"checkoutAttemptId"?: string;
16+
/**
17+
* **Alma payment request fee type**
18+
*/
19+
"feeType"?: AlmaDetails.FeeTypeEnum;
20+
/**
21+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
22+
*/
23+
"sdkData"?: string;
24+
/**
25+
* The payment method type.
26+
*/
27+
"type"?: AlmaDetails.TypeEnum;
28+
29+
static readonly discriminator: string | undefined = undefined;
30+
31+
static readonly mapping: {[index: string]: string} | undefined = undefined;
32+
33+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
34+
{
35+
"name": "checkoutAttemptId",
36+
"baseName": "checkoutAttemptId",
37+
"type": "string",
38+
"format": ""
39+
},
40+
{
41+
"name": "feeType",
42+
"baseName": "feeType",
43+
"type": "AlmaDetails.FeeTypeEnum",
44+
"format": ""
45+
},
46+
{
47+
"name": "sdkData",
48+
"baseName": "sdkData",
49+
"type": "string",
50+
"format": ""
51+
},
52+
{
53+
"name": "type",
54+
"baseName": "type",
55+
"type": "AlmaDetails.TypeEnum",
56+
"format": ""
57+
} ];
58+
59+
static getAttributeTypeMap() {
60+
return AlmaDetails.attributeTypeMap;
61+
}
62+
63+
public constructor() {
64+
}
65+
}
66+
67+
export namespace AlmaDetails {
68+
export enum FeeTypeEnum {
69+
MerchantPays = 'merchantPays',
70+
ShopperPays = 'shopperPays'
71+
}
72+
export enum TypeEnum {
73+
Alma = 'alma'
74+
}
75+
}

src/typings/checkout/cardDetailsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class CardDetailsRequest {
1414
*/
1515
"cardNumber"?: string;
1616
/**
17-
* The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
17+
* The shopper country code. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
1818
*/
1919
"countryCode"?: string;
2020
/**

src/typings/checkout/checkoutForwardRequest.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
* Do not edit this class manually.
88
*/
99

10+
import { Amount } from "./amount";
1011
import { CheckoutForwardRequestCard } from "./checkoutForwardRequestCard";
1112
import { CheckoutForwardRequestOptions } from "./checkoutForwardRequestOptions";
1213
import { CheckoutOutgoingForwardRequest } from "./checkoutOutgoingForwardRequest";
1314

1415

1516
export class CheckoutForwardRequest {
17+
"amount"?: Amount | null;
1618
/**
1719
* The base URL of the third party API, where Adyen will send the request to forward the payment details.
1820
*/
@@ -42,6 +44,12 @@ export class CheckoutForwardRequest {
4244
static readonly mapping: {[index: string]: string} | undefined = undefined;
4345

4446
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
47+
{
48+
"name": "amount",
49+
"baseName": "amount",
50+
"type": "Amount | null",
51+
"format": ""
52+
},
4553
{
4654
"name": "baseUrl",
4755
"baseName": "baseUrl",
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* The version of the OpenAPI document: v71
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 ConfidenceScore {
12+
"errors"?: Array<string>;
13+
"score"?: number;
14+
15+
static readonly discriminator: string | undefined = undefined;
16+
17+
static readonly mapping: {[index: string]: string} | undefined = undefined;
18+
19+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
20+
{
21+
"name": "errors",
22+
"baseName": "errors",
23+
"type": "Array<string>",
24+
"format": ""
25+
},
26+
{
27+
"name": "score",
28+
"baseName": "score",
29+
"type": "number",
30+
"format": "double"
31+
} ];
32+
33+
static getAttributeTypeMap() {
34+
return ConfidenceScore.attributeTypeMap;
35+
}
36+
37+
public constructor() {
38+
}
39+
}
40+
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*
2+
* The version of the OpenAPI document: v71
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 DirectDebitAuDetails {
12+
/**
13+
* The shopper\'s banking account number used to complete payment.
14+
*/
15+
"bankAccountNumber"?: string;
16+
/**
17+
* The shopper\'s BSB (their bank\'s branch code) number used to complete payment.
18+
*/
19+
"bankBranchCode"?: string;
20+
/**
21+
* The checkout attempt identifier.
22+
*/
23+
"checkoutAttemptId"?: string;
24+
/**
25+
* This is the `recurringDetailReference` returned in the response when you created the token.
26+
*
27+
* @deprecated since Adyen Checkout API v49
28+
* Use `storedPaymentMethodId` instead.
29+
*/
30+
"recurringDetailReference"?: string;
31+
/**
32+
* Base64-encoded JSON object containing SDK related parameters required by the SDK
33+
*/
34+
"sdkData"?: string;
35+
/**
36+
* This is the `recurringDetailReference` returned in the response when you created the token.
37+
*/
38+
"storedPaymentMethodId"?: string;
39+
/**
40+
* **directdebit_AU**
41+
*/
42+
"type"?: DirectDebitAuDetails.TypeEnum;
43+
44+
static readonly discriminator: string | undefined = undefined;
45+
46+
static readonly mapping: {[index: string]: string} | undefined = undefined;
47+
48+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
49+
{
50+
"name": "bankAccountNumber",
51+
"baseName": "bankAccountNumber",
52+
"type": "string",
53+
"format": ""
54+
},
55+
{
56+
"name": "bankBranchCode",
57+
"baseName": "bankBranchCode",
58+
"type": "string",
59+
"format": ""
60+
},
61+
{
62+
"name": "checkoutAttemptId",
63+
"baseName": "checkoutAttemptId",
64+
"type": "string",
65+
"format": ""
66+
},
67+
{
68+
"name": "recurringDetailReference",
69+
"baseName": "recurringDetailReference",
70+
"type": "string",
71+
"format": ""
72+
},
73+
{
74+
"name": "sdkData",
75+
"baseName": "sdkData",
76+
"type": "string",
77+
"format": ""
78+
},
79+
{
80+
"name": "storedPaymentMethodId",
81+
"baseName": "storedPaymentMethodId",
82+
"type": "string",
83+
"format": ""
84+
},
85+
{
86+
"name": "type",
87+
"baseName": "type",
88+
"type": "DirectDebitAuDetails.TypeEnum",
89+
"format": ""
90+
} ];
91+
92+
static getAttributeTypeMap() {
93+
return DirectDebitAuDetails.attributeTypeMap;
94+
}
95+
96+
public constructor() {
97+
}
98+
}
99+
100+
export namespace DirectDebitAuDetails {
101+
export enum TypeEnum {
102+
DirectdebitAu = 'directdebit_AU'
103+
}
104+
}

src/typings/checkout/donationCampaignsRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ export class DonationCampaignsRequest {
2121
* Your merchant account identifier.
2222
*/
2323
"merchantAccount": string;
24+
/**
25+
* Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
26+
*/
27+
"store"?: string;
2428

2529
static readonly discriminator: string | undefined = undefined;
2630

@@ -44,6 +48,12 @@ export class DonationCampaignsRequest {
4448
"baseName": "merchantAccount",
4549
"type": "string",
4650
"format": ""
51+
},
52+
{
53+
"name": "store",
54+
"baseName": "store",
55+
"type": "string",
56+
"format": ""
4757
} ];
4858

4959
static getAttributeTypeMap() {

src/typings/checkout/donationPaymentRequest.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class DonationPaymentRequest {
4949
*/
5050
"conversionId"?: string;
5151
/**
52-
* The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
52+
* The shopper country code. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
5353
*/
5454
"countryCode"?: string;
5555
/**
@@ -150,6 +150,10 @@ export class DonationPaymentRequest {
150150
*/
151151
"socialSecurityNumber"?: string;
152152
/**
153+
* Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.
154+
*/
155+
"store"?: string;
156+
/**
153157
* The shopper\'s telephone number. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`.
154158
*/
155159
"telephoneNumber"?: string;
@@ -401,6 +405,12 @@ export class DonationPaymentRequest {
401405
"type": "string",
402406
"format": ""
403407
},
408+
{
409+
"name": "store",
410+
"baseName": "store",
411+
"type": "string",
412+
"format": ""
413+
},
404414
{
405415
"name": "telephoneNumber",
406416
"baseName": "telephoneNumber",

src/typings/checkout/invalidField.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99

1010

1111
export class InvalidField {
12+
/**
13+
* Description of the validation error.
14+
*/
15+
"message": string;
1216
/**
1317
* The field that has an invalid value.
1418
*/
@@ -17,31 +21,27 @@ export class InvalidField {
1721
* The invalid value.
1822
*/
1923
"value": string;
20-
/**
21-
* Description of the validation error.
22-
*/
23-
"message": string;
2424

2525
static readonly discriminator: string | undefined = undefined;
2626

2727
static readonly mapping: {[index: string]: string} | undefined = undefined;
2828

2929
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
3030
{
31-
"name": "name",
32-
"baseName": "name",
31+
"name": "message",
32+
"baseName": "message",
3333
"type": "string",
3434
"format": ""
3535
},
3636
{
37-
"name": "value",
38-
"baseName": "value",
37+
"name": "name",
38+
"baseName": "name",
3939
"type": "string",
4040
"format": ""
4141
},
4242
{
43-
"name": "message",
44-
"baseName": "message",
43+
"name": "value",
44+
"baseName": "value",
4545
"type": "string",
4646
"format": ""
4747
} ];

0 commit comments

Comments
 (0)