@wix/auto_sdk_ecom_current-cart-v-2 1.0.23 → 1.0.24

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
  }
@@ -2033,7 +2033,6 @@ interface CreateCurrentCartRequest {
2033
2033
  /**
2034
2034
  * Coupons to apply.
2035
2035
  * Currently only one is supported.
2036
- * If the coupon code is invalid, the cart will be created without it.
2037
2036
  * @maxSize 1
2038
2037
  * @minLength 1
2039
2038
  * @maxLength 50
@@ -2042,7 +2041,6 @@ interface CreateCurrentCartRequest {
2042
2041
  /**
2043
2042
  * Gift cards to add.
2044
2043
  * Currently only one is support.
2045
- * If the gift card code is invalid, the cart will be created without it.
2046
2044
  * @maxSize 1
2047
2045
  * @minLength 8
2048
2046
  * @maxLength 20
@@ -2117,18 +2115,14 @@ interface CustomItemPricingInfo {
2117
2115
  /**
2118
2116
  * Sale price of a single item, without modifiers.
2119
2117
  * Includes tax if `tax_info.prices_include_tax` is true.
2120
- * @format DECIMAL_VALUE
2121
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2122
2118
  */
2123
- price?: string;
2119
+ price?: ConvertedMoney;
2124
2120
  /**
2125
2121
  * Full price of a single item before any discounts, without modifiers.
2126
2122
  * Defaults to `price` when not provided.
2127
2123
  * Includes tax if `tax_info.prices_include_tax` is true.
2128
- * @format DECIMAL_VALUE
2129
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2130
2124
  */
2131
- fullPrice?: string | null;
2125
+ fullPrice?: ConvertedMoney;
2132
2126
  /**
2133
2127
  * Additional description for the price.
2134
2128
  * For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
@@ -2206,10 +2200,8 @@ interface CustomItemPaymentConfig {
2206
2200
  /**
2207
2201
  * Partial payment to be paid upfront during the checkout.
2208
2202
  * 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
2203
  */
2212
- depositAmount?: string | null;
2204
+ depositAmount?: ConvertedMoney;
2213
2205
  /**
2214
2206
  * Type of selected payment option for current item.
2215
2207
  *
@@ -2576,7 +2568,6 @@ interface CreateCartRequest {
2576
2568
  /**
2577
2569
  * Coupons to apply.
2578
2570
  * Currently only one is supported.
2579
- * If the coupon code is invalid, the cart will be created without it.
2580
2571
  * @maxSize 1
2581
2572
  * @minLength 1
2582
2573
  * @maxLength 50
@@ -2585,7 +2576,6 @@ interface CreateCartRequest {
2585
2576
  /**
2586
2577
  * Gift cards to add.
2587
2578
  * Currently only one is support.
2588
- * If the gift card code is invalid, the cart will be created without it.
2589
2579
  * @maxSize 1
2590
2580
  * @minLength 8
2591
2581
  * @maxLength 20
@@ -2750,7 +2740,7 @@ interface PlaceOrderResponse {
2750
2740
  */
2751
2741
  paymentGatewayOrderId?: string | null;
2752
2742
  /** Whether an order was successfully created from this cart and the payment transaction was completed. */
2753
- cartCompleted?: boolean;
2743
+ completed?: boolean;
2754
2744
  }
2755
2745
  interface AddLineItemsRequest {
2756
2746
  /**