@commercelayer/sdk 6.21.0 → 6.22.0

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.d.mts CHANGED
@@ -15241,11 +15241,48 @@ interface Organization extends Resource {
15241
15241
  * @example ```"GTM-5FJXX7"```
15242
15242
  */
15243
15243
  gtm_id_test?: string | null;
15244
+ /**
15245
+ * The organization's configuration.
15246
+ * @example ```"[object Object]"```
15247
+ */
15248
+ config?: Record<string, any> | null;
15249
+ /**
15250
+ * Enables the redirect on the new Auth API.
15251
+ * @example ```"true"```
15252
+ */
15253
+ api_auth_redirect?: boolean | null;
15254
+ /**
15255
+ * Enables the rules engine for flex promotions and sku list rules.
15256
+ */
15257
+ api_rules_engine?: boolean | null;
15244
15258
  /**
15245
15259
  * Indicates if the phone attribute is required for addresses, default is true.
15246
15260
  * @example ```"true"```
15247
15261
  */
15248
15262
  addresses_phone_required?: boolean | null;
15263
+ /**
15264
+ * The maximum number line items allowed for a test order before disabling the autorefresh option.
15265
+ * @example ```"50"```
15266
+ */
15267
+ orders_autorefresh_cutoff_test?: number | null;
15268
+ /**
15269
+ * The maximum number line items allowed for a live order before disabling the autorefresh option.
15270
+ * @example ```"500"```
15271
+ */
15272
+ orders_autorefresh_cutoff_live?: number | null;
15273
+ /**
15274
+ * Enables orders number editing as a string in test (for enterprise plans only).
15275
+ */
15276
+ orders_number_editable_test?: boolean | null;
15277
+ /**
15278
+ * Enables orders number editing as a string in live (for enterprise plans only).
15279
+ */
15280
+ orders_number_editable_live?: boolean | null;
15281
+ /**
15282
+ * Enables to use the order number as payment reference on supported gateways.
15283
+ * @example ```"true"```
15284
+ */
15285
+ orders_number_as_reference?: boolean | null;
15249
15286
  /**
15250
15287
  * The maximum number of SKUs allowed for bundles, default is 10.
15251
15288
  * @example ```"10"```
@@ -15262,48 +15299,47 @@ interface Organization extends Resource {
15262
15299
  */
15263
15300
  coupons_max_code_length?: number | null;
15264
15301
  /**
15265
- * The maximum number of active concurrent promotions allowed for your organization, default is 10.
15266
- * @example ```"10"```
15302
+ * The minimum length for gift card code, default is 8.
15303
+ * @example ```"8"```
15267
15304
  */
15268
- promotions_max_concurrent_count?: number | null;
15305
+ gift_cards_min_code_length?: number | null;
15269
15306
  /**
15270
- * The maximum number of concurrent imports allowed for your organization, default is 10.
15307
+ * The maximum length for gift card code, default is 40.
15308
+ * @example ```"40"```
15309
+ */
15310
+ gift_cards_max_code_length?: number | null;
15311
+ /**
15312
+ * The maximum number of concurrent cleanups allowed for your organization, default is 10.
15271
15313
  * @example ```"10"```
15272
15314
  */
15273
- imports_max_concurrent_count?: number | null;
15315
+ cleanups_max_concurrent_count?: number | null;
15274
15316
  /**
15275
15317
  * The maximum number of concurrent exports allowed for your organization, default is 10.
15276
15318
  * @example ```"10"```
15277
15319
  */
15278
15320
  exports_max_concurrent_count?: number | null;
15279
15321
  /**
15280
- * The maximum number of concurrent cleanups allowed for your organization, default is 10.
15322
+ * The maximum number of concurrent imports allowed for your organization, default is 10.
15281
15323
  * @example ```"10"```
15282
15324
  */
15283
- cleanups_max_concurrent_count?: number | null;
15325
+ imports_max_concurrent_count?: number | null;
15284
15326
  /**
15285
- * Enables orders number editing as a string in test (for enterprise plans only).
15327
+ * The maximum number of active concurrent promotions allowed for your organization, default is 10.
15328
+ * @example ```"10"```
15286
15329
  */
15287
- orders_number_editable_test?: boolean | null;
15330
+ promotions_max_concurrent_count?: number | null;
15288
15331
  /**
15289
- * Enables orders number editing as a string in live (for enterprise plans only).
15332
+ * Enables triggering of webhooks during imports, default is false.
15290
15333
  */
15291
- orders_number_editable_live?: boolean | null;
15334
+ imports_trigger_webhooks?: number | null;
15292
15335
  /**
15293
15336
  * Enables raising of API errors in case of tax calculation failure, default is false.
15294
- * @example ```"true"```
15295
15337
  */
15296
15338
  tax_calculators_errors?: boolean | null;
15297
15339
  /**
15298
15340
  * Enables raising of API errors in case of external promotion failure, default is false.
15299
- * @example ```"true"```
15300
15341
  */
15301
15342
  external_promotions_errors?: boolean | null;
15302
- /**
15303
- * The organization's configuration.
15304
- * @example ```"[object Object]"```
15305
- */
15306
- config?: Record<string, any> | null;
15307
15343
  }
15308
15344
  declare class Organizations extends ApiSingleton<Organization> {
15309
15345
  static readonly TYPE: OrganizationType;
@@ -15870,7 +15906,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15870
15906
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15871
15907
  declare class CommerceLayerClient {
15872
15908
  #private;
15873
- readonly openApiSchemaVersion = "7.2.1";
15909
+ readonly openApiSchemaVersion = "7.2.2";
15874
15910
  constructor(config: CommerceLayerInitConfig);
15875
15911
  get addresses(): Addresses;
15876
15912
  get adjustments(): Adjustments;
package/lib/index.d.ts CHANGED
@@ -15241,11 +15241,48 @@ interface Organization extends Resource {
15241
15241
  * @example ```"GTM-5FJXX7"```
15242
15242
  */
15243
15243
  gtm_id_test?: string | null;
15244
+ /**
15245
+ * The organization's configuration.
15246
+ * @example ```"[object Object]"```
15247
+ */
15248
+ config?: Record<string, any> | null;
15249
+ /**
15250
+ * Enables the redirect on the new Auth API.
15251
+ * @example ```"true"```
15252
+ */
15253
+ api_auth_redirect?: boolean | null;
15254
+ /**
15255
+ * Enables the rules engine for flex promotions and sku list rules.
15256
+ */
15257
+ api_rules_engine?: boolean | null;
15244
15258
  /**
15245
15259
  * Indicates if the phone attribute is required for addresses, default is true.
15246
15260
  * @example ```"true"```
15247
15261
  */
15248
15262
  addresses_phone_required?: boolean | null;
15263
+ /**
15264
+ * The maximum number line items allowed for a test order before disabling the autorefresh option.
15265
+ * @example ```"50"```
15266
+ */
15267
+ orders_autorefresh_cutoff_test?: number | null;
15268
+ /**
15269
+ * The maximum number line items allowed for a live order before disabling the autorefresh option.
15270
+ * @example ```"500"```
15271
+ */
15272
+ orders_autorefresh_cutoff_live?: number | null;
15273
+ /**
15274
+ * Enables orders number editing as a string in test (for enterprise plans only).
15275
+ */
15276
+ orders_number_editable_test?: boolean | null;
15277
+ /**
15278
+ * Enables orders number editing as a string in live (for enterprise plans only).
15279
+ */
15280
+ orders_number_editable_live?: boolean | null;
15281
+ /**
15282
+ * Enables to use the order number as payment reference on supported gateways.
15283
+ * @example ```"true"```
15284
+ */
15285
+ orders_number_as_reference?: boolean | null;
15249
15286
  /**
15250
15287
  * The maximum number of SKUs allowed for bundles, default is 10.
15251
15288
  * @example ```"10"```
@@ -15262,48 +15299,47 @@ interface Organization extends Resource {
15262
15299
  */
15263
15300
  coupons_max_code_length?: number | null;
15264
15301
  /**
15265
- * The maximum number of active concurrent promotions allowed for your organization, default is 10.
15266
- * @example ```"10"```
15302
+ * The minimum length for gift card code, default is 8.
15303
+ * @example ```"8"```
15267
15304
  */
15268
- promotions_max_concurrent_count?: number | null;
15305
+ gift_cards_min_code_length?: number | null;
15269
15306
  /**
15270
- * The maximum number of concurrent imports allowed for your organization, default is 10.
15307
+ * The maximum length for gift card code, default is 40.
15308
+ * @example ```"40"```
15309
+ */
15310
+ gift_cards_max_code_length?: number | null;
15311
+ /**
15312
+ * The maximum number of concurrent cleanups allowed for your organization, default is 10.
15271
15313
  * @example ```"10"```
15272
15314
  */
15273
- imports_max_concurrent_count?: number | null;
15315
+ cleanups_max_concurrent_count?: number | null;
15274
15316
  /**
15275
15317
  * The maximum number of concurrent exports allowed for your organization, default is 10.
15276
15318
  * @example ```"10"```
15277
15319
  */
15278
15320
  exports_max_concurrent_count?: number | null;
15279
15321
  /**
15280
- * The maximum number of concurrent cleanups allowed for your organization, default is 10.
15322
+ * The maximum number of concurrent imports allowed for your organization, default is 10.
15281
15323
  * @example ```"10"```
15282
15324
  */
15283
- cleanups_max_concurrent_count?: number | null;
15325
+ imports_max_concurrent_count?: number | null;
15284
15326
  /**
15285
- * Enables orders number editing as a string in test (for enterprise plans only).
15327
+ * The maximum number of active concurrent promotions allowed for your organization, default is 10.
15328
+ * @example ```"10"```
15286
15329
  */
15287
- orders_number_editable_test?: boolean | null;
15330
+ promotions_max_concurrent_count?: number | null;
15288
15331
  /**
15289
- * Enables orders number editing as a string in live (for enterprise plans only).
15332
+ * Enables triggering of webhooks during imports, default is false.
15290
15333
  */
15291
- orders_number_editable_live?: boolean | null;
15334
+ imports_trigger_webhooks?: number | null;
15292
15335
  /**
15293
15336
  * Enables raising of API errors in case of tax calculation failure, default is false.
15294
- * @example ```"true"```
15295
15337
  */
15296
15338
  tax_calculators_errors?: boolean | null;
15297
15339
  /**
15298
15340
  * Enables raising of API errors in case of external promotion failure, default is false.
15299
- * @example ```"true"```
15300
15341
  */
15301
15342
  external_promotions_errors?: boolean | null;
15302
- /**
15303
- * The organization's configuration.
15304
- * @example ```"[object Object]"```
15305
- */
15306
- config?: Record<string, any> | null;
15307
15343
  }
15308
15344
  declare class Organizations extends ApiSingleton<Organization> {
15309
15345
  static readonly TYPE: OrganizationType;
@@ -15870,7 +15906,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15870
15906
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15871
15907
  declare class CommerceLayerClient {
15872
15908
  #private;
15873
- readonly openApiSchemaVersion = "7.2.1";
15909
+ readonly openApiSchemaVersion = "7.2.2";
15874
15910
  constructor(config: CommerceLayerInitConfig);
15875
15911
  get addresses(): Addresses;
15876
15912
  get adjustments(): Adjustments;