@wix/auto_sdk_ecom_draft-orders 1.0.145 → 1.0.146
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 +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -13
- package/build/cjs/index.typings.js +6 -6
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +13 -13
- package/build/cjs/meta.js +6 -6
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +6 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -13
- package/build/es/index.typings.mjs +6 -6
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +13 -13
- package/build/es/meta.mjs +6 -6
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +6 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +19 -13
- package/build/internal/cjs/index.typings.js +6 -6
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +13 -13
- package/build/internal/cjs/meta.js +6 -6
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +6 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +19 -13
- package/build/internal/es/index.typings.mjs +6 -6
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +13 -13
- package/build/internal/es/meta.mjs +6 -6
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -159,6 +159,12 @@ interface DraftOrder {
|
|
|
159
159
|
depositDetails?: DepositDetails;
|
|
160
160
|
/** Summary of platform fees for this draft order, including totals by charge type and a breakdown of individual fees. */
|
|
161
161
|
platformFeeSummary?: PlatformFeeSummary;
|
|
162
|
+
/**
|
|
163
|
+
* New global coupons calculation logic.
|
|
164
|
+
* Indicates which calculation is used for coupons with type `SPECIFIC_ITEMS`.
|
|
165
|
+
* @internal
|
|
166
|
+
*/
|
|
167
|
+
specificItemsCouponBehavior?: SpecificItemsCouponBehaviorWithLiterals;
|
|
162
168
|
}
|
|
163
169
|
interface ItemDetails extends ItemDetailsChangeTypeOneOf {
|
|
164
170
|
/** Whether the line item was added as part of the draft. */
|
|
@@ -2094,6 +2100,19 @@ declare enum ChargeType {
|
|
|
2094
2100
|
}
|
|
2095
2101
|
/** @enumType */
|
|
2096
2102
|
type ChargeTypeWithLiterals = ChargeType | 'PASS_ON' | 'ABSORBED';
|
|
2103
|
+
declare enum SpecificItemsCouponBehavior {
|
|
2104
|
+
/** Coupon calculation behavior was not specified. */
|
|
2105
|
+
UNDEFINED_COUPON_BEHAVIOR = "UNDEFINED_COUPON_BEHAVIOR",
|
|
2106
|
+
/** Item subtotal includes coupon discount. */
|
|
2107
|
+
ITEM_SUBTOTAL_INCLUDES_DISCOUNT = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT",
|
|
2108
|
+
/**
|
|
2109
|
+
* Legacy flow.
|
|
2110
|
+
* Discount is applied as to specific items after subtotal calculation.
|
|
2111
|
+
*/
|
|
2112
|
+
LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"
|
|
2113
|
+
}
|
|
2114
|
+
/** @enumType */
|
|
2115
|
+
type SpecificItemsCouponBehaviorWithLiterals = SpecificItemsCouponBehavior | 'UNDEFINED_COUPON_BEHAVIOR' | 'ITEM_SUBTOTAL_INCLUDES_DISCOUNT' | 'LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT';
|
|
2097
2116
|
interface CreateDraftOrderRequest extends CreateDraftOrderRequestSourceOneOf {
|
|
2098
2117
|
/**
|
|
2099
2118
|
* ID of the order to create a draft for.
|
|
@@ -4717,19 +4736,6 @@ interface OwnerApps {
|
|
|
4717
4736
|
*/
|
|
4718
4737
|
appIds?: string[];
|
|
4719
4738
|
}
|
|
4720
|
-
declare enum SpecificItemsCouponBehavior {
|
|
4721
|
-
/** Coupon calculation behavior was not specified. */
|
|
4722
|
-
UNDEFINED_COUPON_BEHAVIOR = "UNDEFINED_COUPON_BEHAVIOR",
|
|
4723
|
-
/** Item subtotal includes coupon discount. */
|
|
4724
|
-
ITEM_SUBTOTAL_INCLUDES_DISCOUNT = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT",
|
|
4725
|
-
/**
|
|
4726
|
-
* Legacy flow.
|
|
4727
|
-
* Discount is applied as to specific items after subtotal calculation.
|
|
4728
|
-
*/
|
|
4729
|
-
LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"
|
|
4730
|
-
}
|
|
4731
|
-
/** @enumType */
|
|
4732
|
-
type SpecificItemsCouponBehaviorWithLiterals = SpecificItemsCouponBehavior | 'UNDEFINED_COUPON_BEHAVIOR' | 'ITEM_SUBTOTAL_INCLUDES_DISCOUNT' | 'LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT';
|
|
4733
4739
|
interface FormInfo {
|
|
4734
4740
|
/**
|
|
4735
4741
|
* The identifier of the form schema.
|
|
@@ -3360,6 +3360,12 @@ var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
|
3360
3360
|
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
3361
3361
|
return ChargeType2;
|
|
3362
3362
|
})(ChargeType || {});
|
|
3363
|
+
var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2) => {
|
|
3364
|
+
SpecificItemsCouponBehavior2["UNDEFINED_COUPON_BEHAVIOR"] = "UNDEFINED_COUPON_BEHAVIOR";
|
|
3365
|
+
SpecificItemsCouponBehavior2["ITEM_SUBTOTAL_INCLUDES_DISCOUNT"] = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT";
|
|
3366
|
+
SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
|
|
3367
|
+
return SpecificItemsCouponBehavior2;
|
|
3368
|
+
})(SpecificItemsCouponBehavior || {});
|
|
3363
3369
|
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
3364
3370
|
FileType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
3365
3371
|
FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
|
|
@@ -3574,12 +3580,6 @@ var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
|
|
|
3574
3580
|
OrderActionType2["MODIFY_INVENTORY"] = "MODIFY_INVENTORY";
|
|
3575
3581
|
return OrderActionType2;
|
|
3576
3582
|
})(OrderActionType || {});
|
|
3577
|
-
var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2) => {
|
|
3578
|
-
SpecificItemsCouponBehavior2["UNDEFINED_COUPON_BEHAVIOR"] = "UNDEFINED_COUPON_BEHAVIOR";
|
|
3579
|
-
SpecificItemsCouponBehavior2["ITEM_SUBTOTAL_INCLUDES_DISCOUNT"] = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT";
|
|
3580
|
-
SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
|
|
3581
|
-
return SpecificItemsCouponBehavior2;
|
|
3582
|
-
})(SpecificItemsCouponBehavior || {});
|
|
3583
3583
|
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
3584
3584
|
OrderStatus2["UNKNOWN_ORDER_STATUS"] = "UNKNOWN_ORDER_STATUS";
|
|
3585
3585
|
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|