@bigcommerce/checkout-sdk 1.343.0 → 1.345.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 +15 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +41 -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 +5 -1
- package/docs/interfaces/PayPalCommerceCreditCustomerInitializeOptions.md +53 -0
- package/docs/interfaces/PayPalCommerceVenmoCustomerInitializeOptions.md +40 -0
- package/docs/interfaces/WithPayPalCommerceCreditCustomerInitializeOptions.md +15 -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 & 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.
|
|
@@ -6083,6 +6101,20 @@ declare interface PayPalCommerceVenmoButtonInitializeOptions {
|
|
|
6083
6101
|
};
|
|
6084
6102
|
}
|
|
6085
6103
|
|
|
6104
|
+
declare interface PayPalCommerceVenmoCustomerInitializeOptions {
|
|
6105
|
+
/**
|
|
6106
|
+
* The ID of a container which the checkout button should be inserted into.
|
|
6107
|
+
*/
|
|
6108
|
+
container: string;
|
|
6109
|
+
/**
|
|
6110
|
+
* A callback that gets called if unable to initialize the widget or select
|
|
6111
|
+
* one of the address options provided by the widget.
|
|
6112
|
+
*
|
|
6113
|
+
* @param error - The error object describing the failure.
|
|
6114
|
+
*/
|
|
6115
|
+
onError?(error?: Error): void;
|
|
6116
|
+
}
|
|
6117
|
+
|
|
6086
6118
|
declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
6087
6119
|
method: 'paypal';
|
|
6088
6120
|
}
|
|
@@ -7614,6 +7646,10 @@ declare interface WithPayPalCommerceCreditButtonInitializeOptions {
|
|
|
7614
7646
|
paypalcommercecredit?: PayPalCommerceCreditButtonInitializeOptions;
|
|
7615
7647
|
}
|
|
7616
7648
|
|
|
7649
|
+
declare interface WithPayPalCommerceCreditCustomerInitializeOptions {
|
|
7650
|
+
paypalcommercecredit?: PayPalCommerceCreditCustomerInitializeOptions;
|
|
7651
|
+
}
|
|
7652
|
+
|
|
7617
7653
|
declare interface WithPayPalCommerceCustomerInitializeOptions {
|
|
7618
7654
|
/**
|
|
7619
7655
|
* The options that are required to initialize the customer step of checkout
|
|
@@ -7630,6 +7666,10 @@ declare interface WithPayPalCommerceVenmoButtonInitializeOptions {
|
|
|
7630
7666
|
paypalcommercevenmo?: PayPalCommerceVenmoButtonInitializeOptions;
|
|
7631
7667
|
}
|
|
7632
7668
|
|
|
7669
|
+
declare interface WithPayPalCommerceVenmoCustomerInitializeOptions {
|
|
7670
|
+
paypalcommercevenmo?: PayPalCommerceVenmoCustomerInitializeOptions;
|
|
7671
|
+
}
|
|
7672
|
+
|
|
7633
7673
|
declare interface WithSquareV2PaymentInitializeOptions {
|
|
7634
7674
|
/**
|
|
7635
7675
|
* The options that are required to initialize the Square payment method.
|