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