@wix/auto_sdk_ecom_cart 1.0.85 → 1.0.87

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.
@@ -23,13 +23,16 @@ interface Cart {
23
23
  /** Buyer information. */
24
24
  buyerInfo?: BuyerInfo;
25
25
  /**
26
- * The site's default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
26
+ * The sites default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.
27
27
  * @format CURRENCY
28
28
  * @readonly
29
29
  */
30
30
  currency?: string;
31
31
  /**
32
- * The currency selected by the buyer during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
32
+ * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
33
+ *
34
+ * This reflects the customer’s preferred display currency and may differ from the site’s default currency.
35
+ * When no specific currency is selected by the customer, this matches the `currency` property.
33
36
  * @readonly
34
37
  * @format CURRENCY
35
38
  */
@@ -96,6 +99,8 @@ interface Cart {
96
99
  purchaseFlowId?: string | null;
97
100
  /** Selected shipping option. */
98
101
  selectedShippingOption?: SelectedShippingOption;
102
+ /** Fields extended by data extensions */
103
+ extendedFields?: ExtendedFields;
99
104
  /**
100
105
  * The business location ID associated with the cart.
101
106
  *
@@ -104,7 +109,10 @@ interface Cart {
104
109
  */
105
110
  businessLocationId?: string | null;
106
111
  /**
107
- * Currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
112
+ * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
113
+ *
114
+ * This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies.
115
+ * If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.
108
116
  * @readonly
109
117
  * @format CURRENCY
110
118
  */