@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.
|
|
@@ -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
|
},
|