@bigcommerce/checkout-sdk 1.288.1 → 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.
@@ -66,6 +66,7 @@ declare interface Cart {
66
66
  lineItems: LineItemMap;
67
67
  createdTime: string;
68
68
  updatedTime: string;
69
+ source?: 'BUY_NOW';
69
70
  }
70
71
 
71
72
  declare interface Checkout {
package/docs/README.md CHANGED
@@ -132,6 +132,7 @@
132
132
  - [BrowserInfo](interfaces/BrowserInfo.md)
133
133
  - [ButtonResponse](interfaces/ButtonResponse.md)
134
134
  - [ButtonStyles](interfaces/ButtonStyles.md)
135
+ - [BuyNowCartRequestBody](interfaces/BuyNowCartRequestBody.md)
135
136
  - [CardCvcElementOptions](interfaces/CardCvcElementOptions.md)
136
137
  - [CardDataPaymentMethodState](interfaces/CardDataPaymentMethodState.md)
137
138
  - [CardDataPaymentMethodState_2](interfaces/CardDataPaymentMethodState_2.md)
@@ -256,6 +257,7 @@
256
257
  - [LineItemMap](interfaces/LineItemMap.md)
257
258
  - [LineItemOption](interfaces/LineItemOption.md)
258
259
  - [LineItemSocialData](interfaces/LineItemSocialData.md)
260
+ - [LineItem_2](interfaces/LineItem_2.md)
259
261
  - [LinkStyles](interfaces/LinkStyles.md)
260
262
  - [LoadingIndicatorStyles](interfaces/LoadingIndicatorStyles.md)
261
263
  - [Locales](interfaces/Locales.md)
@@ -0,0 +1,24 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / BuyNowCartRequestBody
2
+
3
+ # Interface: BuyNowCartRequestBody
4
+
5
+ An object that contains the information required for creating 'Buy now' cart.
6
+
7
+ ## Table of contents
8
+
9
+ ### Properties
10
+
11
+ - [lineItems](BuyNowCartRequestBody.md#lineitems)
12
+ - [source](BuyNowCartRequestBody.md#source)
13
+
14
+ ## Properties
15
+
16
+ ### lineItems
17
+
18
+ • **lineItems**: [`LineItem_2`](LineItem_2.md)[]
19
+
20
+ ___
21
+
22
+ ### source
23
+
24
+ • **source**: ``"BUY_NOW"``
@@ -18,6 +18,7 @@
18
18
  - [id](Cart.md#id)
19
19
  - [isTaxIncluded](Cart.md#istaxincluded)
20
20
  - [lineItems](Cart.md#lineitems)
21
+ - [source](Cart.md#source)
21
22
  - [updatedTime](Cart.md#updatedtime)
22
23
 
23
24
  ## Properties
@@ -94,6 +95,12 @@ ___
94
95
 
95
96
  ___
96
97
 
98
+ ### source
99
+
100
+ • `Optional` **source**: ``"BUY_NOW"``
101
+
102
+ ___
103
+
97
104
  ### updatedTime
98
105
 
99
106
  • **updatedTime**: `string`
@@ -0,0 +1,36 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / LineItem_2
2
+
3
+ # Interface: LineItem\_2
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [optionSelections](LineItem_2.md#optionselections)
10
+ - [productId](LineItem_2.md#productid)
11
+ - [quantity](LineItem_2.md#quantity)
12
+
13
+ ## Properties
14
+
15
+ ### optionSelections
16
+
17
+ • `Optional` **optionSelections**: `Object`
18
+
19
+ #### Type declaration
20
+
21
+ | Name | Type |
22
+ | :------ | :------ |
23
+ | `optionId` | `number` |
24
+ | `optionValue` | `string` \| `number` |
25
+
26
+ ___
27
+
28
+ ### productId
29
+
30
+ • **productId**: `number`
31
+
32
+ ___
33
+
34
+ ### quantity
35
+
36
+ • **quantity**: `number`
@@ -6,16 +6,40 @@
6
6
 
7
7
  ### Properties
8
8
 
9
+ - [buyNowInitializeOptions](PaypalCommerceButtonInitializeOptions.md#buynowinitializeoptions)
10
+ - [currencyCode](PaypalCommerceButtonInitializeOptions.md#currencycode)
9
11
  - [initializesOnCheckoutPage](PaypalCommerceButtonInitializeOptions.md#initializesoncheckoutpage)
10
12
  - [style](PaypalCommerceButtonInitializeOptions.md#style)
11
13
 
12
14
  ## Properties
13
15
 
16
+ ### buyNowInitializeOptions
17
+
18
+ • `Optional` **buyNowInitializeOptions**: `Object`
19
+
20
+ The options that are required to initialize Buy Now functionality.
21
+
22
+ #### Type declaration
23
+
24
+ | Name | Type |
25
+ | :------ | :------ |
26
+ | `getBuyNowCartRequestBody?` | () => `void` \| [`BuyNowCartRequestBody`](BuyNowCartRequestBody.md) |
27
+
28
+ ___
29
+
30
+ ### currencyCode
31
+
32
+ • `Optional` **currencyCode**: `string`
33
+
34
+ The option that used to initialize a PayPal script with provided currency code.
35
+
36
+ ___
37
+
14
38
  ### initializesOnCheckoutPage
15
39
 
16
40
  • `Optional` **initializesOnCheckoutPage**: `boolean`
17
41
 
18
- Flag which helps to detect that the strategy initializes on Checkout page
42
+ Flag which helps to detect that the strategy initializes on Checkout page.
19
43
 
20
44
  ___
21
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.288.1",
3
+ "version": "1.289.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",