@wix/auto_sdk_ecom_cart-v-2 1.0.23 → 1.0.25

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.
@@ -25,8 +25,7 @@ interface Cart {
25
25
  revision?: string | null;
26
26
  /**
27
27
  * Line items added to the Cart by the customer.
28
- * This list may include both valid items (in stock) and invalid ones (e.g., out of stock).
29
- * When submitting an order, only valid items will be included in the order.
28
+ * This list may include items in stock and invalid out out stock.
30
29
  * @maxSize 300
31
30
  * @readonly
32
31
  */
@@ -231,6 +230,7 @@ interface ConvertedMoney {
231
230
  * Default: `amount`.
232
231
  * @format DECIMAL_VALUE
233
232
  * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
233
+ * @readonly
234
234
  */
235
235
  convertedAmount?: string;
236
236
  }
@@ -1085,7 +1085,9 @@ interface BusinessInfo {
1085
1085
  */
1086
1086
  languageCode?: string;
1087
1087
  /**
1088
- * The business’s default currency, represented as a three-letter ISO 4217 code.
1088
+ * The business’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1089
+ *
1090
+ * This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).
1089
1091
  * @format CURRENCY
1090
1092
  * @readonly
1091
1093
  */
@@ -1154,8 +1156,9 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1154
1156
  */
1155
1157
  languageCode?: string;
1156
1158
  /**
1157
- * Customer’s currency, represented as a three-letter ISO 4217 code.
1158
- * Resolved automatically from the request metadata ('x-wix-currency' header).
1159
+ * 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.
1160
+ *
1161
+ * This reflects the customer’s preferred display currency and may differ from the site’s default currency.
1159
1162
  * @format CURRENCY
1160
1163
  * @readonly
1161
1164
  */
@@ -1325,7 +1328,9 @@ interface PaymentInfo {
1325
1328
  */
1326
1329
  giftCards?: GiftCard[];
1327
1330
  /**
1328
- * The currency to pay with, represented as a three-letter ISO 4217 code.
1331
+ * The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1332
+ *
1333
+ * This is determined by the customer’s selected currency and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `customerInfo.currencyCode` property. If not supported, this falls back to the `businessInfo.currencyCode` property.
1329
1334
  * @format CURRENCY
1330
1335
  * @readonly
1331
1336
  */
@@ -2033,7 +2038,6 @@ interface CreateCurrentCartRequest {
2033
2038
  /**
2034
2039
  * Coupons to apply.
2035
2040
  * Currently only one is supported.
2036
- * If the coupon code is invalid, the cart will be created without it.
2037
2041
  * @maxSize 1
2038
2042
  * @minLength 1
2039
2043
  * @maxLength 50
@@ -2042,7 +2046,6 @@ interface CreateCurrentCartRequest {
2042
2046
  /**
2043
2047
  * Gift cards to add.
2044
2048
  * Currently only one is support.
2045
- * If the gift card code is invalid, the cart will be created without it.
2046
2049
  * @maxSize 1
2047
2050
  * @minLength 8
2048
2051
  * @maxLength 20
@@ -2117,18 +2120,14 @@ interface CustomItemPricingInfo {
2117
2120
  /**
2118
2121
  * Sale price of a single item, without modifiers.
2119
2122
  * Includes tax if `tax_info.prices_include_tax` is true.
2120
- * @format DECIMAL_VALUE
2121
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2122
2123
  */
2123
- price?: string;
2124
+ price?: ConvertedMoney;
2124
2125
  /**
2125
2126
  * Full price of a single item before any discounts, without modifiers.
2126
2127
  * Defaults to `price` when not provided.
2127
2128
  * Includes tax if `tax_info.prices_include_tax` is true.
2128
- * @format DECIMAL_VALUE
2129
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2130
2129
  */
2131
- fullPrice?: string | null;
2130
+ fullPrice?: ConvertedMoney;
2132
2131
  /**
2133
2132
  * Additional description for the price.
2134
2133
  * For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
@@ -2206,10 +2205,8 @@ interface CustomItemPaymentConfig {
2206
2205
  /**
2207
2206
  * Partial payment to be paid upfront during the checkout.
2208
2207
  * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
2209
- * @format DECIMAL_VALUE
2210
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2211
2208
  */
2212
- depositAmount?: string | null;
2209
+ depositAmount?: ConvertedMoney;
2213
2210
  /**
2214
2211
  * Type of selected payment option for current item.
2215
2212
  *
@@ -2576,7 +2573,6 @@ interface CreateCartRequest {
2576
2573
  /**
2577
2574
  * Coupons to apply.
2578
2575
  * Currently only one is supported.
2579
- * If the coupon code is invalid, the cart will be created without it.
2580
2576
  * @maxSize 1
2581
2577
  * @minLength 1
2582
2578
  * @maxLength 50
@@ -2585,7 +2581,6 @@ interface CreateCartRequest {
2585
2581
  /**
2586
2582
  * Gift cards to add.
2587
2583
  * Currently only one is support.
2588
- * If the gift card code is invalid, the cart will be created without it.
2589
2584
  * @maxSize 1
2590
2585
  * @minLength 8
2591
2586
  * @maxLength 20
@@ -2750,7 +2745,7 @@ interface PlaceOrderResponse {
2750
2745
  */
2751
2746
  paymentGatewayOrderId?: string | null;
2752
2747
  /** Whether an order was successfully created from this cart and the payment transaction was completed. */
2753
- cartCompleted?: boolean;
2748
+ completed?: boolean;
2754
2749
  }
2755
2750
  interface AddLineItemsRequest {
2756
2751
  /**