@commercelayer/sdk 6.30.0 → 6.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +24 -6
- package/lib/index.d.ts +24 -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;
|
@@ -15965,6 +15978,11 @@ interface Organization extends Resource {
|
|
15965
15978
|
* @example ```true```
|
15966
15979
|
*/
|
15967
15980
|
orders_number_as_reference?: boolean | null;
|
15981
|
+
/**
|
15982
|
+
* Enables raising of API errors in case the provided coupon code is invalid, default is true.
|
15983
|
+
* @example ```true```
|
15984
|
+
*/
|
15985
|
+
orders_invalid_coupon_errors?: boolean | null;
|
15968
15986
|
/**
|
15969
15987
|
* The maximum number of SKUs allowed for bundles, default is 10.
|
15970
15988
|
* @example ```10```
|
@@ -16723,7 +16741,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
16723
16741
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
16724
16742
|
declare class CommerceLayerClient {
|
16725
16743
|
#private;
|
16726
|
-
readonly openApiSchemaVersion = "7.7.
|
16744
|
+
readonly openApiSchemaVersion = "7.7.2";
|
16727
16745
|
constructor(config: CommerceLayerInitConfig);
|
16728
16746
|
get addresses(): Addresses;
|
16729
16747
|
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;
|
@@ -15965,6 +15978,11 @@ interface Organization extends Resource {
|
|
15965
15978
|
* @example ```true```
|
15966
15979
|
*/
|
15967
15980
|
orders_number_as_reference?: boolean | null;
|
15981
|
+
/**
|
15982
|
+
* Enables raising of API errors in case the provided coupon code is invalid, default is true.
|
15983
|
+
* @example ```true```
|
15984
|
+
*/
|
15985
|
+
orders_invalid_coupon_errors?: boolean | null;
|
15968
15986
|
/**
|
15969
15987
|
* The maximum number of SKUs allowed for bundles, default is 10.
|
15970
15988
|
* @example ```10```
|
@@ -16723,7 +16741,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
16723
16741
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
16724
16742
|
declare class CommerceLayerClient {
|
16725
16743
|
#private;
|
16726
|
-
readonly openApiSchemaVersion = "7.7.
|
16744
|
+
readonly openApiSchemaVersion = "7.7.2";
|
16727
16745
|
constructor(config: CommerceLayerInitConfig);
|
16728
16746
|
get addresses(): Addresses;
|
16729
16747
|
get adjustments(): Adjustments;
|