@bigcommerce/checkout-sdk 1.365.1 → 1.367.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.
@@ -8,6 +8,7 @@ import { LoadingIndicatorStyles } from '@bigcommerce/checkout-sdk/ui';
8
8
  import { Omit as Omit_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
9
9
  import { RequestOptions as RequestOptions_2 } from '@bigcommerce/request-sender';
10
10
  import { Response } from '@bigcommerce/request-sender';
11
+ import { StandardError as StandardError_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
11
12
  import { Timeout } from '@bigcommerce/request-sender';
12
13
  import { WithAccountCreation } from '@bigcommerce/checkout-sdk/payment-integration-api';
13
14
  import { createTimeout } from '@bigcommerce/request-sender';
@@ -996,11 +997,6 @@ declare interface BaseCustomerInitializeOptions extends CustomerRequestOptions {
996
997
  * when using AmazonPayV2.
997
998
  */
998
999
  amazonpay?: AmazonPayV2CustomerInitializeOptions;
999
- /**
1000
- * The options that are required to initialize the customer step of checkout
1001
- * when using Braintree PayPal provided.
1002
- */
1003
- braintreepaypal?: BraintreePaypalCustomerInitializeOptions;
1004
1000
  /**
1005
1001
  * The options that are required to facilitate Braintree Credit. They can be
1006
1002
  * omitted unless you need to support Braintree Credit.
@@ -1455,6 +1451,12 @@ declare interface BraintreeError extends Error {
1455
1451
  details?: unknown;
1456
1452
  }
1457
1453
 
1454
+ declare interface BraintreeError_2 extends Error {
1455
+ type: 'CUSTOMER' | 'MERCHANT' | 'NETWORK' | 'INTERNAL' | 'UNKNOWN';
1456
+ code: string;
1457
+ details?: unknown;
1458
+ }
1459
+
1458
1460
  declare type BraintreeFormErrorData = Omit<BraintreeFormFieldState, 'isFocused'>;
1459
1461
 
1460
1462
  declare type BraintreeFormErrorDataKeys = 'number' | 'expirationDate' | 'expirationMonth' | 'expirationYear' | 'cvv' | 'postalCode';
@@ -1736,7 +1738,7 @@ declare interface BraintreePaypalCustomerInitializeOptions {
1736
1738
  *
1737
1739
  * @param error - The error object describing the failure.
1738
1740
  */
1739
- onError?(error: BraintreeError | StandardError): void;
1741
+ onError?(error: BraintreeError_2 | StandardError_2): void;
1740
1742
  }
1741
1743
 
1742
1744
  declare interface BraintreeStoredCardFieldOptions extends BraintreeFormFieldOptions {
@@ -4498,7 +4500,7 @@ declare interface CustomerGroup {
4498
4500
  name: string;
4499
4501
  }
4500
4502
 
4501
- declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
4503
+ declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
4502
4504
 
4503
4505
  declare interface CustomerPasswordRequirements {
4504
4506
  alpha: string;
@@ -7637,6 +7639,14 @@ declare interface WithBoltPaymentInitializeOptions {
7637
7639
  bolt?: BoltPaymentInitializeOptions;
7638
7640
  }
7639
7641
 
7642
+ declare interface WithBraintreePaypalCustomerInitializeOptions {
7643
+ /**
7644
+ * The options that are required to initialize the customer step of checkout
7645
+ * when using Braintree PayPal.
7646
+ */
7647
+ braintreepaypal?: BraintreePaypalCustomerInitializeOptions;
7648
+ }
7649
+
7640
7650
  declare interface WithBuyNowFeature {
7641
7651
  /**
7642
7652
  * The options that are required to initialize Buy Now functionality.