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