@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.
@@ -1896,6 +1896,14 @@ declare enum ButtonType {
1896
1896
  Short = "short"
1897
1897
  }
1898
1898
 
1899
+ /**
1900
+ * An object that contains the information required for creating 'Buy now' cart.
1901
+ */
1902
+ declare interface BuyNowCartRequestBody {
1903
+ source: 'BUY_NOW';
1904
+ lineItems: LineItem_2[];
1905
+ }
1906
+
1899
1907
  declare interface CardCvcElementOptions extends BaseIndividualElementOptions {
1900
1908
  placeholder?: string;
1901
1909
  }
@@ -2005,6 +2013,7 @@ declare interface Cart {
2005
2013
  lineItems: LineItemMap;
2006
2014
  createdTime: string;
2007
2015
  updatedTime: string;
2016
+ source?: 'BUY_NOW';
2008
2017
  }
2009
2018
 
2010
2019
  declare class CartChangedError extends StandardError {
@@ -5496,6 +5505,15 @@ declare interface LineItemSocialData {
5496
5505
  link: string;
5497
5506
  }
5498
5507
 
5508
+ declare interface LineItem_2 {
5509
+ productId: number;
5510
+ quantity: number;
5511
+ optionSelections?: {
5512
+ optionId: number;
5513
+ optionValue: number | string;
5514
+ };
5515
+ }
5516
+
5499
5517
  declare interface LinkStyles extends InlineElementStyles {
5500
5518
  active?: InlineElementStyles;
5501
5519
  focus?: InlineElementStyles;
@@ -6080,9 +6098,19 @@ declare interface PaypalCommerceButtonInitializeOptions {
6080
6098
  */
6081
6099
  style?: PaypalButtonStyleOptions_2;
6082
6100
  /**
6083
- * Flag which helps to detect that the strategy initializes on Checkout page
6101
+ * Flag which helps to detect that the strategy initializes on Checkout page.
6084
6102
  */
6085
6103
  initializesOnCheckoutPage?: boolean;
6104
+ /**
6105
+ * The option that used to initialize a PayPal script with provided currency code.
6106
+ */
6107
+ currencyCode?: string;
6108
+ /**
6109
+ * The options that are required to initialize Buy Now functionality.
6110
+ */
6111
+ buyNowInitializeOptions?: {
6112
+ getBuyNowCartRequestBody?(): BuyNowCartRequestBody | void;
6113
+ };
6086
6114
  }
6087
6115
 
6088
6116
  declare interface PaypalCommerceCreditButtonInitializeOptions {