@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.
@@ -1152,8 +1152,15 @@ interface V1ShippingPrice {
1152
1152
  * @readonly
1153
1153
  */
1154
1154
  totalPriceAfterTax?: Price;
1155
- /** Tax details. */
1155
+ /**
1156
+ * Tax details.
1157
+ * @deprecated Tax details.
1158
+ * @replacedBy tax_info
1159
+ * @targetRemovalDate 2026-03-30
1160
+ */
1156
1161
  taxDetails?: ItemTaxFullDetails;
1162
+ /** Represents all the relevant tax details for a shipping. */
1163
+ taxInfo?: LineItemTaxInfo;
1157
1164
  /**
1158
1165
  * Shipping discount before tax.
1159
1166
  * @readonly
@@ -1239,8 +1246,15 @@ interface AdditionalFee {
1239
1246
  name?: string;
1240
1247
  /** Additional fee's price. */
1241
1248
  price?: Price;
1242
- /** Tax details. */
1249
+ /**
1250
+ * Tax details.
1251
+ * @deprecated Tax details.
1252
+ * @replacedBy tax_info
1253
+ * @targetRemovalDate 2026-03-30
1254
+ */
1243
1255
  taxDetails?: ItemTaxFullDetails;
1256
+ /** Represents all the relevant tax details for additional fee. */
1257
+ taxInfo?: LineItemTaxInfo;
1244
1258
  /**
1245
1259
  * SPI implementer's `appId`.
1246
1260
  * @format GUID
@@ -4294,6 +4308,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
4294
4308
  code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
4295
4309
  description?: string;
4296
4310
  data?: Record<string, any>;
4311
+ } | {
4312
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4313
+ description?: string;
4314
+ data?: Record<string, any>;
4297
4315
  };
4298
4316
  /** @docsIgnore */
4299
4317
  type UpdateLineItemsApplicationErrors = {
@@ -4320,6 +4338,10 @@ type UpdateLineItemsApplicationErrors = {
4320
4338
  code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
4321
4339
  description?: string;
4322
4340
  data?: Record<string, any>;
4341
+ } | {
4342
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4343
+ description?: string;
4344
+ data?: Record<string, any>;
4323
4345
  };
4324
4346
  /** @docsIgnore */
4325
4347
  type SetDepositApplicationErrors = {
@@ -4334,6 +4356,10 @@ type SetDepositApplicationErrors = {
4334
4356
  code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
4335
4357
  description?: string;
4336
4358
  data?: Record<string, any>;
4359
+ } | {
4360
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4361
+ description?: string;
4362
+ data?: Record<string, any>;
4337
4363
  };
4338
4364
  /** @docsIgnore */
4339
4365
  type SetDiscountsApplicationErrors = {
@@ -4348,6 +4374,10 @@ type SetDiscountsApplicationErrors = {
4348
4374
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4349
4375
  description?: string;
4350
4376
  data?: Record<string, any>;
4377
+ } | {
4378
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4379
+ description?: string;
4380
+ data?: Record<string, any>;
4351
4381
  };
4352
4382
  /** @docsIgnore */
4353
4383
  type CreateCustomDiscountsApplicationErrors = {
@@ -4370,6 +4400,10 @@ type CreateCustomDiscountsApplicationErrors = {
4370
4400
  code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
4371
4401
  description?: string;
4372
4402
  data?: Record<string, any>;
4403
+ } | {
4404
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4405
+ description?: string;
4406
+ data?: Record<string, any>;
4373
4407
  };
4374
4408
  /** @docsIgnore */
4375
4409
  type DeleteCustomDiscountsApplicationErrors = {
@@ -4384,12 +4418,20 @@ type DeleteCustomDiscountsApplicationErrors = {
4384
4418
  code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
4385
4419
  description?: string;
4386
4420
  data?: Record<string, any>;
4421
+ } | {
4422
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4423
+ description?: string;
4424
+ data?: Record<string, any>;
4387
4425
  };
4388
4426
  /** @docsIgnore */
4389
4427
  type SetAdditionalFeesApplicationErrors = {
4390
4428
  code?: 'ADDITIONAL_FEE_NOT_FOUND';
4391
4429
  description?: string;
4392
4430
  data?: Record<string, any>;
4431
+ } | {
4432
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4433
+ description?: string;
4434
+ data?: Record<string, any>;
4393
4435
  };
4394
4436
  /** @docsIgnore */
4395
4437
  type CreateCustomAdditionalFeesApplicationErrors = {
@@ -4400,6 +4442,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
4400
4442
  code?: 'LINE_ITEM_NOT_FOUND';
4401
4443
  description?: string;
4402
4444
  data?: Record<string, any>;
4445
+ } | {
4446
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4447
+ description?: string;
4448
+ data?: Record<string, any>;
4403
4449
  };
4404
4450
  /** @docsIgnore */
4405
4451
  type DeleteCustomAdditionalFeesApplicationErrors = {
@@ -4414,30 +4460,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
4414
4460
  code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
4415
4461
  description?: string;
4416
4462
  data?: Record<string, any>;
4463
+ } | {
4464
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4465
+ description?: string;
4466
+ data?: Record<string, any>;
4417
4467
  };
4418
4468
  /** @docsIgnore */
4419
4469
  type SetShippingInfoApplicationErrors = {
4420
4470
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4421
4471
  description?: string;
4422
4472
  data?: Record<string, any>;
4473
+ } | {
4474
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4475
+ description?: string;
4476
+ data?: Record<string, any>;
4423
4477
  };
4424
4478
  /** @docsIgnore */
4425
4479
  type SetBuyerInfoApplicationErrors = {
4426
4480
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4427
4481
  description?: string;
4428
4482
  data?: Record<string, any>;
4483
+ } | {
4484
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4485
+ description?: string;
4486
+ data?: Record<string, any>;
4429
4487
  };
4430
4488
  /** @docsIgnore */
4431
4489
  type SetRecipientInfoApplicationErrors = {
4432
4490
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4433
4491
  description?: string;
4434
4492
  data?: Record<string, any>;
4493
+ } | {
4494
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4495
+ description?: string;
4496
+ data?: Record<string, any>;
4435
4497
  };
4436
4498
  /** @docsIgnore */
4437
4499
  type SetBillingInfoApplicationErrors = {
4438
4500
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4439
4501
  description?: string;
4440
4502
  data?: Record<string, any>;
4503
+ } | {
4504
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4505
+ description?: string;
4506
+ data?: Record<string, any>;
4441
4507
  };
4442
4508
  /** @docsIgnore */
4443
4509
  type GetDraftOrderApplicationErrors = {
@@ -4454,6 +4520,10 @@ type CommitDraftOrderApplicationErrors = {
4454
4520
  code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
4455
4521
  description?: string;
4456
4522
  data?: Record<string, any>;
4523
+ } | {
4524
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4525
+ description?: string;
4526
+ data?: Record<string, any>;
4457
4527
  };
4458
4528
  /** @docsIgnore */
4459
4529
  type CreateOrderFromDraftApplicationErrors = {
@@ -4480,12 +4550,20 @@ type UpdateExtendedFieldsApplicationErrors = {
4480
4550
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4481
4551
  description?: string;
4482
4552
  data?: Record<string, any>;
4553
+ } | {
4554
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4555
+ description?: string;
4556
+ data?: Record<string, any>;
4483
4557
  };
4484
4558
  /** @docsIgnore */
4485
4559
  type SetTaxExemptionApplicationErrors = {
4486
4560
  code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
4487
4561
  description?: string;
4488
4562
  data?: Record<string, any>;
4563
+ } | {
4564
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4565
+ description?: string;
4566
+ data?: Record<string, any>;
4489
4567
  };
4490
4568
  /** @docsIgnore */
4491
4569
  type SetBusinessLocationApplicationErrors = {
@@ -4496,6 +4574,10 @@ type SetBusinessLocationApplicationErrors = {
4496
4574
  code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
4497
4575
  description?: string;
4498
4576
  data?: Record<string, any>;
4577
+ } | {
4578
+ code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
4579
+ description?: string;
4580
+ data?: Record<string, any>;
4499
4581
  };
4500
4582
 
4501
4583
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {