@commercelayer/sdk 6.20.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;
@@ -15458,6 +15494,11 @@ interface StripeGateway extends Resource {
15458
15494
  * @example ```"US payment gateway"```
15459
15495
  */
15460
15496
  name: string;
15497
+ /**
15498
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15499
+ * @example ```"xxxx-yyyy-zzzz"```
15500
+ */
15501
+ connected_account?: string | null;
15461
15502
  /**
15462
15503
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15463
15504
  * @example ```"true"```
@@ -15498,6 +15539,11 @@ interface StripeGatewayCreate extends ResourceCreate {
15498
15539
  * @example ```"pk_live_xxxx-yyyy-zzzz"```
15499
15540
  */
15500
15541
  publishable_key?: string | null;
15542
+ /**
15543
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15544
+ * @example ```"xxxx-yyyy-zzzz"```
15545
+ */
15546
+ connected_account?: string | null;
15501
15547
  /**
15502
15548
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15503
15549
  * @example ```"true"```
@@ -15510,6 +15556,11 @@ interface StripeGatewayUpdate extends ResourceUpdate {
15510
15556
  * @example ```"US payment gateway"```
15511
15557
  */
15512
15558
  name?: string | null;
15559
+ /**
15560
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15561
+ * @example ```"xxxx-yyyy-zzzz"```
15562
+ */
15563
+ connected_account?: string | null;
15513
15564
  /**
15514
15565
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15515
15566
  * @example ```"true"```
@@ -15855,7 +15906,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15855
15906
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15856
15907
  declare class CommerceLayerClient {
15857
15908
  #private;
15858
- readonly openApiSchemaVersion = "7.2.0";
15909
+ readonly openApiSchemaVersion = "7.2.2";
15859
15910
  constructor(config: CommerceLayerInitConfig);
15860
15911
  get addresses(): Addresses;
15861
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;
@@ -15458,6 +15494,11 @@ interface StripeGateway extends Resource {
15458
15494
  * @example ```"US payment gateway"```
15459
15495
  */
15460
15496
  name: string;
15497
+ /**
15498
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15499
+ * @example ```"xxxx-yyyy-zzzz"```
15500
+ */
15501
+ connected_account?: string | null;
15461
15502
  /**
15462
15503
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15463
15504
  * @example ```"true"```
@@ -15498,6 +15539,11 @@ interface StripeGatewayCreate extends ResourceCreate {
15498
15539
  * @example ```"pk_live_xxxx-yyyy-zzzz"```
15499
15540
  */
15500
15541
  publishable_key?: string | null;
15542
+ /**
15543
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15544
+ * @example ```"xxxx-yyyy-zzzz"```
15545
+ */
15546
+ connected_account?: string | null;
15501
15547
  /**
15502
15548
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15503
15549
  * @example ```"true"```
@@ -15510,6 +15556,11 @@ interface StripeGatewayUpdate extends ResourceUpdate {
15510
15556
  * @example ```"US payment gateway"```
15511
15557
  */
15512
15558
  name?: string | null;
15559
+ /**
15560
+ * The account (if any) for which the funds of the PaymentIntent are intended.
15561
+ * @example ```"xxxx-yyyy-zzzz"```
15562
+ */
15563
+ connected_account?: string | null;
15513
15564
  /**
15514
15565
  * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.
15515
15566
  * @example ```"true"```
@@ -15855,7 +15906,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
15855
15906
  type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
15856
15907
  declare class CommerceLayerClient {
15857
15908
  #private;
15858
- readonly openApiSchemaVersion = "7.2.0";
15909
+ readonly openApiSchemaVersion = "7.2.2";
15859
15910
  constructor(config: CommerceLayerInitConfig);
15860
15911
  get addresses(): Addresses;
15861
15912
  get adjustments(): Adjustments;