@wix/auto_sdk_ecom_current-cart 1.0.208 → 1.0.209
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.d.ts +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +79 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +78 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +79 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +78 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +13 -29
- package/build/internal/cjs/meta.d.ts +12 -28
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +13 -29
- package/build/internal/es/meta.d.mts +12 -28
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -2340,6 +2340,17 @@ declare enum AppliedDiscountDiscountType {
|
|
|
2340
2340
|
type AppliedDiscountDiscountTypeWithLiterals = AppliedDiscountDiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
|
|
2341
2341
|
/** Coupon */
|
|
2342
2342
|
interface V1Coupon extends V1CouponDiscountValueOneOf {
|
|
2343
|
+
/**
|
|
2344
|
+
* Percentage the coupon took off the price it applied to. For example, `10.5` for 10.5%.
|
|
2345
|
+
*
|
|
2346
|
+
* The price it applied to depends on the applied discount's `discountType`. For `SPECIFIC_ITEMS`, it's the
|
|
2347
|
+
* line items' price after the discounts applied before this one. For `GLOBAL`, it's the subtotal after the
|
|
2348
|
+
* line item discounts. An order discount applied before the coupon, such as an automatic discount on the
|
|
2349
|
+
* whole order, isn't taken off first.
|
|
2350
|
+
* @format DECIMAL_VALUE
|
|
2351
|
+
* @decimalValue options { gt:0, lte:100, maxScale:2 }
|
|
2352
|
+
*/
|
|
2353
|
+
percentage?: string;
|
|
2343
2354
|
/** Coupon ID. */
|
|
2344
2355
|
id?: string;
|
|
2345
2356
|
/** Coupon code. */
|
|
@@ -2348,15 +2359,46 @@ interface V1Coupon extends V1CouponDiscountValueOneOf {
|
|
|
2348
2359
|
amount?: MultiCurrencyPrice;
|
|
2349
2360
|
/** Coupon name. */
|
|
2350
2361
|
name?: string;
|
|
2362
|
+
/**
|
|
2363
|
+
* How the coupon's discount is expressed. `percentage` holds the rate of a percentage coupon, and `amount` holds
|
|
2364
|
+
* the total amount the coupon took off, whatever the type.
|
|
2365
|
+
*
|
|
2366
|
+
* Not returned for a free-shipping coupon.
|
|
2367
|
+
*/
|
|
2368
|
+
discountValueType?: DiscountValueTypeWithLiterals;
|
|
2351
2369
|
}
|
|
2352
2370
|
/** @oneof */
|
|
2353
2371
|
interface V1CouponDiscountValueOneOf {
|
|
2372
|
+
/**
|
|
2373
|
+
* Percentage the coupon took off the price it applied to. For example, `10.5` for 10.5%.
|
|
2374
|
+
*
|
|
2375
|
+
* The price it applied to depends on the applied discount's `discountType`. For `SPECIFIC_ITEMS`, it's the
|
|
2376
|
+
* line items' price after the discounts applied before this one. For `GLOBAL`, it's the subtotal after the
|
|
2377
|
+
* line item discounts. An order discount applied before the coupon, such as an automatic discount on the
|
|
2378
|
+
* whole order, isn't taken off first.
|
|
2379
|
+
* @format DECIMAL_VALUE
|
|
2380
|
+
* @decimalValue options { gt:0, lte:100, maxScale:2 }
|
|
2381
|
+
*/
|
|
2382
|
+
percentage?: string;
|
|
2354
2383
|
}
|
|
2355
2384
|
/** How a coupon's or discount rule's discount value is expressed. */
|
|
2356
2385
|
declare enum DiscountValueType {
|
|
2386
|
+
/**
|
|
2387
|
+
* The discount takes a percentage off the price it applies to.
|
|
2388
|
+
* @documentationMaturity preview
|
|
2389
|
+
*/
|
|
2390
|
+
PERCENTAGE = "PERCENTAGE",
|
|
2391
|
+
/**
|
|
2392
|
+
* The discount takes a fixed amount off the price it applies to.
|
|
2393
|
+
*
|
|
2394
|
+
* Also returned for a discount that sets a fixed price, for a buy X for an amount discount, and for a buy X
|
|
2395
|
+
* get Y coupon. For each of these, the coupon's or discount rule's `amount` holds what the discount took off.
|
|
2396
|
+
* @documentationMaturity preview
|
|
2397
|
+
*/
|
|
2398
|
+
FIXED_AMOUNT = "FIXED_AMOUNT"
|
|
2357
2399
|
}
|
|
2358
2400
|
/** @enumType */
|
|
2359
|
-
type DiscountValueTypeWithLiterals = DiscountValueType;
|
|
2401
|
+
type DiscountValueTypeWithLiterals = DiscountValueType | 'PERCENTAGE' | 'FIXED_AMOUNT';
|
|
2360
2402
|
interface V1MerchantDiscount {
|
|
2361
2403
|
/** Discount value. */
|
|
2362
2404
|
amount?: MultiCurrencyPrice;
|
|
@@ -2368,6 +2410,16 @@ interface V1MerchantDiscount {
|
|
|
2368
2410
|
percentage?: number | null;
|
|
2369
2411
|
}
|
|
2370
2412
|
interface V1DiscountRule extends V1DiscountRuleDiscountValueOneOf {
|
|
2413
|
+
/**
|
|
2414
|
+
* Percentage the discount rule took off the price it applied to. For example, `10.5` for 10.5%.
|
|
2415
|
+
*
|
|
2416
|
+
* The price it applied to depends on the applied discount's `discountType`: the line items' price for
|
|
2417
|
+
* `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
|
|
2418
|
+
* before this one.
|
|
2419
|
+
* @format DECIMAL_VALUE
|
|
2420
|
+
* @decimalValue options { gt:0, lte:100, maxScale:2 }
|
|
2421
|
+
*/
|
|
2422
|
+
percentage?: string;
|
|
2371
2423
|
/**
|
|
2372
2424
|
* Discount rule ID
|
|
2373
2425
|
* @format GUID
|
|
@@ -2377,9 +2429,26 @@ interface V1DiscountRule extends V1DiscountRuleDiscountValueOneOf {
|
|
|
2377
2429
|
name?: V1DiscountRuleName;
|
|
2378
2430
|
/** Total amount the discount rule took off. */
|
|
2379
2431
|
amount?: MultiCurrencyPrice;
|
|
2432
|
+
/**
|
|
2433
|
+
* How the discount rule's discount is expressed. `percentage` holds the rate of a percentage discount rule, and
|
|
2434
|
+
* `amount` holds the total amount the discount rule took off, whatever the type.
|
|
2435
|
+
*
|
|
2436
|
+
* Not returned for a free-shipping discount rule.
|
|
2437
|
+
*/
|
|
2438
|
+
discountValueType?: DiscountValueTypeWithLiterals;
|
|
2380
2439
|
}
|
|
2381
2440
|
/** @oneof */
|
|
2382
2441
|
interface V1DiscountRuleDiscountValueOneOf {
|
|
2442
|
+
/**
|
|
2443
|
+
* Percentage the discount rule took off the price it applied to. For example, `10.5` for 10.5%.
|
|
2444
|
+
*
|
|
2445
|
+
* The price it applied to depends on the applied discount's `discountType`: the line items' price for
|
|
2446
|
+
* `SPECIFIC_ITEMS`, the subtotal for `GLOBAL`. In each case it's the price after the discounts applied
|
|
2447
|
+
* before this one.
|
|
2448
|
+
* @format DECIMAL_VALUE
|
|
2449
|
+
* @decimalValue options { gt:0, lte:100, maxScale:2 }
|
|
2450
|
+
*/
|
|
2451
|
+
percentage?: string;
|
|
2383
2452
|
}
|
|
2384
2453
|
interface V1DiscountRuleName {
|
|
2385
2454
|
/**
|
|
@@ -2403,6 +2472,14 @@ interface LineItemDiscount {
|
|
|
2403
2472
|
id?: string;
|
|
2404
2473
|
/** Discount value. */
|
|
2405
2474
|
totalDiscountAmount?: MultiCurrencyPrice;
|
|
2475
|
+
/**
|
|
2476
|
+
* Number of the line item's units the discount was applied to.
|
|
2477
|
+
*
|
|
2478
|
+
* Returned only for a `SPECIFIC_ITEMS` discount.
|
|
2479
|
+
* @min 1
|
|
2480
|
+
* @max 100000
|
|
2481
|
+
*/
|
|
2482
|
+
discountedQuantity?: number | null;
|
|
2406
2483
|
}
|
|
2407
2484
|
interface ItemCombination {
|
|
2408
2485
|
/**
|