@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.
@@ -708,7 +708,7 @@ interface SubscriptionSettings {
708
708
  * Default: `1`.
709
709
  * If SubscriptionFrequency is Day the minimum interval is 7
710
710
  * @min 1
711
- * @max 50
711
+ * @max 3650
712
712
  */
713
713
  interval?: number | null;
714
714
  /** Whether subscription is renewed automatically at the end of each period. */
@@ -1545,6 +1545,8 @@ interface GiftCard {
1545
1545
  * @maxLength 50
1546
1546
  */
1547
1547
  externalId?: string | null;
1548
+ /** Requested amount to redeem from the gift card. */
1549
+ requestedAmount?: MultiCurrencyPrice;
1548
1550
  }
1549
1551
  interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1550
1552
  /** Coupon details. */
@@ -2214,6 +2216,11 @@ interface CreateCheckoutRequest {
2214
2216
  * @maxLength 1000
2215
2217
  */
2216
2218
  overrideCheckoutUrl?: string | null;
2219
+ /**
2220
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
2221
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2222
+ */
2223
+ giftCardRedeemAmount?: string | null;
2217
2224
  }
2218
2225
  interface CustomLineItem {
2219
2226
  /**
@@ -2499,6 +2506,11 @@ interface UpdateCheckoutRequest {
2499
2506
  * @maxSize 300
2500
2507
  */
2501
2508
  customLineItems?: CustomLineItem[];
2509
+ /**
2510
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
2511
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2512
+ */
2513
+ giftCardRedeemAmount?: string | null;
2502
2514
  }
2503
2515
  interface UpdateCheckoutResponse {
2504
2516
  /** Updated checkout. */
@@ -4039,6 +4051,11 @@ interface CreateCheckoutOptions {
4039
4051
  * @maxLength 1000
4040
4052
  */
4041
4053
  overrideCheckoutUrl?: string | null;
4054
+ /**
4055
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
4056
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
4057
+ */
4058
+ giftCardRedeemAmount?: string | null;
4042
4059
  }
4043
4060
  /**
4044
4061
  * Retrieves a checkout.
@@ -4347,6 +4364,11 @@ interface UpdateCheckoutOptions {
4347
4364
  * @maxSize 300
4348
4365
  */
4349
4366
  customLineItems?: CustomLineItem[];
4367
+ /**
4368
+ * Amount to redeem from the gift card referenced in `gift_card_code`.
4369
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
4370
+ */
4371
+ giftCardRedeemAmount?: string | null;
4350
4372
  }
4351
4373
  /**
4352
4374
  * Removes the coupon from a specified checkout.
@@ -1541,7 +1541,8 @@ async function createCheckout2(options) {
1541
1541
  customLineItems: options?.customLineItems,
1542
1542
  channelType: options?.channelType,
1543
1543
  giftCardCode: options?.giftCardCode,
1544
- overrideCheckoutUrl: options?.overrideCheckoutUrl
1544
+ overrideCheckoutUrl: options?.overrideCheckoutUrl,
1545
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1545
1546
  }),
1546
1547
  [
1547
1548
  {
@@ -1622,7 +1623,8 @@ async function createCheckout2(options) {
1622
1623
  customLineItems: "$[0].customLineItems",
1623
1624
  channelType: "$[0].channelType",
1624
1625
  giftCardCode: "$[0].giftCardCode",
1625
- overrideCheckoutUrl: "$[0].overrideCheckoutUrl"
1626
+ overrideCheckoutUrl: "$[0].overrideCheckoutUrl",
1627
+ giftCardRedeemAmount: "$[0].giftCardRedeemAmount"
1626
1628
  },
1627
1629
  singleArgumentUnchanged: false
1628
1630
  },
@@ -1787,7 +1789,8 @@ async function updateCheckout2(_id, checkout, options) {
1787
1789
  giftCardCode: options?.giftCardCode,
1788
1790
  overrideCheckoutUrl: options?.overrideCheckoutUrl,
1789
1791
  lineItems: options?.lineItems,
1790
- customLineItems: options?.customLineItems
1792
+ customLineItems: options?.customLineItems,
1793
+ giftCardRedeemAmount: options?.giftCardRedeemAmount
1791
1794
  }),
1792
1795
  [
1793
1796
  {
@@ -1867,7 +1870,8 @@ async function updateCheckout2(_id, checkout, options) {
1867
1870
  giftCardCode: "$[2].giftCardCode",
1868
1871
  overrideCheckoutUrl: "$[2].overrideCheckoutUrl",
1869
1872
  lineItems: "$[2].lineItems",
1870
- customLineItems: "$[2].customLineItems"
1873
+ customLineItems: "$[2].customLineItems",
1874
+ giftCardRedeemAmount: "$[2].giftCardRedeemAmount"
1871
1875
  },
1872
1876
  singleArgumentUnchanged: false
1873
1877
  },