@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.
|
|
@@ -3443,6 +3443,12 @@ var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
|
3443
3443
|
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
3444
3444
|
return ChargeType2;
|
|
3445
3445
|
})(ChargeType || {});
|
|
3446
|
+
var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2) => {
|
|
3447
|
+
SpecificItemsCouponBehavior2["UNDEFINED_COUPON_BEHAVIOR"] = "UNDEFINED_COUPON_BEHAVIOR";
|
|
3448
|
+
SpecificItemsCouponBehavior2["ITEM_SUBTOTAL_INCLUDES_DISCOUNT"] = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT";
|
|
3449
|
+
SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
|
|
3450
|
+
return SpecificItemsCouponBehavior2;
|
|
3451
|
+
})(SpecificItemsCouponBehavior || {});
|
|
3446
3452
|
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
3447
3453
|
FileType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
3448
3454
|
FileType2["SECURE_PICTURE"] = "SECURE_PICTURE";
|
|
@@ -3657,12 +3663,6 @@ var OrderActionType = /* @__PURE__ */ ((OrderActionType2) => {
|
|
|
3657
3663
|
OrderActionType2["MODIFY_INVENTORY"] = "MODIFY_INVENTORY";
|
|
3658
3664
|
return OrderActionType2;
|
|
3659
3665
|
})(OrderActionType || {});
|
|
3660
|
-
var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2) => {
|
|
3661
|
-
SpecificItemsCouponBehavior2["UNDEFINED_COUPON_BEHAVIOR"] = "UNDEFINED_COUPON_BEHAVIOR";
|
|
3662
|
-
SpecificItemsCouponBehavior2["ITEM_SUBTOTAL_INCLUDES_DISCOUNT"] = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT";
|
|
3663
|
-
SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
|
|
3664
|
-
return SpecificItemsCouponBehavior2;
|
|
3665
|
-
})(SpecificItemsCouponBehavior || {});
|
|
3666
3666
|
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
3667
3667
|
OrderStatus2["UNKNOWN_ORDER_STATUS"] = "UNKNOWN_ORDER_STATUS";
|
|
3668
3668
|
OrderStatus2["INITIALIZED"] = "INITIALIZED";
|