@bigcommerce/checkout-sdk 1.696.3 → 1.698.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/docs/README.md CHANGED
@@ -12,6 +12,8 @@
12
12
  - [CheckoutIncludes](enums/CheckoutIncludes.md)
13
13
  - [EmbeddedCheckoutEventType](enums/EmbeddedCheckoutEventType.md)
14
14
  - [ExtensionCommandType](enums/ExtensionCommandType.md)
15
+ - [ExtensionEventType](enums/ExtensionEventType.md)
16
+ - [ExtensionMessageType](enums/ExtensionMessageType.md)
15
17
  - [ExtensionRegion](enums/ExtensionRegion.md)
16
18
  - [GooglePayKey](enums/GooglePayKey.md)
17
19
  - [HostedFieldEventType](enums/HostedFieldEventType.md)
@@ -188,6 +190,7 @@
188
190
  - [ConsignmentPickupOption](interfaces/ConsignmentPickupOption.md)
189
191
  - [ConsignmentSelector](interfaces/ConsignmentSelector.md)
190
192
  - [ConsignmentUpdateRequestBody](interfaces/ConsignmentUpdateRequestBody.md)
193
+ - [ConsignmentsChangedEvent](interfaces/ConsignmentsChangedEvent.md)
191
194
  - [ContextConfig](interfaces/ContextConfig.md)
192
195
  - [Coordinates](interfaces/Coordinates.md)
193
196
  - [Country](interfaces/Country.md)
@@ -241,6 +244,8 @@
241
244
  - [FormFields](interfaces/FormFields.md)
242
245
  - [FormSelector](interfaces/FormSelector.md)
243
246
  - [GatewayOrderPayment](interfaces/GatewayOrderPayment.md)
247
+ - [GetConsignmentsCommand](interfaces/GetConsignmentsCommand.md)
248
+ - [GetConsignmentsMessage](interfaces/GetConsignmentsMessage.md)
244
249
  - [GiftCertificate](interfaces/GiftCertificate.md)
245
250
  - [GiftCertificateItem](interfaces/GiftCertificateItem.md)
246
251
  - [GiftCertificateOrderPayment](interfaces/GiftCertificateOrderPayment.md)
@@ -504,6 +509,8 @@
504
509
  - [ConsignmentsRequestBody](README.md#consignmentsrequestbody)
505
510
  - [CustomerAddressRequestBody](README.md#customeraddressrequestbody)
506
511
  - [CustomerInitializeOptions](README.md#customerinitializeoptions)
512
+ - [ExtensionEvent](README.md#extensionevent)
513
+ - [ExtensionMessage](README.md#extensionmessage)
507
514
  - [FlashMessageType](README.md#flashmessagetype)
508
515
  - [FormFieldFieldType](README.md#formfieldfieldtype)
509
516
  - [FormFieldType](README.md#formfieldtype)
@@ -673,6 +680,18 @@ ___
673
680
 
674
681
  ___
675
682
 
683
+ ### ExtensionEvent
684
+
685
+ Ƭ **ExtensionEvent**: [`ConsignmentsChangedEvent`](interfaces/ConsignmentsChangedEvent.md)
686
+
687
+ ___
688
+
689
+ ### ExtensionMessage
690
+
691
+ Ƭ **ExtensionMessage**: [`ExtensionEvent`](README.md#extensionevent) \| [`GetConsignmentsMessage`](interfaces/GetConsignmentsMessage.md)
692
+
693
+ ___
694
+
676
695
  ### FlashMessageType
677
696
 
678
697
  Ƭ **FlashMessageType**: ``"error"`` \| ``"info"`` \| ``"warning"`` \| ``"success"``
@@ -53,6 +53,7 @@ retrieve the current checkout state and subscribe to its changes.
53
53
  - [loadShippingCountries](CheckoutService.md#loadshippingcountries)
54
54
  - [loadShippingOptions](CheckoutService.md#loadshippingoptions)
55
55
  - [notifyState](CheckoutService.md#notifystate)
56
+ - [postMessageToExtension](CheckoutService.md#postmessagetoextension)
56
57
  - [removeCoupon](CheckoutService.md#removecoupon)
57
58
  - [removeGiftCertificate](CheckoutService.md#removegiftcertificate)
58
59
  - [renderExtension](CheckoutService.md#renderextension)
@@ -1231,6 +1232,27 @@ they have any filters applied.
1231
1232
 
1232
1233
  ___
1233
1234
 
1235
+ ### postMessageToExtension
1236
+
1237
+ ▸ **postMessageToExtension**(`extensionId`, `message`): `void`
1238
+
1239
+ Posts a message to a checkout extension.
1240
+
1241
+ **`alpha`**
1242
+
1243
+ #### Parameters
1244
+
1245
+ | Name | Type | Description |
1246
+ | :------ | :------ | :------ |
1247
+ | `extensionId` | `string` | The ID of an extension to post the event to. |
1248
+ | `message` | [`ExtensionMessage`](../README.md#extensionmessage) | The message to post to an extension. |
1249
+
1250
+ #### Returns
1251
+
1252
+ `void`
1253
+
1254
+ ___
1255
+
1234
1256
  ### removeCoupon
1235
1257
 
1236
1258
  ▸ **removeCoupon**(`code`, `options?`): `Promise`<[`CheckoutSelectors`](../interfaces/CheckoutSelectors.md)\>
@@ -6,12 +6,19 @@
6
6
 
7
7
  ### Enumeration Members
8
8
 
9
+ - [GetConsignments](ExtensionCommandType.md#getconsignments)
9
10
  - [ReloadCheckout](ExtensionCommandType.md#reloadcheckout)
10
11
  - [SetIframeStyle](ExtensionCommandType.md#setiframestyle)
11
12
  - [ShowLoadingIndicator](ExtensionCommandType.md#showloadingindicator)
12
13
 
13
14
  ## Enumeration Members
14
15
 
16
+ ### GetConsignments
17
+
18
+ • **GetConsignments**
19
+
20
+ ___
21
+
15
22
  ### ReloadCheckout
16
23
 
17
24
  • **ReloadCheckout**
@@ -0,0 +1,15 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / ExtensionEventType
2
+
3
+ # Enumeration: ExtensionEventType
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [ConsignmentsChanged](ExtensionEventType.md#consignmentschanged)
10
+
11
+ ## Enumeration Members
12
+
13
+ ### ConsignmentsChanged
14
+
15
+ • **ConsignmentsChanged**
@@ -0,0 +1,15 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / ExtensionMessageType
2
+
3
+ # Enumeration: ExtensionMessageType
4
+
5
+ ## Table of contents
6
+
7
+ ### Enumeration Members
8
+
9
+ - [GetConsignments](ExtensionMessageType.md#getconsignments)
10
+
11
+ ## Enumeration Members
12
+
13
+ ### GetConsignments
14
+
15
+ • **GetConsignments**
@@ -0,0 +1,29 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / ConsignmentsChangedEvent
2
+
3
+ # Interface: ConsignmentsChangedEvent
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [payload](ConsignmentsChangedEvent.md#payload)
10
+ - [type](ConsignmentsChangedEvent.md#type)
11
+
12
+ ## Properties
13
+
14
+ ### payload
15
+
16
+ • **payload**: `Object`
17
+
18
+ #### Type declaration
19
+
20
+ | Name | Type |
21
+ | :------ | :------ |
22
+ | `consignments` | [`Consignment`](Consignment.md)[] |
23
+ | `previousConsignments` | [`Consignment`](Consignment.md)[] |
24
+
25
+ ___
26
+
27
+ ### type
28
+
29
+ • **type**: [`ConsignmentsChanged`](../enums/ExtensionEventType.md#consignmentschanged)
@@ -6,12 +6,19 @@
6
6
 
7
7
  ### Properties
8
8
 
9
+ - [EXTENSION%3AGET_CONSIGNMENTS](ExtensionCommandMap.md#extension:get_consignments)
9
10
  - [EXTENSION%3ARELOAD_CHECKOUT](ExtensionCommandMap.md#extension:reload_checkout)
10
11
  - [EXTENSION%3ASET_IFRAME_STYLE](ExtensionCommandMap.md#extension:set_iframe_style)
11
12
  - [EXTENSION%3ASHOW_LOADING_INDICATOR](ExtensionCommandMap.md#extension:show_loading_indicator)
12
13
 
13
14
  ## Properties
14
15
 
16
+ ### EXTENSION:GET\_CONSIGNMENTS
17
+
18
+ • **EXTENSION:GET\_CONSIGNMENTS**: [`GetConsignmentsCommand`](GetConsignmentsCommand.md)
19
+
20
+ ___
21
+
15
22
  ### EXTENSION:RELOAD\_CHECKOUT
16
23
 
17
24
  • **EXTENSION:RELOAD\_CHECKOUT**: [`ReloadCheckoutCommand`](ReloadCheckoutCommand.md)
@@ -0,0 +1,15 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / GetConsignmentsCommand
2
+
3
+ # Interface: GetConsignmentsCommand
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [type](GetConsignmentsCommand.md#type)
10
+
11
+ ## Properties
12
+
13
+ ### type
14
+
15
+ • **type**: [`GetConsignments`](../enums/ExtensionCommandType.md#getconsignments)
@@ -0,0 +1,28 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) / GetConsignmentsMessage
2
+
3
+ # Interface: GetConsignmentsMessage
4
+
5
+ ## Table of contents
6
+
7
+ ### Properties
8
+
9
+ - [payload](GetConsignmentsMessage.md#payload)
10
+ - [type](GetConsignmentsMessage.md#type)
11
+
12
+ ## Properties
13
+
14
+ ### payload
15
+
16
+ • **payload**: `Object`
17
+
18
+ #### Type declaration
19
+
20
+ | Name | Type |
21
+ | :------ | :------ |
22
+ | `consignments` | [`Consignment`](Consignment.md)[] |
23
+
24
+ ___
25
+
26
+ ### type
27
+
28
+ • **type**: [`GetConsignments`](../enums/ExtensionMessageType.md#getconsignments)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.696.3",
3
+ "version": "1.698.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",