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