@bigcommerce/checkout-sdk 1.346.0 → 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.
@@ -5954,6 +5954,15 @@ declare interface PayPalButtonStyleOptions {
5954
5954
  };
5955
5955
  }
5956
5956
 
5957
+ /**
5958
+ *
5959
+ * PayPal Commerce BuyNow
5960
+ *
5961
+ */
5962
+ declare interface PayPalBuyNowInitializeOptions {
5963
+ getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
5964
+ }
5965
+
5957
5966
  /**
5958
5967
  * A set of options that are required to initialize PayPalCommerce in cart or product details page.
5959
5968
  *
@@ -5964,14 +5973,14 @@ declare interface PayPalCommerceButtonInitializeOptions {
5964
5973
  /**
5965
5974
  * The options that are required to initialize Buy Now functionality.
5966
5975
  */
5967
- buyNowInitializeOptions?: {
5968
- getBuyNowCartRequestBody?(): BuyNowCartRequestBody_2 | void;
5969
- };
5976
+ buyNowInitializeOptions?: PayPalBuyNowInitializeOptions;
5970
5977
  /**
5971
5978
  * The option that used to initialize a PayPal script with provided currency code.
5972
5979
  */
5973
5980
  currencyCode?: string;
5974
5981
  /**
5982
+ * // TODO: this flag should be removed, because the strategy does not used on checkout page
5983
+ * // and it always equals to 'false'
5975
5984
  * Flag which helps to detect that the strategy initializes on Checkout page.
5976
5985
  */
5977
5986
  initializesOnCheckoutPage?: boolean;