Skip to content

Commit 7fd95fa

Browse files
authored
Merge pull request #1471 from Adyen/sdk-automation/models
Code generation: update services and models
2 parents 61beb95 + 0327b5d commit 7fd95fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+487
-42
lines changed

src/__tests__/notification.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe("Notification Test", function (): void {
213213

214214
it("should deserialize Management v3 Webhooks", function (): void {
215215
const json = {
216-
"type": "paymentMethod.requestRemoved",
216+
"type": "paymentMethodRequest.removed",
217217
"environment": "devl",
218218
"createdAt": "2023-06-12T18:59:17+02:00",
219219
"data": {

src/typings/binLookup/costEstimateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class CostEstimateRequest {
3838
*/
3939
'shopperInteraction'?: CostEstimateRequest.ShopperInteractionEnum;
4040
/**
41-
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
41+
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
4242
*/
4343
'shopperReference'?: string;
4444

src/typings/checkout/additionalData3DSecure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class AdditionalData3DSecure {
3636
*/
3737
'scaExemption'?: string;
3838
/**
39-
* Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **1.0.2**: Apply 3D Secure version 1.0.2. * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. For example, if the configuration is to fall back to 3D Secure 1, we will apply version 1.0.2. * If you prefer 2.1.0 or 2.2.0 but the BIN is not enrolled, you will receive an error.
39+
* Indicates your preference for the 3D Secure version. > If you use this parameter, you override the checks from Adyen\'s Authentication Engine. We recommend to use this field only if you have an extensive knowledge of 3D Secure. Possible values: * **2.1.0**: Apply 3D Secure version 2.1.0. * **2.2.0**: Apply 3D Secure version 2.2.0. If the issuer does not support version 2.2.0, we will fall back to 2.1.0. The following rules apply: * If you prefer 2.1.0 or 2.2.0 but we receive a negative `transStatus` in the `ARes`, we will apply the fallback policy configured in your account. * If you the BIN is not enrolled, you will receive an error.
4040
*/
4141
'threeDSVersion'?: string;
4242

src/typings/checkout/balanceCheckRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export class BalanceCheckRequest {
122122
'shopperLocale'?: string;
123123
'shopperName'?: Name | null;
124124
/**
125-
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
125+
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
126126
*/
127127
'shopperReference'?: string;
128128
/**

src/typings/checkout/createCheckoutSessionRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export class CreateCheckoutSessionRequest {
163163
'shopperLocale'?: string;
164164
'shopperName'?: Name | null;
165165
/**
166-
* Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
166+
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
167167
*/
168168
'shopperReference'?: string;
169169
/**

src/typings/checkout/createCheckoutSessionResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class CreateCheckoutSessionResponse {
171171
'shopperLocale'?: string;
172172
'shopperName'?: Name | null;
173173
/**
174-
* Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
174+
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
175175
*/
176176
'shopperReference'?: string;
177177
/**

src/typings/checkout/fundRecipient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class FundRecipient {
2525
'shopperEmail'?: string;
2626
'shopperName'?: Name | null;
2727
/**
28-
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
28+
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
2929
*/
3030
'shopperReference'?: string;
3131
/**

src/typings/checkout/models.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ export * from './paymentReversalResponse';
157157
export * from './paypalUpdateOrderRequest';
158158
export * from './paypalUpdateOrderResponse';
159159
export * from './phone';
160+
export * from './pixDetails';
161+
export * from './pixRecurring';
160162
export * from './platformChargebackLogic';
161163
export * from './pseDetails';
162164
export * from './ratepayDetails';
@@ -361,6 +363,8 @@ import { PaymentReversalResponse } from './paymentReversalResponse';
361363
import { PaypalUpdateOrderRequest } from './paypalUpdateOrderRequest';
362364
import { PaypalUpdateOrderResponse } from './paypalUpdateOrderResponse';
363365
import { Phone } from './phone';
366+
import { PixDetails } from './pixDetails';
367+
import { PixRecurring } from './pixRecurring';
364368
import { PlatformChargebackLogic } from './platformChargebackLogic';
365369
import { PseDetails } from './pseDetails';
366370
import { RatepayDetails } from './ratepayDetails';
@@ -569,6 +573,8 @@ let enumsMap: {[index: string]: any} = {
569573
"PaymentResponse.ResultCodeEnum": PaymentResponse.ResultCodeEnum,
570574
"PaymentReversalResponse.StatusEnum": PaymentReversalResponse.StatusEnum,
571575
"PaypalUpdateOrderResponse.StatusEnum": PaypalUpdateOrderResponse.StatusEnum,
576+
"PixDetails.TypeEnum": PixDetails.TypeEnum,
577+
"PixRecurring.FrequencyEnum": PixRecurring.FrequencyEnum,
572578
"PlatformChargebackLogic.BehaviorEnum": PlatformChargebackLogic.BehaviorEnum,
573579
"PseDetails.TypeEnum": PseDetails.TypeEnum,
574580
"RatepayDetails.TypeEnum": RatepayDetails.TypeEnum,
@@ -577,6 +583,7 @@ let enumsMap: {[index: string]: any} = {
577583
"ResponseAdditionalDataCard.CardProductIdEnum": ResponseAdditionalDataCard.CardProductIdEnum,
578584
"ResponseAdditionalDataCommon.FraudResultTypeEnum": ResponseAdditionalDataCommon.FraudResultTypeEnum,
579585
"ResponseAdditionalDataCommon.RecurringProcessingModelEnum": ResponseAdditionalDataCommon.RecurringProcessingModelEnum,
586+
"ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum": ResponseAdditionalDataCommon.TokenizationStoreOperationTypeEnum,
580587
"RivertyDetails.TypeEnum": RivertyDetails.TypeEnum,
581588
"SamsungPayDetails.FundingSourceEnum": SamsungPayDetails.FundingSourceEnum,
582589
"SamsungPayDetails.TypeEnum": SamsungPayDetails.TypeEnum,
@@ -772,6 +779,8 @@ let typeMap: {[index: string]: any} = {
772779
"PaypalUpdateOrderRequest": PaypalUpdateOrderRequest,
773780
"PaypalUpdateOrderResponse": PaypalUpdateOrderResponse,
774781
"Phone": Phone,
782+
"PixDetails": PixDetails,
783+
"PixRecurring": PixRecurring,
775784
"PlatformChargebackLogic": PlatformChargebackLogic,
776785
"PseDetails": PseDetails,
777786
"RatepayDetails": RatepayDetails,

src/typings/checkout/paymentDetails.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export namespace PaymentDetails {
7171
MolpayEbankingMy = 'molpay_ebanking_MY',
7272
MolpayEbankingDirectMy = 'molpay_ebanking_direct_MY',
7373
Swish = 'swish',
74-
Pix = 'pix',
7574
Bizum = 'bizum',
7675
Walley = 'walley',
7776
WalleyB2b = 'walley_b2b',

src/typings/checkout/paymentLinkRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class PaymentLinkRequest {
119119
'shopperLocale'?: string;
120120
'shopperName'?: Name | null;
121121
/**
122-
* Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
122+
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
123123
*/
124124
'shopperReference'?: string;
125125
/**

src/typings/checkout/paymentLinkResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class PaymentLinkResponse {
123123
'shopperLocale'?: string;
124124
'shopperName'?: Name | null;
125125
/**
126-
* Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
126+
* Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
127127
*/
128128
'shopperReference'?: string;
129129
/**

src/typings/checkout/paymentMethodsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class PaymentMethodsRequest {
4646
*/
4747
'shopperLocale'?: string;
4848
/**
49-
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address.
49+
* Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
5050
*/
5151
'shopperReference'?: string;
5252
/**

src/typings/checkout/paymentRefundResponse.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ import { Split } from './split';
1414
export class PaymentRefundResponse {
1515
'amount': Amount;
1616
/**
17+
* This is only available for PayPal refunds. The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the specific capture to refund.
18+
*/
19+
'capturePspReference'?: string;
20+
/**
1721
* Price and product information of the refunded items, required for [partial refunds](https://docs.adyen.com/online-payments/refund#refund-a-payment). > This field is required for partial refunds with 3x 4x Oney, Affirm, Afterpay, Atome, Clearpay, Klarna, Ratepay, Walley, and Zip.
1822
*/
1923
'lineItems'?: Array<LineItem>;
@@ -58,6 +62,11 @@ export class PaymentRefundResponse {
5862
"baseName": "amount",
5963
"type": "Amount"
6064
},
65+
{
66+
"name": "capturePspReference",
67+
"baseName": "capturePspReference",
68+
"type": "string"
69+
},
6170
{
6271
"name": "lineItems",
6372
"baseName": "lineItems",

src/typings/checkout/paymentRequest.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import { PayToDetails } from './payToDetails';
6363
import { PayUUpiDetails } from './payUUpiDetails';
6464
import { PayWithGoogleDetails } from './payWithGoogleDetails';
6565
import { PaymentDetails } from './paymentDetails';
66+
import { PixDetails } from './pixDetails';
6667
import { PlatformChargebackLogic } from './platformChargebackLogic';
6768
import { PseDetails } from './pseDetails';
6869
import { RatepayDetails } from './ratepayDetails';
@@ -208,7 +209,7 @@ export class PaymentRequest {
208209
/**
209210
* The type and required details of a payment method to use.
210211
*/
211-
'paymentMethod': AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails;
212+
'paymentMethod': AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails;
212213
'platformChargebackLogic'?: PlatformChargebackLogic | null;
213214
/**
214215
* Date after which no further authorisations shall be performed. Only for 3D Secure 2.
@@ -525,7 +526,7 @@ export class PaymentRequest {
525526
{
526527
"name": "paymentMethod",
527528
"baseName": "paymentMethod",
528-
"type": "AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails"
529+
"type": "AchDetails | AffirmDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | FastlaneDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayPayDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PixDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails"
529530
},
530531
{
531532
"name": "platformChargebackLogic",

src/typings/checkout/pixDetails.ts

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+
import { PixRecurring } from './pixRecurring';
11+
12+
export class PixDetails {
13+
/**
14+
* The checkout attempt identifier.
15+
*/
16+
'checkoutAttemptId'?: string;
17+
'pixRecurring'?: PixRecurring | null;
18+
/**
19+
* This is the `recurringDetailReference` returned in the response when you created the token.
20+
*
21+
* @deprecated since Adyen Checkout API v49
22+
* Use `storedPaymentMethodId` instead.
23+
*/
24+
'recurringDetailReference'?: string;
25+
/**
26+
* This is the `recurringDetailReference` returned in the response when you created the token.
27+
*/
28+
'storedPaymentMethodId'?: string;
29+
/**
30+
* The payment method type.
31+
*/
32+
'type'?: PixDetails.TypeEnum;
33+
34+
static discriminator: string | undefined = undefined;
35+
36+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
37+
{
38+
"name": "checkoutAttemptId",
39+
"baseName": "checkoutAttemptId",
40+
"type": "string"
41+
},
42+
{
43+
"name": "pixRecurring",
44+
"baseName": "pixRecurring",
45+
"type": "PixRecurring | null"
46+
},
47+
{
48+
"name": "recurringDetailReference",
49+
"baseName": "recurringDetailReference",
50+
"type": "string"
51+
},
52+
{
53+
"name": "storedPaymentMethodId",
54+
"baseName": "storedPaymentMethodId",
55+
"type": "string"
56+
},
57+
{
58+
"name": "type",
59+
"baseName": "type",
60+
"type": "PixDetails.TypeEnum"
61+
} ];
62+
63+
static getAttributeTypeMap() {
64+
return PixDetails.attributeTypeMap;
65+
}
66+
}
67+
68+
export namespace PixDetails {
69+
export enum TypeEnum {
70+
Pix = 'pix'
71+
}
72+
}

0 commit comments

Comments
 (0)