@wix/auto_sdk_ecom_cart-v-2 1.0.28 → 1.0.29
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.d.ts +5 -5
- package/build/cjs/index.js +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +5 -5
- package/build/es/index.mjs +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +3 -3
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +2 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +23 -5
- package/build/internal/cjs/index.typings.js +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +3 -3
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +2 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +23 -5
- package/build/internal/es/index.typings.mjs +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +3 -3
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1503,7 +1503,7 @@ interface CartSummary {
|
|
|
1503
1503
|
/**
|
|
1504
1504
|
* A token representing the Cart's calculated prices.
|
|
1505
1505
|
*
|
|
1506
|
-
* The client can pass this token
|
|
1506
|
+
* The client can pass this token on place order to ensure that the
|
|
1507
1507
|
* prices the customer saw match the final prices at checkout.
|
|
1508
1508
|
*
|
|
1509
1509
|
* The server will validate the token if provided by recalculating the cart and comparing the
|
|
@@ -2679,11 +2679,11 @@ interface PlaceOrderRequest {
|
|
|
2679
2679
|
*/
|
|
2680
2680
|
cartId: string;
|
|
2681
2681
|
/**
|
|
2682
|
-
* The
|
|
2682
|
+
* The price verification token received from `CalculateCart`'s response.
|
|
2683
2683
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
2684
2684
|
* @maxLength 3000
|
|
2685
2685
|
*/
|
|
2686
|
-
|
|
2686
|
+
priceVerificationToken?: string | null;
|
|
2687
2687
|
/**
|
|
2688
2688
|
* Payment token.
|
|
2689
2689
|
* @maxLength 100
|
|
@@ -3084,11 +3084,11 @@ interface GetCheckoutUrlOptions {
|
|
|
3084
3084
|
}
|
|
3085
3085
|
interface PlaceOrderOptions {
|
|
3086
3086
|
/**
|
|
3087
|
-
* The
|
|
3087
|
+
* The price verification token received from `CalculateCart`'s response.
|
|
3088
3088
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
3089
3089
|
* @maxLength 3000
|
|
3090
3090
|
*/
|
|
3091
|
-
|
|
3091
|
+
priceVerificationToken?: string | null;
|
|
3092
3092
|
/**
|
|
3093
3093
|
* Payment token.
|
|
3094
3094
|
* @maxLength 100
|
package/build/cjs/index.js
CHANGED
|
@@ -1541,7 +1541,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1541
1541
|
const { httpClient, sideEffects } = arguments[2];
|
|
1542
1542
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1543
1543
|
cartId,
|
|
1544
|
-
|
|
1544
|
+
priceVerificationToken: options?.priceVerificationToken,
|
|
1545
1545
|
paymentToken: options?.paymentToken,
|
|
1546
1546
|
redirectUrls: options?.redirectUrls,
|
|
1547
1547
|
savePaymentMethod: options?.savePaymentMethod,
|
|
@@ -1560,7 +1560,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1560
1560
|
spreadPathsToArguments: {},
|
|
1561
1561
|
explicitPathsToArguments: {
|
|
1562
1562
|
cartId: "$[0]",
|
|
1563
|
-
|
|
1563
|
+
priceVerificationToken: "$[1].priceVerificationToken",
|
|
1564
1564
|
paymentToken: "$[1].paymentToken",
|
|
1565
1565
|
redirectUrls: "$[1].redirectUrls",
|
|
1566
1566
|
savePaymentMethod: "$[1].savePaymentMethod",
|