@bigcommerce/checkout-sdk 1.288.1 → 1.290.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 +28 -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 +29 -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/dist/internal-mappers.d.ts +1 -0
- package/docs/README.md +2 -0
- package/docs/interfaces/BuyNowCartRequestBody.md +24 -0
- package/docs/interfaces/Cart.md +7 -0
- package/docs/interfaces/LineItem_2.md +36 -0
- package/docs/interfaces/PaypalCommerceButtonInitializeOptions.md +25 -1
- 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.290.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.289.0...v1.290.0) (2022-09-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **payment:** BOLT-282 fixed analytics feature for Bolt Checkout ([fdc975e](https://github.com/bigcommerce/checkout-sdk-js/commit/fdc975efc5042fa09762055548a624e7dd908020))
|
|
11
|
+
|
|
12
|
+
## [1.289.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.288.1...v1.289.0) (2022-09-27)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **payment:** PAYPAL-1625 added Buy Now implementation for PayPalCommerceButtonStrategy ([#1604](https://github.com/bigcommerce/checkout-sdk-js/issues/1604)) ([02bb2db](https://github.com/bigcommerce/checkout-sdk-js/commit/02bb2db89fb74decfed2c47f57da9c703b046686))
|
|
18
|
+
|
|
5
19
|
### [1.288.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.288.0...v1.288.1) (2022-09-26)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -406,6 +406,14 @@ declare enum ButtonType {
|
|
|
406
406
|
Short = "short"
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
+
/**
|
|
410
|
+
* An object that contains the information required for creating 'Buy now' cart.
|
|
411
|
+
*/
|
|
412
|
+
declare interface BuyNowCartRequestBody {
|
|
413
|
+
source: 'BUY_NOW';
|
|
414
|
+
lineItems: LineItem[];
|
|
415
|
+
}
|
|
416
|
+
|
|
409
417
|
declare class CheckoutButtonErrorSelector {
|
|
410
418
|
private _checkoutButton;
|
|
411
419
|
getInitializeButtonError(methodId?: CheckoutButtonMethodType): Error | undefined;
|
|
@@ -571,6 +579,15 @@ declare interface GooglePayButtonInitializeOptions {
|
|
|
571
579
|
buttonType?: ButtonType;
|
|
572
580
|
}
|
|
573
581
|
|
|
582
|
+
declare interface LineItem {
|
|
583
|
+
productId: number;
|
|
584
|
+
quantity: number;
|
|
585
|
+
optionSelections?: {
|
|
586
|
+
optionId: number;
|
|
587
|
+
optionValue: number | string;
|
|
588
|
+
};
|
|
589
|
+
}
|
|
590
|
+
|
|
574
591
|
declare interface PaypalButtonInitializeOptions {
|
|
575
592
|
/**
|
|
576
593
|
* The Client ID of the Paypal App
|
|
@@ -679,9 +696,19 @@ declare interface PaypalCommerceButtonInitializeOptions {
|
|
|
679
696
|
*/
|
|
680
697
|
style?: PaypalButtonStyleOptions_2;
|
|
681
698
|
/**
|
|
682
|
-
* Flag which helps to detect that the strategy initializes on Checkout page
|
|
699
|
+
* Flag which helps to detect that the strategy initializes on Checkout page.
|
|
683
700
|
*/
|
|
684
701
|
initializesOnCheckoutPage?: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* The option that used to initialize a PayPal script with provided currency code.
|
|
704
|
+
*/
|
|
705
|
+
currencyCode?: string;
|
|
706
|
+
/**
|
|
707
|
+
* The options that are required to initialize Buy Now functionality.
|
|
708
|
+
*/
|
|
709
|
+
buyNowInitializeOptions?: {
|
|
710
|
+
getBuyNowCartRequestBody?(): BuyNowCartRequestBody | void;
|
|
711
|
+
};
|
|
685
712
|
}
|
|
686
713
|
|
|
687
714
|
declare interface PaypalCommerceCreditButtonInitializeOptions {
|