Skip to content

Commit c1fd79b

Browse files
authored
Merge pull request #1564 from Adyen/sdk-automation/models
Code generation: update services and models
2 parents 2d0e45d + 05f60b3 commit c1fd79b

33 files changed

+268
-39
lines changed

src/services/checkout/donationsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class DonationsApi extends Service {
5454
}
5555

5656
/**
57-
* @summary Start a transaction for donations
57+
* @summary Make a donation
5858
* @param donationPaymentRequest {@link DonationPaymentRequest }
5959
* @param requestOptions {@link IRequest.Options }
6060
* @return {@link DonationPaymentResponse }

src/services/management/splitConfigurationMerchantLevelApi.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
6060
}
6161

6262
/**
63-
* @summary Create a split configuration
63+
* @summary Create a split configuration profile
6464
* @param merchantId {@link string } The unique identifier of the merchant account.
6565
* @param splitConfiguration {@link SplitConfiguration }
6666
* @param requestOptions {@link IRequest.Options }
@@ -82,7 +82,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
8282
}
8383

8484
/**
85-
* @summary Delete a split configuration
85+
* @summary Delete a split configuration profile
8686
* @param merchantId {@link string } The unique identifier of the merchant account.
8787
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
8888
* @param requestOptions {@link IRequest.Options }
@@ -104,7 +104,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
104104
}
105105

106106
/**
107-
* @summary Delete a split configuration rule
107+
* @summary Delete a rule
108108
* @param merchantId {@link string } The unique identifier of the merchant account.
109109
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
110110
* @param ruleId {@link string }
@@ -128,7 +128,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
128128
}
129129

130130
/**
131-
* @summary Get a split configuration
131+
* @summary Get a split configuration profile
132132
* @param merchantId {@link string } The unique identifier of the merchant account.
133133
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
134134
* @param requestOptions {@link IRequest.Options }
@@ -150,7 +150,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
150150
}
151151

152152
/**
153-
* @summary Get a list of split configurations
153+
* @summary Get a list of split configuration profiles
154154
* @param merchantId {@link string } The unique identifier of the merchant account.
155155
* @param requestOptions {@link IRequest.Options }
156156
* @return {@link SplitConfigurationList }
@@ -170,7 +170,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
170170
}
171171

172172
/**
173-
* @summary Update split conditions
173+
* @summary Update the split conditions
174174
* @param merchantId {@link string } The unique identifier of the merchant account.
175175
* @param splitConfigurationId {@link string } The identifier of the split configuration.
176176
* @param ruleId {@link string } The unique identifier of the split configuration rule.
@@ -196,7 +196,7 @@ export class SplitConfigurationMerchantLevelApi extends Service {
196196
}
197197

198198
/**
199-
* @summary Update split configuration description
199+
* @summary Update the description of the split configuration profile
200200
* @param merchantId {@link string } The unique identifier of the merchant account.
201201
* @param splitConfigurationId {@link string } The unique identifier of the split configuration.
202202
* @param updateSplitConfigurationRequest {@link UpdateSplitConfigurationRequest }

src/typings/binLookup/recurring.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
export class Recurring {
1212
/**
13-
* The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts).
13+
* The type of recurring contract to be used. Possible values: * `ONECLICK` – Payment details can be used to initiate a one-click payment, where the shopper enters the [card security code (CVC/CVV)](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-security-code-cvc-cvv-cid). * `RECURRING` – Payment details can be used without the card security code to initiate [card-not-present transactions](https://docs.adyen.com/payments-fundamentals/payment-glossary#card-not-present-cnp). * `ONECLICK,RECURRING` – Payment details can be used regardless of whether the shopper is on your site or not. * `PAYOUT` – Payment details can be used to [make a payout](https://docs.adyen.com/online-payments/online-payouts). * `EXTERNAL` - Use this when you store payment details and send the raw card number or network token directly in your API request.
1414
*/
1515
"contract"?: Recurring.ContractEnum;
1616
/**
@@ -77,8 +77,10 @@ export class Recurring {
7777
export namespace Recurring {
7878
export enum ContractEnum {
7979
Oneclick = 'ONECLICK',
80+
Oneclickrecurring = 'ONECLICK,RECURRING',
8081
Recurring = 'RECURRING',
81-
Payout = 'PAYOUT'
82+
Payout = 'PAYOUT',
83+
External = 'EXTERNAL'
8284
}
8385
export enum TokenServiceEnum {
8486
Visatokenservice = 'VISATOKENSERVICE',

src/typings/checkout/additionalDataLevel23.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class AdditionalDataLevel23 {
7474
*/
7575
"enhancedSchemeData_shipFromPostalCode"?: string;
7676
/**
77-
* The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * Must not be all zeros.
77+
* The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max length: 12 characters * For L2 data: must not be all zeroes. * For L3 data: can be zero.
7878
*/
7979
"enhancedSchemeData_totalTaxAmount"?: string;
8080

src/typings/checkout/additionalDataSubMerchant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class AdditionalDataSubMerchant {
3838
*/
3939
"subMerchant_subSeller_subSellerNr_name"?: string;
4040
/**
41-
* Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant.* Format: Alphanumeric * Maximum length: 20 characters
41+
* Required for transactions performed by registered payment facilitators. The phone number of the sub-merchant. * Format: Alphanumeric and special characters * Maximum length: 20 characters
4242
*/
4343
"subMerchant_subSeller_subSellerNr_phoneNumber"?: string;
4444
/**

src/typings/checkout/cardDetailsRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class CardDetailsRequest {
1212
/**
1313
* A minimum of the first six digits of the card number. The full card number gives the best result. You must be [fully PCI compliant](https://docs.adyen.com/development-resources/pci-dss-compliance-guide) to collect raw card data. Alternatively, you can use the `encryptedCardNumber` field.
1414
*/
15-
"cardNumber": string;
15+
"cardNumber"?: string;
1616
/**
1717
* The shopper country. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE
1818
*/

src/typings/checkout/createCheckoutSessionRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin";
2020
import { FundRecipient } from "./fundRecipient";
2121
import { LineItem } from "./lineItem";
2222
import { Mandate } from "./mandate";
23-
import { Name } from "./name";
2423
import { PlatformChargebackLogic } from "./platformChargebackLogic";
2524
import { RiskData } from "./riskData";
25+
import { ShopperName } from "./shopperName";
2626
import { Split } from "./split";
2727
import { ThreeDSecureData } from "./threeDSecureData";
2828

@@ -162,7 +162,7 @@ export class CreateCheckoutSessionRequest {
162162
* The combination of a language code and a country code to specify the language to be used in the payment.
163163
*/
164164
"shopperLocale"?: string;
165-
"shopperName"?: Name | null;
165+
"shopperName"?: ShopperName | null;
166166
/**
167167
* 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.
168168
*/
@@ -500,7 +500,7 @@ export class CreateCheckoutSessionRequest {
500500
{
501501
"name": "shopperName",
502502
"baseName": "shopperName",
503-
"type": "Name | null",
503+
"type": "ShopperName | null",
504504
"format": ""
505505
},
506506
{

src/typings/checkout/createCheckoutSessionResponse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import { FundOrigin } from "./fundOrigin";
2020
import { FundRecipient } from "./fundRecipient";
2121
import { LineItem } from "./lineItem";
2222
import { Mandate } from "./mandate";
23-
import { Name } from "./name";
2423
import { PlatformChargebackLogic } from "./platformChargebackLogic";
2524
import { RiskData } from "./riskData";
25+
import { ShopperName } from "./shopperName";
2626
import { Split } from "./split";
2727
import { ThreeDSecureData } from "./threeDSecureData";
2828

@@ -170,7 +170,7 @@ export class CreateCheckoutSessionResponse {
170170
* The combination of a language code and a country code to specify the language to be used in the payment.
171171
*/
172172
"shopperLocale"?: string;
173-
"shopperName"?: Name | null;
173+
"shopperName"?: ShopperName | null;
174174
/**
175175
* 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.
176176
*/
@@ -524,7 +524,7 @@ export class CreateCheckoutSessionResponse {
524524
{
525525
"name": "shopperName",
526526
"baseName": "shopperName",
527-
"type": "Name | null",
527+
"type": "ShopperName | null",
528528
"format": ""
529529
},
530530
{

src/typings/checkout/donationPaymentRequest.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { DeliveryAddress } from "./deliveryAddress";
1717
import { DonationPaymentRequestPaymentMethod } from "./donationPaymentRequestPaymentMethod";
1818
import { LineItem } from "./lineItem";
1919
import { MerchantRiskIndicator } from "./merchantRiskIndicator";
20-
import { Name } from "./name";
20+
import { ShopperName } from "./shopperName";
2121
import { ThreeDS2RequestFields } from "./threeDS2RequestFields";
2222
import { ThreeDSecureData } from "./threeDSecureData";
2323

@@ -140,7 +140,7 @@ export class DonationPaymentRequest {
140140
* The combination of a language code and a country code to specify the language to be used in the payment.
141141
*/
142142
"shopperLocale"?: string;
143-
"shopperName"?: Name | null;
143+
"shopperName"?: ShopperName | null;
144144
/**
145145
* 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.
146146
*/
@@ -386,7 +386,7 @@ export class DonationPaymentRequest {
386386
{
387387
"name": "shopperName",
388388
"baseName": "shopperName",
389-
"type": "Name | null",
389+
"type": "ShopperName | null",
390390
"format": ""
391391
},
392392
{

src/typings/checkout/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ export * from "./serviceError"
185185
export * from "./sessionResultResponse"
186186
export * from "./shopperIdPaymentMethod"
187187
export * from "./shopperInteractionDevice"
188+
export * from "./shopperName"
188189
export * from "./split"
189190
export * from "./splitAmount"
190191
export * from "./standalonePaymentCancelRequest"
@@ -213,6 +214,7 @@ export * from "./uPIPaymentMethod"
213214
export * from "./updatePaymentLinkRequest"
214215
export * from "./upiCollectDetails"
215216
export * from "./upiIntentDetails"
217+
export * from "./upiQrDetails"
216218
export * from "./utilityRequest"
217219
export * from "./utilityResponse"
218220
export * from "./validateShopperIdRequest"

0 commit comments

Comments
 (0)