@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.
@@ -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
  *