@wix/auto_sdk_ecom_checkout 1.0.49 → 1.0.51

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.
@@ -660,7 +660,7 @@ interface SubscriptionSettings {
660
660
  * Default: `1`.
661
661
  * If SubscriptionFrequency is Day the minimum interval is 7
662
662
  * @min 1
663
- * @max 50
663
+ * @max 3650
664
664
  */
665
665
  interval?: number | null;
666
666
  /** Whether subscription is renewed automatically at the end of each period. */
@@ -1471,6 +1471,8 @@ interface GiftCard {
1471
1471
  * @maxLength 50
1472
1472
  */
1473
1473
  externalId?: string | null;
1474
+ /** Requested amount to redeem from the gift card. */
1475
+ requestedAmount?: MultiCurrencyPrice;
1474
1476
  }
1475
1477
  interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1476
1478
  /** Coupon details. */
@@ -2039,6 +2041,11 @@ interface CreateCheckoutRequest {
2039
2041
  * @maxLength 1000
2040
2042
  */
2041
2043
  overrideCheckoutUrl?: string | null;
2044
+ /**
2045
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
2046
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2047
+ */
2048
+ giftCardRedeemAmount?: string | null;
2042
2049
  }
2043
2050
  interface CustomLineItem {
2044
2051
  /**
@@ -2290,6 +2297,11 @@ interface UpdateCheckoutRequest {
2290
2297
  * @maxSize 300
2291
2298
  */
2292
2299
  customLineItems?: CustomLineItem[];
2300
+ /**
2301
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
2302
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2303
+ */
2304
+ giftCardRedeemAmount?: string | null;
2293
2305
  }
2294
2306
  interface UpdateCheckoutResponse {
2295
2307
  /** Updated checkout. */
@@ -1555,7 +1555,8 @@ async function createCheckout2(options) {
1555
1555
  customLineItems: options?.customLineItems,
1556
1556
  channelType: options?.channelType,
1557
1557
  giftCardCode: options?.giftCardCode,
1558
- overrideCheckoutUrl: options?.overrideCheckoutUrl
1558
+ overrideCheckoutUrl: options?.overrideCheckoutUrl,
1559
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1559
1560
  }),
1560
1561
  [
1561
1562
  {
@@ -1636,7 +1637,8 @@ async function createCheckout2(options) {
1636
1637
  customLineItems: "$[0].customLineItems",
1637
1638
  channelType: "$[0].channelType",
1638
1639
  giftCardCode: "$[0].giftCardCode",
1639
- overrideCheckoutUrl: "$[0].overrideCheckoutUrl"
1640
+ overrideCheckoutUrl: "$[0].overrideCheckoutUrl",
1641
+ giftCardRedeemAmount: "$[0].giftCardRedeemAmount"
1640
1642
  },
1641
1643
  singleArgumentUnchanged: false
1642
1644
  },
@@ -1801,7 +1803,8 @@ async function updateCheckout2(_id, checkout, options) {
1801
1803
  giftCardCode: options?.giftCardCode,
1802
1804
  overrideCheckoutUrl: options?.overrideCheckoutUrl,
1803
1805
  lineItems: options?.lineItems,
1804
- customLineItems: options?.customLineItems
1806
+ customLineItems: options?.customLineItems,
1807
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1805
1808
  }),
1806
1809
  [
1807
1810
  {
@@ -1881,7 +1884,8 @@ async function updateCheckout2(_id, checkout, options) {
1881
1884
  giftCardCode: "$[2].giftCardCode",
1882
1885
  overrideCheckoutUrl: "$[2].overrideCheckoutUrl",
1883
1886
  lineItems: "$[2].lineItems",
1884
- customLineItems: "$[2].customLineItems"
1887
+ customLineItems: "$[2].customLineItems",
1888
+ giftCardRedeemAmount: "$[2].giftCardRedeemAmount"
1885
1889
  },
1886
1890
  singleArgumentUnchanged: false
1887
1891
  },