@wix/auto_sdk_ecom_draft-orders 1.0.73 → 1.0.75

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.
@@ -4308,6 +4308,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
4308
4308
  code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
4309
4309
  description?: string;
4310
4310
  data?: Record<string, any>;
4311
+ } | {
4312
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4313
+ description?: string;
4314
+ data?: Record<string, any>;
4311
4315
  };
4312
4316
  /** @docsIgnore */
4313
4317
  type UpdateLineItemsApplicationErrors = {
@@ -4334,6 +4338,10 @@ type UpdateLineItemsApplicationErrors = {
4334
4338
  code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
4335
4339
  description?: string;
4336
4340
  data?: Record<string, any>;
4341
+ } | {
4342
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4343
+ description?: string;
4344
+ data?: Record<string, any>;
4337
4345
  };
4338
4346
  /** @docsIgnore */
4339
4347
  type SetDepositApplicationErrors = {
@@ -4348,6 +4356,10 @@ type SetDepositApplicationErrors = {
4348
4356
  code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
4349
4357
  description?: string;
4350
4358
  data?: Record<string, any>;
4359
+ } | {
4360
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4361
+ description?: string;
4362
+ data?: Record<string, any>;
4351
4363
  };
4352
4364
  /** @docsIgnore */
4353
4365
  type SetDiscountsApplicationErrors = {
@@ -4362,6 +4374,10 @@ type SetDiscountsApplicationErrors = {
4362
4374
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4363
4375
  description?: string;
4364
4376
  data?: Record<string, any>;
4377
+ } | {
4378
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4379
+ description?: string;
4380
+ data?: Record<string, any>;
4365
4381
  };
4366
4382
  /** @docsIgnore */
4367
4383
  type CreateCustomDiscountsApplicationErrors = {
@@ -4384,6 +4400,10 @@ type CreateCustomDiscountsApplicationErrors = {
4384
4400
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4385
4401
  description?: string;
4386
4402
  data?: Record<string, any>;
4403
+ } | {
4404
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4405
+ description?: string;
4406
+ data?: Record<string, any>;
4387
4407
  };
4388
4408
  /** @docsIgnore */
4389
4409
  type DeleteCustomDiscountsApplicationErrors = {
@@ -4398,12 +4418,20 @@ type DeleteCustomDiscountsApplicationErrors = {
4398
4418
  code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
4399
4419
  description?: string;
4400
4420
  data?: Record<string, any>;
4421
+ } | {
4422
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4423
+ description?: string;
4424
+ data?: Record<string, any>;
4401
4425
  };
4402
4426
  /** @docsIgnore */
4403
4427
  type SetAdditionalFeesApplicationErrors = {
4404
4428
  code?: 'ADDITIONAL_FEE_NOT_FOUND';
4405
4429
  description?: string;
4406
4430
  data?: Record<string, any>;
4431
+ } | {
4432
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4433
+ description?: string;
4434
+ data?: Record<string, any>;
4407
4435
  };
4408
4436
  /** @docsIgnore */
4409
4437
  type CreateCustomAdditionalFeesApplicationErrors = {
@@ -4414,6 +4442,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
4414
4442
  code?: 'LINE_ITEM_NOT_FOUND';
4415
4443
  description?: string;
4416
4444
  data?: Record<string, any>;
4445
+ } | {
4446
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4447
+ description?: string;
4448
+ data?: Record<string, any>;
4417
4449
  };
4418
4450
  /** @docsIgnore */
4419
4451
  type DeleteCustomAdditionalFeesApplicationErrors = {
@@ -4428,30 +4460,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
4428
4460
  code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
4429
4461
  description?: string;
4430
4462
  data?: Record<string, any>;
4463
+ } | {
4464
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4465
+ description?: string;
4466
+ data?: Record<string, any>;
4431
4467
  };
4432
4468
  /** @docsIgnore */
4433
4469
  type SetShippingInfoApplicationErrors = {
4434
4470
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4435
4471
  description?: string;
4436
4472
  data?: Record<string, any>;
4473
+ } | {
4474
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4475
+ description?: string;
4476
+ data?: Record<string, any>;
4437
4477
  };
4438
4478
  /** @docsIgnore */
4439
4479
  type SetBuyerInfoApplicationErrors = {
4440
4480
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4441
4481
  description?: string;
4442
4482
  data?: Record<string, any>;
4483
+ } | {
4484
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4485
+ description?: string;
4486
+ data?: Record<string, any>;
4443
4487
  };
4444
4488
  /** @docsIgnore */
4445
4489
  type SetRecipientInfoApplicationErrors = {
4446
4490
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4447
4491
  description?: string;
4448
4492
  data?: Record<string, any>;
4493
+ } | {
4494
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4495
+ description?: string;
4496
+ data?: Record<string, any>;
4449
4497
  };
4450
4498
  /** @docsIgnore */
4451
4499
  type SetBillingInfoApplicationErrors = {
4452
4500
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4453
4501
  description?: string;
4454
4502
  data?: Record<string, any>;
4503
+ } | {
4504
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4505
+ description?: string;
4506
+ data?: Record<string, any>;
4455
4507
  };
4456
4508
  /** @docsIgnore */
4457
4509
  type GetDraftOrderApplicationErrors = {
@@ -4468,6 +4520,10 @@ type CommitDraftOrderApplicationErrors = {
4468
4520
  code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
4469
4521
  description?: string;
4470
4522
  data?: Record<string, any>;
4523
+ } | {
4524
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4525
+ description?: string;
4526
+ data?: Record<string, any>;
4471
4527
  };
4472
4528
  /** @docsIgnore */
4473
4529
  type CreateOrderFromDraftApplicationErrors = {
@@ -4494,12 +4550,20 @@ type UpdateExtendedFieldsApplicationErrors = {
4494
4550
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4495
4551
  description?: string;
4496
4552
  data?: Record<string, any>;
4553
+ } | {
4554
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4555
+ description?: string;
4556
+ data?: Record<string, any>;
4497
4557
  };
4498
4558
  /** @docsIgnore */
4499
4559
  type SetTaxExemptionApplicationErrors = {
4500
4560
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4501
4561
  description?: string;
4502
4562
  data?: Record<string, any>;
4563
+ } | {
4564
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4565
+ description?: string;
4566
+ data?: Record<string, any>;
4503
4567
  };
4504
4568
  /** @docsIgnore */
4505
4569
  type SetBusinessLocationApplicationErrors = {
@@ -4510,6 +4574,10 @@ type SetBusinessLocationApplicationErrors = {
4510
4574
  code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
4511
4575
  description?: string;
4512
4576
  data?: Record<string, any>;
4577
+ } | {
4578
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4579
+ description?: string;
4580
+ data?: Record<string, any>;
4513
4581
  };
4514
4582
 
4515
4583
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {