@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.
@@ -22,13 +22,16 @@ interface Cart {
22
22
  /** Buyer information. */
23
23
  buyerInfo?: BuyerInfo;
24
24
  /**
25
- * The site's default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
25
+ * 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.
26
26
  * @format CURRENCY
27
27
  * @readonly
28
28
  */
29
29
  currency?: string;
30
30
  /**
31
- * 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.
31
+ * 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.
32
+ *
33
+ * This reflects the customer’s preferred display currency and may differ from the site’s default currency.
34
+ * When no specific currency is selected by the customer, this matches the `currency` property.
32
35
  * @readonly
33
36
  * @format CURRENCY
34
37
  */
@@ -95,6 +98,8 @@ interface Cart {
95
98
  purchaseFlowId?: string | null;
96
99
  /** Selected shipping option. */
97
100
  selectedShippingOption?: SelectedShippingOption;
101
+ /** Fields extended by data extensions */
102
+ extendedFields?: ExtendedFields;
98
103
  /**
99
104
  * The business location ID associated with the cart.
100
105
  *
@@ -103,7 +108,10 @@ interface Cart {
103
108
  */
104
109
  businessLocationId?: string | null;
105
110
  /**
106
- * Currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
111
+ * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
112
+ *
113
+ * 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.
114
+ * 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.
107
115
  * @readonly
108
116
  * @format CURRENCY
109
117
  */
@@ -3064,13 +3072,16 @@ interface UpdateCartOptions {
3064
3072
  /** Buyer information. */
3065
3073
  buyerInfo?: BuyerInfo;
3066
3074
  /**
3067
- * The site's default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
3075
+ * 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.
3068
3076
  * @format CURRENCY
3069
3077
  * @readonly
3070
3078
  */
3071
3079
  currency?: string;
3072
3080
  /**
3073
- * 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.
3081
+ * 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.
3082
+ *
3083
+ * This reflects the customer’s preferred display currency and may differ from the site’s default currency.
3084
+ * When no specific currency is selected by the customer, this matches the `currency` property.
3074
3085
  * @readonly
3075
3086
  * @format CURRENCY
3076
3087
  */
@@ -3137,6 +3148,8 @@ interface UpdateCartOptions {
3137
3148
  purchaseFlowId?: string | null;
3138
3149
  /** Selected shipping option. */
3139
3150
  selectedShippingOption?: SelectedShippingOption;
3151
+ /** Fields extended by data extensions */
3152
+ extendedFields?: ExtendedFields;
3140
3153
  /**
3141
3154
  * The business location ID associated with the cart.
3142
3155
  *
@@ -3145,7 +3158,10 @@ interface UpdateCartOptions {
3145
3158
  */
3146
3159
  businessLocationId?: string | null;
3147
3160
  /**
3148
- * Currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
3161
+ * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
3162
+ *
3163
+ * 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.
3164
+ * 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.
3149
3165
  * @readonly
3150
3166
  * @format CURRENCY
3151
3167
  */