@wix/auto_sdk_ecom_draft-orders 1.0.72 → 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.
@@ -1201,8 +1201,15 @@ interface V1ShippingPrice {
1201
1201
  * @readonly
1202
1202
  */
1203
1203
  totalPriceAfterTax?: Price;
1204
- /** Tax details. */
1204
+ /**
1205
+ * Tax details.
1206
+ * @deprecated Tax details.
1207
+ * @replacedBy tax_info
1208
+ * @targetRemovalDate 2026-03-30
1209
+ */
1205
1210
  taxDetails?: ItemTaxFullDetails;
1211
+ /** Represents all the relevant tax details for a shipping. */
1212
+ taxInfo?: LineItemTaxInfo;
1206
1213
  /**
1207
1214
  * Shipping discount before tax.
1208
1215
  * @readonly
@@ -1288,8 +1295,15 @@ interface AdditionalFee {
1288
1295
  name?: string;
1289
1296
  /** Additional fee's price. */
1290
1297
  price?: Price;
1291
- /** Tax details. */
1298
+ /**
1299
+ * Tax details.
1300
+ * @deprecated Tax details.
1301
+ * @replacedBy tax_info
1302
+ * @targetRemovalDate 2026-03-30
1303
+ */
1292
1304
  taxDetails?: ItemTaxFullDetails;
1305
+ /** Represents all the relevant tax details for additional fee. */
1306
+ taxInfo?: LineItemTaxInfo;
1293
1307
  /**
1294
1308
  * SPI implementer's `appId`.
1295
1309
  * @format GUID
@@ -4449,6 +4463,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
4449
4463
  code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
4450
4464
  description?: string;
4451
4465
  data?: Record<string, any>;
4466
+ } | {
4467
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4468
+ description?: string;
4469
+ data?: Record<string, any>;
4452
4470
  };
4453
4471
  /** @docsIgnore */
4454
4472
  type UpdateLineItemsApplicationErrors = {
@@ -4475,6 +4493,10 @@ type UpdateLineItemsApplicationErrors = {
4475
4493
  code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
4476
4494
  description?: string;
4477
4495
  data?: Record<string, any>;
4496
+ } | {
4497
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4498
+ description?: string;
4499
+ data?: Record<string, any>;
4478
4500
  };
4479
4501
  /** @docsIgnore */
4480
4502
  type SetDepositApplicationErrors = {
@@ -4489,6 +4511,10 @@ type SetDepositApplicationErrors = {
4489
4511
  code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
4490
4512
  description?: string;
4491
4513
  data?: Record<string, any>;
4514
+ } | {
4515
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4516
+ description?: string;
4517
+ data?: Record<string, any>;
4492
4518
  };
4493
4519
  /** @docsIgnore */
4494
4520
  type SetDiscountsApplicationErrors = {
@@ -4503,6 +4529,10 @@ type SetDiscountsApplicationErrors = {
4503
4529
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4504
4530
  description?: string;
4505
4531
  data?: Record<string, any>;
4532
+ } | {
4533
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4534
+ description?: string;
4535
+ data?: Record<string, any>;
4506
4536
  };
4507
4537
  /** @docsIgnore */
4508
4538
  type CreateCustomDiscountsApplicationErrors = {
@@ -4525,6 +4555,10 @@ type CreateCustomDiscountsApplicationErrors = {
4525
4555
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4526
4556
  description?: string;
4527
4557
  data?: Record<string, any>;
4558
+ } | {
4559
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4560
+ description?: string;
4561
+ data?: Record<string, any>;
4528
4562
  };
4529
4563
  /** @docsIgnore */
4530
4564
  type DeleteCustomDiscountsApplicationErrors = {
@@ -4539,12 +4573,20 @@ type DeleteCustomDiscountsApplicationErrors = {
4539
4573
  code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
4540
4574
  description?: string;
4541
4575
  data?: Record<string, any>;
4576
+ } | {
4577
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4578
+ description?: string;
4579
+ data?: Record<string, any>;
4542
4580
  };
4543
4581
  /** @docsIgnore */
4544
4582
  type SetAdditionalFeesApplicationErrors = {
4545
4583
  code?: 'ADDITIONAL_FEE_NOT_FOUND';
4546
4584
  description?: string;
4547
4585
  data?: Record<string, any>;
4586
+ } | {
4587
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4588
+ description?: string;
4589
+ data?: Record<string, any>;
4548
4590
  };
4549
4591
  /** @docsIgnore */
4550
4592
  type CreateCustomAdditionalFeesApplicationErrors = {
@@ -4555,6 +4597,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
4555
4597
  code?: 'LINE_ITEM_NOT_FOUND';
4556
4598
  description?: string;
4557
4599
  data?: Record<string, any>;
4600
+ } | {
4601
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4602
+ description?: string;
4603
+ data?: Record<string, any>;
4558
4604
  };
4559
4605
  /** @docsIgnore */
4560
4606
  type DeleteCustomAdditionalFeesApplicationErrors = {
@@ -4569,30 +4615,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
4569
4615
  code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
4570
4616
  description?: string;
4571
4617
  data?: Record<string, any>;
4618
+ } | {
4619
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4620
+ description?: string;
4621
+ data?: Record<string, any>;
4572
4622
  };
4573
4623
  /** @docsIgnore */
4574
4624
  type SetShippingInfoApplicationErrors = {
4575
4625
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4576
4626
  description?: string;
4577
4627
  data?: Record<string, any>;
4628
+ } | {
4629
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4630
+ description?: string;
4631
+ data?: Record<string, any>;
4578
4632
  };
4579
4633
  /** @docsIgnore */
4580
4634
  type SetBuyerInfoApplicationErrors = {
4581
4635
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4582
4636
  description?: string;
4583
4637
  data?: Record<string, any>;
4638
+ } | {
4639
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4640
+ description?: string;
4641
+ data?: Record<string, any>;
4584
4642
  };
4585
4643
  /** @docsIgnore */
4586
4644
  type SetRecipientInfoApplicationErrors = {
4587
4645
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4588
4646
  description?: string;
4589
4647
  data?: Record<string, any>;
4648
+ } | {
4649
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4650
+ description?: string;
4651
+ data?: Record<string, any>;
4590
4652
  };
4591
4653
  /** @docsIgnore */
4592
4654
  type SetBillingInfoApplicationErrors = {
4593
4655
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4594
4656
  description?: string;
4595
4657
  data?: Record<string, any>;
4658
+ } | {
4659
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4660
+ description?: string;
4661
+ data?: Record<string, any>;
4596
4662
  };
4597
4663
  /** @docsIgnore */
4598
4664
  type GetDraftOrderApplicationErrors = {
@@ -4609,6 +4675,10 @@ type CommitDraftOrderApplicationErrors = {
4609
4675
  code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
4610
4676
  description?: string;
4611
4677
  data?: Record<string, any>;
4678
+ } | {
4679
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4680
+ description?: string;
4681
+ data?: Record<string, any>;
4612
4682
  };
4613
4683
  /** @docsIgnore */
4614
4684
  type CreateOrderFromDraftApplicationErrors = {
@@ -4635,12 +4705,20 @@ type UpdateExtendedFieldsApplicationErrors = {
4635
4705
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4636
4706
  description?: string;
4637
4707
  data?: Record<string, any>;
4708
+ } | {
4709
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4710
+ description?: string;
4711
+ data?: Record<string, any>;
4638
4712
  };
4639
4713
  /** @docsIgnore */
4640
4714
  type SetTaxExemptionApplicationErrors = {
4641
4715
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4642
4716
  description?: string;
4643
4717
  data?: Record<string, any>;
4718
+ } | {
4719
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4720
+ description?: string;
4721
+ data?: Record<string, any>;
4644
4722
  };
4645
4723
  /** @docsIgnore */
4646
4724
  type SetBusinessLocationApplicationErrors = {
@@ -4651,6 +4729,10 @@ type SetBusinessLocationApplicationErrors = {
4651
4729
  code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
4652
4730
  description?: string;
4653
4731
  data?: Record<string, any>;
4732
+ } | {
4733
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4734
+ description?: string;
4735
+ data?: Record<string, any>;
4654
4736
  };
4655
4737
  interface BaseEventMetadata {
4656
4738
  /**