@bigcommerce/checkout-sdk 1.343.0 → 1.344.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.
- package/CHANGELOG.md +8 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +19 -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/PayPalCommerceVenmoCustomerInitializeOptions.md +40 -0
- package/docs/interfaces/WithPayPalCommerceVenmoCustomerInitializeOptions.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;
|
|
4481
|
+
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
|
|
4482
4482
|
|
|
4483
4483
|
declare interface CustomerPasswordRequirements {
|
|
4484
4484
|
alpha: string;
|
|
@@ -6083,6 +6083,20 @@ declare interface PayPalCommerceVenmoButtonInitializeOptions {
|
|
|
6083
6083
|
};
|
|
6084
6084
|
}
|
|
6085
6085
|
|
|
6086
|
+
declare interface PayPalCommerceVenmoCustomerInitializeOptions {
|
|
6087
|
+
/**
|
|
6088
|
+
* The ID of a container which the checkout button should be inserted into.
|
|
6089
|
+
*/
|
|
6090
|
+
container: string;
|
|
6091
|
+
/**
|
|
6092
|
+
* A callback that gets called if unable to initialize the widget or select
|
|
6093
|
+
* one of the address options provided by the widget.
|
|
6094
|
+
*
|
|
6095
|
+
* @param error - The error object describing the failure.
|
|
6096
|
+
*/
|
|
6097
|
+
onError?(error?: Error): void;
|
|
6098
|
+
}
|
|
6099
|
+
|
|
6086
6100
|
declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
6087
6101
|
method: 'paypal';
|
|
6088
6102
|
}
|
|
@@ -7630,6 +7644,10 @@ declare interface WithPayPalCommerceVenmoButtonInitializeOptions {
|
|
|
7630
7644
|
paypalcommercevenmo?: PayPalCommerceVenmoButtonInitializeOptions;
|
|
7631
7645
|
}
|
|
7632
7646
|
|
|
7647
|
+
declare interface WithPayPalCommerceVenmoCustomerInitializeOptions {
|
|
7648
|
+
paypalcommercevenmo?: PayPalCommerceVenmoCustomerInitializeOptions;
|
|
7649
|
+
}
|
|
7650
|
+
|
|
7633
7651
|
declare interface WithSquareV2PaymentInitializeOptions {
|
|
7634
7652
|
/**
|
|
7635
7653
|
* The options that are required to initialize the Square payment method.
|