@bigcommerce/checkout-sdk 1.369.2 → 1.371.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 +14 -0
- package/dist/checkout-button.d.ts +22 -2
- 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 +22 -2
- 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/AmazonPayV2ButtonConfig.md +2 -0
- package/docs/interfaces/BoltButtonInitializeOptions.md +17 -0
- package/docs/interfaces/BoltBuyNowInitializeOptions.md +29 -0
- package/docs/interfaces/WithBoltButtonInitializeOptions.md +18 -0
- package/docs/interfaces/WithBuyNowFeature.md +98 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.371.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.370.0...v1.371.0) (2023-03-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **payment:** PAYPAL-2004 added ability to change style for amazonpay button ([#1914](https://github.com/bigcommerce/checkout-sdk-js/issues/1914)) ([3019104](https://github.com/bigcommerce/checkout-sdk-js/commit/30191047cbc9719664680a375ce026123ab18328))
|
|
11
|
+
|
|
12
|
+
## [1.370.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.369.2...v1.370.0) (2023-03-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **payment:** BOLT-483 Create Bolt button strategy ([ace611f](https://github.com/bigcommerce/checkout-sdk-js/commit/ace611fb0370b555d4a8deb428f1309bd8120cbb))
|
|
18
|
+
|
|
5
19
|
### [1.369.2](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.369.1...v1.369.2) (2023-03-23)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -312,6 +312,18 @@ declare interface BaseCheckoutButtonInitializeOptions extends CheckoutButtonOpti
|
|
|
312
312
|
paypal?: PaypalButtonInitializeOptions;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
+
declare interface BoltButtonInitializeOptions {
|
|
316
|
+
/**
|
|
317
|
+
* The options that are required to initialize Buy Now functionality.
|
|
318
|
+
*/
|
|
319
|
+
buyNowInitializeOptions?: BoltBuyNowInitializeOptions;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare interface BoltBuyNowInitializeOptions {
|
|
323
|
+
storefrontApiToken?: string;
|
|
324
|
+
getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
|
|
325
|
+
}
|
|
326
|
+
|
|
315
327
|
declare interface BraintreeError extends Error {
|
|
316
328
|
type: 'CUSTOMER' | 'MERCHANT' | 'NETWORK' | 'INTERNAL' | 'UNKNOWN';
|
|
317
329
|
code: string;
|
|
@@ -446,7 +458,7 @@ declare class CheckoutButtonErrorSelector {
|
|
|
446
458
|
getDeinitializeButtonError(methodId?: CheckoutButtonMethodType): Error | undefined;
|
|
447
459
|
}
|
|
448
460
|
|
|
449
|
-
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceInlineButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions;
|
|
461
|
+
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceInlineButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions;
|
|
450
462
|
|
|
451
463
|
declare class CheckoutButtonInitializer {
|
|
452
464
|
private _store;
|
|
@@ -851,7 +863,15 @@ declare interface WithApplePayButtonInitializeOptions {
|
|
|
851
863
|
applepay?: ApplePayButtonInitializeOptions_2;
|
|
852
864
|
}
|
|
853
865
|
|
|
854
|
-
declare interface
|
|
866
|
+
declare interface WithBoltButtonInitializeOptions {
|
|
867
|
+
/**
|
|
868
|
+
* The options that are required to initialize the Bolt payment
|
|
869
|
+
* method. They can be omitted unless you need to support Bolt.
|
|
870
|
+
*/
|
|
871
|
+
bolt?: BoltButtonInitializeOptions;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
declare interface WithBuyNowFeature extends AmazonPayV2ButtonConfig {
|
|
855
875
|
/**
|
|
856
876
|
* The options that are required to initialize Buy Now functionality.
|
|
857
877
|
*/
|