@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.
@@ -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;
@@ -7192,6 +7201,7 @@ declare type StripeEventType = StripeShippingEvent | StripeCustomerEvent;
7192
7201
 
7193
7202
  declare interface StripeShippingEvent extends StripeEvent {
7194
7203
  isNewAddress?: boolean;
7204
+ phoneFieldRequired: boolean;
7195
7205
  value: {
7196
7206
  address: {
7197
7207
  city: string;
@@ -7202,6 +7212,7 @@ declare interface StripeShippingEvent extends StripeEvent {
7202
7212
  state: string;
7203
7213
  };
7204
7214
  name: string;
7215
+ phone: string;
7205
7216
  };
7206
7217
  }
7207
7218