@wix/auto_sdk_ecom_draft-orders 1.0.73 → 1.0.74

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.
@@ -4276,6 +4276,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
4276
4276
  code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
4277
4277
  description?: string;
4278
4278
  data?: Record<string, any>;
4279
+ } | {
4280
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4281
+ description?: string;
4282
+ data?: Record<string, any>;
4279
4283
  };
4280
4284
  /** @docsIgnore */
4281
4285
  type UpdateLineItemsApplicationErrors = {
@@ -4302,6 +4306,10 @@ type UpdateLineItemsApplicationErrors = {
4302
4306
  code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
4303
4307
  description?: string;
4304
4308
  data?: Record<string, any>;
4309
+ } | {
4310
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4311
+ description?: string;
4312
+ data?: Record<string, any>;
4305
4313
  };
4306
4314
  /** @docsIgnore */
4307
4315
  type SetDepositApplicationErrors = {
@@ -4316,6 +4324,10 @@ type SetDepositApplicationErrors = {
4316
4324
  code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
4317
4325
  description?: string;
4318
4326
  data?: Record<string, any>;
4327
+ } | {
4328
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4329
+ description?: string;
4330
+ data?: Record<string, any>;
4319
4331
  };
4320
4332
  /** @docsIgnore */
4321
4333
  type SetDiscountsApplicationErrors = {
@@ -4330,6 +4342,10 @@ type SetDiscountsApplicationErrors = {
4330
4342
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4331
4343
  description?: string;
4332
4344
  data?: Record<string, any>;
4345
+ } | {
4346
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4347
+ description?: string;
4348
+ data?: Record<string, any>;
4333
4349
  };
4334
4350
  /** @docsIgnore */
4335
4351
  type CreateCustomDiscountsApplicationErrors = {
@@ -4352,6 +4368,10 @@ type CreateCustomDiscountsApplicationErrors = {
4352
4368
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4353
4369
  description?: string;
4354
4370
  data?: Record<string, any>;
4371
+ } | {
4372
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4373
+ description?: string;
4374
+ data?: Record<string, any>;
4355
4375
  };
4356
4376
  /** @docsIgnore */
4357
4377
  type DeleteCustomDiscountsApplicationErrors = {
@@ -4366,12 +4386,20 @@ type DeleteCustomDiscountsApplicationErrors = {
4366
4386
  code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
4367
4387
  description?: string;
4368
4388
  data?: Record<string, any>;
4389
+ } | {
4390
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4391
+ description?: string;
4392
+ data?: Record<string, any>;
4369
4393
  };
4370
4394
  /** @docsIgnore */
4371
4395
  type SetAdditionalFeesApplicationErrors = {
4372
4396
  code?: 'ADDITIONAL_FEE_NOT_FOUND';
4373
4397
  description?: string;
4374
4398
  data?: Record<string, any>;
4399
+ } | {
4400
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4401
+ description?: string;
4402
+ data?: Record<string, any>;
4375
4403
  };
4376
4404
  /** @docsIgnore */
4377
4405
  type CreateCustomAdditionalFeesApplicationErrors = {
@@ -4382,6 +4410,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
4382
4410
  code?: 'LINE_ITEM_NOT_FOUND';
4383
4411
  description?: string;
4384
4412
  data?: Record<string, any>;
4413
+ } | {
4414
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4415
+ description?: string;
4416
+ data?: Record<string, any>;
4385
4417
  };
4386
4418
  /** @docsIgnore */
4387
4419
  type DeleteCustomAdditionalFeesApplicationErrors = {
@@ -4396,30 +4428,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
4396
4428
  code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
4397
4429
  description?: string;
4398
4430
  data?: Record<string, any>;
4431
+ } | {
4432
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4433
+ description?: string;
4434
+ data?: Record<string, any>;
4399
4435
  };
4400
4436
  /** @docsIgnore */
4401
4437
  type SetShippingInfoApplicationErrors = {
4402
4438
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4403
4439
  description?: string;
4404
4440
  data?: Record<string, any>;
4441
+ } | {
4442
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4443
+ description?: string;
4444
+ data?: Record<string, any>;
4405
4445
  };
4406
4446
  /** @docsIgnore */
4407
4447
  type SetBuyerInfoApplicationErrors = {
4408
4448
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4409
4449
  description?: string;
4410
4450
  data?: Record<string, any>;
4451
+ } | {
4452
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4453
+ description?: string;
4454
+ data?: Record<string, any>;
4411
4455
  };
4412
4456
  /** @docsIgnore */
4413
4457
  type SetRecipientInfoApplicationErrors = {
4414
4458
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4415
4459
  description?: string;
4416
4460
  data?: Record<string, any>;
4461
+ } | {
4462
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4463
+ description?: string;
4464
+ data?: Record<string, any>;
4417
4465
  };
4418
4466
  /** @docsIgnore */
4419
4467
  type SetBillingInfoApplicationErrors = {
4420
4468
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4421
4469
  description?: string;
4422
4470
  data?: Record<string, any>;
4471
+ } | {
4472
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4473
+ description?: string;
4474
+ data?: Record<string, any>;
4423
4475
  };
4424
4476
  /** @docsIgnore */
4425
4477
  type GetDraftOrderApplicationErrors = {
@@ -4436,6 +4488,10 @@ type CommitDraftOrderApplicationErrors = {
4436
4488
  code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
4437
4489
  description?: string;
4438
4490
  data?: Record<string, any>;
4491
+ } | {
4492
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4493
+ description?: string;
4494
+ data?: Record<string, any>;
4439
4495
  };
4440
4496
  /** @docsIgnore */
4441
4497
  type CreateOrderFromDraftApplicationErrors = {
@@ -4462,12 +4518,20 @@ type UpdateExtendedFieldsApplicationErrors = {
4462
4518
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4463
4519
  description?: string;
4464
4520
  data?: Record<string, any>;
4521
+ } | {
4522
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4523
+ description?: string;
4524
+ data?: Record<string, any>;
4465
4525
  };
4466
4526
  /** @docsIgnore */
4467
4527
  type SetTaxExemptionApplicationErrors = {
4468
4528
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4469
4529
  description?: string;
4470
4530
  data?: Record<string, any>;
4531
+ } | {
4532
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4533
+ description?: string;
4534
+ data?: Record<string, any>;
4471
4535
  };
4472
4536
  /** @docsIgnore */
4473
4537
  type SetBusinessLocationApplicationErrors = {
@@ -4478,6 +4542,10 @@ type SetBusinessLocationApplicationErrors = {
4478
4542
  code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
4479
4543
  description?: string;
4480
4544
  data?: Record<string, any>;
4545
+ } | {
4546
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4547
+ description?: string;
4548
+ data?: Record<string, any>;
4481
4549
  };
4482
4550
  interface BaseEventMetadata {
4483
4551
  /**