@commercelayer/sdk 6.56.0 → 6.57.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 +8 -2
- package/lib/index.d.ts +8 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +2 -2
package/lib/index.d.mts
CHANGED
|
@@ -10946,6 +10946,11 @@ interface OrderUpdate extends ResourceUpdate {
|
|
|
10946
10946
|
* @example ```true```
|
|
10947
10947
|
*/
|
|
10948
10948
|
_refresh?: boolean | null;
|
|
10949
|
+
/**
|
|
10950
|
+
* Send this attribute if you want to refresh the prices of the line items associated to this order. Cannot be passed by sales channels.
|
|
10951
|
+
* @example ```true```
|
|
10952
|
+
*/
|
|
10953
|
+
_refresh_prices?: boolean | null;
|
|
10949
10954
|
/**
|
|
10950
10955
|
* Send this attribute if you want to trigger the external validation for the order.
|
|
10951
10956
|
* @example ```true```
|
|
@@ -11067,6 +11072,7 @@ declare class Orders extends ApiResource<Order> {
|
|
|
11067
11072
|
_save_shipping_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11068
11073
|
_save_billing_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11069
11074
|
_refresh(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11075
|
+
_refresh_prices(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11070
11076
|
_validate(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11071
11077
|
_create_subscriptions(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11072
11078
|
_start_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
@@ -15554,7 +15560,7 @@ interface Application extends Resource {
|
|
|
15554
15560
|
* The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
|
|
15555
15561
|
* @example ```"sales-channel"```
|
|
15556
15562
|
*/
|
|
15557
|
-
kind?: 'dashboard' | 'user' | '
|
|
15563
|
+
kind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
|
|
15558
15564
|
/**
|
|
15559
15565
|
* Indicates if the application has public access.
|
|
15560
15566
|
* @example ```true```
|
|
@@ -18265,7 +18271,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
|
18265
18271
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
18266
18272
|
declare class CommerceLayerClient {
|
|
18267
18273
|
#private;
|
|
18268
|
-
readonly openApiSchemaVersion = "7.9.
|
|
18274
|
+
readonly openApiSchemaVersion = "7.9.16";
|
|
18269
18275
|
constructor(config: CommerceLayerInitConfig);
|
|
18270
18276
|
get addresses(): Addresses;
|
|
18271
18277
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
|
@@ -10946,6 +10946,11 @@ interface OrderUpdate extends ResourceUpdate {
|
|
|
10946
10946
|
* @example ```true```
|
|
10947
10947
|
*/
|
|
10948
10948
|
_refresh?: boolean | null;
|
|
10949
|
+
/**
|
|
10950
|
+
* Send this attribute if you want to refresh the prices of the line items associated to this order. Cannot be passed by sales channels.
|
|
10951
|
+
* @example ```true```
|
|
10952
|
+
*/
|
|
10953
|
+
_refresh_prices?: boolean | null;
|
|
10949
10954
|
/**
|
|
10950
10955
|
* Send this attribute if you want to trigger the external validation for the order.
|
|
10951
10956
|
* @example ```true```
|
|
@@ -11067,6 +11072,7 @@ declare class Orders extends ApiResource<Order> {
|
|
|
11067
11072
|
_save_shipping_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11068
11073
|
_save_billing_address_to_customer_address_book(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11069
11074
|
_refresh(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11075
|
+
_refresh_prices(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11070
11076
|
_validate(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11071
11077
|
_create_subscriptions(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
11072
11078
|
_start_editing(id: string | Order, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order>;
|
|
@@ -15554,7 +15560,7 @@ interface Application extends Resource {
|
|
|
15554
15560
|
* The application's kind. One of 'sales_channel', 'integration', or 'webapp'.
|
|
15555
15561
|
* @example ```"sales-channel"```
|
|
15556
15562
|
*/
|
|
15557
|
-
kind?: 'dashboard' | 'user' | '
|
|
15563
|
+
kind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null;
|
|
15558
15564
|
/**
|
|
15559
15565
|
* Indicates if the application has public access.
|
|
15560
15566
|
* @example ```true```
|
|
@@ -18265,7 +18271,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
|
18265
18271
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
18266
18272
|
declare class CommerceLayerClient {
|
|
18267
18273
|
#private;
|
|
18268
|
-
readonly openApiSchemaVersion = "7.9.
|
|
18274
|
+
readonly openApiSchemaVersion = "7.9.16";
|
|
18269
18275
|
constructor(config: CommerceLayerInitConfig);
|
|
18270
18276
|
get addresses(): Addresses;
|
|
18271
18277
|
get adjustments(): Adjustments;
|