@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. */
@@ -1481,7 +1481,8 @@ async function createCheckout2(options) {
1481
1481
  customLineItems: options?.customLineItems,
1482
1482
  channelType: options?.channelType,
1483
1483
  giftCardCode: options?.giftCardCode,
1484
- overrideCheckoutUrl: options?.overrideCheckoutUrl
1484
+ overrideCheckoutUrl: options?.overrideCheckoutUrl,
1485
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1485
1486
  }),
1486
1487
  [
1487
1488
  {
@@ -1562,7 +1563,8 @@ async function createCheckout2(options) {
1562
1563
  customLineItems: "$[0].customLineItems",
1563
1564
  channelType: "$[0].channelType",
1564
1565
  giftCardCode: "$[0].giftCardCode",
1565
- overrideCheckoutUrl: "$[0].overrideCheckoutUrl"
1566
+ overrideCheckoutUrl: "$[0].overrideCheckoutUrl",
1567
+ giftCardRedeemAmount: "$[0].giftCardRedeemAmount"
1566
1568
  },
1567
1569
  singleArgumentUnchanged: false
1568
1570
  },
@@ -1727,7 +1729,8 @@ async function updateCheckout2(_id, checkout, options) {
1727
1729
  giftCardCode: options?.giftCardCode,
1728
1730
  overrideCheckoutUrl: options?.overrideCheckoutUrl,
1729
1731
  lineItems: options?.lineItems,
1730
- customLineItems: options?.customLineItems
1732
+ customLineItems: options?.customLineItems,
1733
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1731
1734
  }),
1732
1735
  [
1733
1736
  {
@@ -1807,7 +1810,8 @@ async function updateCheckout2(_id, checkout, options) {
1807
1810
  giftCardCode: "$[2].giftCardCode",
1808
1811
  overrideCheckoutUrl: "$[2].overrideCheckoutUrl",
1809
1812
  lineItems: "$[2].lineItems",
1810
- customLineItems: "$[2].customLineItems"
1813
+ customLineItems: "$[2].customLineItems",
1814
+ giftCardRedeemAmount: "$[2].giftCardRedeemAmount"
1811
1815
  },
1812
1816
  singleArgumentUnchanged: false
1813
1817
  },