Skip to content

Commit 32d41e5

Browse files
AdyenAutomationBotAdyenAutomationBotDjoykeAbyah
authored
Update all services (#1356)
* [reformat][adyen-sdk-automation] automated change * style(fmt): code formatted * Update transferRoute.ts removed faulty import statement --------- Co-authored-by: AdyenAutomationBot <Adyen Automation plugins_dev@adyen.com> Co-authored-by: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com>
1 parent 6233aa0 commit 32d41e5

File tree

65 files changed

+811
-69
lines changed

Some content is hidden

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

65 files changed

+811
-69
lines changed

src/services/management/androidFilesCompanyLevelApi.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
AndroidApp,
1515
AndroidAppsResponse,
1616
AndroidCertificatesResponse,
17+
ReprocessAndroidAppResponse,
1718
UploadAndroidAppResponse,
1819
UploadAndroidCertificateResponse,
1920
ObjectSerializer
@@ -111,6 +112,26 @@ export class AndroidFilesCompanyLevelApi extends Service {
111112
return ObjectSerializer.deserialize(response, "AndroidCertificatesResponse");
112113
}
113114

115+
/**
116+
* @summary Reprocess Android App
117+
* @param companyId {@link string } The unique identifier of the company account.
118+
* @param id {@link string } The unique identifier of the app.
119+
* @param requestOptions {@link IRequest.Options }
120+
* @return {@link ReprocessAndroidAppResponse }
121+
*/
122+
public async reprocessAndroidApp(companyId: string, id: string, requestOptions?: IRequest.Options): Promise<ReprocessAndroidAppResponse> {
123+
const endpoint = `${this.baseUrl}/companies/{companyId}/androidApps/{id}`
124+
.replace("{" + "companyId" + "}", encodeURIComponent(String(companyId)))
125+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
126+
const resource = new Resource(this, endpoint);
127+
const response = await getJsonResponse<string, ReprocessAndroidAppResponse>(
128+
resource,
129+
"",
130+
{ ...requestOptions, method: "PATCH" }
131+
);
132+
return ObjectSerializer.deserialize(response, "ReprocessAndroidAppResponse");
133+
}
134+
114135
/**
115136
* @summary Upload Android App
116137
* @param companyId {@link string } The unique identifier of the company account.

src/typings/acsWebhooks/balancePlatformNotificationResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
export class BalancePlatformNotificationResponse {
1212
/**
13-
* Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
13+
* Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).
1414
*/
1515
'notificationResponse'?: string;
1616

src/typings/checkout/additionalDataAirline.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export class AdditionalDataAirline {
4646
*/
4747
'airline_flight_date'?: string;
4848
/**
49+
* The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD
50+
*/
51+
'airline_issue_date'?: string;
52+
/**
4953
* The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not be all spaces *Must not be all zeros.
5054
*/
5155
'airline_leg_carrier_code'?: string;
@@ -170,6 +174,11 @@ export class AdditionalDataAirline {
170174
"baseName": "airline.flight_date",
171175
"type": "string"
172176
},
177+
{
178+
"name": "airline_issue_date",
179+
"baseName": "airline.issue_date",
180+
"type": "string"
181+
},
173182
{
174183
"name": "airline_leg_carrier_code",
175184
"baseName": "airline.leg.carrier_code",

src/typings/checkout/additionalDataLodging.ts

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

1010

1111
export class AdditionalDataLodging {
12+
/**
13+
* A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit
14+
*/
15+
'lodging_SpecialProgramCode'?: string;
1216
/**
1317
* The arrival date. * Date format: **yyyyMmDd**. For example, for 2023 April 22, **20230422**.
1418
*/
@@ -77,6 +81,11 @@ export class AdditionalDataLodging {
7781
static discriminator: string | undefined = undefined;
7882

7983
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
84+
{
85+
"name": "lodging_SpecialProgramCode",
86+
"baseName": "lodging.SpecialProgramCode",
87+
"type": "string"
88+
},
8089
{
8190
"name": "lodging_checkInDate",
8291
"baseName": "lodging.checkInDate",

src/typings/checkout/cardDetails.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export class CardDetails {
7171
*/
7272
'shopperNotificationReference'?: string;
7373
/**
74+
* An identifier used for the Click to Pay transaction.
75+
*/
76+
'srcCorrelationId'?: string;
77+
/**
78+
* The scheme that is being used for Click to Pay.
79+
*/
80+
'srcScheme'?: string;
81+
/**
82+
* The reference for the Click to Pay token.
83+
*/
84+
'srcTokenReference'?: string;
85+
/**
7486
* This is the `recurringDetailReference` returned in the response when you created the token.
7587
*/
7688
'storedPaymentMethodId'?: string;
@@ -166,6 +178,21 @@ export class CardDetails {
166178
"baseName": "shopperNotificationReference",
167179
"type": "string"
168180
},
181+
{
182+
"name": "srcCorrelationId",
183+
"baseName": "srcCorrelationId",
184+
"type": "string"
185+
},
186+
{
187+
"name": "srcScheme",
188+
"baseName": "srcScheme",
189+
"type": "string"
190+
},
191+
{
192+
"name": "srcTokenReference",
193+
"baseName": "srcTokenReference",
194+
"type": "string"
195+
},
169196
{
170197
"name": "storedPaymentMethodId",
171198
"baseName": "storedPaymentMethodId",

src/typings/checkout/cardDonations.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ export class CardDonations {
7171
*/
7272
'shopperNotificationReference'?: string;
7373
/**
74+
* An identifier used for the Click to Pay transaction.
75+
*/
76+
'srcCorrelationId'?: string;
77+
/**
78+
* The scheme that is being used for Click to Pay.
79+
*/
80+
'srcScheme'?: string;
81+
/**
82+
* The reference for the Click to Pay token.
83+
*/
84+
'srcTokenReference'?: string;
85+
/**
7486
* This is the `recurringDetailReference` returned in the response when you created the token.
7587
*/
7688
'storedPaymentMethodId'?: string;
@@ -166,6 +178,21 @@ export class CardDonations {
166178
"baseName": "shopperNotificationReference",
167179
"type": "string"
168180
},
181+
{
182+
"name": "srcCorrelationId",
183+
"baseName": "srcCorrelationId",
184+
"type": "string"
185+
},
186+
{
187+
"name": "srcScheme",
188+
"baseName": "srcScheme",
189+
"type": "string"
190+
},
191+
{
192+
"name": "srcTokenReference",
193+
"baseName": "srcTokenReference",
194+
"type": "string"
195+
},
169196
{
170197
"name": "storedPaymentMethodId",
171198
"baseName": "storedPaymentMethodId",
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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 { Phone } from './phone';
11+
12+
export class CheckoutSessionThreeDS2RequestData {
13+
'homePhone'?: Phone;
14+
'mobilePhone'?: Phone;
15+
/**
16+
* Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only
17+
*/
18+
'threeDSRequestorChallengeInd'?: CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum;
19+
'workPhone'?: Phone;
20+
21+
static discriminator: string | undefined = undefined;
22+
23+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24+
{
25+
"name": "homePhone",
26+
"baseName": "homePhone",
27+
"type": "Phone"
28+
},
29+
{
30+
"name": "mobilePhone",
31+
"baseName": "mobilePhone",
32+
"type": "Phone"
33+
},
34+
{
35+
"name": "threeDSRequestorChallengeInd",
36+
"baseName": "threeDSRequestorChallengeInd",
37+
"type": "CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum"
38+
},
39+
{
40+
"name": "workPhone",
41+
"baseName": "workPhone",
42+
"type": "Phone"
43+
} ];
44+
45+
static getAttributeTypeMap() {
46+
return CheckoutSessionThreeDS2RequestData.attributeTypeMap;
47+
}
48+
}
49+
50+
export namespace CheckoutSessionThreeDS2RequestData {
51+
export enum ThreeDSRequestorChallengeIndEnum {
52+
_01 = '01',
53+
_02 = '02',
54+
_03 = '03',
55+
_04 = '04',
56+
_05 = '05',
57+
_06 = '06'
58+
}
59+
}

src/typings/checkout/createCheckoutSessionRequest.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { ApplicationInfo } from './applicationInfo';
1313
import { AuthenticationData } from './authenticationData';
1414
import { BillingAddress } from './billingAddress';
1515
import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption';
16+
import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData';
1617
import { Company } from './company';
1718
import { DeliveryAddress } from './deliveryAddress';
1819
import { FundOrigin } from './fundOrigin';
@@ -67,15 +68,15 @@ export class CreateCheckoutSessionRequest {
6768
'deliverAt'?: Date;
6869
'deliveryAddress'?: DeliveryAddress;
6970
/**
70-
* When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.
71+
* When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition).
7172
*/
7273
'enableOneClick'?: boolean;
7374
/**
7475
* When true and `shopperReference` is provided, the payment details will be tokenized for payouts.
7576
*/
7677
'enablePayOut'?: boolean;
7778
/**
78-
* When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.
79+
* When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments.
7980
*/
8081
'enableRecurring'?: boolean;
8182
/**
@@ -194,7 +195,7 @@ export class CreateCheckoutSessionRequest {
194195
*/
195196
'store'?: string;
196197
/**
197-
* When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.
198+
* When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).
198199
*/
199200
'storePaymentMethod'?: boolean;
200201
/**
@@ -209,6 +210,7 @@ export class CreateCheckoutSessionRequest {
209210
* Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area.
210211
*/
211212
'themeId'?: string;
213+
'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData;
212214
/**
213215
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
214216
*/
@@ -506,6 +508,11 @@ export class CreateCheckoutSessionRequest {
506508
"baseName": "themeId",
507509
"type": "string"
508510
},
511+
{
512+
"name": "threeDS2RequestData",
513+
"baseName": "threeDS2RequestData",
514+
"type": "CheckoutSessionThreeDS2RequestData"
515+
},
509516
{
510517
"name": "threeDSAuthenticationOnly",
511518
"baseName": "threeDSAuthenticationOnly",

src/typings/checkout/createCheckoutSessionResponse.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { ApplicationInfo } from './applicationInfo';
1313
import { AuthenticationData } from './authenticationData';
1414
import { BillingAddress } from './billingAddress';
1515
import { CheckoutSessionInstallmentOption } from './checkoutSessionInstallmentOption';
16+
import { CheckoutSessionThreeDS2RequestData } from './checkoutSessionThreeDS2RequestData';
1617
import { Company } from './company';
1718
import { DeliveryAddress } from './deliveryAddress';
1819
import { FundOrigin } from './fundOrigin';
@@ -67,15 +68,15 @@ export class CreateCheckoutSessionResponse {
6768
'deliverAt'?: Date;
6869
'deliveryAddress'?: DeliveryAddress;
6970
/**
70-
* When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.
71+
* When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition).
7172
*/
7273
'enableOneClick'?: boolean;
7374
/**
7475
* When true and `shopperReference` is provided, the payment details will be tokenized for payouts.
7576
*/
7677
'enablePayOut'?: boolean;
7778
/**
78-
* When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.
79+
* When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments.
7980
*/
8081
'enableRecurring'?: boolean;
8182
/**
@@ -202,7 +203,7 @@ export class CreateCheckoutSessionResponse {
202203
*/
203204
'store'?: string;
204205
/**
205-
* When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.
206+
* When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).
206207
*/
207208
'storePaymentMethod'?: boolean;
208209
/**
@@ -217,6 +218,7 @@ export class CreateCheckoutSessionResponse {
217218
* Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area.
218219
*/
219220
'themeId'?: string;
221+
'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData;
220222
/**
221223
* If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
222224
*/
@@ -528,6 +530,11 @@ export class CreateCheckoutSessionResponse {
528530
"baseName": "themeId",
529531
"type": "string"
530532
},
533+
{
534+
"name": "threeDS2RequestData",
535+
"baseName": "threeDS2RequestData",
536+
"type": "CheckoutSessionThreeDS2RequestData"
537+
},
531538
{
532539
"name": "threeDSAuthenticationOnly",
533540
"baseName": "threeDSAuthenticationOnly",

src/typings/checkout/econtextVoucherDetails.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ export class EcontextVoucherDetails {
7575

7676
export namespace EcontextVoucherDetails {
7777
export enum TypeEnum {
78-
Seveneleven = 'econtext_seveneleven',
79-
Stores = 'econtext_stores'
78+
EcontextSevenEleven = 'econtext_seven_eleven',
79+
EcontextOnline = 'econtext_online',
80+
Econtext = 'econtext',
81+
EcontextStores = 'econtext_stores',
82+
EcontextAtm = 'econtext_atm'
8083
}
8184
}

src/typings/checkout/installments.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ export class Installments {
1414
*/
1515
'extra'?: number;
1616
/**
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**.
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**.
1818
*/
1919
'plan'?: Installments.PlanEnum;
2020
/**
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
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.
2222
*/
2323
'value': number;
2424

src/typings/checkout/lineItem.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export class LineItem {
4646
*/
4747
'manufacturer'?: string;
4848
/**
49+
* Marketplace seller id.
50+
*/
51+
'marketplaceSellerId'?: string;
52+
/**
4953
* Link to the purchased item.
5054
*/
5155
'productUrl'?: string;
@@ -126,6 +130,11 @@ export class LineItem {
126130
"baseName": "manufacturer",
127131
"type": "string"
128132
},
133+
{
134+
"name": "marketplaceSellerId",
135+
"baseName": "marketplaceSellerId",
136+
"type": "string"
137+
},
129138
{
130139
"name": "productUrl",
131140
"baseName": "productUrl",

0 commit comments

Comments
 (0)