@bigcommerce/checkout-sdk 1.344.0 → 1.345.1
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.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +23 -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 +3 -1
- package/docs/interfaces/PayPalCommerceCreditCustomerInitializeOptions.md +53 -0
- package/docs/interfaces/WithPayPalCommerceCreditCustomerInitializeOptions.md +15 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -4478,7 +4478,7 @@ declare interface CustomerGroup {
|
|
|
4478
4478
|
name: string;
|
|
4479
4479
|
}
|
|
4480
4480
|
|
|
4481
|
-
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
|
|
4481
|
+
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
|
|
4482
4482
|
|
|
4483
4483
|
declare interface CustomerPasswordRequirements {
|
|
4484
4484
|
alpha: string;
|
|
@@ -6014,6 +6014,24 @@ declare interface PayPalCommerceCreditButtonInitializeOptions {
|
|
|
6014
6014
|
onComplete?(): void;
|
|
6015
6015
|
}
|
|
6016
6016
|
|
|
6017
|
+
declare interface PayPalCommerceCreditCustomerInitializeOptions {
|
|
6018
|
+
/**
|
|
6019
|
+
* The ID of a container which the checkout button should be inserted into.
|
|
6020
|
+
*/
|
|
6021
|
+
container: string;
|
|
6022
|
+
/**
|
|
6023
|
+
* A callback that gets called if unable to initialize the widget or select
|
|
6024
|
+
* one of the address options provided by the widget.
|
|
6025
|
+
*
|
|
6026
|
+
* @param error - The error object describing the failure.
|
|
6027
|
+
*/
|
|
6028
|
+
onError?(error?: Error): void;
|
|
6029
|
+
/**
|
|
6030
|
+
* A callback that gets called when payment complete on paypal side.
|
|
6031
|
+
*/
|
|
6032
|
+
onComplete?(): void;
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6017
6035
|
/**
|
|
6018
6036
|
* A set of options that are required to initialize the customer step of
|
|
6019
6037
|
* checkout to support PayPalCommerce.
|
|
@@ -7628,6 +7646,10 @@ declare interface WithPayPalCommerceCreditButtonInitializeOptions {
|
|
|
7628
7646
|
paypalcommercecredit?: PayPalCommerceCreditButtonInitializeOptions;
|
|
7629
7647
|
}
|
|
7630
7648
|
|
|
7649
|
+
declare interface WithPayPalCommerceCreditCustomerInitializeOptions {
|
|
7650
|
+
paypalcommercecredit?: PayPalCommerceCreditCustomerInitializeOptions;
|
|
7651
|
+
}
|
|
7652
|
+
|
|
7631
7653
|
declare interface WithPayPalCommerceCustomerInitializeOptions {
|
|
7632
7654
|
/**
|
|
7633
7655
|
* The options that are required to initialize the customer step of checkout
|