Skip to content

Commit e65f74e

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1342)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * Update transferRoute.ts until sustainable fix implemented --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com> Co-authored-by: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com>
1 parent ea0e2f9 commit e65f74e

16 files changed

+246
-31
lines changed
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
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 CashAppDetails {
12+
/**
13+
* Cash App issued cashtag for recurring payment
14+
*/
15+
'cashtag'?: string;
16+
/**
17+
* The checkout attempt identifier.
18+
*/
19+
'checkoutAttemptId'?: string;
20+
/**
21+
* Cash App issued customerId for recurring payment
22+
*/
23+
'customerId'?: string;
24+
/**
25+
* Cash App issued grantId for one time payment
26+
*/
27+
'grantId'?: string;
28+
/**
29+
* Cash App issued onFileGrantId for recurring payment
30+
*/
31+
'onFileGrantId'?: string;
32+
/**
33+
* This is the `recurringDetailReference` returned in the response when you created the token.
34+
*/
35+
'recurringDetailReference'?: string;
36+
/**
37+
* Cash App request id
38+
*/
39+
'requestId'?: string;
40+
/**
41+
* This is the `recurringDetailReference` returned in the response when you created the token.
42+
*/
43+
'storedPaymentMethodId'?: string;
44+
/**
45+
* cashapp
46+
*/
47+
'type'?: CashAppDetails.TypeEnum;
48+
49+
static discriminator: string | undefined = undefined;
50+
51+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
52+
{
53+
"name": "cashtag",
54+
"baseName": "cashtag",
55+
"type": "string"
56+
},
57+
{
58+
"name": "checkoutAttemptId",
59+
"baseName": "checkoutAttemptId",
60+
"type": "string"
61+
},
62+
{
63+
"name": "customerId",
64+
"baseName": "customerId",
65+
"type": "string"
66+
},
67+
{
68+
"name": "grantId",
69+
"baseName": "grantId",
70+
"type": "string"
71+
},
72+
{
73+
"name": "onFileGrantId",
74+
"baseName": "onFileGrantId",
75+
"type": "string"
76+
},
77+
{
78+
"name": "recurringDetailReference",
79+
"baseName": "recurringDetailReference",
80+
"type": "string"
81+
},
82+
{
83+
"name": "requestId",
84+
"baseName": "requestId",
85+
"type": "string"
86+
},
87+
{
88+
"name": "storedPaymentMethodId",
89+
"baseName": "storedPaymentMethodId",
90+
"type": "string"
91+
},
92+
{
93+
"name": "type",
94+
"baseName": "type",
95+
"type": "CashAppDetails.TypeEnum"
96+
} ];
97+
98+
static getAttributeTypeMap() {
99+
return CashAppDetails.attributeTypeMap;
100+
}
101+
}
102+
103+
export namespace CashAppDetails {
104+
export enum TypeEnum {
105+
Cashapp = 'cashapp'
106+
}
107+
}

src/typings/checkout/checkoutSessionInstallmentOption.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ export class CheckoutSessionInstallmentOption {
4848

4949
export namespace CheckoutSessionInstallmentOption {
5050
export enum PlansEnum {
51+
BuynowPaylater = 'buynow_paylater',
52+
InteresRefundPrctg = 'interes_refund_prctg',
53+
InterestBonus = 'interest_bonus',
54+
NointeresRefundPrctg = 'nointeres_refund_prctg',
55+
NointerestBonus = 'nointerest_bonus',
56+
RefundPrctg = 'refund_prctg',
5157
Regular = 'regular',
52-
Revolving = 'revolving'
58+
Revolving = 'revolving',
59+
WithInterest = 'with_interest'
5360
}
5461
}

src/typings/checkout/installmentOption.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ export class InstallmentOption {
5757

5858
export namespace InstallmentOption {
5959
export enum PlansEnum {
60+
BuynowPaylater = 'buynow_paylater',
61+
InteresRefundPrctg = 'interes_refund_prctg',
62+
InterestBonus = 'interest_bonus',
63+
NointeresRefundPrctg = 'nointeres_refund_prctg',
64+
NointerestBonus = 'nointerest_bonus',
65+
RefundPrctg = 'refund_prctg',
6066
Regular = 'regular',
61-
Revolving = 'revolving'
67+
Revolving = 'revolving',
68+
WithInterest = 'with_interest'
6269
}
6370
}

src/typings/checkout/installments.ts

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,26 @@
1010

1111
export class Installments {
1212
/**
13-
* The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving**
13+
* Defines the bonus percentage, refund percentage or if the transaction is Buy now Pay later. Used for [card installments in Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico)
14+
*/
15+
'extra'?: number;
16+
/**
17+
* The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**.
1418
*/
1519
'plan'?: Installments.PlanEnum;
1620
/**
17-
* Defines the number of installments. Its value needs to be greater than zero. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary.
21+
* Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico
1822
*/
1923
'value': number;
2024

2125
static discriminator: string | undefined = undefined;
2226

2327
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28+
{
29+
"name": "extra",
30+
"baseName": "extra",
31+
"type": "number"
32+
},
2433
{
2534
"name": "plan",
2635
"baseName": "plan",
@@ -39,7 +48,14 @@ export class Installments {
3948

4049
export namespace Installments {
4150
export enum PlanEnum {
51+
BuynowPaylater = 'buynow_paylater',
52+
InteresRefundPrctg = 'interes_refund_prctg',
53+
InterestBonus = 'interest_bonus',
54+
NointeresRefundPrctg = 'nointeres_refund_prctg',
55+
NointerestBonus = 'nointerest_bonus',
56+
RefundPrctg = 'refund_prctg',
4257
Regular = 'regular',
43-
Revolving = 'revolving'
58+
Revolving = 'revolving',
59+
WithInterest = 'with_interest'
4460
}
4561
}

src/typings/checkout/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export * from './cardDetails';
5555
export * from './cardDetailsRequest';
5656
export * from './cardDetailsResponse';
5757
export * from './cardDonations';
58+
export * from './cashAppDetails';
5859
export * from './cellulantDetails';
5960
export * from './checkoutAwaitAction';
6061
export * from './checkoutDelegatedAuthenticationAction';
@@ -250,6 +251,7 @@ import { CardDetails } from './cardDetails';
250251
import { CardDetailsRequest } from './cardDetailsRequest';
251252
import { CardDetailsResponse } from './cardDetailsResponse';
252253
import { CardDonations } from './cardDonations';
254+
import { CashAppDetails } from './cashAppDetails';
253255
import { CellulantDetails } from './cellulantDetails';
254256
import { CheckoutAwaitAction } from './checkoutAwaitAction';
255257
import { CheckoutDelegatedAuthenticationAction } from './checkoutDelegatedAuthenticationAction';
@@ -448,6 +450,7 @@ let enumsMap: {[index: string]: any} = {
448450
"CardDetails.TypeEnum": CardDetails.TypeEnum,
449451
"CardDonations.FundingSourceEnum": CardDonations.FundingSourceEnum,
450452
"CardDonations.TypeEnum": CardDonations.TypeEnum,
453+
"CashAppDetails.TypeEnum": CashAppDetails.TypeEnum,
451454
"CellulantDetails.TypeEnum": CellulantDetails.TypeEnum,
452455
"CheckoutAwaitAction.TypeEnum": CheckoutAwaitAction.TypeEnum,
453456
"CheckoutDelegatedAuthenticationAction.TypeEnum": CheckoutDelegatedAuthenticationAction.TypeEnum,
@@ -643,6 +646,7 @@ let typeMap: {[index: string]: any} = {
643646
"CardDetailsRequest": CardDetailsRequest,
644647
"CardDetailsResponse": CardDetailsResponse,
645648
"CardDonations": CardDonations,
649+
"CashAppDetails": CashAppDetails,
646650
"CellulantDetails": CellulantDetails,
647651
"CheckoutAwaitAction": CheckoutAwaitAction,
648652
"CheckoutDelegatedAuthenticationAction": CheckoutDelegatedAuthenticationAction,

src/typings/checkout/paymentRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { BillingAddress } from './billingAddress';
2323
import { BlikDetails } from './blikDetails';
2424
import { BrowserInfo } from './browserInfo';
2525
import { CardDetails } from './cardDetails';
26+
import { CashAppDetails } from './cashAppDetails';
2627
import { CellulantDetails } from './cellulantDetails';
2728
import { Company } from './company';
2829
import { DeliveryAddress } from './deliveryAddress';
@@ -187,7 +188,7 @@ export class PaymentRequest {
187188
/**
188189
* The type and required details of a payment method to use.
189190
*/
190-
'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null;
191+
'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null;
191192
'platformChargebackLogic'?: PlatformChargebackLogic;
192193
/**
193194
* Date after which no further authorisations shall be performed. Only for 3D Secure 2.
@@ -488,7 +489,7 @@ export class PaymentRequest {
488489
{
489490
"name": "paymentMethod",
490491
"baseName": "paymentMethod",
491-
"type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null"
492+
"type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EcontextVoucherDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayPalDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | RatepayDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null"
492493
},
493494
{
494495
"name": "platformChargebackLogic",

src/typings/legalEntityManagement/hKLocalAccountIdentification.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ export class HKLocalAccountIdentification {
1414
*/
1515
'accountNumber': string;
1616
/**
17-
* The bank\'s name.
18-
*/
19-
'bankName'?: string;
20-
/**
21-
* The bank\'s 8- or 11-character BIC or SWIFT code.
22-
*/
23-
'bic'?: string;
24-
/**
2517
* The 3-digit clearing code, without separators or whitespace.
2618
*/
2719
'clearingCode': string;
@@ -38,16 +30,6 @@ export class HKLocalAccountIdentification {
3830
"baseName": "accountNumber",
3931
"type": "string"
4032
},
41-
{
42-
"name": "bankName",
43-
"baseName": "bankName",
44-
"type": "string"
45-
},
46-
{
47-
"name": "bic",
48-
"baseName": "bic",
49-
"type": "string"
50-
},
5133
{
5234
"name": "clearingCode",
5335
"baseName": "clearingCode",

src/typings/management/amexInfo.ts

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* The version of the OpenAPI document: v3
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 AmexInfo {
12+
/**
13+
* MID number. Format: 10 numeric characters
14+
*/
15+
'midNumber'?: string;
16+
/**
17+
* Indicates whether the Amex Merchant ID is reused from previously setup payment methods
18+
*/
19+
'reuseMidNumber'?: boolean;
20+
/**
21+
* Service level
22+
*/
23+
'serviceLevel': AmexInfo.ServiceLevelEnum;
24+
25+
static discriminator: string | undefined = undefined;
26+
27+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28+
{
29+
"name": "midNumber",
30+
"baseName": "midNumber",
31+
"type": "string"
32+
},
33+
{
34+
"name": "reuseMidNumber",
35+
"baseName": "reuseMidNumber",
36+
"type": "boolean"
37+
},
38+
{
39+
"name": "serviceLevel",
40+
"baseName": "serviceLevel",
41+
"type": "AmexInfo.ServiceLevelEnum"
42+
} ];
43+
44+
static getAttributeTypeMap() {
45+
return AmexInfo.attributeTypeMap;
46+
}
47+
}
48+
49+
export namespace AmexInfo {
50+
export enum ServiceLevelEnum {
51+
NoContract = 'noContract',
52+
GatewayContract = 'gatewayContract',
53+
PaymentDesignatorContract = 'paymentDesignatorContract'
54+
}
55+
}

src/typings/management/models.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export * from './address';
1515
export * from './afterpayTouchInfo';
1616
export * from './allowedOrigin';
1717
export * from './allowedOriginsResponse';
18+
export * from './amexInfo';
1819
export * from './amount';
1920
export * from './androidApp';
2021
export * from './androidAppsResponse';
@@ -196,6 +197,7 @@ import { Address } from './address';
196197
import { AfterpayTouchInfo } from './afterpayTouchInfo';
197198
import { AllowedOrigin } from './allowedOrigin';
198199
import { AllowedOriginsResponse } from './allowedOriginsResponse';
200+
import { AmexInfo } from './amexInfo';
199201
import { Amount } from './amount';
200202
import { AndroidApp } from './androidApp';
201203
import { AndroidAppsResponse } from './androidAppsResponse';
@@ -382,6 +384,7 @@ let primitives = [
382384
];
383385

384386
let enumsMap: {[index: string]: any} = {
387+
"AmexInfo.ServiceLevelEnum": AmexInfo.ServiceLevelEnum,
385388
"Connectivity.SimcardStatusEnum": Connectivity.SimcardStatusEnum,
386389
"CreateCompanyWebhookRequest.CommunicationFormatEnum": CreateCompanyWebhookRequest.CommunicationFormatEnum,
387390
"CreateCompanyWebhookRequest.EncryptionProtocolEnum": CreateCompanyWebhookRequest.EncryptionProtocolEnum,
@@ -461,6 +464,7 @@ let typeMap: {[index: string]: any} = {
461464
"AfterpayTouchInfo": AfterpayTouchInfo,
462465
"AllowedOrigin": AllowedOrigin,
463466
"AllowedOriginsResponse": AllowedOriginsResponse,
467+
"AmexInfo": AmexInfo,
464468
"Amount": Amount,
465469
"AndroidApp": AndroidApp,
466470
"AndroidAppsResponse": AndroidAppsResponse,

src/typings/management/paymentMethod.ts

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

1010
import { AfterpayTouchInfo } from './afterpayTouchInfo';
11+
import { AmexInfo } from './amexInfo';
1112
import { ApplePayInfo } from './applePayInfo';
1213
import { BcmcInfo } from './bcmcInfo';
1314
import { CartesBancairesInfo } from './cartesBancairesInfo';
@@ -29,6 +30,7 @@ export class PaymentMethod {
2930
* Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account.
3031
*/
3132
'allowed'?: boolean;
33+
'amex'?: AmexInfo;
3234
'applePay'?: ApplePayInfo;
3335
'bcmc'?: BcmcInfo;
3436
/**
@@ -111,6 +113,11 @@ export class PaymentMethod {
111113
"baseName": "allowed",
112114
"type": "boolean"
113115
},
116+
{
117+
"name": "amex",
118+
"baseName": "amex",
119+
"type": "AmexInfo"
120+
},
114121
{
115122
"name": "applePay",
116123
"baseName": "applePay",

src/typings/management/paymentMethodResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export namespace PaymentMethodResponse {
7474
Blik = 'blik',
7575
Cartebancaire = 'cartebancaire',
7676
Clearpay = 'clearpay',
77+
Clicktopay = 'clicktopay',
7778
Cup = 'cup',
7879
Diners = 'diners',
7980
DirectdebitGb = 'directdebit_GB',

0 commit comments

Comments
 (0)