@commercelayer/sdk 6.30.0 → 6.31.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/index.d.mts +19 -6
- package/lib/index.d.ts +19 -6
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +2 -2
package/lib/index.d.mts
CHANGED
@@ -1292,10 +1292,10 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
|
|
1292
1292
|
*/
|
1293
1293
|
payment_request_details?: Record<string, any> | null;
|
1294
1294
|
/**
|
1295
|
-
*
|
1296
|
-
* @example ```
|
1295
|
+
* Send this attribute if you want to authorize the payment.
|
1296
|
+
* @example ```true```
|
1297
1297
|
*/
|
1298
|
-
|
1298
|
+
_authorize?: boolean | null;
|
1299
1299
|
/**
|
1300
1300
|
* Send this attribute if you want to send additional details the payment request.
|
1301
1301
|
* @example ```true```
|
@@ -1311,6 +1311,7 @@ declare class AdyenPayments extends ApiResource<AdyenPayment> {
|
|
1311
1311
|
order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
1312
1312
|
payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway>;
|
1313
1313
|
versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
1314
|
+
_authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
|
1314
1315
|
_details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
|
1315
1316
|
isAdyenPayment(resource: any): resource is AdyenPayment;
|
1316
1317
|
relationship(id: string | ResourceId | null): AdyenPaymentRel$3;
|
@@ -10267,7 +10268,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
10267
10268
|
*/
|
10268
10269
|
_nullify_payment_source?: boolean | null;
|
10269
10270
|
/**
|
10270
|
-
* Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready
|
10271
|
+
* Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready to be approved. A tentative to fix the payment source is done before approval automatically. Cannot be passed by sales channels.
|
10271
10272
|
* @example ```true```
|
10272
10273
|
*/
|
10273
10274
|
_fix_payment_source?: boolean | null;
|
@@ -14492,6 +14493,10 @@ interface AdyenGateway extends Resource {
|
|
14492
14493
|
* @example ```true```
|
14493
14494
|
*/
|
14494
14495
|
async_api?: boolean | null;
|
14496
|
+
/**
|
14497
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14498
|
+
*/
|
14499
|
+
partial_payments?: boolean | null;
|
14495
14500
|
/**
|
14496
14501
|
* Indicates if the gateway will use the native customer payment sources.
|
14497
14502
|
* @example ```true```
|
@@ -14547,6 +14552,10 @@ interface AdyenGatewayCreate extends ResourceCreate {
|
|
14547
14552
|
* @example ```true```
|
14548
14553
|
*/
|
14549
14554
|
async_api?: boolean | null;
|
14555
|
+
/**
|
14556
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14557
|
+
*/
|
14558
|
+
partial_payments?: boolean | null;
|
14550
14559
|
/**
|
14551
14560
|
* Indicates if the gateway will use the native customer payment sources.
|
14552
14561
|
* @example ```true```
|
@@ -14595,6 +14604,10 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
|
|
14595
14604
|
* @example ```true```
|
14596
14605
|
*/
|
14597
14606
|
async_api?: boolean | null;
|
14607
|
+
/**
|
14608
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14609
|
+
*/
|
14610
|
+
partial_payments?: boolean | null;
|
14598
14611
|
/**
|
14599
14612
|
* Indicates if the gateway will use the native customer payment sources.
|
14600
14613
|
* @example ```true```
|
@@ -14634,7 +14647,7 @@ interface Application extends Resource {
|
|
14634
14647
|
*/
|
14635
14648
|
name?: string | null;
|
14636
14649
|
/**
|
14637
|
-
* The application's kind. One of '
|
14650
|
+
* The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
|
14638
14651
|
* @example ```"sales-channel"```
|
14639
14652
|
*/
|
14640
14653
|
kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
|
@@ -16723,7 +16736,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
16723
16736
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
16724
16737
|
declare class CommerceLayerClient {
|
16725
16738
|
#private;
|
16726
|
-
readonly openApiSchemaVersion = "7.7.
|
16739
|
+
readonly openApiSchemaVersion = "7.7.1";
|
16727
16740
|
constructor(config: CommerceLayerInitConfig);
|
16728
16741
|
get addresses(): Addresses;
|
16729
16742
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -1292,10 +1292,10 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
|
|
1292
1292
|
*/
|
1293
1293
|
payment_request_details?: Record<string, any> | null;
|
1294
1294
|
/**
|
1295
|
-
*
|
1296
|
-
* @example ```
|
1295
|
+
* Send this attribute if you want to authorize the payment.
|
1296
|
+
* @example ```true```
|
1297
1297
|
*/
|
1298
|
-
|
1298
|
+
_authorize?: boolean | null;
|
1299
1299
|
/**
|
1300
1300
|
* Send this attribute if you want to send additional details the payment request.
|
1301
1301
|
* @example ```true```
|
@@ -1311,6 +1311,7 @@ declare class AdyenPayments extends ApiResource<AdyenPayment> {
|
|
1311
1311
|
order(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
1312
1312
|
payment_gateway(adyenPaymentId: string | AdyenPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway>;
|
1313
1313
|
versions(adyenPaymentId: string | AdyenPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
1314
|
+
_authorize(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
|
1314
1315
|
_details(id: string | AdyenPayment, params?: QueryParamsRetrieve<AdyenPayment>, options?: ResourcesConfig): Promise<AdyenPayment>;
|
1315
1316
|
isAdyenPayment(resource: any): resource is AdyenPayment;
|
1316
1317
|
relationship(id: string | ResourceId | null): AdyenPaymentRel$3;
|
@@ -10267,7 +10268,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
10267
10268
|
*/
|
10268
10269
|
_nullify_payment_source?: boolean | null;
|
10269
10270
|
/**
|
10270
|
-
* Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready
|
10271
|
+
* Send this attribute if you want to set the payment source associated with the last succeeded authorization. At the end of the fix the order should be placed and authorized and ready to be approved. A tentative to fix the payment source is done before approval automatically. Cannot be passed by sales channels.
|
10271
10272
|
* @example ```true```
|
10272
10273
|
*/
|
10273
10274
|
_fix_payment_source?: boolean | null;
|
@@ -14492,6 +14493,10 @@ interface AdyenGateway extends Resource {
|
|
14492
14493
|
* @example ```true```
|
14493
14494
|
*/
|
14494
14495
|
async_api?: boolean | null;
|
14496
|
+
/**
|
14497
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14498
|
+
*/
|
14499
|
+
partial_payments?: boolean | null;
|
14495
14500
|
/**
|
14496
14501
|
* Indicates if the gateway will use the native customer payment sources.
|
14497
14502
|
* @example ```true```
|
@@ -14547,6 +14552,10 @@ interface AdyenGatewayCreate extends ResourceCreate {
|
|
14547
14552
|
* @example ```true```
|
14548
14553
|
*/
|
14549
14554
|
async_api?: boolean | null;
|
14555
|
+
/**
|
14556
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14557
|
+
*/
|
14558
|
+
partial_payments?: boolean | null;
|
14550
14559
|
/**
|
14551
14560
|
* Indicates if the gateway will use the native customer payment sources.
|
14552
14561
|
* @example ```true```
|
@@ -14595,6 +14604,10 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
|
|
14595
14604
|
* @example ```true```
|
14596
14605
|
*/
|
14597
14606
|
async_api?: boolean | null;
|
14607
|
+
/**
|
14608
|
+
* Send this attribute if you want to enable partial payments for the order.
|
14609
|
+
*/
|
14610
|
+
partial_payments?: boolean | null;
|
14598
14611
|
/**
|
14599
14612
|
* Indicates if the gateway will use the native customer payment sources.
|
14600
14613
|
* @example ```true```
|
@@ -14634,7 +14647,7 @@ interface Application extends Resource {
|
|
14634
14647
|
*/
|
14635
14648
|
name?: string | null;
|
14636
14649
|
/**
|
14637
|
-
* The application's kind. One of '
|
14650
|
+
* The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
|
14638
14651
|
* @example ```"sales-channel"```
|
14639
14652
|
*/
|
14640
14653
|
kind?: 'dashboard' | 'user' | 'metrics' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
|
@@ -16723,7 +16736,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
16723
16736
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
16724
16737
|
declare class CommerceLayerClient {
|
16725
16738
|
#private;
|
16726
|
-
readonly openApiSchemaVersion = "7.7.
|
16739
|
+
readonly openApiSchemaVersion = "7.7.1";
|
16727
16740
|
constructor(config: CommerceLayerInitConfig);
|
16728
16741
|
get addresses(): Addresses;
|
16729
16742
|
get adjustments(): Adjustments;
|