@bigcommerce/checkout-sdk 1.369.2 → 1.370.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 +7 -0
- package/dist/checkout-button.d.ts +21 -1
- 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 +21 -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 +4 -1
- package/docs/interfaces/BoltButtonInitializeOptions.md +17 -0
- package/docs/interfaces/BoltBuyNowInitializeOptions.md +29 -0
- package/docs/interfaces/WithBoltButtonInitializeOptions.md +18 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1370,6 +1370,18 @@ declare interface BodyStyles {
|
|
|
1370
1370
|
backgroundColor?: string;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
|
+
declare interface BoltButtonInitializeOptions {
|
|
1374
|
+
/**
|
|
1375
|
+
* The options that are required to initialize Buy Now functionality.
|
|
1376
|
+
*/
|
|
1377
|
+
buyNowInitializeOptions?: BoltBuyNowInitializeOptions;
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
declare interface BoltBuyNowInitializeOptions {
|
|
1381
|
+
storefrontApiToken?: string;
|
|
1382
|
+
getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1373
1385
|
/**
|
|
1374
1386
|
* A set of options that are required to initialize the customer step of
|
|
1375
1387
|
* checkout to support Bolt.
|
|
@@ -2157,7 +2169,7 @@ declare class CheckoutButtonErrorSelector {
|
|
|
2157
2169
|
getDeinitializeButtonError(methodId?: CheckoutButtonMethodType): Error | undefined;
|
|
2158
2170
|
}
|
|
2159
2171
|
|
|
2160
|
-
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceInlineButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions;
|
|
2172
|
+
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceInlineButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions;
|
|
2161
2173
|
|
|
2162
2174
|
declare class CheckoutButtonInitializer {
|
|
2163
2175
|
private _store;
|
|
@@ -7507,6 +7519,14 @@ declare interface WithApplePayPaymentInitializeOptions {
|
|
|
7507
7519
|
applepay?: ApplePayPaymentInitializeOptions;
|
|
7508
7520
|
}
|
|
7509
7521
|
|
|
7522
|
+
declare interface WithBoltButtonInitializeOptions {
|
|
7523
|
+
/**
|
|
7524
|
+
* The options that are required to initialize the Bolt payment
|
|
7525
|
+
* method. They can be omitted unless you need to support Bolt.
|
|
7526
|
+
*/
|
|
7527
|
+
bolt?: BoltButtonInitializeOptions;
|
|
7528
|
+
}
|
|
7529
|
+
|
|
7510
7530
|
declare interface WithBoltPaymentInitializeOptions {
|
|
7511
7531
|
/**
|
|
7512
7532
|
* The options that are required to initialize the Bolt payment
|