@bigcommerce/checkout-sdk 1.317.1 → 1.319.0
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/CHANGELOG.md +14 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +9 -1
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/classes/CartConsistencyError.md +59 -0
- package/docs/classes/StandardError.md +2 -0
- package/docs/interfaces/CheckoutStoreErrorSelector.md +2 -2
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -2098,6 +2098,14 @@ declare class CartChangedError extends StandardError {
|
|
|
2098
2098
|
constructor(previous: ComparableCheckout, updated: ComparableCheckout);
|
|
2099
2099
|
}
|
|
2100
2100
|
|
|
2101
|
+
/**
|
|
2102
|
+
* This error is thrown when the server detects inconsistency in cart data since it is last requested,
|
|
2103
|
+
* for example, product prices or eligible discounts have changed.
|
|
2104
|
+
*/
|
|
2105
|
+
declare class CartConsistencyError extends StandardError {
|
|
2106
|
+
constructor(message?: string);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2101
2109
|
declare interface ChasePayCustomerInitializeOptions {
|
|
2102
2110
|
container: string;
|
|
2103
2111
|
}
|
|
@@ -3440,7 +3448,7 @@ declare interface CheckoutStoreErrorSelector {
|
|
|
3440
3448
|
*
|
|
3441
3449
|
* @returns The error object if unable to submit, otherwise undefined.
|
|
3442
3450
|
*/
|
|
3443
|
-
getSubmitOrderError(): Error | CartChangedError | undefined;
|
|
3451
|
+
getSubmitOrderError(): Error | CartChangedError | CartConsistencyError | undefined;
|
|
3444
3452
|
/**
|
|
3445
3453
|
* Returns an error if unable to finalize the current order.
|
|
3446
3454
|
*
|