@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.
- package/build/cjs/index.js +8 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +23 -1
- package/build/cjs/index.typings.js +8 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +13 -1
- package/build/es/index.mjs +8 -4
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +23 -1
- package/build/es/index.typings.mjs +8 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +13 -1
- package/build/internal/cjs/index.js +8 -4
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +12 -7
- package/build/internal/cjs/index.typings.js +8 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +13 -1
- package/build/internal/es/index.mjs +8 -4
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +12 -7
- package/build/internal/es/index.typings.mjs +8 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +13 -1
- package/package.json +2 -2
|
@@ -752,7 +752,7 @@ interface SubscriptionSettings {
|
|
|
752
752
|
* Default: `1`.
|
|
753
753
|
* If SubscriptionFrequency is Day the minimum interval is 7
|
|
754
754
|
* @min 1
|
|
755
|
-
* @max
|
|
755
|
+
* @max 3650
|
|
756
756
|
*/
|
|
757
757
|
interval?: number | null;
|
|
758
758
|
/** Whether subscription is renewed automatically at the end of each period. */
|
|
@@ -1594,10 +1594,7 @@ interface GiftCard {
|
|
|
1594
1594
|
* @maxLength 50
|
|
1595
1595
|
*/
|
|
1596
1596
|
externalId?: string | null;
|
|
1597
|
-
/**
|
|
1598
|
-
* Requested amount to redeem from the gift card.
|
|
1599
|
-
* @internal
|
|
1600
|
-
*/
|
|
1597
|
+
/** Requested amount to redeem from the gift card. */
|
|
1601
1598
|
requestedAmount?: MultiCurrencyPrice;
|
|
1602
1599
|
}
|
|
1603
1600
|
interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
|
|
@@ -2291,7 +2288,6 @@ interface CreateCheckoutRequest {
|
|
|
2291
2288
|
overrideCheckoutUrl?: string | null;
|
|
2292
2289
|
/**
|
|
2293
2290
|
* Amount to redeem from the gift card referenced in `gift_card_code`.
|
|
2294
|
-
* @internal
|
|
2295
2291
|
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2296
2292
|
*/
|
|
2297
2293
|
giftCardRedeemAmount?: string | null;
|
|
@@ -2602,7 +2598,6 @@ interface UpdateCheckoutRequest {
|
|
|
2602
2598
|
customLineItems?: CustomLineItem[];
|
|
2603
2599
|
/**
|
|
2604
2600
|
* Amount to redeem from the gift card referenced in `gift_card_code`.
|
|
2605
|
-
* @internal
|
|
2606
2601
|
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
2607
2602
|
*/
|
|
2608
2603
|
giftCardRedeemAmount?: string | null;
|
|
@@ -4158,6 +4153,11 @@ interface CreateCheckoutOptions {
|
|
|
4158
4153
|
* @maxLength 1000
|
|
4159
4154
|
*/
|
|
4160
4155
|
overrideCheckoutUrl?: string | null;
|
|
4156
|
+
/**
|
|
4157
|
+
* Amount to redeem from the gift card referenced in `gift_card_code`.
|
|
4158
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
4159
|
+
*/
|
|
4160
|
+
giftCardRedeemAmount?: string | null;
|
|
4161
4161
|
}
|
|
4162
4162
|
/**
|
|
4163
4163
|
* Retrieves a checkout.
|
|
@@ -4504,6 +4504,11 @@ interface UpdateCheckoutOptions {
|
|
|
4504
4504
|
* @maxSize 300
|
|
4505
4505
|
*/
|
|
4506
4506
|
customLineItems?: CustomLineItem[];
|
|
4507
|
+
/**
|
|
4508
|
+
* Amount to redeem from the gift card referenced in `gift_card_code`.
|
|
4509
|
+
* @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
|
|
4510
|
+
*/
|
|
4511
|
+
giftCardRedeemAmount?: string | null;
|
|
4507
4512
|
}
|
|
4508
4513
|
/**
|
|
4509
4514
|
* Removes the coupon from a specified checkout.
|
|
@@ -1471,7 +1471,8 @@ async function createCheckout2(options) {
|
|
|
1471
1471
|
customLineItems: options?.customLineItems,
|
|
1472
1472
|
channelType: options?.channelType,
|
|
1473
1473
|
giftCardCode: options?.giftCardCode,
|
|
1474
|
-
overrideCheckoutUrl: options?.overrideCheckoutUrl
|
|
1474
|
+
overrideCheckoutUrl: options?.overrideCheckoutUrl,
|
|
1475
|
+
giftCardRedeemAmount: options?.giftCardRedeemAmount
|
|
1475
1476
|
}),
|
|
1476
1477
|
[
|
|
1477
1478
|
{
|
|
@@ -1552,7 +1553,8 @@ async function createCheckout2(options) {
|
|
|
1552
1553
|
customLineItems: "$[0].customLineItems",
|
|
1553
1554
|
channelType: "$[0].channelType",
|
|
1554
1555
|
giftCardCode: "$[0].giftCardCode",
|
|
1555
|
-
overrideCheckoutUrl: "$[0].overrideCheckoutUrl"
|
|
1556
|
+
overrideCheckoutUrl: "$[0].overrideCheckoutUrl",
|
|
1557
|
+
giftCardRedeemAmount: "$[0].giftCardRedeemAmount"
|
|
1556
1558
|
},
|
|
1557
1559
|
singleArgumentUnchanged: false
|
|
1558
1560
|
},
|
|
@@ -1717,7 +1719,8 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1717
1719
|
giftCardCode: options?.giftCardCode,
|
|
1718
1720
|
overrideCheckoutUrl: options?.overrideCheckoutUrl,
|
|
1719
1721
|
lineItems: options?.lineItems,
|
|
1720
|
-
customLineItems: options?.customLineItems
|
|
1722
|
+
customLineItems: options?.customLineItems,
|
|
1723
|
+
giftCardRedeemAmount: options?.giftCardRedeemAmount
|
|
1721
1724
|
}),
|
|
1722
1725
|
[
|
|
1723
1726
|
{
|
|
@@ -1797,7 +1800,8 @@ async function updateCheckout2(_id, checkout, options) {
|
|
|
1797
1800
|
giftCardCode: "$[2].giftCardCode",
|
|
1798
1801
|
overrideCheckoutUrl: "$[2].overrideCheckoutUrl",
|
|
1799
1802
|
lineItems: "$[2].lineItems",
|
|
1800
|
-
customLineItems: "$[2].customLineItems"
|
|
1803
|
+
customLineItems: "$[2].customLineItems",
|
|
1804
|
+
giftCardRedeemAmount: "$[2].giftCardRedeemAmount"
|
|
1801
1805
|
},
|
|
1802
1806
|
singleArgumentUnchanged: false
|
|
1803
1807
|
},
|