@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.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +84 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +84 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +84 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +84 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +84 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +84 -2
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +84 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +84 -2
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1128,8 +1128,15 @@ interface V1ShippingPrice {
|
|
|
1128
1128
|
* @readonly
|
|
1129
1129
|
*/
|
|
1130
1130
|
totalPriceAfterTax?: Price;
|
|
1131
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* Tax details.
|
|
1133
|
+
* @deprecated Tax details.
|
|
1134
|
+
* @replacedBy tax_info
|
|
1135
|
+
* @targetRemovalDate 2026-03-30
|
|
1136
|
+
*/
|
|
1132
1137
|
taxDetails?: ItemTaxFullDetails;
|
|
1138
|
+
/** Represents all the relevant tax details for a shipping. */
|
|
1139
|
+
taxInfo?: LineItemTaxInfo;
|
|
1133
1140
|
/**
|
|
1134
1141
|
* Shipping discount before tax.
|
|
1135
1142
|
* @readonly
|
|
@@ -1215,8 +1222,15 @@ interface AdditionalFee {
|
|
|
1215
1222
|
name?: string;
|
|
1216
1223
|
/** Additional fee's price. */
|
|
1217
1224
|
price?: Price;
|
|
1218
|
-
/**
|
|
1225
|
+
/**
|
|
1226
|
+
* Tax details.
|
|
1227
|
+
* @deprecated Tax details.
|
|
1228
|
+
* @replacedBy tax_info
|
|
1229
|
+
* @targetRemovalDate 2026-03-30
|
|
1230
|
+
*/
|
|
1219
1231
|
taxDetails?: ItemTaxFullDetails;
|
|
1232
|
+
/** Represents all the relevant tax details for additional fee. */
|
|
1233
|
+
taxInfo?: LineItemTaxInfo;
|
|
1220
1234
|
/**
|
|
1221
1235
|
* SPI implementer's `appId`.
|
|
1222
1236
|
* @format GUID
|
|
@@ -4262,6 +4276,10 @@ type AddLineItemsToDraftOrderApplicationErrors = {
|
|
|
4262
4276
|
code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';
|
|
4263
4277
|
description?: string;
|
|
4264
4278
|
data?: Record<string, any>;
|
|
4279
|
+
} | {
|
|
4280
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4281
|
+
description?: string;
|
|
4282
|
+
data?: Record<string, any>;
|
|
4265
4283
|
};
|
|
4266
4284
|
/** @docsIgnore */
|
|
4267
4285
|
type UpdateLineItemsApplicationErrors = {
|
|
@@ -4288,6 +4306,10 @@ type UpdateLineItemsApplicationErrors = {
|
|
|
4288
4306
|
code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';
|
|
4289
4307
|
description?: string;
|
|
4290
4308
|
data?: Record<string, any>;
|
|
4309
|
+
} | {
|
|
4310
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4311
|
+
description?: string;
|
|
4312
|
+
data?: Record<string, any>;
|
|
4291
4313
|
};
|
|
4292
4314
|
/** @docsIgnore */
|
|
4293
4315
|
type SetDepositApplicationErrors = {
|
|
@@ -4302,6 +4324,10 @@ type SetDepositApplicationErrors = {
|
|
|
4302
4324
|
code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';
|
|
4303
4325
|
description?: string;
|
|
4304
4326
|
data?: Record<string, any>;
|
|
4327
|
+
} | {
|
|
4328
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4329
|
+
description?: string;
|
|
4330
|
+
data?: Record<string, any>;
|
|
4305
4331
|
};
|
|
4306
4332
|
/** @docsIgnore */
|
|
4307
4333
|
type SetDiscountsApplicationErrors = {
|
|
@@ -4316,6 +4342,10 @@ type SetDiscountsApplicationErrors = {
|
|
|
4316
4342
|
code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
|
|
4317
4343
|
description?: string;
|
|
4318
4344
|
data?: Record<string, any>;
|
|
4345
|
+
} | {
|
|
4346
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4347
|
+
description?: string;
|
|
4348
|
+
data?: Record<string, any>;
|
|
4319
4349
|
};
|
|
4320
4350
|
/** @docsIgnore */
|
|
4321
4351
|
type CreateCustomDiscountsApplicationErrors = {
|
|
@@ -4338,6 +4368,10 @@ type CreateCustomDiscountsApplicationErrors = {
|
|
|
4338
4368
|
code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';
|
|
4339
4369
|
description?: string;
|
|
4340
4370
|
data?: Record<string, any>;
|
|
4371
|
+
} | {
|
|
4372
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4373
|
+
description?: string;
|
|
4374
|
+
data?: Record<string, any>;
|
|
4341
4375
|
};
|
|
4342
4376
|
/** @docsIgnore */
|
|
4343
4377
|
type DeleteCustomDiscountsApplicationErrors = {
|
|
@@ -4352,12 +4386,20 @@ type DeleteCustomDiscountsApplicationErrors = {
|
|
|
4352
4386
|
code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';
|
|
4353
4387
|
description?: string;
|
|
4354
4388
|
data?: Record<string, any>;
|
|
4389
|
+
} | {
|
|
4390
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4391
|
+
description?: string;
|
|
4392
|
+
data?: Record<string, any>;
|
|
4355
4393
|
};
|
|
4356
4394
|
/** @docsIgnore */
|
|
4357
4395
|
type SetAdditionalFeesApplicationErrors = {
|
|
4358
4396
|
code?: 'ADDITIONAL_FEE_NOT_FOUND';
|
|
4359
4397
|
description?: string;
|
|
4360
4398
|
data?: Record<string, any>;
|
|
4399
|
+
} | {
|
|
4400
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4401
|
+
description?: string;
|
|
4402
|
+
data?: Record<string, any>;
|
|
4361
4403
|
};
|
|
4362
4404
|
/** @docsIgnore */
|
|
4363
4405
|
type CreateCustomAdditionalFeesApplicationErrors = {
|
|
@@ -4368,6 +4410,10 @@ type CreateCustomAdditionalFeesApplicationErrors = {
|
|
|
4368
4410
|
code?: 'LINE_ITEM_NOT_FOUND';
|
|
4369
4411
|
description?: string;
|
|
4370
4412
|
data?: Record<string, any>;
|
|
4413
|
+
} | {
|
|
4414
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4415
|
+
description?: string;
|
|
4416
|
+
data?: Record<string, any>;
|
|
4371
4417
|
};
|
|
4372
4418
|
/** @docsIgnore */
|
|
4373
4419
|
type DeleteCustomAdditionalFeesApplicationErrors = {
|
|
@@ -4382,30 +4428,50 @@ type DeleteCustomAdditionalFeesApplicationErrors = {
|
|
|
4382
4428
|
code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';
|
|
4383
4429
|
description?: string;
|
|
4384
4430
|
data?: Record<string, any>;
|
|
4431
|
+
} | {
|
|
4432
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4433
|
+
description?: string;
|
|
4434
|
+
data?: Record<string, any>;
|
|
4385
4435
|
};
|
|
4386
4436
|
/** @docsIgnore */
|
|
4387
4437
|
type SetShippingInfoApplicationErrors = {
|
|
4388
4438
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4389
4439
|
description?: string;
|
|
4390
4440
|
data?: Record<string, any>;
|
|
4441
|
+
} | {
|
|
4442
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4443
|
+
description?: string;
|
|
4444
|
+
data?: Record<string, any>;
|
|
4391
4445
|
};
|
|
4392
4446
|
/** @docsIgnore */
|
|
4393
4447
|
type SetBuyerInfoApplicationErrors = {
|
|
4394
4448
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4395
4449
|
description?: string;
|
|
4396
4450
|
data?: Record<string, any>;
|
|
4451
|
+
} | {
|
|
4452
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4453
|
+
description?: string;
|
|
4454
|
+
data?: Record<string, any>;
|
|
4397
4455
|
};
|
|
4398
4456
|
/** @docsIgnore */
|
|
4399
4457
|
type SetRecipientInfoApplicationErrors = {
|
|
4400
4458
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4401
4459
|
description?: string;
|
|
4402
4460
|
data?: Record<string, any>;
|
|
4461
|
+
} | {
|
|
4462
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4463
|
+
description?: string;
|
|
4464
|
+
data?: Record<string, any>;
|
|
4403
4465
|
};
|
|
4404
4466
|
/** @docsIgnore */
|
|
4405
4467
|
type SetBillingInfoApplicationErrors = {
|
|
4406
4468
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4407
4469
|
description?: string;
|
|
4408
4470
|
data?: Record<string, any>;
|
|
4471
|
+
} | {
|
|
4472
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4473
|
+
description?: string;
|
|
4474
|
+
data?: Record<string, any>;
|
|
4409
4475
|
};
|
|
4410
4476
|
/** @docsIgnore */
|
|
4411
4477
|
type GetDraftOrderApplicationErrors = {
|
|
@@ -4422,6 +4488,10 @@ type CommitDraftOrderApplicationErrors = {
|
|
|
4422
4488
|
code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';
|
|
4423
4489
|
description?: string;
|
|
4424
4490
|
data?: Record<string, any>;
|
|
4491
|
+
} | {
|
|
4492
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4493
|
+
description?: string;
|
|
4494
|
+
data?: Record<string, any>;
|
|
4425
4495
|
};
|
|
4426
4496
|
/** @docsIgnore */
|
|
4427
4497
|
type CreateOrderFromDraftApplicationErrors = {
|
|
@@ -4448,12 +4518,20 @@ type UpdateExtendedFieldsApplicationErrors = {
|
|
|
4448
4518
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4449
4519
|
description?: string;
|
|
4450
4520
|
data?: Record<string, any>;
|
|
4521
|
+
} | {
|
|
4522
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4523
|
+
description?: string;
|
|
4524
|
+
data?: Record<string, any>;
|
|
4451
4525
|
};
|
|
4452
4526
|
/** @docsIgnore */
|
|
4453
4527
|
type SetTaxExemptionApplicationErrors = {
|
|
4454
4528
|
code?: 'DRAFT_ORDER_DOES_NOT_EXIST';
|
|
4455
4529
|
description?: string;
|
|
4456
4530
|
data?: Record<string, any>;
|
|
4531
|
+
} | {
|
|
4532
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4533
|
+
description?: string;
|
|
4534
|
+
data?: Record<string, any>;
|
|
4457
4535
|
};
|
|
4458
4536
|
/** @docsIgnore */
|
|
4459
4537
|
type SetBusinessLocationApplicationErrors = {
|
|
@@ -4464,6 +4542,10 @@ type SetBusinessLocationApplicationErrors = {
|
|
|
4464
4542
|
code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';
|
|
4465
4543
|
description?: string;
|
|
4466
4544
|
data?: Record<string, any>;
|
|
4545
|
+
} | {
|
|
4546
|
+
code?: 'DRAFT_ORDER_ALREADY_COMMITTED';
|
|
4547
|
+
description?: string;
|
|
4548
|
+
data?: Record<string, any>;
|
|
4467
4549
|
};
|
|
4468
4550
|
interface BaseEventMetadata {
|
|
4469
4551
|
/**
|