@bigcommerce/checkout-sdk 1.345.1 → 1.347.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,25 @@
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.347.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.346.0...v1.347.0) (2023-02-15)
6
+
7
+
8
+ ### Features
9
+
10
+ * **payment:** PAYPAL-1919 added PayPalCommerceCommon class with utils methods inside for paypal-commerce-integration package ([#1838](https://github.com/bigcommerce/checkout-sdk-js/issues/1838)) ([964b0c3](https://github.com/bigcommerce/checkout-sdk-js/commit/964b0c37b2fa2af13e0b1b6b1273012e37f665b3))
11
+
12
+
13
+ ### Code Refactoring
14
+
15
+ * **payment:** PAYPAL-1919 replaced PayPalCommerceCommon name with PayPalCommerceIntegrationService ([#1842](https://github.com/bigcommerce/checkout-sdk-js/issues/1842)) ([b9e5a0f](https://github.com/bigcommerce/checkout-sdk-js/commit/b9e5a0f6a5f6a370dff42e0e1ffdb0791805941a))
16
+
17
+ ## [1.346.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.345.1...v1.346.0) (2023-02-14)
18
+
19
+
20
+ ### Features
21
+
22
+ * **payment:** STRIPE-200 add stripe phone field ([#1681](https://github.com/bigcommerce/checkout-sdk-js/issues/1681)) ([eabb2f3](https://github.com/bigcommerce/checkout-sdk-js/commit/eabb2f3faa02be36dc9beac5f4df3ee6bbedbca2))
23
+
5
24
  ### [1.345.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.345.0...v1.345.1) (2023-02-13)
6
25
 
7
26
 
@@ -634,6 +634,15 @@ declare interface PayPalButtonStyleOptions {
634
634
  };
635
635
  }
636
636
 
637
+ /**
638
+ *
639
+ * PayPal Commerce BuyNow
640
+ *
641
+ */
642
+ declare interface PayPalBuyNowInitializeOptions {
643
+ getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
644
+ }
645
+
637
646
  /**
638
647
  * A set of options that are required to initialize PayPalCommerce in cart or product details page.
639
648
  *
@@ -644,14 +653,14 @@ declare interface PayPalCommerceButtonInitializeOptions {
644
653
  /**
645
654
  * The options that are required to initialize Buy Now functionality.
646
655
  */
647
- buyNowInitializeOptions?: {
648
- getBuyNowCartRequestBody?(): BuyNowCartRequestBody_2 | void;
649
- };
656
+ buyNowInitializeOptions?: PayPalBuyNowInitializeOptions;
650
657
  /**
651
658
  * The option that used to initialize a PayPal script with provided currency code.
652
659
  */
653
660
  currencyCode?: string;
654
661
  /**
662
+ * // TODO: this flag should be removed, because the strategy does not used on checkout page
663
+ * // and it always equals to 'false'
655
664
  * Flag which helps to detect that the strategy initializes on Checkout page.
656
665
  */
657
666
  initializesOnCheckoutPage?: boolean;