@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/es/index.d.mts
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/es/index.mjs
CHANGED
|
@@ -1482,7 +1482,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1482
1482
|
const { httpClient, sideEffects } = arguments[2];
|
|
1483
1483
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1484
1484
|
cartId,
|
|
1485
|
-
|
|
1485
|
+
priceVerificationToken: options?.priceVerificationToken,
|
|
1486
1486
|
paymentToken: options?.paymentToken,
|
|
1487
1487
|
redirectUrls: options?.redirectUrls,
|
|
1488
1488
|
savePaymentMethod: options?.savePaymentMethod,
|
|
@@ -1501,7 +1501,7 @@ async function placeOrder2(cartId, options) {
|
|
|
1501
1501
|
spreadPathsToArguments: {},
|
|
1502
1502
|
explicitPathsToArguments: {
|
|
1503
1503
|
cartId: "$[0]",
|
|
1504
|
-
|
|
1504
|
+
priceVerificationToken: "$[1].priceVerificationToken",
|
|
1505
1505
|
paymentToken: "$[1].paymentToken",
|
|
1506
1506
|
redirectUrls: "$[1].redirectUrls",
|
|
1507
1507
|
savePaymentMethod: "$[1].savePaymentMethod",
|