@bigcommerce/checkout-sdk 1.321.0 → 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.
@@ -4558,7 +4558,7 @@ declare interface CustomerGroup {
4558
4558
  name: string;
4559
4559
  }
4560
4560
 
4561
- declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions;
4561
+ declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions;
4562
4562
 
4563
4563
  declare interface CustomerPasswordRequirements {
4564
4564
  alpha: string;
@@ -6012,6 +6012,28 @@ declare interface PasswordRequirements {
6012
6012
  error: string;
6013
6013
  }
6014
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
+
6015
6037
  declare interface PayPalInstrument extends BaseAccountInstrument {
6016
6038
  method: 'paypal';
6017
6039
  }
@@ -7684,6 +7706,14 @@ declare interface WithMollieIssuerInstrument {
7684
7706
  shopper_locale: string;
7685
7707
  }
7686
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
+
7687
7717
  declare interface WithSquareV2PaymentInitializeOptions {
7688
7718
  /**
7689
7719
  * The options that are required to initialize the Square payment method.