Skip to content

Commit 482671c

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

File tree

72 files changed

+540
-419
lines changed

Some content is hidden

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

72 files changed

+540
-419
lines changed

src/services/checkout/recurringApi.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import Service from "../../service";
1212
import Client from "../../client";
1313
import {
1414
ListStoredPaymentMethodsResponse,
15+
StoredPaymentMethodRequest,
16+
StoredPaymentMethodResource,
1517
ObjectSerializer
1618
} from "../../typings/checkout/models";
1719
import { IRequest } from "../../typings/requestOptions";
@@ -76,4 +78,22 @@ export class RecurringApi extends Service {
7678
);
7779
return ObjectSerializer.deserialize(response, "ListStoredPaymentMethodsResponse");
7880
}
81+
82+
/**
83+
* @summary Create a token to store payment details
84+
* @param storedPaymentMethodRequest {@link StoredPaymentMethodRequest }
85+
* @param requestOptions {@link IRequest.Options }
86+
* @return {@link StoredPaymentMethodResource }
87+
*/
88+
public async storedPaymentMethods(storedPaymentMethodRequest: StoredPaymentMethodRequest, requestOptions?: IRequest.Options): Promise<StoredPaymentMethodResource> {
89+
const endpoint = `${this.baseUrl}/storedPaymentMethods`;
90+
const resource = new Resource(this, endpoint);
91+
const request: StoredPaymentMethodRequest = ObjectSerializer.serialize(storedPaymentMethodRequest, "StoredPaymentMethodRequest");
92+
const response = await getJsonResponse<StoredPaymentMethodRequest, StoredPaymentMethodResource>(
93+
resource,
94+
request,
95+
{ ...requestOptions, method: "POST" }
96+
);
97+
return ObjectSerializer.deserialize(response, "StoredPaymentMethodResource");
98+
}
7999
}

src/services/checkout/utilityApi.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import Client from "../../client";
1313
import {
1414
ApplePaySessionRequest,
1515
ApplePaySessionResponse,
16+
PaypalUpdateOrderRequest,
17+
PaypalUpdateOrderResponse,
1618
UtilityRequest,
1719
UtilityResponse,
1820
ObjectSerializer
@@ -65,4 +67,22 @@ export class UtilityApi extends Service {
6567
);
6668
return ObjectSerializer.deserialize(response, "UtilityResponse");
6769
}
70+
71+
/**
72+
* @summary Updates the order for PayPal Express Checkout
73+
* @param paypalUpdateOrderRequest {@link PaypalUpdateOrderRequest }
74+
* @param requestOptions {@link IRequest.Options }
75+
* @return {@link PaypalUpdateOrderResponse }
76+
*/
77+
public async updatesOrderForPaypalExpressCheckout(paypalUpdateOrderRequest: PaypalUpdateOrderRequest, requestOptions?: IRequest.Options): Promise<PaypalUpdateOrderResponse> {
78+
const endpoint = `${this.baseUrl}/paypal/updateOrder`;
79+
const resource = new Resource(this, endpoint);
80+
const request: PaypalUpdateOrderRequest = ObjectSerializer.serialize(paypalUpdateOrderRequest, "PaypalUpdateOrderRequest");
81+
const response = await getJsonResponse<PaypalUpdateOrderRequest, PaypalUpdateOrderResponse>(
82+
resource,
83+
request,
84+
{ ...requestOptions, method: "POST" }
85+
);
86+
return ObjectSerializer.deserialize(response, "PaypalUpdateOrderResponse");
87+
}
6888
}

src/typings/checkout/balanceCheckRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ export class BalanceCheckRequest {
134134
*/
135135
'socialSecurityNumber'?: string;
136136
/**
137-
* An array of objects specifying how the payment should be split when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information) or [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
137+
* An array of objects specifying how the payment should be split when using either Adyen for Platforms for [marketplaces](https://docs.adyen.com/marketplaces/split-payments) or [platforms]((https://docs.adyen.com/platforms/split-payments), or standalone [Issuing](https://docs.adyen.com/issuing/add-manage-funds#split).
138138
*/
139139
'splits'?: Array<Split>;
140140
/**
141-
* Required for Adyen for Platforms integrations if you have a platform setup. 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/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) 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/marketplaces-and-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.
141+
* 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.
142142
*/
143143
'store'?: string;
144144
/**

src/typings/checkout/createCheckoutSessionRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ export class CreateCheckoutSessionRequest {
186186
*/
187187
'splitCardFundingSources'?: boolean;
188188
/**
189-
* An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
189+
* An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
190190
*/
191191
'splits'?: Array<Split>;
192192
/**
193-
* Required for Adyen for Platforms integrations if you have a platform setup. 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/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) 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/marketplaces-and-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.
193+
* 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.
194194
*/
195195
'store'?: string;
196196
/**

src/typings/checkout/createCheckoutSessionResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ export class CreateCheckoutSessionResponse {
194194
*/
195195
'splitCardFundingSources'?: boolean;
196196
/**
197-
* An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/marketplaces-and-platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/marketplaces-and-platforms/classic/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
197+
* An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/processing-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
198198
*/
199199
'splits'?: Array<Split>;
200200
/**
201-
* Required for Adyen for Platforms integrations if you have a platform setup. 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/marketplaces-and-platforms/classic/platforms-for-partners#route-payments)) 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/marketplaces-and-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.
201+
* 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.
202202
*/
203203
'store'?: string;
204204
/**
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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 { Amount } from './amount';
11+
12+
export class DeliveryMethod {
13+
'amount'?: Amount;
14+
/**
15+
* The name of the delivery method as shown to the shopper.
16+
*/
17+
'description'?: string;
18+
/**
19+
* The reference of the delivery method.
20+
*/
21+
'reference'?: string;
22+
/**
23+
* If you display the PayPal lightbox with delivery methods, set to **true** for the delivery method that is selected. Only one delivery method can be selected at a time.
24+
*/
25+
'selected'?: boolean;
26+
/**
27+
* The type of the delivery method.
28+
*/
29+
'type'?: DeliveryMethod.TypeEnum;
30+
31+
static discriminator: string | undefined = undefined;
32+
33+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
34+
{
35+
"name": "amount",
36+
"baseName": "amount",
37+
"type": "Amount"
38+
},
39+
{
40+
"name": "description",
41+
"baseName": "description",
42+
"type": "string"
43+
},
44+
{
45+
"name": "reference",
46+
"baseName": "reference",
47+
"type": "string"
48+
},
49+
{
50+
"name": "selected",
51+
"baseName": "selected",
52+
"type": "boolean"
53+
},
54+
{
55+
"name": "type",
56+
"baseName": "type",
57+
"type": "DeliveryMethod.TypeEnum"
58+
} ];
59+
60+
static getAttributeTypeMap() {
61+
return DeliveryMethod.attributeTypeMap;
62+
}
63+
}
64+
65+
export namespace DeliveryMethod {
66+
export enum TypeEnum {
67+
Shipping = 'Shipping'
68+
}
69+
}

0 commit comments

Comments
 (0)