@commercelayer/sdk 6.48.0 → 6.49.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 CHANGED
@@ -8774,6 +8774,11 @@ interface LineItemCreate extends ResourceCreate {
8774
8774
  * @example ```true```
8775
8775
  */
8776
8776
  _reserve_stock?: boolean | null;
8777
+ /**
8778
+ * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.
8779
+ * @example ```true```
8780
+ */
8781
+ _reset_restocked_quantity?: boolean | null;
8777
8782
  /**
8778
8783
  * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
8779
8784
  * @example ```10000```
@@ -8834,6 +8839,11 @@ interface LineItemUpdate extends ResourceUpdate {
8834
8839
  * @example ```true```
8835
8840
  */
8836
8841
  _reserve_stock?: boolean | null;
8842
+ /**
8843
+ * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.
8844
+ * @example ```true```
8845
+ */
8846
+ _reset_restocked_quantity?: boolean | null;
8837
8847
  /**
8838
8848
  * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
8839
8849
  * @example ```10000```
@@ -8896,6 +8906,7 @@ declare class LineItems extends ApiResource<LineItem> {
8896
8906
  event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
8897
8907
  _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8898
8908
  _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8909
+ _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8899
8910
  _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8900
8911
  _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8901
8912
  _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
@@ -16728,6 +16739,11 @@ interface Organization extends Resource {
16728
16739
  * @example ```5000```
16729
16740
  */
16730
16741
  api_max_regex_length?: number | null;
16742
+ /**
16743
+ * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true.
16744
+ * @example ```true```
16745
+ */
16746
+ addresses_avs_check?: boolean | null;
16731
16747
  /**
16732
16748
  * Indicates if the phone attribute is required for addresses, default is true.
16733
16749
  * @example ```true```
@@ -16779,6 +16795,10 @@ interface Organization extends Resource {
16779
16795
  * @example ```true```
16780
16796
  */
16781
16797
  orders_invalid_gift_card_errors?: boolean | null;
16798
+ /**
16799
+ * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false.
16800
+ */
16801
+ orders_validate_shipping_stock?: boolean | null;
16782
16802
  /**
16783
16803
  * The maximum number of SKUs allowed for bundles, default is 10.
16784
16804
  * @example ```10```
@@ -16892,6 +16912,11 @@ interface Organization extends Resource {
16892
16912
  * Enables raising of API errors in case of external promotion failure, default is false.
16893
16913
  */
16894
16914
  external_promotions_errors?: boolean | null;
16915
+ /**
16916
+ * Enables raising of API errors in case of external price failure, default is true.
16917
+ * @example ```true```
16918
+ */
16919
+ external_prices_errors?: boolean | null;
16895
16920
  event_stores?: EventStore[] | null;
16896
16921
  }
16897
16922
  declare class Organizations extends ApiSingleton<Organization> {
@@ -17585,7 +17610,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17585
17610
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17586
17611
  declare class CommerceLayerClient {
17587
17612
  #private;
17588
- readonly openApiSchemaVersion = "7.9.6";
17613
+ readonly openApiSchemaVersion = "7.9.8";
17589
17614
  constructor(config: CommerceLayerInitConfig);
17590
17615
  get addresses(): Addresses;
17591
17616
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -8774,6 +8774,11 @@ interface LineItemCreate extends ResourceCreate {
8774
8774
  * @example ```true```
8775
8775
  */
8776
8776
  _reserve_stock?: boolean | null;
8777
+ /**
8778
+ * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.
8779
+ * @example ```true```
8780
+ */
8781
+ _reset_restocked_quantity?: boolean | null;
8777
8782
  /**
8778
8783
  * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
8779
8784
  * @example ```10000```
@@ -8834,6 +8839,11 @@ interface LineItemUpdate extends ResourceUpdate {
8834
8839
  * @example ```true```
8835
8840
  */
8836
8841
  _reserve_stock?: boolean | null;
8842
+ /**
8843
+ * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.
8844
+ * @example ```true```
8845
+ */
8846
+ _reset_restocked_quantity?: boolean | null;
8837
8847
  /**
8838
8848
  * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.
8839
8849
  * @example ```10000```
@@ -8896,6 +8906,7 @@ declare class LineItems extends ApiResource<LineItem> {
8896
8906
  event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>>;
8897
8907
  _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8898
8908
  _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8909
+ _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8899
8910
  _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8900
8911
  _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
8901
8912
  _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem>;
@@ -16728,6 +16739,11 @@ interface Organization extends Resource {
16728
16739
  * @example ```5000```
16729
16740
  */
16730
16741
  api_max_regex_length?: number | null;
16742
+ /**
16743
+ * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true.
16744
+ * @example ```true```
16745
+ */
16746
+ addresses_avs_check?: boolean | null;
16731
16747
  /**
16732
16748
  * Indicates if the phone attribute is required for addresses, default is true.
16733
16749
  * @example ```true```
@@ -16779,6 +16795,10 @@ interface Organization extends Resource {
16779
16795
  * @example ```true```
16780
16796
  */
16781
16797
  orders_invalid_gift_card_errors?: boolean | null;
16798
+ /**
16799
+ * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false.
16800
+ */
16801
+ orders_validate_shipping_stock?: boolean | null;
16782
16802
  /**
16783
16803
  * The maximum number of SKUs allowed for bundles, default is 10.
16784
16804
  * @example ```10```
@@ -16892,6 +16912,11 @@ interface Organization extends Resource {
16892
16912
  * Enables raising of API errors in case of external promotion failure, default is false.
16893
16913
  */
16894
16914
  external_promotions_errors?: boolean | null;
16915
+ /**
16916
+ * Enables raising of API errors in case of external price failure, default is true.
16917
+ * @example ```true```
16918
+ */
16919
+ external_prices_errors?: boolean | null;
16895
16920
  event_stores?: EventStore[] | null;
16896
16921
  }
16897
16922
  declare class Organizations extends ApiSingleton<Organization> {
@@ -17585,7 +17610,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
17585
17610
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
17586
17611
  declare class CommerceLayerClient {
17587
17612
  #private;
17588
- readonly openApiSchemaVersion = "7.9.6";
17613
+ readonly openApiSchemaVersion = "7.9.8";
17589
17614
  constructor(config: CommerceLayerInitConfig);
17590
17615
  get addresses(): Addresses;
17591
17616
  get adjustments(): Adjustments;