@bigcommerce/checkout-sdk 1.320.1 → 1.322.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.
@@ -1498,8 +1498,9 @@ declare interface BoltCustomerInitializeOptions {
1498
1498
  * A callback that gets called on initialize the strategy
1499
1499
  *
1500
1500
  * @param hasBoltAccount - The hasBoltAccount variable handle the result of checking user account availability on Bolt.
1501
+ * @param email - Email address which was used for checking user account availability on Bolt.
1501
1502
  */
1502
- onInit?(hasBoltAccount: boolean): void;
1503
+ onInit?(hasBoltAccount: boolean, email?: string): void;
1503
1504
  }
1504
1505
 
1505
1506
  /**
@@ -4557,7 +4558,7 @@ declare interface CustomerGroup {
4557
4558
  name: string;
4558
4559
  }
4559
4560
 
4560
- declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions;
4561
+ declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions;
4561
4562
 
4562
4563
  declare interface CustomerPasswordRequirements {
4563
4564
  alpha: string;
@@ -6011,6 +6012,28 @@ declare interface PasswordRequirements {
6011
6012
  error: string;
6012
6013
  }
6013
6014
 
6015
+ /**
6016
+ * A set of options that are required to initialize the customer step of
6017
+ * checkout to support PayPalCommerce.
6018
+ */
6019
+ declare interface PayPalCommerceCustomerInitializeOptions {
6020
+ /**
6021
+ * The ID of a container which the checkout button should be inserted into.
6022
+ */
6023
+ container: string;
6024
+ /**
6025
+ * A callback that gets called if unable to initialize the widget or select
6026
+ * one of the address options provided by the widget.
6027
+ *
6028
+ * @param error - The error object describing the failure.
6029
+ */
6030
+ onError?(error?: Error): void;
6031
+ /**
6032
+ * A callback that gets called when payment complete on paypal side.
6033
+ */
6034
+ onComplete?(): void;
6035
+ }
6036
+
6014
6037
  declare interface PayPalInstrument extends BaseAccountInstrument {
6015
6038
  method: 'paypal';
6016
6039
  }
@@ -7683,6 +7706,14 @@ declare interface WithMollieIssuerInstrument {
7683
7706
  shopper_locale: string;
7684
7707
  }
7685
7708
 
7709
+ declare interface WithPayPalCommerceCustomerInitializeOptions {
7710
+ /**
7711
+ * The options that are required to initialize the customer step of checkout
7712
+ * when using PayPalCommerce.
7713
+ */
7714
+ paypalcommerce?: PayPalCommerceCustomerInitializeOptions;
7715
+ }
7716
+
7686
7717
  declare interface WithSquareV2PaymentInitializeOptions {
7687
7718
  /**
7688
7719
  * The options that are required to initialize the Square payment method.