@bigcommerce/checkout-sdk 1.288.0 → 1.289.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 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.289.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.288.1...v1.289.0) (2022-09-27)
6
+
7
+
8
+ ### Features
9
+
10
+ * **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))
11
+
12
+ ### [1.288.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.288.0...v1.288.1) (2022-09-26)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **payment:** STRIPE-131 Added a catch in case an exception occurs when confirming the payment using 3DS2 ([#1586](https://github.com/bigcommerce/checkout-sdk-js/issues/1586)) ([f046e7d](https://github.com/bigcommerce/checkout-sdk-js/commit/f046e7d3d482d10d5161afd13b219cf3556c442f))
18
+
5
19
  ## [1.288.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.287.1...v1.288.0) (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 {