@wix/auto_sdk_ecom_current-cart 1.0.207 → 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.
@@ -646,6 +646,14 @@ interface SubscriptionSettings {
646
646
  startDate?: Date | null;
647
647
  /** Billing configuration for recurring charges. */
648
648
  billingSettings?: BillingSettings;
649
+ /**
650
+ * Unit prices for specified billing cycles of the subscription. Cycles that no entry covers
651
+ * are charged the item's `price`.
652
+ *
653
+ * When `billingCycles` is set, every entry must end on or before the last billing cycle.
654
+ * @maxSize 1
655
+ */
656
+ cyclePriceOverrides?: CyclePriceOverride[];
649
657
  }
650
658
  /** Frequency unit of recurring payment */
651
659
  declare enum SubscriptionFrequency {
@@ -1664,6 +1672,13 @@ interface CalculatedLineItem {
1664
1672
  paymentOption?: PaymentOptionTypeWithLiterals;
1665
1673
  /** tax calculation address. */
1666
1674
  taxableAddress?: TaxableAddress;
1675
+ /**
1676
+ * Cycle price overrides of the line item's subscription, one for each entry in the request's
1677
+ * `lineItems.subscriptionSettings.cyclePriceOverrides`, in the same order.
1678
+ * @readonly
1679
+ * @maxSize 1
1680
+ */
1681
+ cyclePriceOverrides?: CalculatedCyclePriceOverride[];
1667
1682
  }
1668
1683
  interface LineItemPricesData {
1669
1684
  /** Total price after discounts, tax, and modifiers. */
@@ -2325,6 +2340,17 @@ declare enum AppliedDiscountDiscountType {
2325
2340
  type AppliedDiscountDiscountTypeWithLiterals = AppliedDiscountDiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
2326
2341
  /** Coupon */
2327
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;
2328
2354
  /** Coupon ID. */
2329
2355
  id?: string;
2330
2356
  /** Coupon code. */
@@ -2333,15 +2359,46 @@ interface V1Coupon extends V1CouponDiscountValueOneOf {
2333
2359
  amount?: MultiCurrencyPrice;
2334
2360
  /** Coupon name. */
2335
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;
2336
2369
  }
2337
2370
  /** @oneof */
2338
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;
2339
2383
  }
2340
2384
  /** How a coupon's or discount rule's discount value is expressed. */
2341
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"
2342
2399
  }
2343
2400
  /** @enumType */
2344
- type DiscountValueTypeWithLiterals = DiscountValueType;
2401
+ type DiscountValueTypeWithLiterals = DiscountValueType | 'PERCENTAGE' | 'FIXED_AMOUNT';
2345
2402
  interface V1MerchantDiscount {
2346
2403
  /** Discount value. */
2347
2404
  amount?: MultiCurrencyPrice;
@@ -2353,6 +2410,16 @@ interface V1MerchantDiscount {
2353
2410
  percentage?: number | null;
2354
2411
  }
2355
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;
2356
2423
  /**
2357
2424
  * Discount rule ID
2358
2425
  * @format GUID
@@ -2362,9 +2429,26 @@ interface V1DiscountRule extends V1DiscountRuleDiscountValueOneOf {
2362
2429
  name?: V1DiscountRuleName;
2363
2430
  /** Total amount the discount rule took off. */
2364
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;
2365
2439
  }
2366
2440
  /** @oneof */
2367
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;
2368
2452
  }
2369
2453
  interface V1DiscountRuleName {
2370
2454
  /**
@@ -2388,6 +2472,14 @@ interface LineItemDiscount {
2388
2472
  id?: string;
2389
2473
  /** Discount value. */
2390
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;
2391
2483
  }
2392
2484
  interface ItemCombination {
2393
2485
  /**