@bigcommerce/checkout-sdk 1.304.0 → 1.305.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.d.ts +4 -19
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +23 -19
- 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 +2 -0
- package/docs/interfaces/BodlEventsPayload.md +7 -0
- package/docs/interfaces/BodlService.md +140 -0
- package/docs/interfaces/CheckoutPaymentMethodExecutedOptions.md +15 -0
- package/docs/interfaces/ExecutePaymentMethodCheckoutOptions.md +17 -0
- package/docs/interfaces/PaypalCommerceInlineCheckoutButtonInitializeOptions.md +13 -34
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1453,9 +1453,23 @@ declare interface BlueSnapV2StyleProps {
|
|
|
1453
1453
|
width?: string;
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
|
+
declare interface BodlEventsPayload {
|
|
1457
|
+
[key: string]: unknown;
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1456
1460
|
declare interface BodlService {
|
|
1457
1461
|
checkoutBegin(): void;
|
|
1458
1462
|
orderPurchased(): void;
|
|
1463
|
+
stepCompleted(step?: string): void;
|
|
1464
|
+
customerEmailEntry(email?: string): void;
|
|
1465
|
+
customerSuggestionExecute(): void;
|
|
1466
|
+
customerPaymentMethodExecuted(payload?: BodlEventsPayload): void;
|
|
1467
|
+
showShippingMethods(): void;
|
|
1468
|
+
selectedPaymentMethod(methodName?: string): void;
|
|
1469
|
+
clickPayButton(payload?: BodlEventsPayload): void;
|
|
1470
|
+
paymentRejected(): void;
|
|
1471
|
+
paymentComplete(): void;
|
|
1472
|
+
exitCheckout(): void;
|
|
1459
1473
|
}
|
|
1460
1474
|
|
|
1461
1475
|
declare interface BodyStyles {
|
|
@@ -2351,6 +2365,10 @@ declare interface CheckoutPayment {
|
|
|
2351
2365
|
gatewayId?: string;
|
|
2352
2366
|
}
|
|
2353
2367
|
|
|
2368
|
+
declare interface CheckoutPaymentMethodExecutedOptions {
|
|
2369
|
+
hasBoltAccount?: boolean;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2354
2372
|
declare interface CheckoutRequestBody {
|
|
2355
2373
|
customerMessage: string;
|
|
2356
2374
|
}
|
|
@@ -4816,6 +4834,7 @@ declare interface EmbeddedContentOptions {
|
|
|
4816
4834
|
*
|
|
4817
4835
|
*/
|
|
4818
4836
|
declare interface ExecutePaymentMethodCheckoutOptions extends CustomerRequestOptions {
|
|
4837
|
+
checkoutPaymentMethodExecuted?(data?: CheckoutPaymentMethodExecutedOptions): void;
|
|
4819
4838
|
continueWithCheckoutCallback?(): void;
|
|
4820
4839
|
}
|
|
4821
4840
|
|
|
@@ -6405,30 +6424,11 @@ declare interface PaypalCommerceFormOptions {
|
|
|
6405
6424
|
declare type PaypalCommerceInitializeOptions = PaypalCommercePaymentInitializeOptions | PaypalCommerceCreditCardPaymentInitializeOptions;
|
|
6406
6425
|
|
|
6407
6426
|
declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
|
|
6408
|
-
/**
|
|
6409
|
-
* Accelerated Checkout Buttons container - is a generic container for all AC buttons
|
|
6410
|
-
* Used as a container where the button will be rendered with its own container
|
|
6411
|
-
* Example: 'data-cart-accelerated-checkout-buttons'
|
|
6412
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6413
|
-
*/
|
|
6414
|
-
acceleratedCheckoutContainerDataId: string;
|
|
6415
|
-
/**
|
|
6416
|
-
* A container identifier what used to add special class for container where the button will be generated in
|
|
6417
|
-
* Example: 'data-paypal-commerce-inline-button'
|
|
6418
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6419
|
-
*/
|
|
6420
|
-
buttonContainerDataId: string;
|
|
6421
6427
|
/**
|
|
6422
6428
|
* A class name used to add special class for container where the button will be generated in
|
|
6423
6429
|
* Default: 'PaypalCommerceInlineButton'
|
|
6424
6430
|
*/
|
|
6425
6431
|
buttonContainerClassName?: string;
|
|
6426
|
-
/**
|
|
6427
|
-
* Used by Accelerated Checkout strategy to hide native action button before rendering PayPal inline checkout button
|
|
6428
|
-
* Example: 'data-checkout-now-button'
|
|
6429
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6430
|
-
*/
|
|
6431
|
-
nativeCheckoutButtonDataId: string;
|
|
6432
6432
|
/**
|
|
6433
6433
|
* A set of styling options for the checkout button.
|
|
6434
6434
|
*/
|
|
@@ -6437,6 +6437,10 @@ declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
|
|
|
6437
6437
|
* A callback that gets called when payment complete on paypal side.
|
|
6438
6438
|
*/
|
|
6439
6439
|
onComplete(): void;
|
|
6440
|
+
/**
|
|
6441
|
+
* A callback that gets called on any error
|
|
6442
|
+
*/
|
|
6443
|
+
onError?(): void;
|
|
6440
6444
|
}
|
|
6441
6445
|
|
|
6442
6446
|
/**
|