@commercelayer/sdk 6.13.0 → 6.14.1

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
@@ -12099,6 +12099,7 @@ interface AvalaraAccount extends Resource {
12099
12099
  attachments?: Attachment[] | null;
12100
12100
  versions?: Version[] | null;
12101
12101
  tax_categories?: TaxCategory[] | null;
12102
+ events?: Event[] | null;
12102
12103
  }
12103
12104
  interface AvalaraAccountCreate extends ResourceCreate {
12104
12105
  /**
@@ -12175,6 +12176,7 @@ declare class AvalaraAccounts extends ApiResource<AvalaraAccount> {
12175
12176
  attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
12176
12177
  versions(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
12177
12178
  tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<TaxCategory>, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
12179
+ events(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
12178
12180
  isAvalaraAccount(resource: any): resource is AvalaraAccount;
12179
12181
  relationship(id: string | ResourceId | null): AvalaraAccountRel$2;
12180
12182
  relationshipToMany(...ids: string[]): AvalaraAccountRel$2[];
@@ -12964,6 +12966,11 @@ interface Market extends Resource {
12964
12966
  * @example ```"true"```
12965
12967
  */
12966
12968
  private?: boolean | null;
12969
+ /**
12970
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
12971
+ * @example ```"3"```
12972
+ */
12973
+ shipping_cost_cutoff?: number | null;
12967
12974
  /**
12968
12975
  * Time at which this resource was disabled.
12969
12976
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13016,6 +13023,11 @@ interface MarketCreate extends ResourceCreate {
13016
13023
  * @example ```"https://external_validation.yourbrand.com"```
13017
13024
  */
13018
13025
  external_order_validation_url?: string | null;
13026
+ /**
13027
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
13028
+ * @example ```"3"```
13029
+ */
13030
+ shipping_cost_cutoff?: number | null;
13019
13031
  /**
13020
13032
  * Send this attribute if you want to mark this resource as disabled.
13021
13033
  * @example ```"true"```
@@ -13065,6 +13077,11 @@ interface MarketUpdate extends ResourceUpdate {
13065
13077
  * @example ```"https://external_validation.yourbrand.com"```
13066
13078
  */
13067
13079
  external_order_validation_url?: string | null;
13080
+ /**
13081
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
13082
+ * @example ```"3"```
13083
+ */
13084
+ shipping_cost_cutoff?: number | null;
13068
13085
  /**
13069
13086
  * Send this attribute if you want to mark this resource as disabled.
13070
13087
  * @example ```"true"```
@@ -14878,33 +14895,63 @@ interface Organization extends Resource {
14878
14895
  */
14879
14896
  gtm_id_test?: string | null;
14880
14897
  /**
14881
- * The maximum number of active concurrent promotions allowed for your organization.
14898
+ * Indicates if the phone attribute is required for addresses, default is true.
14899
+ * @example ```"true"```
14900
+ */
14901
+ addresses_phone_required?: boolean | null;
14902
+ /**
14903
+ * The maximum number of SKUs allowed for bundles, default is 10.
14882
14904
  * @example ```"10"```
14883
14905
  */
14884
- max_concurrent_promotions?: number | null;
14906
+ bundles_max_items_count?: number | null;
14885
14907
  /**
14886
- * The maximum number of concurrent imports allowed for your organization.
14908
+ * The minimum length for coupon code, default is 8.
14909
+ * @example ```"8"```
14910
+ */
14911
+ coupons_min_code_length?: number | null;
14912
+ /**
14913
+ * The maximum length for coupon code, default is 40.
14914
+ * @example ```"40"```
14915
+ */
14916
+ coupons_max_code_length?: number | null;
14917
+ /**
14918
+ * The maximum number of active concurrent promotions allowed for your organization, default is 10.
14919
+ * @example ```"10"```
14920
+ */
14921
+ promotions_max_concurrent_count?: number | null;
14922
+ /**
14923
+ * The maximum number of concurrent imports allowed for your organization, default is 10.
14887
14924
  * @example ```"10"```
14888
14925
  */
14889
- max_concurrent_imports?: number | null;
14926
+ imports_max_concurrent_count?: number | null;
14890
14927
  /**
14891
- * The maximum number of concurrent exports allowed for your organization.
14928
+ * The maximum number of concurrent exports allowed for your organization, default is 10.
14892
14929
  * @example ```"10"```
14893
14930
  */
14894
- max_concurrent_exports?: number | null;
14931
+ exports_max_concurrent_count?: number | null;
14895
14932
  /**
14896
- * The maximum number of concurrent cleanups allowed for your organization.
14933
+ * The maximum number of concurrent cleanups allowed for your organization, default is 10.
14897
14934
  * @example ```"10"```
14898
14935
  */
14899
- max_concurrent_cleanups?: number | null;
14936
+ cleanups_max_concurrent_count?: number | null;
14900
14937
  /**
14901
14938
  * Enables orders number editing as a string in test (for enterprise plans only).
14902
14939
  */
14903
- order_number_editable_test?: boolean | null;
14940
+ orders_number_editable_test?: boolean | null;
14904
14941
  /**
14905
14942
  * Enables orders number editing as a string in live (for enterprise plans only).
14906
14943
  */
14907
- order_number_editable_live?: boolean | null;
14944
+ orders_number_editable_live?: boolean | null;
14945
+ /**
14946
+ * Enables raising of API errors in case of tax calculation failure, default is false.
14947
+ * @example ```"true"```
14948
+ */
14949
+ tax_calculators_errors?: boolean | null;
14950
+ /**
14951
+ * Enables raising of API errors in case of external promotion failure, default is false.
14952
+ * @example ```"true"```
14953
+ */
14954
+ external_promotions_errors?: boolean | null;
14908
14955
  /**
14909
14956
  * The organization's configuration.
14910
14957
  * @example ```"[object Object]"```
@@ -15459,7 +15506,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15459
15506
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15460
15507
  declare class CommerceLayerClient {
15461
15508
  #private;
15462
- readonly openApiSchemaVersion = "6.2.1";
15509
+ readonly openApiSchemaVersion = "6.3.0";
15463
15510
  constructor(config: CommerceLayerInitConfig);
15464
15511
  get addresses(): Addresses;
15465
15512
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -12099,6 +12099,7 @@ interface AvalaraAccount extends Resource {
12099
12099
  attachments?: Attachment[] | null;
12100
12100
  versions?: Version[] | null;
12101
12101
  tax_categories?: TaxCategory[] | null;
12102
+ events?: Event[] | null;
12102
12103
  }
12103
12104
  interface AvalaraAccountCreate extends ResourceCreate {
12104
12105
  /**
@@ -12175,6 +12176,7 @@ declare class AvalaraAccounts extends ApiResource<AvalaraAccount> {
12175
12176
  attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
12176
12177
  versions(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
12177
12178
  tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<TaxCategory>, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
12179
+ events(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>>;
12178
12180
  isAvalaraAccount(resource: any): resource is AvalaraAccount;
12179
12181
  relationship(id: string | ResourceId | null): AvalaraAccountRel$2;
12180
12182
  relationshipToMany(...ids: string[]): AvalaraAccountRel$2[];
@@ -12964,6 +12966,11 @@ interface Market extends Resource {
12964
12966
  * @example ```"true"```
12965
12967
  */
12966
12968
  private?: boolean | null;
12969
+ /**
12970
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
12971
+ * @example ```"3"```
12972
+ */
12973
+ shipping_cost_cutoff?: number | null;
12967
12974
  /**
12968
12975
  * Time at which this resource was disabled.
12969
12976
  * @example ```"2018-01-01T12:00:00.000Z"```
@@ -13016,6 +13023,11 @@ interface MarketCreate extends ResourceCreate {
13016
13023
  * @example ```"https://external_validation.yourbrand.com"```
13017
13024
  */
13018
13025
  external_order_validation_url?: string | null;
13026
+ /**
13027
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
13028
+ * @example ```"3"```
13029
+ */
13030
+ shipping_cost_cutoff?: number | null;
13019
13031
  /**
13020
13032
  * Send this attribute if you want to mark this resource as disabled.
13021
13033
  * @example ```"true"```
@@ -13065,6 +13077,11 @@ interface MarketUpdate extends ResourceUpdate {
13065
13077
  * @example ```"https://external_validation.yourbrand.com"```
13066
13078
  */
13067
13079
  external_order_validation_url?: string | null;
13080
+ /**
13081
+ * When specified indicates the maximum number of shipping line items with cost that will be added to an order.
13082
+ * @example ```"3"```
13083
+ */
13084
+ shipping_cost_cutoff?: number | null;
13068
13085
  /**
13069
13086
  * Send this attribute if you want to mark this resource as disabled.
13070
13087
  * @example ```"true"```
@@ -14878,33 +14895,63 @@ interface Organization extends Resource {
14878
14895
  */
14879
14896
  gtm_id_test?: string | null;
14880
14897
  /**
14881
- * The maximum number of active concurrent promotions allowed for your organization.
14898
+ * Indicates if the phone attribute is required for addresses, default is true.
14899
+ * @example ```"true"```
14900
+ */
14901
+ addresses_phone_required?: boolean | null;
14902
+ /**
14903
+ * The maximum number of SKUs allowed for bundles, default is 10.
14882
14904
  * @example ```"10"```
14883
14905
  */
14884
- max_concurrent_promotions?: number | null;
14906
+ bundles_max_items_count?: number | null;
14885
14907
  /**
14886
- * The maximum number of concurrent imports allowed for your organization.
14908
+ * The minimum length for coupon code, default is 8.
14909
+ * @example ```"8"```
14910
+ */
14911
+ coupons_min_code_length?: number | null;
14912
+ /**
14913
+ * The maximum length for coupon code, default is 40.
14914
+ * @example ```"40"```
14915
+ */
14916
+ coupons_max_code_length?: number | null;
14917
+ /**
14918
+ * The maximum number of active concurrent promotions allowed for your organization, default is 10.
14919
+ * @example ```"10"```
14920
+ */
14921
+ promotions_max_concurrent_count?: number | null;
14922
+ /**
14923
+ * The maximum number of concurrent imports allowed for your organization, default is 10.
14887
14924
  * @example ```"10"```
14888
14925
  */
14889
- max_concurrent_imports?: number | null;
14926
+ imports_max_concurrent_count?: number | null;
14890
14927
  /**
14891
- * The maximum number of concurrent exports allowed for your organization.
14928
+ * The maximum number of concurrent exports allowed for your organization, default is 10.
14892
14929
  * @example ```"10"```
14893
14930
  */
14894
- max_concurrent_exports?: number | null;
14931
+ exports_max_concurrent_count?: number | null;
14895
14932
  /**
14896
- * The maximum number of concurrent cleanups allowed for your organization.
14933
+ * The maximum number of concurrent cleanups allowed for your organization, default is 10.
14897
14934
  * @example ```"10"```
14898
14935
  */
14899
- max_concurrent_cleanups?: number | null;
14936
+ cleanups_max_concurrent_count?: number | null;
14900
14937
  /**
14901
14938
  * Enables orders number editing as a string in test (for enterprise plans only).
14902
14939
  */
14903
- order_number_editable_test?: boolean | null;
14940
+ orders_number_editable_test?: boolean | null;
14904
14941
  /**
14905
14942
  * Enables orders number editing as a string in live (for enterprise plans only).
14906
14943
  */
14907
- order_number_editable_live?: boolean | null;
14944
+ orders_number_editable_live?: boolean | null;
14945
+ /**
14946
+ * Enables raising of API errors in case of tax calculation failure, default is false.
14947
+ * @example ```"true"```
14948
+ */
14949
+ tax_calculators_errors?: boolean | null;
14950
+ /**
14951
+ * Enables raising of API errors in case of external promotion failure, default is false.
14952
+ * @example ```"true"```
14953
+ */
14954
+ external_promotions_errors?: boolean | null;
14908
14955
  /**
14909
14956
  * The organization's configuration.
14910
14957
  * @example ```"[object Object]"```
@@ -15459,7 +15506,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15459
15506
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15460
15507
  declare class CommerceLayerClient {
15461
15508
  #private;
15462
- readonly openApiSchemaVersion = "6.2.1";
15509
+ readonly openApiSchemaVersion = "6.3.0";
15463
15510
  constructor(config: CommerceLayerInitConfig);
15464
15511
  get addresses(): Addresses;
15465
15512
  get adjustments(): Adjustments;