@wix/ecom 1.0.520 → 1.0.522

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.
Files changed (691) hide show
  1. package/build/cjs/context.d.ts +16 -16
  2. package/build/cjs/context.js +17 -17
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +16 -19
  5. package/build/cjs/index.js +17 -20
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +16 -19
  8. package/build/cjs/meta.js +17 -20
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +16 -16
  11. package/build/es/context.js +16 -16
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +16 -19
  14. package/build/es/index.js +16 -19
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +16 -19
  17. package/build/es/meta.js +16 -19
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +26 -10
  20. package/build/cjs/index.typings.d.ts +0 -19
  21. package/build/cjs/index.typings.js +0 -46
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/ecom-discounts-v1-discount-rule.context.d.ts +0 -7
  24. package/build/cjs/src/ecom-discounts-v1-discount-rule.context.js +0 -90
  25. package/build/cjs/src/ecom-discounts-v1-discount-rule.context.js.map +0 -1
  26. package/build/cjs/src/ecom-discounts-v1-discount-rule.http.d.ts +0 -48
  27. package/build/cjs/src/ecom-discounts-v1-discount-rule.http.js +0 -265
  28. package/build/cjs/src/ecom-discounts-v1-discount-rule.http.js.map +0 -1
  29. package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.d.ts +0 -23
  30. package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.js +0 -123
  31. package/build/cjs/src/ecom-discounts-v1-discount-rule.meta.js.map +0 -1
  32. package/build/cjs/src/ecom-discounts-v1-discount-rule.public.d.ts +0 -205
  33. package/build/cjs/src/ecom-discounts-v1-discount-rule.public.js +0 -48
  34. package/build/cjs/src/ecom-discounts-v1-discount-rule.public.js.map +0 -1
  35. package/build/cjs/src/ecom-discounts-v1-discount-rule.types.d.ts +0 -990
  36. package/build/cjs/src/ecom-discounts-v1-discount-rule.types.js +0 -70
  37. package/build/cjs/src/ecom-discounts-v1-discount-rule.types.js.map +0 -1
  38. package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.d.ts +0 -1086
  39. package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.js +0 -455
  40. package/build/cjs/src/ecom-discounts-v1-discount-rule.universal.js.map +0 -1
  41. package/build/cjs/src/ecom-orders-v1-invoice.context.d.ts +0 -3
  42. package/build/cjs/src/ecom-orders-v1-invoice.context.js +0 -22
  43. package/build/cjs/src/ecom-orders-v1-invoice.context.js.map +0 -1
  44. package/build/cjs/src/ecom-orders-v1-invoice.http.d.ts +0 -8
  45. package/build/cjs/src/ecom-orders-v1-invoice.http.js +0 -46
  46. package/build/cjs/src/ecom-orders-v1-invoice.http.js.map +0 -1
  47. package/build/cjs/src/ecom-orders-v1-invoice.meta.d.ts +0 -13
  48. package/build/cjs/src/ecom-orders-v1-invoice.meta.js +0 -47
  49. package/build/cjs/src/ecom-orders-v1-invoice.meta.js.map +0 -1
  50. package/build/cjs/src/ecom-orders-v1-invoice.public.d.ts +0 -6
  51. package/build/cjs/src/ecom-orders-v1-invoice.public.js +0 -12
  52. package/build/cjs/src/ecom-orders-v1-invoice.public.js.map +0 -1
  53. package/build/cjs/src/ecom-orders-v1-invoice.types.d.ts +0 -172
  54. package/build/cjs/src/ecom-orders-v1-invoice.types.js +0 -3
  55. package/build/cjs/src/ecom-orders-v1-invoice.types.js.map +0 -1
  56. package/build/cjs/src/ecom-orders-v1-invoice.universal.d.ts +0 -201
  57. package/build/cjs/src/ecom-orders-v1-invoice.universal.js +0 -117
  58. package/build/cjs/src/ecom-orders-v1-invoice.universal.js.map +0 -1
  59. package/build/cjs/src/ecom-recommendations-v1-recommendation.context.d.ts +0 -4
  60. package/build/cjs/src/ecom-recommendations-v1-recommendation.context.js +0 -39
  61. package/build/cjs/src/ecom-recommendations-v1-recommendation.context.js.map +0 -1
  62. package/build/cjs/src/ecom-recommendations-v1-recommendation.http.d.ts +0 -37
  63. package/build/cjs/src/ecom-recommendations-v1-recommendation.http.js +0 -91
  64. package/build/cjs/src/ecom-recommendations-v1-recommendation.http.js.map +0 -1
  65. package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.d.ts +0 -14
  66. package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.js +0 -66
  67. package/build/cjs/src/ecom-recommendations-v1-recommendation.meta.js.map +0 -1
  68. package/build/cjs/src/ecom-recommendations-v1-recommendation.public.d.ts +0 -9
  69. package/build/cjs/src/ecom-recommendations-v1-recommendation.public.js +0 -20
  70. package/build/cjs/src/ecom-recommendations-v1-recommendation.public.js.map +0 -1
  71. package/build/cjs/src/ecom-recommendations-v1-recommendation.types.d.ts +0 -136
  72. package/build/cjs/src/ecom-recommendations-v1-recommendation.types.js +0 -10
  73. package/build/cjs/src/ecom-recommendations-v1-recommendation.types.js.map +0 -1
  74. package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.d.ts +0 -206
  75. package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.js +0 -207
  76. package/build/cjs/src/ecom-recommendations-v1-recommendation.universal.js.map +0 -1
  77. package/build/cjs/src/ecom-v1-abandoned-checkout.context.d.ts +0 -3
  78. package/build/cjs/src/ecom-v1-abandoned-checkout.context.js +0 -22
  79. package/build/cjs/src/ecom-v1-abandoned-checkout.context.js.map +0 -1
  80. package/build/cjs/src/ecom-v1-abandoned-checkout.http.d.ts +0 -3
  81. package/build/cjs/src/ecom-v1-abandoned-checkout.http.js +0 -55
  82. package/build/cjs/src/ecom-v1-abandoned-checkout.http.js.map +0 -1
  83. package/build/cjs/src/ecom-v1-abandoned-checkout.meta.d.ts +0 -15
  84. package/build/cjs/src/ecom-v1-abandoned-checkout.meta.js +0 -47
  85. package/build/cjs/src/ecom-v1-abandoned-checkout.meta.js.map +0 -1
  86. package/build/cjs/src/ecom-v1-abandoned-checkout.public.d.ts +0 -39
  87. package/build/cjs/src/ecom-v1-abandoned-checkout.public.js +0 -23
  88. package/build/cjs/src/ecom-v1-abandoned-checkout.public.js.map +0 -1
  89. package/build/cjs/src/ecom-v1-abandoned-checkout.types.d.ts +0 -562
  90. package/build/cjs/src/ecom-v1-abandoned-checkout.types.js +0 -56
  91. package/build/cjs/src/ecom-v1-abandoned-checkout.types.js.map +0 -1
  92. package/build/cjs/src/ecom-v1-abandoned-checkout.universal.d.ts +0 -609
  93. package/build/cjs/src/ecom-v1-abandoned-checkout.universal.js +0 -163
  94. package/build/cjs/src/ecom-v1-abandoned-checkout.universal.js.map +0 -1
  95. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.d.ts +0 -9
  96. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.js +0 -124
  97. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.context.js.map +0 -1
  98. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.d.ts +0 -54
  99. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js +0 -243
  100. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.http.js.map +0 -1
  101. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.d.ts +0 -25
  102. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.js +0 -161
  103. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.meta.js.map +0 -1
  104. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.d.ts +0 -29
  105. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.js +0 -55
  106. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.public.js.map +0 -1
  107. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.d.ts +0 -438
  108. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.js +0 -18
  109. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.types.js.map +0 -1
  110. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +0 -648
  111. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.js +0 -534
  112. package/build/cjs/src/ecom-v1-back-in-stock-notification-request.universal.js.map +0 -1
  113. package/build/cjs/src/ecom-v1-back-in-stock-settings.context.d.ts +0 -5
  114. package/build/cjs/src/ecom-v1-back-in-stock-settings.context.js +0 -56
  115. package/build/cjs/src/ecom-v1-back-in-stock-settings.context.js.map +0 -1
  116. package/build/cjs/src/ecom-v1-back-in-stock-settings.http.d.ts +0 -18
  117. package/build/cjs/src/ecom-v1-back-in-stock-settings.http.js +0 -90
  118. package/build/cjs/src/ecom-v1-back-in-stock-settings.http.js.map +0 -1
  119. package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.d.ts +0 -15
  120. package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.js +0 -85
  121. package/build/cjs/src/ecom-v1-back-in-stock-settings.meta.js.map +0 -1
  122. package/build/cjs/src/ecom-v1-back-in-stock-settings.public.d.ts +0 -8
  123. package/build/cjs/src/ecom-v1-back-in-stock-settings.public.js +0 -24
  124. package/build/cjs/src/ecom-v1-back-in-stock-settings.public.js.map +0 -1
  125. package/build/cjs/src/ecom-v1-back-in-stock-settings.types.d.ts +0 -63
  126. package/build/cjs/src/ecom-v1-back-in-stock-settings.types.js +0 -3
  127. package/build/cjs/src/ecom-v1-back-in-stock-settings.types.js.map +0 -1
  128. package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.d.ts +0 -94
  129. package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.js +0 -210
  130. package/build/cjs/src/ecom-v1-back-in-stock-settings.universal.js.map +0 -1
  131. package/build/cjs/src/ecom-v1-cart-cart.context.d.ts +0 -12
  132. package/build/cjs/src/ecom-v1-cart-cart.context.js +0 -175
  133. package/build/cjs/src/ecom-v1-cart-cart.context.js.map +0 -1
  134. package/build/cjs/src/ecom-v1-cart-cart.http.d.ts +0 -116
  135. package/build/cjs/src/ecom-v1-cart-cart.http.js +0 -1119
  136. package/build/cjs/src/ecom-v1-cart-cart.http.js.map +0 -1
  137. package/build/cjs/src/ecom-v1-cart-cart.meta.d.ts +0 -40
  138. package/build/cjs/src/ecom-v1-cart-cart.meta.js +0 -218
  139. package/build/cjs/src/ecom-v1-cart-cart.meta.js.map +0 -1
  140. package/build/cjs/src/ecom-v1-cart-cart.public.d.ts +0 -315
  141. package/build/cjs/src/ecom-v1-cart-cart.public.js +0 -91
  142. package/build/cjs/src/ecom-v1-cart-cart.public.js.map +0 -1
  143. package/build/cjs/src/ecom-v1-cart-cart.types.d.ts +0 -3845
  144. package/build/cjs/src/ecom-v1-cart-cart.types.js +0 -187
  145. package/build/cjs/src/ecom-v1-cart-cart.types.js.map +0 -1
  146. package/build/cjs/src/ecom-v1-cart-cart.universal.d.ts +0 -3539
  147. package/build/cjs/src/ecom-v1-cart-cart.universal.js +0 -999
  148. package/build/cjs/src/ecom-v1-cart-cart.universal.js.map +0 -1
  149. package/build/cjs/src/ecom-v1-cart-current-cart.context.d.ts +0 -11
  150. package/build/cjs/src/ecom-v1-cart-current-cart.context.js +0 -158
  151. package/build/cjs/src/ecom-v1-cart-current-cart.context.js.map +0 -1
  152. package/build/cjs/src/ecom-v1-cart-current-cart.http.d.ts +0 -164
  153. package/build/cjs/src/ecom-v1-cart-current-cart.http.js +0 -1167
  154. package/build/cjs/src/ecom-v1-cart-current-cart.http.js.map +0 -1
  155. package/build/cjs/src/ecom-v1-cart-current-cart.meta.d.ts +0 -21
  156. package/build/cjs/src/ecom-v1-cart-current-cart.meta.js +0 -199
  157. package/build/cjs/src/ecom-v1-cart-current-cart.meta.js.map +0 -1
  158. package/build/cjs/src/ecom-v1-cart-current-cart.public.d.ts +0 -215
  159. package/build/cjs/src/ecom-v1-cart-current-cart.public.js +0 -85
  160. package/build/cjs/src/ecom-v1-cart-current-cart.public.js.map +0 -1
  161. package/build/cjs/src/ecom-v1-cart-current-cart.types.d.ts +0 -3845
  162. package/build/cjs/src/ecom-v1-cart-current-cart.types.js +0 -187
  163. package/build/cjs/src/ecom-v1-cart-current-cart.types.js.map +0 -1
  164. package/build/cjs/src/ecom-v1-cart-current-cart.universal.d.ts +0 -3403
  165. package/build/cjs/src/ecom-v1-cart-current-cart.universal.js +0 -890
  166. package/build/cjs/src/ecom-v1-cart-current-cart.universal.js.map +0 -1
  167. package/build/cjs/src/ecom-v1-checkout-checkout.context.d.ts +0 -14
  168. package/build/cjs/src/ecom-v1-checkout-checkout.context.js +0 -209
  169. package/build/cjs/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  170. package/build/cjs/src/ecom-v1-checkout-checkout.http.d.ts +0 -113
  171. package/build/cjs/src/ecom-v1-checkout-checkout.http.js +0 -1011
  172. package/build/cjs/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  173. package/build/cjs/src/ecom-v1-checkout-checkout.meta.d.ts +0 -46
  174. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js +0 -256
  175. package/build/cjs/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  176. package/build/cjs/src/ecom-v1-checkout-checkout.public.d.ts +0 -2057
  177. package/build/cjs/src/ecom-v1-checkout-checkout.public.js +0 -109
  178. package/build/cjs/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  179. package/build/cjs/src/ecom-v1-checkout-checkout.types.d.ts +0 -10784
  180. package/build/cjs/src/ecom-v1-checkout-checkout.types.js +0 -237
  181. package/build/cjs/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  182. package/build/cjs/src/ecom-v1-checkout-checkout.universal.d.ts +0 -8780
  183. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js +0 -1298
  184. package/build/cjs/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
  185. package/build/cjs/src/ecom-v1-checkout-settings.context.d.ts +0 -4
  186. package/build/cjs/src/ecom-v1-checkout-settings.context.js +0 -39
  187. package/build/cjs/src/ecom-v1-checkout-settings.context.js.map +0 -1
  188. package/build/cjs/src/ecom-v1-checkout-settings.http.d.ts +0 -15
  189. package/build/cjs/src/ecom-v1-checkout-settings.http.js +0 -85
  190. package/build/cjs/src/ecom-v1-checkout-settings.http.js.map +0 -1
  191. package/build/cjs/src/ecom-v1-checkout-settings.meta.d.ts +0 -14
  192. package/build/cjs/src/ecom-v1-checkout-settings.meta.js +0 -66
  193. package/build/cjs/src/ecom-v1-checkout-settings.meta.js.map +0 -1
  194. package/build/cjs/src/ecom-v1-checkout-settings.public.d.ts +0 -9
  195. package/build/cjs/src/ecom-v1-checkout-settings.public.js +0 -20
  196. package/build/cjs/src/ecom-v1-checkout-settings.public.js.map +0 -1
  197. package/build/cjs/src/ecom-v1-checkout-settings.types.d.ts +0 -210
  198. package/build/cjs/src/ecom-v1-checkout-settings.types.js +0 -3
  199. package/build/cjs/src/ecom-v1-checkout-settings.types.js.map +0 -1
  200. package/build/cjs/src/ecom-v1-checkout-settings.universal.d.ts +0 -259
  201. package/build/cjs/src/ecom-v1-checkout-settings.universal.js +0 -179
  202. package/build/cjs/src/ecom-v1-checkout-settings.universal.js.map +0 -1
  203. package/build/cjs/src/ecom-v1-checkout-template.context.d.ts +0 -8
  204. package/build/cjs/src/ecom-v1-checkout-template.context.js +0 -107
  205. package/build/cjs/src/ecom-v1-checkout-template.context.js.map +0 -1
  206. package/build/cjs/src/ecom-v1-checkout-template.http.d.ts +0 -56
  207. package/build/cjs/src/ecom-v1-checkout-template.http.js +0 -298
  208. package/build/cjs/src/ecom-v1-checkout-template.http.js.map +0 -1
  209. package/build/cjs/src/ecom-v1-checkout-template.meta.d.ts +0 -26
  210. package/build/cjs/src/ecom-v1-checkout-template.meta.js +0 -142
  211. package/build/cjs/src/ecom-v1-checkout-template.meta.js.map +0 -1
  212. package/build/cjs/src/ecom-v1-checkout-template.public.d.ts +0 -41
  213. package/build/cjs/src/ecom-v1-checkout-template.public.js +0 -70
  214. package/build/cjs/src/ecom-v1-checkout-template.public.js.map +0 -1
  215. package/build/cjs/src/ecom-v1-checkout-template.types.d.ts +0 -2087
  216. package/build/cjs/src/ecom-v1-checkout-template.types.js +0 -198
  217. package/build/cjs/src/ecom-v1-checkout-template.types.js.map +0 -1
  218. package/build/cjs/src/ecom-v1-checkout-template.universal.d.ts +0 -1983
  219. package/build/cjs/src/ecom-v1-checkout-template.universal.js +0 -666
  220. package/build/cjs/src/ecom-v1-checkout-template.universal.js.map +0 -1
  221. package/build/cjs/src/ecom-v1-draft-order.http.d.ts +0 -15
  222. package/build/cjs/src/ecom-v1-draft-order.http.js +0 -194
  223. package/build/cjs/src/ecom-v1-draft-order.http.js.map +0 -1
  224. package/build/cjs/src/ecom-v1-draft-order.meta.d.ts +0 -19
  225. package/build/cjs/src/ecom-v1-draft-order.meta.js +0 -85
  226. package/build/cjs/src/ecom-v1-draft-order.meta.js.map +0 -1
  227. package/build/cjs/src/ecom-v1-draft-order.public.d.ts +0 -10
  228. package/build/cjs/src/ecom-v1-draft-order.public.js +0 -49
  229. package/build/cjs/src/ecom-v1-draft-order.public.js.map +0 -1
  230. package/build/cjs/src/ecom-v1-draft-order.types.d.ts +0 -3052
  231. package/build/cjs/src/ecom-v1-draft-order.types.js +0 -245
  232. package/build/cjs/src/ecom-v1-draft-order.types.js.map +0 -1
  233. package/build/cjs/src/ecom-v1-draft-order.universal.d.ts +0 -2879
  234. package/build/cjs/src/ecom-v1-draft-order.universal.js +0 -525
  235. package/build/cjs/src/ecom-v1-draft-order.universal.js.map +0 -1
  236. package/build/cjs/src/ecom-v1-fulfillments.context.d.ts +0 -8
  237. package/build/cjs/src/ecom-v1-fulfillments.context.js +0 -107
  238. package/build/cjs/src/ecom-v1-fulfillments.context.js.map +0 -1
  239. package/build/cjs/src/ecom-v1-fulfillments.http.d.ts +0 -47
  240. package/build/cjs/src/ecom-v1-fulfillments.http.js +0 -249
  241. package/build/cjs/src/ecom-v1-fulfillments.http.js.map +0 -1
  242. package/build/cjs/src/ecom-v1-fulfillments.meta.d.ts +0 -28
  243. package/build/cjs/src/ecom-v1-fulfillments.meta.js +0 -148
  244. package/build/cjs/src/ecom-v1-fulfillments.meta.js.map +0 -1
  245. package/build/cjs/src/ecom-v1-fulfillments.public.d.ts +0 -21
  246. package/build/cjs/src/ecom-v1-fulfillments.public.js +0 -47
  247. package/build/cjs/src/ecom-v1-fulfillments.public.js.map +0 -1
  248. package/build/cjs/src/ecom-v1-fulfillments.types.d.ts +0 -412
  249. package/build/cjs/src/ecom-v1-fulfillments.types.js +0 -26
  250. package/build/cjs/src/ecom-v1-fulfillments.types.js.map +0 -1
  251. package/build/cjs/src/ecom-v1-fulfillments.universal.d.ts +0 -606
  252. package/build/cjs/src/ecom-v1-fulfillments.universal.js +0 -487
  253. package/build/cjs/src/ecom-v1-fulfillments.universal.js.map +0 -1
  254. package/build/cjs/src/ecom-v1-order-transactions.context.d.ts +0 -7
  255. package/build/cjs/src/ecom-v1-order-transactions.context.js +0 -90
  256. package/build/cjs/src/ecom-v1-order-transactions.context.js.map +0 -1
  257. package/build/cjs/src/ecom-v1-order-transactions.http.d.ts +0 -38
  258. package/build/cjs/src/ecom-v1-order-transactions.http.js +0 -218
  259. package/build/cjs/src/ecom-v1-order-transactions.http.js.map +0 -1
  260. package/build/cjs/src/ecom-v1-order-transactions.meta.d.ts +0 -24
  261. package/build/cjs/src/ecom-v1-order-transactions.meta.js +0 -123
  262. package/build/cjs/src/ecom-v1-order-transactions.meta.js.map +0 -1
  263. package/build/cjs/src/ecom-v1-order-transactions.public.d.ts +0 -13
  264. package/build/cjs/src/ecom-v1-order-transactions.public.js +0 -58
  265. package/build/cjs/src/ecom-v1-order-transactions.public.js.map +0 -1
  266. package/build/cjs/src/ecom-v1-order-transactions.types.d.ts +0 -1616
  267. package/build/cjs/src/ecom-v1-order-transactions.types.js +0 -220
  268. package/build/cjs/src/ecom-v1-order-transactions.types.js.map +0 -1
  269. package/build/cjs/src/ecom-v1-order-transactions.universal.d.ts +0 -1696
  270. package/build/cjs/src/ecom-v1-order-transactions.universal.js +0 -614
  271. package/build/cjs/src/ecom-v1-order-transactions.universal.js.map +0 -1
  272. package/build/cjs/src/ecom-v1-order.context.d.ts +0 -7
  273. package/build/cjs/src/ecom-v1-order.context.js +0 -90
  274. package/build/cjs/src/ecom-v1-order.context.js.map +0 -1
  275. package/build/cjs/src/ecom-v1-order.http.d.ts +0 -66
  276. package/build/cjs/src/ecom-v1-order.http.js +0 -414
  277. package/build/cjs/src/ecom-v1-order.http.js.map +0 -1
  278. package/build/cjs/src/ecom-v1-order.meta.d.ts +0 -23
  279. package/build/cjs/src/ecom-v1-order.meta.js +0 -123
  280. package/build/cjs/src/ecom-v1-order.meta.js.map +0 -1
  281. package/build/cjs/src/ecom-v1-order.public.d.ts +0 -853
  282. package/build/cjs/src/ecom-v1-order.public.js +0 -82
  283. package/build/cjs/src/ecom-v1-order.public.js.map +0 -1
  284. package/build/cjs/src/ecom-v1-order.types.d.ts +0 -6678
  285. package/build/cjs/src/ecom-v1-order.types.js +0 -432
  286. package/build/cjs/src/ecom-v1-order.types.js.map +0 -1
  287. package/build/cjs/src/ecom-v1-order.universal.d.ts +0 -5481
  288. package/build/cjs/src/ecom-v1-order.universal.js +0 -923
  289. package/build/cjs/src/ecom-v1-order.universal.js.map +0 -1
  290. package/build/cjs/src/ecom-v1-orders-settings.context.d.ts +0 -4
  291. package/build/cjs/src/ecom-v1-orders-settings.context.js +0 -39
  292. package/build/cjs/src/ecom-v1-orders-settings.context.js.map +0 -1
  293. package/build/cjs/src/ecom-v1-orders-settings.http.d.ts +0 -15
  294. package/build/cjs/src/ecom-v1-orders-settings.http.js +0 -85
  295. package/build/cjs/src/ecom-v1-orders-settings.http.js.map +0 -1
  296. package/build/cjs/src/ecom-v1-orders-settings.meta.d.ts +0 -14
  297. package/build/cjs/src/ecom-v1-orders-settings.meta.js +0 -66
  298. package/build/cjs/src/ecom-v1-orders-settings.meta.js.map +0 -1
  299. package/build/cjs/src/ecom-v1-orders-settings.public.d.ts +0 -10
  300. package/build/cjs/src/ecom-v1-orders-settings.public.js +0 -22
  301. package/build/cjs/src/ecom-v1-orders-settings.public.js.map +0 -1
  302. package/build/cjs/src/ecom-v1-orders-settings.types.d.ts +0 -119
  303. package/build/cjs/src/ecom-v1-orders-settings.types.js +0 -10
  304. package/build/cjs/src/ecom-v1-orders-settings.types.js.map +0 -1
  305. package/build/cjs/src/ecom-v1-orders-settings.universal.d.ts +0 -170
  306. package/build/cjs/src/ecom-v1-orders-settings.universal.js +0 -185
  307. package/build/cjs/src/ecom-v1-orders-settings.universal.js.map +0 -1
  308. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.d.ts +0 -5
  309. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.js +0 -38
  310. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.context.js.map +0 -1
  311. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.d.ts +0 -16
  312. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.js +0 -156
  313. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.http.js.map +0 -1
  314. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.d.ts +0 -21
  315. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.js +0 -85
  316. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.meta.js.map +0 -1
  317. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.d.ts +0 -9
  318. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.js +0 -24
  319. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.public.js.map +0 -1
  320. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.d.ts +0 -64
  321. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.js +0 -3
  322. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.types.js.map +0 -1
  323. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.d.ts +0 -123
  324. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.js +0 -234
  325. package/build/cjs/src/ecommerce-currency-converter-v1-currency-rate.universal.js.map +0 -1
  326. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.d.ts +0 -12
  327. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.js +0 -90
  328. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.http.js.map +0 -1
  329. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.d.ts +0 -13
  330. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js +0 -47
  331. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js.map +0 -1
  332. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.d.ts +0 -8
  333. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.js +0 -30
  334. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.public.js.map +0 -1
  335. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.d.ts +0 -1164
  336. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.js +0 -176
  337. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.types.js.map +0 -1
  338. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.d.ts +0 -1144
  339. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js +0 -303
  340. package/build/cjs/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js.map +0 -1
  341. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.d.ts +0 -13
  342. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.js +0 -65
  343. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.http.js.map +0 -1
  344. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.d.ts +0 -13
  345. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.js +0 -47
  346. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.meta.js.map +0 -1
  347. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -8
  348. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -23
  349. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  350. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.d.ts +0 -520
  351. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.js +0 -84
  352. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.types.js.map +0 -1
  353. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.d.ts +0 -535
  354. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.js +0 -199
  355. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.universal.js.map +0 -1
  356. package/build/es/index.typings.d.ts +0 -19
  357. package/build/es/index.typings.js +0 -20
  358. package/build/es/index.typings.js.map +0 -1
  359. package/build/es/src/ecom-discounts-v1-discount-rule.context.d.ts +0 -7
  360. package/build/es/src/ecom-discounts-v1-discount-rule.context.js +0 -82
  361. package/build/es/src/ecom-discounts-v1-discount-rule.context.js.map +0 -1
  362. package/build/es/src/ecom-discounts-v1-discount-rule.http.d.ts +0 -48
  363. package/build/es/src/ecom-discounts-v1-discount-rule.http.js +0 -257
  364. package/build/es/src/ecom-discounts-v1-discount-rule.http.js.map +0 -1
  365. package/build/es/src/ecom-discounts-v1-discount-rule.meta.d.ts +0 -23
  366. package/build/es/src/ecom-discounts-v1-discount-rule.meta.js +0 -92
  367. package/build/es/src/ecom-discounts-v1-discount-rule.meta.js.map +0 -1
  368. package/build/es/src/ecom-discounts-v1-discount-rule.public.d.ts +0 -205
  369. package/build/es/src/ecom-discounts-v1-discount-rule.public.js +0 -30
  370. package/build/es/src/ecom-discounts-v1-discount-rule.public.js.map +0 -1
  371. package/build/es/src/ecom-discounts-v1-discount-rule.types.d.ts +0 -990
  372. package/build/es/src/ecom-discounts-v1-discount-rule.types.js +0 -67
  373. package/build/es/src/ecom-discounts-v1-discount-rule.types.js.map +0 -1
  374. package/build/es/src/ecom-discounts-v1-discount-rule.universal.d.ts +0 -1086
  375. package/build/es/src/ecom-discounts-v1-discount-rule.universal.js +0 -424
  376. package/build/es/src/ecom-discounts-v1-discount-rule.universal.js.map +0 -1
  377. package/build/es/src/ecom-orders-v1-invoice.context.d.ts +0 -3
  378. package/build/es/src/ecom-orders-v1-invoice.context.js +0 -18
  379. package/build/es/src/ecom-orders-v1-invoice.context.js.map +0 -1
  380. package/build/es/src/ecom-orders-v1-invoice.http.d.ts +0 -8
  381. package/build/es/src/ecom-orders-v1-invoice.http.js +0 -42
  382. package/build/es/src/ecom-orders-v1-invoice.http.js.map +0 -1
  383. package/build/es/src/ecom-orders-v1-invoice.meta.d.ts +0 -13
  384. package/build/es/src/ecom-orders-v1-invoice.meta.js +0 -20
  385. package/build/es/src/ecom-orders-v1-invoice.meta.js.map +0 -1
  386. package/build/es/src/ecom-orders-v1-invoice.public.d.ts +0 -6
  387. package/build/es/src/ecom-orders-v1-invoice.public.js +0 -8
  388. package/build/es/src/ecom-orders-v1-invoice.public.js.map +0 -1
  389. package/build/es/src/ecom-orders-v1-invoice.types.d.ts +0 -172
  390. package/build/es/src/ecom-orders-v1-invoice.types.js +0 -2
  391. package/build/es/src/ecom-orders-v1-invoice.types.js.map +0 -1
  392. package/build/es/src/ecom-orders-v1-invoice.universal.d.ts +0 -201
  393. package/build/es/src/ecom-orders-v1-invoice.universal.js +0 -90
  394. package/build/es/src/ecom-orders-v1-invoice.universal.js.map +0 -1
  395. package/build/es/src/ecom-recommendations-v1-recommendation.context.d.ts +0 -4
  396. package/build/es/src/ecom-recommendations-v1-recommendation.context.js +0 -34
  397. package/build/es/src/ecom-recommendations-v1-recommendation.context.js.map +0 -1
  398. package/build/es/src/ecom-recommendations-v1-recommendation.http.d.ts +0 -37
  399. package/build/es/src/ecom-recommendations-v1-recommendation.http.js +0 -86
  400. package/build/es/src/ecom-recommendations-v1-recommendation.http.js.map +0 -1
  401. package/build/es/src/ecom-recommendations-v1-recommendation.meta.d.ts +0 -14
  402. package/build/es/src/ecom-recommendations-v1-recommendation.meta.js +0 -38
  403. package/build/es/src/ecom-recommendations-v1-recommendation.meta.js.map +0 -1
  404. package/build/es/src/ecom-recommendations-v1-recommendation.public.d.ts +0 -9
  405. package/build/es/src/ecom-recommendations-v1-recommendation.public.js +0 -14
  406. package/build/es/src/ecom-recommendations-v1-recommendation.public.js.map +0 -1
  407. package/build/es/src/ecom-recommendations-v1-recommendation.types.d.ts +0 -136
  408. package/build/es/src/ecom-recommendations-v1-recommendation.types.js +0 -7
  409. package/build/es/src/ecom-recommendations-v1-recommendation.types.js.map +0 -1
  410. package/build/es/src/ecom-recommendations-v1-recommendation.universal.d.ts +0 -206
  411. package/build/es/src/ecom-recommendations-v1-recommendation.universal.js +0 -179
  412. package/build/es/src/ecom-recommendations-v1-recommendation.universal.js.map +0 -1
  413. package/build/es/src/ecom-v1-abandoned-checkout.context.d.ts +0 -3
  414. package/build/es/src/ecom-v1-abandoned-checkout.context.js +0 -18
  415. package/build/es/src/ecom-v1-abandoned-checkout.context.js.map +0 -1
  416. package/build/es/src/ecom-v1-abandoned-checkout.http.d.ts +0 -3
  417. package/build/es/src/ecom-v1-abandoned-checkout.http.js +0 -51
  418. package/build/es/src/ecom-v1-abandoned-checkout.http.js.map +0 -1
  419. package/build/es/src/ecom-v1-abandoned-checkout.meta.d.ts +0 -15
  420. package/build/es/src/ecom-v1-abandoned-checkout.meta.js +0 -20
  421. package/build/es/src/ecom-v1-abandoned-checkout.meta.js.map +0 -1
  422. package/build/es/src/ecom-v1-abandoned-checkout.public.d.ts +0 -39
  423. package/build/es/src/ecom-v1-abandoned-checkout.public.js +0 -10
  424. package/build/es/src/ecom-v1-abandoned-checkout.public.js.map +0 -1
  425. package/build/es/src/ecom-v1-abandoned-checkout.types.d.ts +0 -562
  426. package/build/es/src/ecom-v1-abandoned-checkout.types.js +0 -53
  427. package/build/es/src/ecom-v1-abandoned-checkout.types.js.map +0 -1
  428. package/build/es/src/ecom-v1-abandoned-checkout.universal.d.ts +0 -609
  429. package/build/es/src/ecom-v1-abandoned-checkout.universal.js +0 -136
  430. package/build/es/src/ecom-v1-abandoned-checkout.universal.js.map +0 -1
  431. package/build/es/src/ecom-v1-back-in-stock-notification-request.context.d.ts +0 -9
  432. package/build/es/src/ecom-v1-back-in-stock-notification-request.context.js +0 -114
  433. package/build/es/src/ecom-v1-back-in-stock-notification-request.context.js.map +0 -1
  434. package/build/es/src/ecom-v1-back-in-stock-notification-request.http.d.ts +0 -54
  435. package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js +0 -233
  436. package/build/es/src/ecom-v1-back-in-stock-notification-request.http.js.map +0 -1
  437. package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.d.ts +0 -25
  438. package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.js +0 -128
  439. package/build/es/src/ecom-v1-back-in-stock-notification-request.meta.js.map +0 -1
  440. package/build/es/src/ecom-v1-back-in-stock-notification-request.public.d.ts +0 -29
  441. package/build/es/src/ecom-v1-back-in-stock-notification-request.public.js +0 -40
  442. package/build/es/src/ecom-v1-back-in-stock-notification-request.public.js.map +0 -1
  443. package/build/es/src/ecom-v1-back-in-stock-notification-request.types.d.ts +0 -438
  444. package/build/es/src/ecom-v1-back-in-stock-notification-request.types.js +0 -15
  445. package/build/es/src/ecom-v1-back-in-stock-notification-request.types.js.map +0 -1
  446. package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.d.ts +0 -648
  447. package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.js +0 -501
  448. package/build/es/src/ecom-v1-back-in-stock-notification-request.universal.js.map +0 -1
  449. package/build/es/src/ecom-v1-back-in-stock-settings.context.d.ts +0 -5
  450. package/build/es/src/ecom-v1-back-in-stock-settings.context.js +0 -50
  451. package/build/es/src/ecom-v1-back-in-stock-settings.context.js.map +0 -1
  452. package/build/es/src/ecom-v1-back-in-stock-settings.http.d.ts +0 -18
  453. package/build/es/src/ecom-v1-back-in-stock-settings.http.js +0 -84
  454. package/build/es/src/ecom-v1-back-in-stock-settings.http.js.map +0 -1
  455. package/build/es/src/ecom-v1-back-in-stock-settings.meta.d.ts +0 -15
  456. package/build/es/src/ecom-v1-back-in-stock-settings.meta.js +0 -56
  457. package/build/es/src/ecom-v1-back-in-stock-settings.meta.js.map +0 -1
  458. package/build/es/src/ecom-v1-back-in-stock-settings.public.d.ts +0 -8
  459. package/build/es/src/ecom-v1-back-in-stock-settings.public.js +0 -18
  460. package/build/es/src/ecom-v1-back-in-stock-settings.public.js.map +0 -1
  461. package/build/es/src/ecom-v1-back-in-stock-settings.types.d.ts +0 -63
  462. package/build/es/src/ecom-v1-back-in-stock-settings.types.js +0 -2
  463. package/build/es/src/ecom-v1-back-in-stock-settings.types.js.map +0 -1
  464. package/build/es/src/ecom-v1-back-in-stock-settings.universal.d.ts +0 -94
  465. package/build/es/src/ecom-v1-back-in-stock-settings.universal.js +0 -181
  466. package/build/es/src/ecom-v1-back-in-stock-settings.universal.js.map +0 -1
  467. package/build/es/src/ecom-v1-cart-cart.context.d.ts +0 -12
  468. package/build/es/src/ecom-v1-cart-cart.context.js +0 -162
  469. package/build/es/src/ecom-v1-cart-cart.context.js.map +0 -1
  470. package/build/es/src/ecom-v1-cart-cart.http.d.ts +0 -116
  471. package/build/es/src/ecom-v1-cart-cart.http.js +0 -1097
  472. package/build/es/src/ecom-v1-cart-cart.http.js.map +0 -1
  473. package/build/es/src/ecom-v1-cart-cart.meta.d.ts +0 -40
  474. package/build/es/src/ecom-v1-cart-cart.meta.js +0 -182
  475. package/build/es/src/ecom-v1-cart-cart.meta.js.map +0 -1
  476. package/build/es/src/ecom-v1-cart-cart.public.d.ts +0 -315
  477. package/build/es/src/ecom-v1-cart-cart.public.js +0 -55
  478. package/build/es/src/ecom-v1-cart-cart.public.js.map +0 -1
  479. package/build/es/src/ecom-v1-cart-cart.types.d.ts +0 -3845
  480. package/build/es/src/ecom-v1-cart-cart.types.js +0 -184
  481. package/build/es/src/ecom-v1-cart-cart.types.js.map +0 -1
  482. package/build/es/src/ecom-v1-cart-cart.universal.d.ts +0 -3539
  483. package/build/es/src/ecom-v1-cart-cart.universal.js +0 -963
  484. package/build/es/src/ecom-v1-cart-cart.universal.js.map +0 -1
  485. package/build/es/src/ecom-v1-cart-current-cart.context.d.ts +0 -11
  486. package/build/es/src/ecom-v1-cart-current-cart.context.js +0 -146
  487. package/build/es/src/ecom-v1-cart-current-cart.context.js.map +0 -1
  488. package/build/es/src/ecom-v1-cart-current-cart.http.d.ts +0 -164
  489. package/build/es/src/ecom-v1-cart-current-cart.http.js +0 -1145
  490. package/build/es/src/ecom-v1-cart-current-cart.http.js.map +0 -1
  491. package/build/es/src/ecom-v1-cart-current-cart.meta.d.ts +0 -21
  492. package/build/es/src/ecom-v1-cart-current-cart.meta.js +0 -164
  493. package/build/es/src/ecom-v1-cart-current-cart.meta.js.map +0 -1
  494. package/build/es/src/ecom-v1-cart-current-cart.public.d.ts +0 -215
  495. package/build/es/src/ecom-v1-cart-current-cart.public.js +0 -50
  496. package/build/es/src/ecom-v1-cart-current-cart.public.js.map +0 -1
  497. package/build/es/src/ecom-v1-cart-current-cart.types.d.ts +0 -3845
  498. package/build/es/src/ecom-v1-cart-current-cart.types.js +0 -184
  499. package/build/es/src/ecom-v1-cart-current-cart.types.js.map +0 -1
  500. package/build/es/src/ecom-v1-cart-current-cart.universal.d.ts +0 -3403
  501. package/build/es/src/ecom-v1-cart-current-cart.universal.js +0 -855
  502. package/build/es/src/ecom-v1-cart-current-cart.universal.js.map +0 -1
  503. package/build/es/src/ecom-v1-checkout-checkout.context.d.ts +0 -14
  504. package/build/es/src/ecom-v1-checkout-checkout.context.js +0 -194
  505. package/build/es/src/ecom-v1-checkout-checkout.context.js.map +0 -1
  506. package/build/es/src/ecom-v1-checkout-checkout.http.d.ts +0 -113
  507. package/build/es/src/ecom-v1-checkout-checkout.http.js +0 -996
  508. package/build/es/src/ecom-v1-checkout-checkout.http.js.map +0 -1
  509. package/build/es/src/ecom-v1-checkout-checkout.meta.d.ts +0 -46
  510. package/build/es/src/ecom-v1-checkout-checkout.meta.js +0 -218
  511. package/build/es/src/ecom-v1-checkout-checkout.meta.js.map +0 -1
  512. package/build/es/src/ecom-v1-checkout-checkout.public.d.ts +0 -2057
  513. package/build/es/src/ecom-v1-checkout-checkout.public.js +0 -65
  514. package/build/es/src/ecom-v1-checkout-checkout.public.js.map +0 -1
  515. package/build/es/src/ecom-v1-checkout-checkout.types.d.ts +0 -10784
  516. package/build/es/src/ecom-v1-checkout-checkout.types.js +0 -234
  517. package/build/es/src/ecom-v1-checkout-checkout.types.js.map +0 -1
  518. package/build/es/src/ecom-v1-checkout-checkout.universal.d.ts +0 -8780
  519. package/build/es/src/ecom-v1-checkout-checkout.universal.js +0 -1260
  520. package/build/es/src/ecom-v1-checkout-checkout.universal.js.map +0 -1
  521. package/build/es/src/ecom-v1-checkout-settings.context.d.ts +0 -4
  522. package/build/es/src/ecom-v1-checkout-settings.context.js +0 -34
  523. package/build/es/src/ecom-v1-checkout-settings.context.js.map +0 -1
  524. package/build/es/src/ecom-v1-checkout-settings.http.d.ts +0 -15
  525. package/build/es/src/ecom-v1-checkout-settings.http.js +0 -80
  526. package/build/es/src/ecom-v1-checkout-settings.http.js.map +0 -1
  527. package/build/es/src/ecom-v1-checkout-settings.meta.d.ts +0 -14
  528. package/build/es/src/ecom-v1-checkout-settings.meta.js +0 -38
  529. package/build/es/src/ecom-v1-checkout-settings.meta.js.map +0 -1
  530. package/build/es/src/ecom-v1-checkout-settings.public.d.ts +0 -9
  531. package/build/es/src/ecom-v1-checkout-settings.public.js +0 -14
  532. package/build/es/src/ecom-v1-checkout-settings.public.js.map +0 -1
  533. package/build/es/src/ecom-v1-checkout-settings.types.d.ts +0 -210
  534. package/build/es/src/ecom-v1-checkout-settings.types.js +0 -2
  535. package/build/es/src/ecom-v1-checkout-settings.types.js.map +0 -1
  536. package/build/es/src/ecom-v1-checkout-settings.universal.d.ts +0 -259
  537. package/build/es/src/ecom-v1-checkout-settings.universal.js +0 -151
  538. package/build/es/src/ecom-v1-checkout-settings.universal.js.map +0 -1
  539. package/build/es/src/ecom-v1-checkout-template.context.d.ts +0 -8
  540. package/build/es/src/ecom-v1-checkout-template.context.js +0 -98
  541. package/build/es/src/ecom-v1-checkout-template.context.js.map +0 -1
  542. package/build/es/src/ecom-v1-checkout-template.http.d.ts +0 -56
  543. package/build/es/src/ecom-v1-checkout-template.http.js +0 -289
  544. package/build/es/src/ecom-v1-checkout-template.http.js.map +0 -1
  545. package/build/es/src/ecom-v1-checkout-template.meta.d.ts +0 -26
  546. package/build/es/src/ecom-v1-checkout-template.meta.js +0 -110
  547. package/build/es/src/ecom-v1-checkout-template.meta.js.map +0 -1
  548. package/build/es/src/ecom-v1-checkout-template.public.d.ts +0 -41
  549. package/build/es/src/ecom-v1-checkout-template.public.js +0 -35
  550. package/build/es/src/ecom-v1-checkout-template.public.js.map +0 -1
  551. package/build/es/src/ecom-v1-checkout-template.types.d.ts +0 -2087
  552. package/build/es/src/ecom-v1-checkout-template.types.js +0 -195
  553. package/build/es/src/ecom-v1-checkout-template.types.js.map +0 -1
  554. package/build/es/src/ecom-v1-checkout-template.universal.d.ts +0 -1983
  555. package/build/es/src/ecom-v1-checkout-template.universal.js +0 -634
  556. package/build/es/src/ecom-v1-checkout-template.universal.js.map +0 -1
  557. package/build/es/src/ecom-v1-draft-order.http.d.ts +0 -15
  558. package/build/es/src/ecom-v1-draft-order.http.js +0 -188
  559. package/build/es/src/ecom-v1-draft-order.http.js.map +0 -1
  560. package/build/es/src/ecom-v1-draft-order.meta.d.ts +0 -19
  561. package/build/es/src/ecom-v1-draft-order.meta.js +0 -56
  562. package/build/es/src/ecom-v1-draft-order.meta.js.map +0 -1
  563. package/build/es/src/ecom-v1-draft-order.public.d.ts +0 -10
  564. package/build/es/src/ecom-v1-draft-order.public.js +0 -19
  565. package/build/es/src/ecom-v1-draft-order.public.js.map +0 -1
  566. package/build/es/src/ecom-v1-draft-order.types.d.ts +0 -3052
  567. package/build/es/src/ecom-v1-draft-order.types.js +0 -242
  568. package/build/es/src/ecom-v1-draft-order.types.js.map +0 -1
  569. package/build/es/src/ecom-v1-draft-order.universal.d.ts +0 -2879
  570. package/build/es/src/ecom-v1-draft-order.universal.js +0 -496
  571. package/build/es/src/ecom-v1-draft-order.universal.js.map +0 -1
  572. package/build/es/src/ecom-v1-fulfillments.context.d.ts +0 -8
  573. package/build/es/src/ecom-v1-fulfillments.context.js +0 -98
  574. package/build/es/src/ecom-v1-fulfillments.context.js.map +0 -1
  575. package/build/es/src/ecom-v1-fulfillments.http.d.ts +0 -47
  576. package/build/es/src/ecom-v1-fulfillments.http.js +0 -240
  577. package/build/es/src/ecom-v1-fulfillments.http.js.map +0 -1
  578. package/build/es/src/ecom-v1-fulfillments.meta.d.ts +0 -28
  579. package/build/es/src/ecom-v1-fulfillments.meta.js +0 -116
  580. package/build/es/src/ecom-v1-fulfillments.meta.js.map +0 -1
  581. package/build/es/src/ecom-v1-fulfillments.public.d.ts +0 -21
  582. package/build/es/src/ecom-v1-fulfillments.public.js +0 -35
  583. package/build/es/src/ecom-v1-fulfillments.public.js.map +0 -1
  584. package/build/es/src/ecom-v1-fulfillments.types.d.ts +0 -412
  585. package/build/es/src/ecom-v1-fulfillments.types.js +0 -23
  586. package/build/es/src/ecom-v1-fulfillments.types.js.map +0 -1
  587. package/build/es/src/ecom-v1-fulfillments.universal.d.ts +0 -606
  588. package/build/es/src/ecom-v1-fulfillments.universal.js +0 -455
  589. package/build/es/src/ecom-v1-fulfillments.universal.js.map +0 -1
  590. package/build/es/src/ecom-v1-order-transactions.context.d.ts +0 -7
  591. package/build/es/src/ecom-v1-order-transactions.context.js +0 -82
  592. package/build/es/src/ecom-v1-order-transactions.context.js.map +0 -1
  593. package/build/es/src/ecom-v1-order-transactions.http.d.ts +0 -38
  594. package/build/es/src/ecom-v1-order-transactions.http.js +0 -210
  595. package/build/es/src/ecom-v1-order-transactions.http.js.map +0 -1
  596. package/build/es/src/ecom-v1-order-transactions.meta.d.ts +0 -24
  597. package/build/es/src/ecom-v1-order-transactions.meta.js +0 -92
  598. package/build/es/src/ecom-v1-order-transactions.meta.js.map +0 -1
  599. package/build/es/src/ecom-v1-order-transactions.public.d.ts +0 -13
  600. package/build/es/src/ecom-v1-order-transactions.public.js +0 -30
  601. package/build/es/src/ecom-v1-order-transactions.public.js.map +0 -1
  602. package/build/es/src/ecom-v1-order-transactions.types.d.ts +0 -1616
  603. package/build/es/src/ecom-v1-order-transactions.types.js +0 -217
  604. package/build/es/src/ecom-v1-order-transactions.types.js.map +0 -1
  605. package/build/es/src/ecom-v1-order-transactions.universal.d.ts +0 -1696
  606. package/build/es/src/ecom-v1-order-transactions.universal.js +0 -583
  607. package/build/es/src/ecom-v1-order-transactions.universal.js.map +0 -1
  608. package/build/es/src/ecom-v1-order.context.d.ts +0 -7
  609. package/build/es/src/ecom-v1-order.context.js +0 -82
  610. package/build/es/src/ecom-v1-order.context.js.map +0 -1
  611. package/build/es/src/ecom-v1-order.http.d.ts +0 -66
  612. package/build/es/src/ecom-v1-order.http.js +0 -406
  613. package/build/es/src/ecom-v1-order.http.js.map +0 -1
  614. package/build/es/src/ecom-v1-order.meta.d.ts +0 -23
  615. package/build/es/src/ecom-v1-order.meta.js +0 -92
  616. package/build/es/src/ecom-v1-order.meta.js.map +0 -1
  617. package/build/es/src/ecom-v1-order.public.d.ts +0 -853
  618. package/build/es/src/ecom-v1-order.public.js +0 -30
  619. package/build/es/src/ecom-v1-order.public.js.map +0 -1
  620. package/build/es/src/ecom-v1-order.types.d.ts +0 -6678
  621. package/build/es/src/ecom-v1-order.types.js +0 -429
  622. package/build/es/src/ecom-v1-order.types.js.map +0 -1
  623. package/build/es/src/ecom-v1-order.universal.d.ts +0 -5481
  624. package/build/es/src/ecom-v1-order.universal.js +0 -892
  625. package/build/es/src/ecom-v1-order.universal.js.map +0 -1
  626. package/build/es/src/ecom-v1-orders-settings.context.d.ts +0 -4
  627. package/build/es/src/ecom-v1-orders-settings.context.js +0 -34
  628. package/build/es/src/ecom-v1-orders-settings.context.js.map +0 -1
  629. package/build/es/src/ecom-v1-orders-settings.http.d.ts +0 -15
  630. package/build/es/src/ecom-v1-orders-settings.http.js +0 -80
  631. package/build/es/src/ecom-v1-orders-settings.http.js.map +0 -1
  632. package/build/es/src/ecom-v1-orders-settings.meta.d.ts +0 -14
  633. package/build/es/src/ecom-v1-orders-settings.meta.js +0 -38
  634. package/build/es/src/ecom-v1-orders-settings.meta.js.map +0 -1
  635. package/build/es/src/ecom-v1-orders-settings.public.d.ts +0 -10
  636. package/build/es/src/ecom-v1-orders-settings.public.js +0 -15
  637. package/build/es/src/ecom-v1-orders-settings.public.js.map +0 -1
  638. package/build/es/src/ecom-v1-orders-settings.types.d.ts +0 -119
  639. package/build/es/src/ecom-v1-orders-settings.types.js +0 -7
  640. package/build/es/src/ecom-v1-orders-settings.types.js.map +0 -1
  641. package/build/es/src/ecom-v1-orders-settings.universal.d.ts +0 -170
  642. package/build/es/src/ecom-v1-orders-settings.universal.js +0 -157
  643. package/build/es/src/ecom-v1-orders-settings.universal.js.map +0 -1
  644. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.d.ts +0 -5
  645. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.js +0 -32
  646. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.context.js.map +0 -1
  647. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.d.ts +0 -16
  648. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.js +0 -150
  649. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.http.js.map +0 -1
  650. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.d.ts +0 -21
  651. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.js +0 -56
  652. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.meta.js.map +0 -1
  653. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.d.ts +0 -9
  654. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.js +0 -18
  655. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.public.js.map +0 -1
  656. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.d.ts +0 -64
  657. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.js +0 -2
  658. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.types.js.map +0 -1
  659. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.d.ts +0 -123
  660. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.js +0 -205
  661. package/build/es/src/ecommerce-currency-converter-v1-currency-rate.universal.js.map +0 -1
  662. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.d.ts +0 -12
  663. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.js +0 -86
  664. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.http.js.map +0 -1
  665. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.d.ts +0 -13
  666. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js +0 -20
  667. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.meta.js.map +0 -1
  668. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.d.ts +0 -8
  669. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.js +0 -9
  670. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.public.js.map +0 -1
  671. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.d.ts +0 -1164
  672. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.js +0 -173
  673. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.types.js.map +0 -1
  674. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.d.ts +0 -1144
  675. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js +0 -276
  676. package/build/es/src/interfaces-ecommerce-v1-payment-settings-provider.universal.js.map +0 -1
  677. package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.d.ts +0 -13
  678. package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.js +0 -61
  679. package/build/es/src/interfaces-ecommerce-v1-validations-provider.http.js.map +0 -1
  680. package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.d.ts +0 -13
  681. package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.js +0 -20
  682. package/build/es/src/interfaces-ecommerce-v1-validations-provider.meta.js.map +0 -1
  683. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -8
  684. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -9
  685. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  686. package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.d.ts +0 -520
  687. package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.js +0 -81
  688. package/build/es/src/interfaces-ecommerce-v1-validations-provider.types.js.map +0 -1
  689. package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.d.ts +0 -535
  690. package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.js +0 -172
  691. package/build/es/src/interfaces-ecommerce-v1-validations-provider.universal.js.map +0 -1
@@ -1,3403 +0,0 @@
1
- import { EventDefinition } from '@wix/sdk-types';
2
- export interface Cart {
3
- /** Cart ID. */
4
- _id?: string | null;
5
- /**
6
- * Line items.
7
- * @readonly
8
- */
9
- lineItems?: LineItem[];
10
- /** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */
11
- buyerNote?: string | null;
12
- /** Buyer information. */
13
- buyerInfo?: BuyerInfo;
14
- /**
15
- * Currency used for pricing.
16
- * @readonly
17
- */
18
- currency?: string;
19
- /**
20
- * Currency code used for all the converted prices that are returned.
21
- * For a site that supports multiple currencies, this is the currency the buyer selected.
22
- * @readonly
23
- */
24
- conversionCurrency?: string;
25
- /**
26
- * Language for communication with the buyer. Defaults to the site language.
27
- * For a site that supports multiple languages, this is the language the buyer selected.
28
- * @readonly
29
- */
30
- buyerLanguage?: string | null;
31
- /**
32
- * Site language in which original values are displayed.
33
- * @readonly
34
- */
35
- siteLanguage?: string | null;
36
- /**
37
- * Whether tax is included in line item prices.
38
- * @readonly
39
- */
40
- taxIncludedInPrices?: boolean | null;
41
- /**
42
- * Weight measurement unit - defaults to site's weight unit. Supported values:
43
- * + `"KG"`
44
- * + `"LB"`
45
- * @readonly
46
- */
47
- weightUnit?: WeightUnit;
48
- /**
49
- * ID of the checkout that originated from this cart.
50
- * @readonly
51
- */
52
- checkoutId?: string | null;
53
- /**
54
- * Cart discounts.
55
- * @readonly
56
- */
57
- appliedDiscounts?: CartDiscount[];
58
- /**
59
- * Date and time the cart was created.
60
- * @readonly
61
- */
62
- _createdDate?: Date;
63
- /**
64
- * Date and time the cart was updated.
65
- * @readonly
66
- */
67
- _updatedDate?: Date;
68
- /** Contact info. */
69
- contactInfo?: AddressWithContact;
70
- /**
71
- * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.
72
- *
73
- * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.
74
- */
75
- overrideCheckoutUrl?: string | null;
76
- /**
77
- * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
78
- * @readonly
79
- */
80
- purchaseFlowId?: string | null;
81
- /** Selected shipping option. */
82
- selectedShippingOption?: SelectedShippingOption;
83
- }
84
- export interface LineItem {
85
- /**
86
- * Line item ID.
87
- * @readonly
88
- */
89
- _id?: string | null;
90
- /** Item quantity. */
91
- quantity?: number;
92
- /** Catalog and item reference. Holds IDs for the item and the catalog it came from, as well as further optional info. */
93
- catalogReference?: CatalogReference;
94
- /**
95
- * Item name.
96
- * + Stores - `product.name`
97
- * + Bookings - `service.info.name`
98
- * + Events - `ticket.name`
99
- * @readonly
100
- */
101
- productName?: ProductName;
102
- /**
103
- * URL to the item's page on the site.
104
- * @readonly
105
- */
106
- url?: string;
107
- /**
108
- * Item price **after** catalog-defined discount and line item discounts.
109
- * @readonly
110
- */
111
- price?: MultiCurrencyPrice;
112
- /**
113
- * Item price **before** catalog-defined discount. Defaults to `price` when not provided.
114
- * @readonly
115
- */
116
- fullPrice?: MultiCurrencyPrice;
117
- /**
118
- * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
119
- * @readonly
120
- */
121
- priceBeforeDiscounts?: MultiCurrencyPrice;
122
- /**
123
- * Line item description lines. Used for displaying the cart, checkout and order.
124
- * @readonly
125
- */
126
- descriptionLines?: DescriptionLine[];
127
- /**
128
- * Line item image details.
129
- * @readonly
130
- */
131
- image?: string;
132
- /**
133
- * Item availability details.
134
- * @readonly
135
- */
136
- availability?: ItemAvailabilityInfo;
137
- /**
138
- * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
139
- * @readonly
140
- */
141
- physicalProperties?: PhysicalProperties;
142
- /**
143
- * Item type. Either a preset type or custom.
144
- * @readonly
145
- */
146
- itemType?: ItemType;
147
- /**
148
- * Type of selected payment option for current item. Defaults to `"FULL_PAYMENT_ONLINE"`.
149
- * + `"FULL_PAYMENT_ONLINE"` - The entire payment for this item happens as part of the checkout.
150
- * + `"FULL_PAYMENT_OFFLINE"` - The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
151
- * + `"MEMBERSHIP"` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` will be 0.
152
- * @readonly
153
- */
154
- paymentOption?: PaymentOptionType;
155
- /**
156
- * Service properties. When relevant, this contains information such as date and number of participants.
157
- * @readonly
158
- */
159
- serviceProperties?: ServiceProperties;
160
- /**
161
- * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
162
- * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
163
- * + in most cases, this field is the same as `catalogReference.catalogItemId`.
164
- * + Used in membership validation.
165
- * @readonly
166
- */
167
- rootCatalogItemId?: string | null;
168
- /**
169
- * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
170
- * @readonly
171
- */
172
- priceDescription?: PriceDescription;
173
- /**
174
- * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
175
- * @readonly
176
- */
177
- depositAmount?: MultiCurrencyPrice;
178
- /** Selected membership to be used as payment for this item. Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`. This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`. */
179
- selectedMembership?: SelectedMembership;
180
- /**
181
- * Tax group ID for this line item.
182
- * @readonly
183
- */
184
- taxGroupId?: string | null;
185
- }
186
- /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
187
- export interface CatalogReference {
188
- /** ID of the item within the catalog it belongs to. */
189
- catalogItemId?: string;
190
- /**
191
- * ID of the app providing the catalog.
192
- *
193
- * You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
194
- *
195
- * For items from Wix catalogs, the following values always apply:
196
- * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
197
- * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
198
- * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
199
- */
200
- appId?: string;
201
- /**
202
- * Additional item details in key:value pairs.
203
- *
204
- * Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
205
- *
206
- * For products and variants from your Wix Stores catalog, learn more about [eCommerce integration](https://www.wix.com/velo/reference/wix-stores-backend/ecommerce-integration).
207
- */
208
- options?: Record<string, any> | null;
209
- }
210
- export interface ProductName {
211
- /** **Required** - Original product name (in site's default language). */
212
- original?: string;
213
- /** Description product name translated into buyer's language. Defaults to `original` when not defined. */
214
- translated?: string | null;
215
- }
216
- export interface MultiCurrencyPrice {
217
- /** Amount. */
218
- amount?: string;
219
- /**
220
- * Converted amount.
221
- * @readonly
222
- */
223
- convertedAmount?: string;
224
- /**
225
- * Amount formatted with currency symbol.
226
- * @readonly
227
- */
228
- formattedAmount?: string;
229
- /**
230
- * Converted amount formatted with currency symbol.
231
- * @readonly
232
- */
233
- formattedConvertedAmount?: string;
234
- }
235
- export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
236
- /** Description line plain text value. */
237
- plainText?: PlainTextValue;
238
- /** Description line color value. */
239
- colorInfo?: Color;
240
- /** Description line name. */
241
- name?: DescriptionLineName;
242
- }
243
- /** @oneof */
244
- export interface DescriptionLineValueOneOf {
245
- /** Description line plain text value. */
246
- plainText?: PlainTextValue;
247
- /** Description line color value. */
248
- colorInfo?: Color;
249
- }
250
- /** @oneof */
251
- export interface DescriptionLineDescriptionLineValueOneOf {
252
- }
253
- export interface DescriptionLineName {
254
- /** Description line name in site's default language. */
255
- original?: string;
256
- /** Description line name translated into buyer's language. Defaults to `original` when not defined. */
257
- translated?: string | null;
258
- }
259
- export interface PlainTextValue {
260
- /** Description line plain text value in site's default language. */
261
- original?: string;
262
- /** Description line plain text value translated into buyer's language. Defaults to `original` when not defined. */
263
- translated?: string | null;
264
- }
265
- export interface Color {
266
- /** Description line color name in site's default language. */
267
- original?: string;
268
- /** Description line color name translated into buyer's language. Defaults to `original` when not defined. */
269
- translated?: string | null;
270
- /**
271
- * HEX or RGB color code for display.
272
- *
273
- */
274
- code?: string | null;
275
- }
276
- export declare enum DescriptionLineType {
277
- UNRECOGNISED = "UNRECOGNISED",
278
- PLAIN_TEXT = "PLAIN_TEXT",
279
- COLOR = "COLOR"
280
- }
281
- export interface ItemAvailabilityInfo {
282
- /**
283
- * Item availability status.
284
- *
285
- * NOT_FOUND - Item does not exist.
286
- * NOT_AVAILABLE - Not in stock.
287
- * PARTIALLY_AVAILABLE - Available quantity is less than requested.
288
- */
289
- status?: ItemAvailabilityStatus;
290
- /** Quantity available. */
291
- quantityAvailable?: number | null;
292
- }
293
- export declare enum ItemAvailabilityStatus {
294
- AVAILABLE = "AVAILABLE",
295
- NOT_FOUND = "NOT_FOUND",
296
- /** Not in stock */
297
- NOT_AVAILABLE = "NOT_AVAILABLE",
298
- /** Available quantity is less than requested */
299
- PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
300
- }
301
- export interface PhysicalProperties {
302
- /**
303
- * Line item weight. Measurement unit is taken from `order.weightUnit`. Supported values:
304
- * + `"KG"`
305
- * + `"LB"`
306
- */
307
- weight?: number | null;
308
- /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
309
- sku?: string | null;
310
- /** Whether this line item is shippable. */
311
- shippable?: boolean;
312
- }
313
- export interface Scope {
314
- /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
315
- namespace?: string;
316
- /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
317
- group?: Group;
318
- }
319
- export interface Group {
320
- /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */
321
- name?: string;
322
- /** Item ID (when the coupon scope is limited to just one item). */
323
- entityId?: string | null;
324
- }
325
- export interface ItemType extends ItemTypeItemTypeDataOneOf {
326
- /** Preset item type. */
327
- preset?: ItemTypeItemType;
328
- /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
329
- custom?: string;
330
- }
331
- /** @oneof */
332
- export interface ItemTypeItemTypeDataOneOf {
333
- /** Preset item type. */
334
- preset?: ItemTypeItemType;
335
- /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
336
- custom?: string;
337
- }
338
- export declare enum ItemTypeItemType {
339
- UNRECOGNISED = "UNRECOGNISED",
340
- PHYSICAL = "PHYSICAL",
341
- DIGITAL = "DIGITAL",
342
- GIFT_CARD = "GIFT_CARD",
343
- SERVICE = "SERVICE"
344
- }
345
- export interface SubscriptionOptionInfo {
346
- /** Subscription option settings. */
347
- subscriptionSettings?: SubscriptionSettings;
348
- /** Subscription option title. */
349
- title?: Title;
350
- /** Subscription option description. */
351
- description?: Description;
352
- }
353
- export interface SubscriptionSettings {
354
- /** Frequency of recurring payment. */
355
- frequency?: SubscriptionFrequency;
356
- /** Whether subscription is renewed automatically at the end of each period. */
357
- autoRenewal?: boolean;
358
- /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
359
- billingCycles?: number | null;
360
- }
361
- /** Frequency unit of recurring payment */
362
- export declare enum SubscriptionFrequency {
363
- UNDEFINED = "UNDEFINED",
364
- DAY = "DAY",
365
- WEEK = "WEEK",
366
- MONTH = "MONTH",
367
- YEAR = "YEAR"
368
- }
369
- export interface Title {
370
- /** Subscription option name in the site's default language. */
371
- original?: string;
372
- /**
373
- * Subscription option name translated into the buyer's language.
374
- *
375
- * Default: Same as `original`.
376
- */
377
- translated?: string | null;
378
- }
379
- export interface Description {
380
- /** Subscription option description. */
381
- original?: string;
382
- /** Translated subscription option description. */
383
- translated?: string | null;
384
- }
385
- export interface SecuredMedia {
386
- /** Media ID in Wix Media Manager. */
387
- _id?: string;
388
- /** Original filename. */
389
- fileName?: string;
390
- /** File type. */
391
- fileType?: FileType;
392
- }
393
- export declare enum FileType {
394
- UNSPECIFIED = "UNSPECIFIED",
395
- SECURE_PICTURE = "SECURE_PICTURE",
396
- SECURE_VIDEO = "SECURE_VIDEO",
397
- SECURE_DOCUMENT = "SECURE_DOCUMENT",
398
- SECURE_MUSIC = "SECURE_MUSIC",
399
- SECURE_ARCHIVE = "SECURE_ARCHIVE"
400
- }
401
- /** Type of selected payment option for catalog item */
402
- export declare enum PaymentOptionType {
403
- /** The entire payment for this item happens as part of the checkout. */
404
- FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
405
- /** The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods. */
406
- FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
407
- /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
408
- MEMBERSHIP = "MEMBERSHIP",
409
- /** Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`. */
410
- DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
411
- /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */
412
- MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
413
- }
414
- export interface ServiceProperties {
415
- /** The date and time for which the service is supposed to be provided. For example, the time of the class. */
416
- scheduledDate?: Date;
417
- /** The number of people participating in this service. For example, the number of people attending the class or the number of people per hotel room. */
418
- numberOfParticipants?: number | null;
419
- }
420
- export interface PriceDescription {
421
- /**
422
- * **Required** - Original price description (in site's default language).
423
- *
424
- */
425
- original?: string;
426
- /** Product name translated into buyer's language. Defaults to `original` when not defined. */
427
- translated?: string | null;
428
- }
429
- /** Selected Membership */
430
- export interface SelectedMembership {
431
- /** Membership ID. */
432
- _id?: string;
433
- /** ID of the app providing this payment option. */
434
- appId?: string;
435
- }
436
- /** Buyer Info */
437
- export interface BuyerInfo extends BuyerInfoIdOneOf {
438
- /**
439
- * Visitor ID - if the buyer is **not** a site member.
440
- * @readonly
441
- */
442
- visitorId?: string;
443
- /**
444
- * Member ID - if the buyer is a site member.
445
- * @readonly
446
- */
447
- memberId?: string;
448
- /**
449
- * User ID - if the cart owner is a Wix user.
450
- * @readonly
451
- */
452
- userId?: string;
453
- /** Contact ID. For more information, see the Contacts API. */
454
- contactId?: string | null;
455
- /** Buyer email address. */
456
- email?: string | null;
457
- }
458
- /** @oneof */
459
- export interface BuyerInfoIdOneOf {
460
- /**
461
- * Visitor ID - if the buyer is **not** a site member.
462
- * @readonly
463
- */
464
- visitorId?: string;
465
- /**
466
- * Member ID - if the buyer is a site member.
467
- * @readonly
468
- */
469
- memberId?: string;
470
- /**
471
- * User ID - if the cart owner is a Wix user.
472
- * @readonly
473
- */
474
- userId?: string;
475
- }
476
- export declare enum WeightUnit {
477
- /** Weight unit can't be classified, due to an error */
478
- UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
479
- /** Kilograms */
480
- KG = "KG",
481
- /** Pounds */
482
- LB = "LB"
483
- }
484
- export interface CartDiscount extends CartDiscountDiscountSourceOneOf {
485
- /** Coupon details. */
486
- coupon?: Coupon;
487
- /** Merchant discount. */
488
- merchantDiscount?: MerchantDiscount;
489
- }
490
- /** @oneof */
491
- export interface CartDiscountDiscountSourceOneOf {
492
- /** Coupon details. */
493
- coupon?: Coupon;
494
- /** Merchant discount. */
495
- merchantDiscount?: MerchantDiscount;
496
- }
497
- export interface Coupon {
498
- /** Coupon ID. */
499
- _id?: string;
500
- /** Coupon code. */
501
- code?: string;
502
- }
503
- export interface MerchantDiscount {
504
- /** Discount value. */
505
- amount?: MultiCurrencyPrice;
506
- }
507
- /** Billing Info and shipping details */
508
- export interface AddressWithContact {
509
- /** Address. */
510
- address?: Address;
511
- /** Contact details. */
512
- contactDetails?: FullAddressContactDetails;
513
- }
514
- /** Physical address */
515
- export interface Address {
516
- /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
517
- country?: string | null;
518
- /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
519
- subdivision?: string | null;
520
- /** City name. */
521
- city?: string | null;
522
- /** Postal or zip code. */
523
- postalCode?: string | null;
524
- /** Street address. */
525
- streetAddress?: StreetAddress;
526
- /** Main address line (usually street name and number). */
527
- addressLine1?: string | null;
528
- /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
529
- addressLine2?: string | null;
530
- }
531
- export interface StreetAddress {
532
- /** Street number. */
533
- number?: string;
534
- /** Street name. */
535
- name?: string;
536
- }
537
- export interface AddressLocation {
538
- /** Address latitude. */
539
- latitude?: number | null;
540
- /** Address longitude. */
541
- longitude?: number | null;
542
- }
543
- /** Full contact details for an address */
544
- export interface FullAddressContactDetails {
545
- /** First name. */
546
- firstName?: string | null;
547
- /** Last name. */
548
- lastName?: string | null;
549
- /** Phone number. */
550
- phone?: string | null;
551
- /** Company name. */
552
- company?: string | null;
553
- /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
554
- vatId?: VatId;
555
- }
556
- export interface VatId {
557
- /** Customer's tax ID. */
558
- _id?: string;
559
- /**
560
- * Tax type.
561
- *
562
- * Supported values:
563
- * + `CPF`: for individual tax payers
564
- * + `CNPJ`: for corporations
565
- */
566
- type?: VatType;
567
- }
568
- /** tax info types */
569
- export declare enum VatType {
570
- UNSPECIFIED = "UNSPECIFIED",
571
- /** CPF - for individual tax payers. */
572
- CPF = "CPF",
573
- /** CNPJ - for corporations */
574
- CNPJ = "CNPJ"
575
- }
576
- export interface SelectedShippingOption {
577
- /** Carrier ID. */
578
- carrierId?: string | null;
579
- /** Selected shipping option code. For example, "usps_std_overnight". */
580
- code?: string;
581
- }
582
- export interface ExtendedFields {
583
- /**
584
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
585
- * The value of each key is structured according to the schema defined when the extended fields were configured.
586
- *
587
- * You can only access fields for which you have the appropriate permissions.
588
- *
589
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
590
- */
591
- namespaces?: Record<string, Record<string, any>>;
592
- }
593
- export interface GetCurrentCartRequest {
594
- }
595
- export interface GetCurrentCartResponse {
596
- /** Current session's active cart. */
597
- cart?: Cart;
598
- }
599
- export interface UpdateCartRequest {
600
- /** Cart info. */
601
- cartInfo?: Cart;
602
- /** The code of an existing coupon to apply to the cart. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
603
- couponCode?: string | null;
604
- /** Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart. */
605
- merchantDiscounts?: MerchantDiscountInput[];
606
- /** Catalog line items. */
607
- lineItems?: LineItem[];
608
- }
609
- export interface MerchantDiscountInput {
610
- /** Discount amount. */
611
- amount?: string;
612
- /** IDs of the line items the discount applies to. */
613
- lineItemIds?: string[];
614
- }
615
- export interface CustomLineItem {
616
- /**
617
- * Custom line item quantity.
618
- *
619
- * Min: `1`
620
- * Max: `100000`
621
- */
622
- quantity?: number;
623
- /**
624
- * Custom line item price.
625
- *
626
- * Must be a number or a decimal without symbols.
627
- */
628
- price?: string;
629
- /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
630
- priceDescription?: PriceDescription;
631
- /** Custom line item description lines. Used for displaying the cart, checkout and order. */
632
- descriptionLines?: DescriptionLine[];
633
- /**
634
- * Custom line item media. Supported formats:
635
- * + Link to an image/video from the [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000"`.
636
- * + An image from the web - `"http(s)://<image url>"`.
637
- */
638
- media?: string;
639
- /**
640
- * Custom line item ID. If passed, `id` must be unique.
641
- * Default: auto-generated ID.
642
- */
643
- _id?: string | null;
644
- /** Tax group ID for this custom line item. */
645
- taxGroupId?: string | null;
646
- /**
647
- * *Required** - Item name.
648
- * + Stores - `product.name`
649
- * + Bookings - `service.info.name`
650
- * + Events - `ticket.name`
651
- */
652
- productName?: ProductName;
653
- /**
654
- * Optional - URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work.
655
- * The URL is optional and if not provided, the site URL will be used.
656
- */
657
- url?: string;
658
- /** *Required** - Item type. Either a preset type or custom. */
659
- itemType?: ItemType;
660
- /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
661
- fullPrice?: string | null;
662
- /**
663
- * Optional - Item quantity available for purchase. Only return this if inventory is managed.
664
- * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
665
- */
666
- quantityAvailable?: number | null;
667
- /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
668
- physicalProperties?: PhysicalProperties;
669
- /**
670
- * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
671
- * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
672
- * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
673
- * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
674
- * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.
675
- */
676
- paymentOption?: PaymentOptionType;
677
- /**
678
- * Optional - Service properties. When relevant, this contains information such as date and number of participants.
679
- * Used, among other things, when checking for valid memberships.
680
- */
681
- serviceProperties?: ServiceProperties;
682
- /**
683
- * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
684
- * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
685
- * + in most cases, this field is the name as `catalogReference.catalogItemId`.
686
- * + Used in membership validation.
687
- */
688
- rootCatalogItemId?: string | null;
689
- /**
690
- * Optional - partial payment for the given item to be paid upfront during the checkout.
691
- * Eligible for catalog items with type `DEPOSIT_ONLINE`.
692
- * If omitted - item's price will not be split and is expected to be paid in single installment
693
- */
694
- depositAmount?: string | null;
695
- /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
696
- catalogReference?: CatalogReference;
697
- }
698
- export interface UpdateCartResponse {
699
- /** Updated Cart. */
700
- cart?: Cart;
701
- }
702
- export interface AddToCurrentCartRequest {
703
- /** Catalog line items. */
704
- lineItems?: LineItem[];
705
- }
706
- export interface AddToCartResponse {
707
- /** Updated cart. */
708
- cart?: Cart;
709
- }
710
- export interface AddToCurrentCartAndEstimateTotalsRequest {
711
- /** Catalog line items. */
712
- lineItems?: LineItem[];
713
- /** Selected shipping option. */
714
- selectedShippingOption?: SelectedShippingOption;
715
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
716
- shippingAddress?: Address;
717
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
718
- billingAddress?: Address;
719
- /** The selected membership payment options and which line items they apply to. */
720
- selectedMemberships?: SelectedMemberships;
721
- }
722
- export interface SelectedMemberships {
723
- /** Selected memberships. */
724
- memberships?: HostSelectedMembership[];
725
- }
726
- export interface HostSelectedMembership {
727
- /** Membership ID. */
728
- _id?: string;
729
- /** ID of the app providing this payment option. */
730
- appId?: string;
731
- /** IDs of the line items this membership applies to. */
732
- lineItemIds?: string[];
733
- }
734
- export interface EstimateTotalsResponse {
735
- /** Cart. */
736
- cart?: Cart;
737
- /** Calculated line items. */
738
- calculatedLineItems?: CalculatedLineItem[];
739
- /** Price summary. */
740
- priceSummary?: PriceSummary;
741
- /** Applied gift card. */
742
- giftCard?: GiftCard;
743
- /** Tax summary. */
744
- taxSummary?: TaxSummary;
745
- /** Shipping information. */
746
- shippingInfo?: ShippingInformation;
747
- /** Applied discounts. */
748
- appliedDiscounts?: AppliedDiscount[];
749
- /** Calculation errors. */
750
- calculationErrors?: CalculationErrors;
751
- /**
752
- * Weight measurement unit - defaults to site's weight unit. Supported values:
753
- * + `"KG"`
754
- * + `"LB"`
755
- */
756
- weightUnit?: WeightUnit;
757
- /** Currency used for pricing in this store. */
758
- currency?: string;
759
- /**
760
- * Minimal amount to pay in order to place the order.
761
- * @readonly
762
- */
763
- payNow?: PriceSummary;
764
- /**
765
- * Remaining amount for the order to be fully paid.
766
- * @readonly
767
- */
768
- payLater?: PriceSummary;
769
- /** Information about valid and invalid memberships, and which ones are selected for usage. */
770
- membershipOptions?: MembershipOptions;
771
- /** Additional fees */
772
- additionalFees?: AdditionalFee[];
773
- /**
774
- * List of validation violations raised by the [Validations Custom Extension SPI](https://www.wix.com/velo/reference/spis/wix-ecom/ecom-validations/introduction).
775
- * @readonly
776
- */
777
- violations?: Violation[];
778
- }
779
- export interface CalculatedLineItem {
780
- /** Line item ID. */
781
- lineItemId?: string;
782
- /** Price breakdown for this line item. */
783
- pricesBreakdown?: LineItemPricesData;
784
- /**
785
- * Type of selected payment option for current item. Defaults to `"FULL_PAYMENT_ONLINE"`.
786
- * + `"FULL_PAYMENT_ONLINE"` - The entire payment for this item happens as part of the checkout.
787
- * + `"FULL_PAYMENT_OFFLINE"` - The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
788
- * + `"MEMBERSHIP"` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` will be 0.
789
- */
790
- paymentOption?: PaymentOptionType;
791
- }
792
- export interface LineItemPricesData {
793
- /** Total price after discounts and after tax. */
794
- totalPriceAfterTax?: MultiCurrencyPrice;
795
- /** Total price after discounts, and before tax. */
796
- totalPriceBeforeTax?: MultiCurrencyPrice;
797
- /** Tax details. */
798
- taxDetails?: ItemTaxFullDetails;
799
- /** Total discount for all line items. */
800
- totalDiscount?: MultiCurrencyPrice;
801
- /** Catalog price after catalog discount and automatic discounts. */
802
- price?: MultiCurrencyPrice;
803
- /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */
804
- priceBeforeDiscounts?: MultiCurrencyPrice;
805
- /** Total price **after** catalog-defined discount and line item discounts. */
806
- lineItemPrice?: MultiCurrencyPrice;
807
- /** Item price **before** line item discounts and **before** catalog-defined discount. Defaults to `price` when not provided. */
808
- fullPrice?: MultiCurrencyPrice;
809
- }
810
- export interface ItemTaxFullDetails {
811
- /** Amount for which tax is calculated. */
812
- taxableAmount?: MultiCurrencyPrice;
813
- /** Tax rate %, as a decimal point between 0 and 1. */
814
- taxRate?: string;
815
- /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
816
- totalTax?: MultiCurrencyPrice;
817
- /**
818
- * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.
819
- * @readonly
820
- */
821
- rateBreakdown?: TaxRateBreakdown[];
822
- }
823
- export interface TaxRateBreakdown {
824
- /** Name of tax against which the calculation was performed. */
825
- name?: string;
826
- /** Rate at which this tax detail was calculated. */
827
- rate?: string;
828
- /** Amount of tax for this tax detail. */
829
- tax?: MultiCurrencyPrice;
830
- }
831
- /**
832
- * TaxBreakdown represents tax information for a line item.
833
- * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
834
- */
835
- export interface TaxBreakdown {
836
- /** The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec". */
837
- jurisdiction?: string | null;
838
- /** The amount of this line item price that was considered nontaxable. (Decimal value) */
839
- nonTaxableAmount?: MultiCurrencyPrice;
840
- /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value) */
841
- rate?: string | null;
842
- /** The amount of tax estimated for this line item. (Decimal value) */
843
- taxAmount?: MultiCurrencyPrice;
844
- /** The taxable amount of this line item. */
845
- taxableAmount?: MultiCurrencyPrice;
846
- /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
847
- taxType?: string | null;
848
- /**
849
- * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
850
- * This name should be explicit enough to allow the merchant to understand what tax was calculated.
851
- */
852
- taxName?: string | null;
853
- /** The type of the jurisdiction in which this tax detail applies. */
854
- jurisdictionType?: JurisdictionType;
855
- }
856
- /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
857
- export declare enum JurisdictionType {
858
- UNDEFINED = "UNDEFINED",
859
- COUNTRY = "COUNTRY",
860
- STATE = "STATE",
861
- COUNTY = "COUNTY",
862
- CITY = "CITY",
863
- SPECIAL = "SPECIAL"
864
- }
865
- export interface PriceSummary {
866
- /** Subtotal of all line items, before discounts and before tax. */
867
- subtotal?: MultiCurrencyPrice;
868
- /** Total shipping price, before discounts and before tax. */
869
- shipping?: MultiCurrencyPrice;
870
- /** Total tax. */
871
- tax?: MultiCurrencyPrice;
872
- /** Total calculated discount value. */
873
- discount?: MultiCurrencyPrice;
874
- /** Total price after discounts, gift cards, and tax. */
875
- total?: MultiCurrencyPrice;
876
- /** Total additional fees price before tax. */
877
- additionalFees?: MultiCurrencyPrice;
878
- }
879
- export interface GiftCard {
880
- /** Gift Card ID. */
881
- _id?: string;
882
- /** Gift card obfuscated code. */
883
- obfuscatedCode?: string;
884
- /** Gift card value. */
885
- amount?: MultiCurrencyPrice;
886
- /** App ID of the gift card provider. */
887
- appId?: string;
888
- }
889
- export interface TaxSummary {
890
- /**
891
- * Amount for which tax is calculated, added from line items.
892
- * @readonly
893
- */
894
- taxableAmount?: MultiCurrencyPrice;
895
- /**
896
- * Calculated tax, added from line items.
897
- * @readonly
898
- */
899
- totalTax?: MultiCurrencyPrice;
900
- /** Tax calculator that was active when the order was created. */
901
- calculationDetails?: TaxCalculationDetails;
902
- }
903
- export interface TaxCalculationDetails extends TaxCalculationDetailsCalculationDetailsOneOf {
904
- /** Reason the manual calculation was used. */
905
- manualRateReason?: ManualCalculationReason;
906
- /** Error details and reason for tax rate fallback. */
907
- autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
908
- /**
909
- * Rate calculation type. Supported values:
910
- * + `"AUTO_RATE"`
911
- * + `"FALLBACK_RATE"`
912
- * + `"MANUAL_RATE"`
913
- * + `"NO_TAX_COLLECTED"`
914
- */
915
- rateType?: RateType;
916
- }
917
- /** @oneof */
918
- export interface TaxCalculationDetailsCalculationDetailsOneOf {
919
- /** Reason the manual calculation was used. */
920
- manualRateReason?: ManualCalculationReason;
921
- /** Details of the fallback rate calculation. */
922
- autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
923
- }
924
- export declare enum RateType {
925
- /** no tax being collected for this request due to location of purchase */
926
- NO_TAX_COLLECTED = "NO_TAX_COLLECTED",
927
- /** manual rate used for calculation */
928
- MANUAL_RATE = "MANUAL_RATE",
929
- /** autotax rate used for calculation */
930
- AUTO_RATE = "AUTO_RATE",
931
- /** fallback rate used for calculation */
932
- FALLBACK_RATE = "FALLBACK_RATE"
933
- }
934
- export declare enum ManualCalculationReason {
935
- /** user set calculator in Business Manager to be Manual */
936
- GLOBAL_SETTING_TO_MANUAL = "GLOBAL_SETTING_TO_MANUAL",
937
- /** specific region is on manual even though Global setting is Auto-tax */
938
- REGION_SETTING_TO_MANUAL = "REGION_SETTING_TO_MANUAL"
939
- }
940
- export interface AutoTaxFallbackCalculationDetails {
941
- /**
942
- * Reason for fallback. Supported values:
943
- * + `"AUTO_TAX_FAILED"`
944
- * + `"AUTO_TAX_DEACTIVATED"`
945
- */
946
- fallbackReason?: FallbackReason;
947
- /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */
948
- error?: ApplicationError;
949
- }
950
- export declare enum FallbackReason {
951
- /** auto-tax failed to be calculated */
952
- AUTO_TAX_FAILED = "AUTO_TAX_FAILED",
953
- /** auto-tax was temporarily deactivated on a system-level */
954
- AUTO_TAX_DEACTIVATED = "AUTO_TAX_DEACTIVATED"
955
- }
956
- export interface ApplicationError {
957
- /** Error code. */
958
- code?: string;
959
- /** Description of the error. */
960
- description?: string;
961
- /** Data related to the error. */
962
- data?: Record<string, any> | null;
963
- }
964
- /**
965
- * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
966
- * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
967
- */
968
- export interface AggregatedTaxBreakdown {
969
- /** The name of the tax against which this tax amount was calculated. */
970
- taxName?: string;
971
- /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
972
- taxType?: string;
973
- /** The name of the jurisdiction in which this tax detail applies. */
974
- jurisdiction?: string;
975
- /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
976
- jurisdictionType?: string;
977
- /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value) */
978
- rate?: string;
979
- /** The sum of all the tax from line items that calculated by the tax identifiers. */
980
- aggregatedTaxAmount?: MultiCurrencyPrice;
981
- }
982
- export interface ShippingInformation {
983
- /** Shipping region. */
984
- region?: ShippingRegion;
985
- /** Selected shipping option. */
986
- selectedCarrierServiceOption?: SelectedCarrierServiceOption;
987
- /** All shipping options. */
988
- carrierServiceOptions?: CarrierServiceOption[];
989
- }
990
- export interface ShippingRegion {
991
- /**
992
- * Shipping region ID.
993
- * @readonly
994
- */
995
- _id?: string;
996
- /** Shipping region name. */
997
- name?: string;
998
- }
999
- export interface SelectedCarrierServiceOption {
1000
- /** Unique identifier of selected option. For example, "usps_std_overnight". */
1001
- code?: string;
1002
- /**
1003
- * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
1004
- * For example, "Standard" or "First-Class Package International".
1005
- * @readonly
1006
- */
1007
- title?: string;
1008
- /**
1009
- * Delivery logistics.
1010
- * @readonly
1011
- */
1012
- logistics?: DeliveryLogistics;
1013
- /**
1014
- * Shipping costs.
1015
- * @readonly
1016
- */
1017
- cost?: SelectedCarrierServiceOptionPrices;
1018
- /**
1019
- * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
1020
- * @readonly
1021
- */
1022
- requestedShippingOption?: boolean;
1023
- /** Other charges */
1024
- otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
1025
- /** This carrier's unique ID */
1026
- carrierId?: string | null;
1027
- }
1028
- export interface DeliveryLogistics {
1029
- /** Expected delivery time, in free text. For example, "3-5 business days". */
1030
- deliveryTime?: string | null;
1031
- /** Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot". */
1032
- instructions?: string | null;
1033
- /** Pickup details. */
1034
- pickupDetails?: PickupDetails;
1035
- }
1036
- export interface PickupDetails {
1037
- /** Pickup address. */
1038
- address?: Address;
1039
- /** Whether the pickup address is that of a business - this may effect tax calculation. */
1040
- businessLocation?: boolean;
1041
- /** Pickup method */
1042
- pickupMethod?: PickupMethod;
1043
- }
1044
- export declare enum PickupMethod {
1045
- UNKNOWN_METHOD = "UNKNOWN_METHOD",
1046
- STORE_PICKUP = "STORE_PICKUP",
1047
- PICKUP_POINT = "PICKUP_POINT"
1048
- }
1049
- export interface DeliveryTimeSlot {
1050
- /** starting time of the delivery time slot */
1051
- from?: Date;
1052
- /** ending time of the delivery time slot */
1053
- to?: Date;
1054
- }
1055
- export interface SelectedCarrierServiceOptionPrices {
1056
- /** Total shipping price, after discount and after tax. */
1057
- totalPriceAfterTax?: MultiCurrencyPrice;
1058
- /** Total price of shipping after discounts (when relevant), and before tax. */
1059
- totalPriceBeforeTax?: MultiCurrencyPrice;
1060
- /** Tax details. */
1061
- taxDetails?: ItemTaxFullDetails;
1062
- /** Shipping discount before tax. */
1063
- totalDiscount?: MultiCurrencyPrice;
1064
- /** Shipping price before discount and before tax. */
1065
- price?: MultiCurrencyPrice;
1066
- }
1067
- export interface SelectedCarrierServiceOptionOtherCharge {
1068
- /** Type of additional cost. */
1069
- type?: ChargeType;
1070
- /** Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'. */
1071
- details?: string | null;
1072
- /** Price of added charge. */
1073
- cost?: SelectedCarrierServiceOptionPrices;
1074
- }
1075
- export declare enum ChargeType {
1076
- HANDLING_FEE = "HANDLING_FEE",
1077
- INSURANCE = "INSURANCE"
1078
- }
1079
- export interface CarrierServiceOption {
1080
- /** Carrier ID. */
1081
- carrierId?: string;
1082
- /** Shipping options offered by this carrier for this request. */
1083
- shippingOptions?: ShippingOption[];
1084
- }
1085
- export interface ShippingOption {
1086
- /**
1087
- * Unique code of provided shipping option like "usps_std_overnight".
1088
- * For legacy calculators this would be the UUID of the option.
1089
- */
1090
- code?: string;
1091
- /**
1092
- * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
1093
- * For example, "Standard" or "First-Class Package International".
1094
- */
1095
- title?: string;
1096
- /** Delivery logistics. */
1097
- logistics?: DeliveryLogistics;
1098
- /** Sipping price information. */
1099
- cost?: ShippingPrice;
1100
- }
1101
- export interface ShippingPrice {
1102
- /** Shipping price. */
1103
- price?: MultiCurrencyPrice;
1104
- /** Other costs such as insurance, handling & packaging for fragile items, etc. */
1105
- otherCharges?: OtherCharge[];
1106
- }
1107
- export interface OtherCharge {
1108
- /** Type of additional cost. */
1109
- type?: ChargeType;
1110
- /** Price of added cost. */
1111
- price?: MultiCurrencyPrice;
1112
- }
1113
- export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1114
- /** Coupon details. */
1115
- coupon?: V1Coupon;
1116
- /** Merchant discount. */
1117
- merchantDiscount?: V1MerchantDiscount;
1118
- /** Discount rule */
1119
- discountRule?: DiscountRule;
1120
- /** Discount type. */
1121
- discountType?: DiscountType;
1122
- /** IDs of the line items the discount applies to. */
1123
- lineItemIds?: string[];
1124
- }
1125
- /** @oneof */
1126
- export interface AppliedDiscountDiscountSourceOneOf {
1127
- /** Coupon details. */
1128
- coupon?: V1Coupon;
1129
- /** Merchant discount. */
1130
- merchantDiscount?: V1MerchantDiscount;
1131
- /** Discount rule */
1132
- discountRule?: DiscountRule;
1133
- }
1134
- export declare enum DiscountType {
1135
- GLOBAL = "GLOBAL",
1136
- SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1137
- SHIPPING = "SHIPPING"
1138
- }
1139
- /** Coupon */
1140
- export interface V1Coupon {
1141
- /** Coupon ID. */
1142
- _id?: string;
1143
- /** Coupon code. */
1144
- code?: string;
1145
- /** Coupon value. */
1146
- amount?: MultiCurrencyPrice;
1147
- /** Coupon name. */
1148
- name?: string;
1149
- }
1150
- export interface V1MerchantDiscount {
1151
- /** Discount value. */
1152
- amount?: MultiCurrencyPrice;
1153
- }
1154
- export interface DiscountRule {
1155
- /** Discount rule ID */
1156
- _id?: string;
1157
- /** Discount rule name */
1158
- name?: DiscountRuleName;
1159
- /** Discount value. */
1160
- amount?: MultiCurrencyPrice;
1161
- }
1162
- export interface DiscountRuleName {
1163
- /** Original discount rule name (in site's default language). */
1164
- original?: string;
1165
- /** Discount rule name translated into buyer's language. Defaults to `original` when not defined. */
1166
- translated?: string | null;
1167
- }
1168
- export interface LineItemDiscount {
1169
- /** ID of line item the discount applies to. */
1170
- _id?: string;
1171
- /** Discount value. */
1172
- totalDiscountAmount?: MultiCurrencyPrice;
1173
- }
1174
- export interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1175
- /** General shipping calculation error. */
1176
- generalShippingCalculationError?: Details;
1177
- /** Carrier errors. */
1178
- carrierErrors?: CarrierErrors;
1179
- /** Tax calculation error. */
1180
- taxCalculationError?: Details;
1181
- /** Coupon calculation error. */
1182
- couponCalculationError?: Details;
1183
- /** Gift card calculation error. */
1184
- giftCardCalculationError?: Details;
1185
- /** Order validation errors. */
1186
- orderValidationErrors?: ApplicationError[];
1187
- /**
1188
- * Membership payment methods calculation errors
1189
- * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1190
- */
1191
- membershipError?: Details;
1192
- /** Discount Rule calculation error. */
1193
- discountsCalculationError?: Details;
1194
- }
1195
- /** @oneof */
1196
- export interface CalculationErrorsShippingCalculationErrorOneOf {
1197
- /** General shipping calculation error. */
1198
- generalShippingCalculationError?: Details;
1199
- /** Carrier errors. */
1200
- carrierErrors?: CarrierErrors;
1201
- }
1202
- export interface Details extends DetailsKindOneOf {
1203
- applicationError?: ApplicationError;
1204
- validationError?: ValidationError;
1205
- systemError?: SystemError;
1206
- /** Deprecated in APIs. Used to enable migration from rendering arbitrary tracing to rest response. */
1207
- tracing?: Record<string, string>;
1208
- }
1209
- /** @oneof */
1210
- export interface DetailsKindOneOf {
1211
- applicationError?: ApplicationError;
1212
- validationError?: ValidationError;
1213
- systemError?: SystemError;
1214
- }
1215
- /**
1216
- * example result:
1217
- * {
1218
- * "fieldViolations": [
1219
- * {
1220
- * "field": "fieldA",
1221
- * "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
1222
- * "violatedRule": "OTHER",
1223
- * "ruleName": "INVALID_NOTE",
1224
- * "data": {
1225
- * "value": "FI"
1226
- * }
1227
- * },
1228
- * {
1229
- * "field": "fieldB",
1230
- * "description": "field value out of range. supported range: [0-20]",
1231
- * "violatedRule": "MAX",
1232
- * "data": {
1233
- * "threshold": 20
1234
- * }
1235
- * },
1236
- * {
1237
- * "field": "fieldC",
1238
- * "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
1239
- * "violatedRule": "FORMAT",
1240
- * "data": {
1241
- * "type": "PHONE"
1242
- * }
1243
- * }
1244
- * ]
1245
- * }
1246
- */
1247
- export interface ValidationError {
1248
- fieldViolations?: FieldViolation[];
1249
- }
1250
- export declare enum RuleType {
1251
- VALIDATION = "VALIDATION",
1252
- OTHER = "OTHER",
1253
- MAX = "MAX",
1254
- MIN = "MIN",
1255
- MAX_LENGTH = "MAX_LENGTH",
1256
- MIN_LENGTH = "MIN_LENGTH",
1257
- MAX_SIZE = "MAX_SIZE",
1258
- MIN_SIZE = "MIN_SIZE",
1259
- FORMAT = "FORMAT",
1260
- DECIMAL_LTE = "DECIMAL_LTE",
1261
- DECIMAL_GTE = "DECIMAL_GTE",
1262
- DECIMAL_LT = "DECIMAL_LT",
1263
- DECIMAL_GT = "DECIMAL_GT",
1264
- DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
1265
- INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
1266
- REQUIRED_FIELD = "REQUIRED_FIELD",
1267
- FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
1268
- ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
1269
- }
1270
- export interface FieldViolation {
1271
- field?: string;
1272
- description?: string;
1273
- violatedRule?: RuleType;
1274
- /** applicable when violated_rule=OTHER */
1275
- ruleName?: string | null;
1276
- data?: Record<string, any> | null;
1277
- }
1278
- export interface SystemError {
1279
- /** Error code. */
1280
- errorCode?: string | null;
1281
- }
1282
- export interface CarrierErrors {
1283
- /** Carrier errors. */
1284
- errors?: CarrierError[];
1285
- }
1286
- export interface CarrierError {
1287
- /** Carrier ID. */
1288
- carrierId?: string;
1289
- /** Error details. */
1290
- error?: Details;
1291
- }
1292
- export interface MembershipOptions {
1293
- /** List of payment options that can be used. */
1294
- eligibleMemberships?: Membership[];
1295
- /** List of payment options that are owned by the member, but cannot be used due to reason provided. */
1296
- invalidMemberships?: InvalidMembership[];
1297
- /** The selected membership payment options and which line items they apply to. */
1298
- selectedMemberships?: HostSelectedMembership[];
1299
- }
1300
- export interface Membership {
1301
- /** Membership ID. */
1302
- _id?: string;
1303
- /** ID of the application providing this payment option. */
1304
- appId?: string;
1305
- /** The name of this membership. */
1306
- name?: MembershipName;
1307
- /** Line item IDs which are "paid" for by this membership. */
1308
- lineItemIds?: string[];
1309
- /** Optional - For a membership that has limited credits, information about credit usage. */
1310
- credits?: MembershipPaymentCredits;
1311
- /** Optional - TMembership expiry date. */
1312
- expirationDate?: Date;
1313
- /** Additional data about this membership. */
1314
- additionalData?: Record<string, any> | null;
1315
- }
1316
- export interface MembershipName {
1317
- /** The name of this membership */
1318
- original?: string;
1319
- /** Membership name translated into buyer's language. Defaults to `original` when not defined. */
1320
- translated?: string | null;
1321
- }
1322
- export interface MembershipPaymentCredits {
1323
- /** How much credit this membership has in total */
1324
- total?: number;
1325
- /** How much credit remained for this membership */
1326
- remaining?: number;
1327
- }
1328
- export interface InvalidMembership {
1329
- /** Membership details. */
1330
- membership?: Membership;
1331
- /** Reason why this membership is invalid and cannot be used. */
1332
- reason?: string;
1333
- }
1334
- export interface AdditionalFee {
1335
- /** Additional fee's unique code (or ID) for future processing. */
1336
- code?: string | null;
1337
- /** Translated additional fee's name. */
1338
- name?: string;
1339
- /** Additional fee's price. */
1340
- price?: MultiCurrencyPrice;
1341
- /** Tax details. */
1342
- taxDetails?: ItemTaxFullDetails;
1343
- /** Provider's app id. */
1344
- providerAppId?: string | null;
1345
- /** Additional fee's price before tax. */
1346
- priceBeforeTax?: MultiCurrencyPrice;
1347
- /**
1348
- * Optional - Line items associated with this additional fee.
1349
- * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1350
- */
1351
- lineItemIds?: string[];
1352
- }
1353
- export interface Violation {
1354
- /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */
1355
- severity?: Severity;
1356
- /** Target location on a checkout or cart page where the violation will be displayed. */
1357
- target?: Target;
1358
- /** Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href="https://www.wix.com">Click me</a>`. */
1359
- description?: string | null;
1360
- }
1361
- export declare enum Severity {
1362
- /** The user is allowed to move forward in the flow. */
1363
- WARNING = "WARNING",
1364
- /**
1365
- * The user is blocked from moving forward in the flow.
1366
- * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
1367
- */
1368
- ERROR = "ERROR"
1369
- }
1370
- export interface Target extends TargetTargetTypeOneOf {
1371
- /** General (other) violation. */
1372
- other?: Other;
1373
- /** Specific line item violation. */
1374
- lineItem?: TargetLineItem;
1375
- }
1376
- /** @oneof */
1377
- export interface TargetTargetTypeOneOf {
1378
- /** General (other) violation. */
1379
- other?: Other;
1380
- /** Specific line item violation. */
1381
- lineItem?: TargetLineItem;
1382
- }
1383
- /** Available locations on the webpage */
1384
- export declare enum NameInOther {
1385
- /** default location, in case no specific location is specified */
1386
- OTHER_DEFAULT = "OTHER_DEFAULT"
1387
- }
1388
- /** Available locations on the line item */
1389
- export declare enum NameInLineItem {
1390
- /** default location, in case no specific location is specified */
1391
- LINE_ITEM_DEFAULT = "LINE_ITEM_DEFAULT"
1392
- }
1393
- /** General (other) violation. */
1394
- export interface Other {
1395
- /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
1396
- name?: NameInOther;
1397
- }
1398
- /** Specific line item violation. */
1399
- export interface TargetLineItem {
1400
- /** Location on a checkout or a cart page where the specific line item violation will be displayed. */
1401
- name?: NameInLineItem;
1402
- /** ID of the line item containing the violation. */
1403
- _id?: string | null;
1404
- }
1405
- export interface RemoveLineItemsFromCurrentCartRequest {
1406
- /** IDs of the line items to remove from the cart. */
1407
- lineItemIds: string[];
1408
- }
1409
- export interface RemoveLineItemsResponse {
1410
- /** Updated cart. */
1411
- cart?: Cart;
1412
- }
1413
- export interface CreateCheckoutFromCurrentCartRequest {
1414
- /**
1415
- * **Required**. Sales channel type. Supported values:
1416
- * + `"AMAZON"`
1417
- * + `"BACKOFFICE_MERCHANT"`
1418
- * + `"EBAY"`
1419
- * + `"OTHER_PLATFORM"`
1420
- * + `"POS"`
1421
- * + `"WEB"`
1422
- * + `"WISH"`
1423
- * + `"WIX_APP_STORE"`
1424
- * + `"WIX_INVOICES"`
1425
- */
1426
- channelType?: ChannelType;
1427
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
1428
- shippingAddress?: Address;
1429
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
1430
- billingAddress?: Address;
1431
- /** Selected shipping option. */
1432
- selectedShippingOption?: SelectedShippingOption;
1433
- /** Mandatory when setting a billing or shipping address if the site visitor isn't logged in. */
1434
- email?: string | null;
1435
- }
1436
- export declare enum ChannelType {
1437
- UNSPECIFIED = "UNSPECIFIED",
1438
- WEB = "WEB",
1439
- POS = "POS",
1440
- EBAY = "EBAY",
1441
- AMAZON = "AMAZON",
1442
- OTHER_PLATFORM = "OTHER_PLATFORM",
1443
- WIX_APP_STORE = "WIX_APP_STORE",
1444
- WIX_INVOICES = "WIX_INVOICES",
1445
- BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
1446
- WISH = "WISH",
1447
- CLASS_PASS = "CLASS_PASS",
1448
- GLOBAL_E = "GLOBAL_E"
1449
- }
1450
- export interface CreateCheckoutResponse {
1451
- /** The newly created checkout's ID. */
1452
- checkoutId?: string;
1453
- }
1454
- export interface RemoveCouponFromCurrentCartRequest {
1455
- }
1456
- export interface RemoveCouponResponse {
1457
- /** Updated cart. */
1458
- cart?: Cart;
1459
- }
1460
- export interface UpdateCurrentCartLineItemQuantityRequest {
1461
- /** Line item IDs and their new quantity. */
1462
- lineItems: LineItemQuantityUpdate[];
1463
- }
1464
- export interface LineItemQuantityUpdate {
1465
- /** Line item ID. Required. */
1466
- _id?: string;
1467
- /** New quantity. Number must be 1 or higher. Required. */
1468
- quantity?: number;
1469
- }
1470
- export interface UpdateLineItemsQuantityResponse {
1471
- /** Updated cart. */
1472
- cart?: Cart;
1473
- }
1474
- export interface EstimateCurrentCartTotalsRequest {
1475
- /** Selected shipping option. */
1476
- selectedShippingOption?: SelectedShippingOption;
1477
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
1478
- shippingAddress?: Address;
1479
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
1480
- billingAddress?: Address;
1481
- /** The selected membership payment options and which line items they apply to. */
1482
- selectedMemberships?: SelectedMemberships;
1483
- }
1484
- export interface DeleteCurrentCartRequest {
1485
- }
1486
- export interface DeleteCartResponse {
1487
- }
1488
- export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
1489
- createdEvent?: EntityCreatedEvent<T>;
1490
- updatedEvent?: EntityUpdatedEvent<T>;
1491
- deletedEvent?: EntityDeletedEvent<T>;
1492
- actionEvent?: ActionEvent<T>;
1493
- /**
1494
- * Unique event ID.
1495
- * Allows clients to ignore duplicate webhooks.
1496
- */
1497
- _id?: string;
1498
- /**
1499
- * Assumes actions are also always typed to an entity_type
1500
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1501
- */
1502
- entityFqdn?: string;
1503
- /**
1504
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1505
- * This is although the created/updated/deleted notion is duplication of the oneof types
1506
- * Example: created/updated/deleted/started/completed/email_opened
1507
- */
1508
- slug?: string;
1509
- /** ID of the entity associated with the event. */
1510
- entityId?: string;
1511
- /** Event timestamp. */
1512
- eventTime?: Date;
1513
- /**
1514
- * Whether the event was triggered as a result of a privacy regulation application
1515
- * (for example, GDPR).
1516
- */
1517
- triggeredByAnonymizeRequest?: boolean | null;
1518
- /** If present, indicates the action that triggered the event. */
1519
- originatedFrom?: string | null;
1520
- /**
1521
- * A sequence number defining the order of updates to the underlying entity.
1522
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1523
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1524
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1525
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1526
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1527
- */
1528
- entityEventSequence?: string | null;
1529
- }
1530
- export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
1531
- }
1532
- export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
1533
- }
1534
- export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
1535
- }
1536
- export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
1537
- }
1538
- /** @oneof */
1539
- export interface DomainEventBodyOneOf<T> {
1540
- createdEvent?: EntityCreatedEvent<T>;
1541
- updatedEvent?: EntityUpdatedEvent<T>;
1542
- deletedEvent?: EntityDeletedEvent<T>;
1543
- actionEvent?: ActionEvent<T>;
1544
- }
1545
- export interface EntityCreatedEvent<T> {
1546
- entity?: T;
1547
- }
1548
- export interface EntityUpdatedEvent<T> {
1549
- /**
1550
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1551
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1552
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1553
- */
1554
- currentEntity?: T;
1555
- }
1556
- export interface EntityDeletedEvent<T> {
1557
- /** Entity that was deleted */
1558
- deletedEntity?: T | null;
1559
- }
1560
- export interface ActionEvent<T> {
1561
- body?: T;
1562
- }
1563
- export interface CreateCartRequest {
1564
- /** Cart info. */
1565
- cartInfo?: Cart;
1566
- /** The code of an existing coupon to apply to the cart. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
1567
- couponCode?: string | null;
1568
- /** Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will apply to the whole cart. */
1569
- merchantDiscounts?: MerchantDiscountInput[];
1570
- /** Catalog line items. */
1571
- lineItems?: LineItem[];
1572
- }
1573
- export interface CreateCartResponse {
1574
- /** Cart. */
1575
- cart?: Cart;
1576
- }
1577
- export interface GetCartRequest {
1578
- /** ID of the cart to retrieve. */
1579
- _id: string;
1580
- }
1581
- export interface GetCartResponse {
1582
- /** The requested cart. */
1583
- cart?: Cart;
1584
- }
1585
- export interface GetCartByCheckoutIdRequest {
1586
- /** Checkout ID. */
1587
- _id?: string;
1588
- }
1589
- export interface GetCartByCheckoutIdResponse {
1590
- /** The requested cart. */
1591
- cart?: Cart;
1592
- }
1593
- export interface AddToCartRequest {
1594
- /** Cart ID. */
1595
- _id: string;
1596
- /** Catalog line items. */
1597
- lineItems?: LineItem[];
1598
- }
1599
- export interface RemoveLineItemsRequest {
1600
- /** Cart ID. */
1601
- _id: string;
1602
- /** IDs of the line items to remove from the cart. */
1603
- lineItemIds: string[];
1604
- }
1605
- export interface CreateCheckoutRequest {
1606
- /** Cart ID. */
1607
- _id: string;
1608
- /**
1609
- * **Required**. Sales channel type. Supported values:
1610
- * + `"AMAZON"`
1611
- * + `"BACKOFFICE_MERCHANT"`
1612
- * + `"EBAY"`
1613
- * + `"OTHER_PLATFORM"`
1614
- * + `"POS"`
1615
- * + `"WEB"`
1616
- * + `"WISH"`
1617
- * + `"WIX_APP_STORE"`
1618
- * + `"WIX_INVOICES"`
1619
- */
1620
- channelType?: ChannelType;
1621
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
1622
- shippingAddress?: Address;
1623
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
1624
- billingAddress?: Address;
1625
- /** Selected shipping option. */
1626
- selectedShippingOption?: SelectedShippingOption;
1627
- /** Mandatory when setting a billing or shipping address if the site visitor isn't logged in. */
1628
- email?: string | null;
1629
- }
1630
- export interface RemoveCouponRequest {
1631
- /** Cart ID. */
1632
- _id: string;
1633
- }
1634
- export interface UpdateLineItemsQuantityRequest {
1635
- /** Cart ID. */
1636
- _id: string;
1637
- /** Line item IDs and their new quantity. */
1638
- lineItems: LineItemQuantityUpdate[];
1639
- }
1640
- export interface EstimateTotalsRequest {
1641
- /** Cart ID. */
1642
- _id: string;
1643
- /** Selected shipping option. */
1644
- selectedShippingOption?: SelectedShippingOption;
1645
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
1646
- shippingAddress?: Address;
1647
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
1648
- billingAddress?: Address;
1649
- /** The selected membership payment options and which line items they apply to. */
1650
- selectedMemberships?: SelectedMemberships;
1651
- }
1652
- export interface DeleteCartRequest {
1653
- /** ID of the cart to delete. */
1654
- _id: string;
1655
- }
1656
- export interface Empty {
1657
- }
1658
- export interface GetCurrentCartResponseNonNullableFields {
1659
- cart?: {
1660
- lineItems: {
1661
- quantity: number;
1662
- catalogReference?: {
1663
- catalogItemId: string;
1664
- appId: string;
1665
- };
1666
- productName?: {
1667
- original: string;
1668
- };
1669
- url: string;
1670
- price?: {
1671
- amount: string;
1672
- convertedAmount: string;
1673
- formattedAmount: string;
1674
- formattedConvertedAmount: string;
1675
- };
1676
- fullPrice?: {
1677
- amount: string;
1678
- convertedAmount: string;
1679
- formattedAmount: string;
1680
- formattedConvertedAmount: string;
1681
- };
1682
- priceBeforeDiscounts?: {
1683
- amount: string;
1684
- convertedAmount: string;
1685
- formattedAmount: string;
1686
- formattedConvertedAmount: string;
1687
- };
1688
- descriptionLines: {
1689
- plainText?: {
1690
- original: string;
1691
- };
1692
- colorInfo?: {
1693
- original: string;
1694
- };
1695
- name?: {
1696
- original: string;
1697
- };
1698
- }[];
1699
- image: string;
1700
- availability?: {
1701
- status: ItemAvailabilityStatus;
1702
- };
1703
- physicalProperties?: {
1704
- shippable: boolean;
1705
- };
1706
- itemType?: {
1707
- preset: ItemTypeItemType;
1708
- custom: string;
1709
- };
1710
- paymentOption: PaymentOptionType;
1711
- priceDescription?: {
1712
- original: string;
1713
- };
1714
- depositAmount?: {
1715
- amount: string;
1716
- convertedAmount: string;
1717
- formattedAmount: string;
1718
- formattedConvertedAmount: string;
1719
- };
1720
- selectedMembership?: {
1721
- _id: string;
1722
- appId: string;
1723
- };
1724
- }[];
1725
- buyerInfo?: {
1726
- visitorId: string;
1727
- memberId: string;
1728
- userId: string;
1729
- };
1730
- currency: string;
1731
- conversionCurrency: string;
1732
- weightUnit: WeightUnit;
1733
- appliedDiscounts: {
1734
- coupon?: {
1735
- _id: string;
1736
- code: string;
1737
- };
1738
- merchantDiscount?: {
1739
- amount?: {
1740
- amount: string;
1741
- convertedAmount: string;
1742
- formattedAmount: string;
1743
- formattedConvertedAmount: string;
1744
- };
1745
- };
1746
- }[];
1747
- contactInfo?: {
1748
- contactDetails?: {
1749
- vatId?: {
1750
- _id: string;
1751
- type: VatType;
1752
- };
1753
- };
1754
- };
1755
- selectedShippingOption?: {
1756
- code: string;
1757
- };
1758
- };
1759
- }
1760
- export interface UpdateCartResponseNonNullableFields {
1761
- cart?: {
1762
- lineItems: {
1763
- quantity: number;
1764
- catalogReference?: {
1765
- catalogItemId: string;
1766
- appId: string;
1767
- };
1768
- productName?: {
1769
- original: string;
1770
- };
1771
- url: string;
1772
- price?: {
1773
- amount: string;
1774
- convertedAmount: string;
1775
- formattedAmount: string;
1776
- formattedConvertedAmount: string;
1777
- };
1778
- fullPrice?: {
1779
- amount: string;
1780
- convertedAmount: string;
1781
- formattedAmount: string;
1782
- formattedConvertedAmount: string;
1783
- };
1784
- priceBeforeDiscounts?: {
1785
- amount: string;
1786
- convertedAmount: string;
1787
- formattedAmount: string;
1788
- formattedConvertedAmount: string;
1789
- };
1790
- descriptionLines: {
1791
- plainText?: {
1792
- original: string;
1793
- };
1794
- colorInfo?: {
1795
- original: string;
1796
- };
1797
- name?: {
1798
- original: string;
1799
- };
1800
- }[];
1801
- image: string;
1802
- availability?: {
1803
- status: ItemAvailabilityStatus;
1804
- };
1805
- physicalProperties?: {
1806
- shippable: boolean;
1807
- };
1808
- itemType?: {
1809
- preset: ItemTypeItemType;
1810
- custom: string;
1811
- };
1812
- paymentOption: PaymentOptionType;
1813
- priceDescription?: {
1814
- original: string;
1815
- };
1816
- depositAmount?: {
1817
- amount: string;
1818
- convertedAmount: string;
1819
- formattedAmount: string;
1820
- formattedConvertedAmount: string;
1821
- };
1822
- selectedMembership?: {
1823
- _id: string;
1824
- appId: string;
1825
- };
1826
- }[];
1827
- buyerInfo?: {
1828
- visitorId: string;
1829
- memberId: string;
1830
- userId: string;
1831
- };
1832
- currency: string;
1833
- conversionCurrency: string;
1834
- weightUnit: WeightUnit;
1835
- appliedDiscounts: {
1836
- coupon?: {
1837
- _id: string;
1838
- code: string;
1839
- };
1840
- merchantDiscount?: {
1841
- amount?: {
1842
- amount: string;
1843
- convertedAmount: string;
1844
- formattedAmount: string;
1845
- formattedConvertedAmount: string;
1846
- };
1847
- };
1848
- }[];
1849
- contactInfo?: {
1850
- contactDetails?: {
1851
- vatId?: {
1852
- _id: string;
1853
- type: VatType;
1854
- };
1855
- };
1856
- };
1857
- selectedShippingOption?: {
1858
- code: string;
1859
- };
1860
- };
1861
- }
1862
- export interface AddToCartResponseNonNullableFields {
1863
- cart?: {
1864
- lineItems: {
1865
- quantity: number;
1866
- catalogReference?: {
1867
- catalogItemId: string;
1868
- appId: string;
1869
- };
1870
- productName?: {
1871
- original: string;
1872
- };
1873
- url: string;
1874
- price?: {
1875
- amount: string;
1876
- convertedAmount: string;
1877
- formattedAmount: string;
1878
- formattedConvertedAmount: string;
1879
- };
1880
- fullPrice?: {
1881
- amount: string;
1882
- convertedAmount: string;
1883
- formattedAmount: string;
1884
- formattedConvertedAmount: string;
1885
- };
1886
- priceBeforeDiscounts?: {
1887
- amount: string;
1888
- convertedAmount: string;
1889
- formattedAmount: string;
1890
- formattedConvertedAmount: string;
1891
- };
1892
- descriptionLines: {
1893
- plainText?: {
1894
- original: string;
1895
- };
1896
- colorInfo?: {
1897
- original: string;
1898
- };
1899
- name?: {
1900
- original: string;
1901
- };
1902
- }[];
1903
- image: string;
1904
- availability?: {
1905
- status: ItemAvailabilityStatus;
1906
- };
1907
- physicalProperties?: {
1908
- shippable: boolean;
1909
- };
1910
- itemType?: {
1911
- preset: ItemTypeItemType;
1912
- custom: string;
1913
- };
1914
- paymentOption: PaymentOptionType;
1915
- priceDescription?: {
1916
- original: string;
1917
- };
1918
- depositAmount?: {
1919
- amount: string;
1920
- convertedAmount: string;
1921
- formattedAmount: string;
1922
- formattedConvertedAmount: string;
1923
- };
1924
- selectedMembership?: {
1925
- _id: string;
1926
- appId: string;
1927
- };
1928
- }[];
1929
- buyerInfo?: {
1930
- visitorId: string;
1931
- memberId: string;
1932
- userId: string;
1933
- };
1934
- currency: string;
1935
- conversionCurrency: string;
1936
- weightUnit: WeightUnit;
1937
- appliedDiscounts: {
1938
- coupon?: {
1939
- _id: string;
1940
- code: string;
1941
- };
1942
- merchantDiscount?: {
1943
- amount?: {
1944
- amount: string;
1945
- convertedAmount: string;
1946
- formattedAmount: string;
1947
- formattedConvertedAmount: string;
1948
- };
1949
- };
1950
- }[];
1951
- contactInfo?: {
1952
- contactDetails?: {
1953
- vatId?: {
1954
- _id: string;
1955
- type: VatType;
1956
- };
1957
- };
1958
- };
1959
- selectedShippingOption?: {
1960
- code: string;
1961
- };
1962
- };
1963
- }
1964
- export interface RemoveLineItemsResponseNonNullableFields {
1965
- cart?: {
1966
- lineItems: {
1967
- quantity: number;
1968
- catalogReference?: {
1969
- catalogItemId: string;
1970
- appId: string;
1971
- };
1972
- productName?: {
1973
- original: string;
1974
- };
1975
- url: string;
1976
- price?: {
1977
- amount: string;
1978
- convertedAmount: string;
1979
- formattedAmount: string;
1980
- formattedConvertedAmount: string;
1981
- };
1982
- fullPrice?: {
1983
- amount: string;
1984
- convertedAmount: string;
1985
- formattedAmount: string;
1986
- formattedConvertedAmount: string;
1987
- };
1988
- priceBeforeDiscounts?: {
1989
- amount: string;
1990
- convertedAmount: string;
1991
- formattedAmount: string;
1992
- formattedConvertedAmount: string;
1993
- };
1994
- descriptionLines: {
1995
- plainText?: {
1996
- original: string;
1997
- };
1998
- colorInfo?: {
1999
- original: string;
2000
- };
2001
- name?: {
2002
- original: string;
2003
- };
2004
- }[];
2005
- image: string;
2006
- availability?: {
2007
- status: ItemAvailabilityStatus;
2008
- };
2009
- physicalProperties?: {
2010
- shippable: boolean;
2011
- };
2012
- itemType?: {
2013
- preset: ItemTypeItemType;
2014
- custom: string;
2015
- };
2016
- paymentOption: PaymentOptionType;
2017
- priceDescription?: {
2018
- original: string;
2019
- };
2020
- depositAmount?: {
2021
- amount: string;
2022
- convertedAmount: string;
2023
- formattedAmount: string;
2024
- formattedConvertedAmount: string;
2025
- };
2026
- selectedMembership?: {
2027
- _id: string;
2028
- appId: string;
2029
- };
2030
- }[];
2031
- buyerInfo?: {
2032
- visitorId: string;
2033
- memberId: string;
2034
- userId: string;
2035
- };
2036
- currency: string;
2037
- conversionCurrency: string;
2038
- weightUnit: WeightUnit;
2039
- appliedDiscounts: {
2040
- coupon?: {
2041
- _id: string;
2042
- code: string;
2043
- };
2044
- merchantDiscount?: {
2045
- amount?: {
2046
- amount: string;
2047
- convertedAmount: string;
2048
- formattedAmount: string;
2049
- formattedConvertedAmount: string;
2050
- };
2051
- };
2052
- }[];
2053
- contactInfo?: {
2054
- contactDetails?: {
2055
- vatId?: {
2056
- _id: string;
2057
- type: VatType;
2058
- };
2059
- };
2060
- };
2061
- selectedShippingOption?: {
2062
- code: string;
2063
- };
2064
- };
2065
- }
2066
- export interface CreateCheckoutResponseNonNullableFields {
2067
- checkoutId: string;
2068
- }
2069
- export interface RemoveCouponResponseNonNullableFields {
2070
- cart?: {
2071
- lineItems: {
2072
- quantity: number;
2073
- catalogReference?: {
2074
- catalogItemId: string;
2075
- appId: string;
2076
- };
2077
- productName?: {
2078
- original: string;
2079
- };
2080
- url: string;
2081
- price?: {
2082
- amount: string;
2083
- convertedAmount: string;
2084
- formattedAmount: string;
2085
- formattedConvertedAmount: string;
2086
- };
2087
- fullPrice?: {
2088
- amount: string;
2089
- convertedAmount: string;
2090
- formattedAmount: string;
2091
- formattedConvertedAmount: string;
2092
- };
2093
- priceBeforeDiscounts?: {
2094
- amount: string;
2095
- convertedAmount: string;
2096
- formattedAmount: string;
2097
- formattedConvertedAmount: string;
2098
- };
2099
- descriptionLines: {
2100
- plainText?: {
2101
- original: string;
2102
- };
2103
- colorInfo?: {
2104
- original: string;
2105
- };
2106
- name?: {
2107
- original: string;
2108
- };
2109
- }[];
2110
- image: string;
2111
- availability?: {
2112
- status: ItemAvailabilityStatus;
2113
- };
2114
- physicalProperties?: {
2115
- shippable: boolean;
2116
- };
2117
- itemType?: {
2118
- preset: ItemTypeItemType;
2119
- custom: string;
2120
- };
2121
- paymentOption: PaymentOptionType;
2122
- priceDescription?: {
2123
- original: string;
2124
- };
2125
- depositAmount?: {
2126
- amount: string;
2127
- convertedAmount: string;
2128
- formattedAmount: string;
2129
- formattedConvertedAmount: string;
2130
- };
2131
- selectedMembership?: {
2132
- _id: string;
2133
- appId: string;
2134
- };
2135
- }[];
2136
- buyerInfo?: {
2137
- visitorId: string;
2138
- memberId: string;
2139
- userId: string;
2140
- };
2141
- currency: string;
2142
- conversionCurrency: string;
2143
- weightUnit: WeightUnit;
2144
- appliedDiscounts: {
2145
- coupon?: {
2146
- _id: string;
2147
- code: string;
2148
- };
2149
- merchantDiscount?: {
2150
- amount?: {
2151
- amount: string;
2152
- convertedAmount: string;
2153
- formattedAmount: string;
2154
- formattedConvertedAmount: string;
2155
- };
2156
- };
2157
- }[];
2158
- contactInfo?: {
2159
- contactDetails?: {
2160
- vatId?: {
2161
- _id: string;
2162
- type: VatType;
2163
- };
2164
- };
2165
- };
2166
- selectedShippingOption?: {
2167
- code: string;
2168
- };
2169
- };
2170
- }
2171
- export interface UpdateLineItemsQuantityResponseNonNullableFields {
2172
- cart?: {
2173
- lineItems: {
2174
- quantity: number;
2175
- catalogReference?: {
2176
- catalogItemId: string;
2177
- appId: string;
2178
- };
2179
- productName?: {
2180
- original: string;
2181
- };
2182
- url: string;
2183
- price?: {
2184
- amount: string;
2185
- convertedAmount: string;
2186
- formattedAmount: string;
2187
- formattedConvertedAmount: string;
2188
- };
2189
- fullPrice?: {
2190
- amount: string;
2191
- convertedAmount: string;
2192
- formattedAmount: string;
2193
- formattedConvertedAmount: string;
2194
- };
2195
- priceBeforeDiscounts?: {
2196
- amount: string;
2197
- convertedAmount: string;
2198
- formattedAmount: string;
2199
- formattedConvertedAmount: string;
2200
- };
2201
- descriptionLines: {
2202
- plainText?: {
2203
- original: string;
2204
- };
2205
- colorInfo?: {
2206
- original: string;
2207
- };
2208
- name?: {
2209
- original: string;
2210
- };
2211
- }[];
2212
- image: string;
2213
- availability?: {
2214
- status: ItemAvailabilityStatus;
2215
- };
2216
- physicalProperties?: {
2217
- shippable: boolean;
2218
- };
2219
- itemType?: {
2220
- preset: ItemTypeItemType;
2221
- custom: string;
2222
- };
2223
- paymentOption: PaymentOptionType;
2224
- priceDescription?: {
2225
- original: string;
2226
- };
2227
- depositAmount?: {
2228
- amount: string;
2229
- convertedAmount: string;
2230
- formattedAmount: string;
2231
- formattedConvertedAmount: string;
2232
- };
2233
- selectedMembership?: {
2234
- _id: string;
2235
- appId: string;
2236
- };
2237
- }[];
2238
- buyerInfo?: {
2239
- visitorId: string;
2240
- memberId: string;
2241
- userId: string;
2242
- };
2243
- currency: string;
2244
- conversionCurrency: string;
2245
- weightUnit: WeightUnit;
2246
- appliedDiscounts: {
2247
- coupon?: {
2248
- _id: string;
2249
- code: string;
2250
- };
2251
- merchantDiscount?: {
2252
- amount?: {
2253
- amount: string;
2254
- convertedAmount: string;
2255
- formattedAmount: string;
2256
- formattedConvertedAmount: string;
2257
- };
2258
- };
2259
- }[];
2260
- contactInfo?: {
2261
- contactDetails?: {
2262
- vatId?: {
2263
- _id: string;
2264
- type: VatType;
2265
- };
2266
- };
2267
- };
2268
- selectedShippingOption?: {
2269
- code: string;
2270
- };
2271
- };
2272
- }
2273
- export interface EstimateTotalsResponseNonNullableFields {
2274
- cart?: {
2275
- lineItems: {
2276
- quantity: number;
2277
- catalogReference?: {
2278
- catalogItemId: string;
2279
- appId: string;
2280
- };
2281
- productName?: {
2282
- original: string;
2283
- };
2284
- url: string;
2285
- price?: {
2286
- amount: string;
2287
- convertedAmount: string;
2288
- formattedAmount: string;
2289
- formattedConvertedAmount: string;
2290
- };
2291
- fullPrice?: {
2292
- amount: string;
2293
- convertedAmount: string;
2294
- formattedAmount: string;
2295
- formattedConvertedAmount: string;
2296
- };
2297
- priceBeforeDiscounts?: {
2298
- amount: string;
2299
- convertedAmount: string;
2300
- formattedAmount: string;
2301
- formattedConvertedAmount: string;
2302
- };
2303
- descriptionLines: {
2304
- plainText?: {
2305
- original: string;
2306
- };
2307
- colorInfo?: {
2308
- original: string;
2309
- };
2310
- name?: {
2311
- original: string;
2312
- };
2313
- }[];
2314
- image: string;
2315
- availability?: {
2316
- status: ItemAvailabilityStatus;
2317
- };
2318
- physicalProperties?: {
2319
- shippable: boolean;
2320
- };
2321
- itemType?: {
2322
- preset: ItemTypeItemType;
2323
- custom: string;
2324
- };
2325
- paymentOption: PaymentOptionType;
2326
- priceDescription?: {
2327
- original: string;
2328
- };
2329
- depositAmount?: {
2330
- amount: string;
2331
- convertedAmount: string;
2332
- formattedAmount: string;
2333
- formattedConvertedAmount: string;
2334
- };
2335
- selectedMembership?: {
2336
- _id: string;
2337
- appId: string;
2338
- };
2339
- }[];
2340
- buyerInfo?: {
2341
- visitorId: string;
2342
- memberId: string;
2343
- userId: string;
2344
- };
2345
- currency: string;
2346
- conversionCurrency: string;
2347
- weightUnit: WeightUnit;
2348
- appliedDiscounts: {
2349
- coupon?: {
2350
- _id: string;
2351
- code: string;
2352
- };
2353
- merchantDiscount?: {
2354
- amount?: {
2355
- amount: string;
2356
- convertedAmount: string;
2357
- formattedAmount: string;
2358
- formattedConvertedAmount: string;
2359
- };
2360
- };
2361
- }[];
2362
- contactInfo?: {
2363
- contactDetails?: {
2364
- vatId?: {
2365
- _id: string;
2366
- type: VatType;
2367
- };
2368
- };
2369
- };
2370
- selectedShippingOption?: {
2371
- code: string;
2372
- };
2373
- };
2374
- calculatedLineItems: {
2375
- lineItemId: string;
2376
- pricesBreakdown?: {
2377
- totalPriceAfterTax?: {
2378
- amount: string;
2379
- convertedAmount: string;
2380
- formattedAmount: string;
2381
- formattedConvertedAmount: string;
2382
- };
2383
- totalPriceBeforeTax?: {
2384
- amount: string;
2385
- convertedAmount: string;
2386
- formattedAmount: string;
2387
- formattedConvertedAmount: string;
2388
- };
2389
- taxDetails?: {
2390
- taxableAmount?: {
2391
- amount: string;
2392
- convertedAmount: string;
2393
- formattedAmount: string;
2394
- formattedConvertedAmount: string;
2395
- };
2396
- taxRate: string;
2397
- totalTax?: {
2398
- amount: string;
2399
- convertedAmount: string;
2400
- formattedAmount: string;
2401
- formattedConvertedAmount: string;
2402
- };
2403
- rateBreakdown: {
2404
- name: string;
2405
- rate: string;
2406
- tax?: {
2407
- amount: string;
2408
- convertedAmount: string;
2409
- formattedAmount: string;
2410
- formattedConvertedAmount: string;
2411
- };
2412
- }[];
2413
- };
2414
- totalDiscount?: {
2415
- amount: string;
2416
- convertedAmount: string;
2417
- formattedAmount: string;
2418
- formattedConvertedAmount: string;
2419
- };
2420
- price?: {
2421
- amount: string;
2422
- convertedAmount: string;
2423
- formattedAmount: string;
2424
- formattedConvertedAmount: string;
2425
- };
2426
- priceBeforeDiscounts?: {
2427
- amount: string;
2428
- convertedAmount: string;
2429
- formattedAmount: string;
2430
- formattedConvertedAmount: string;
2431
- };
2432
- lineItemPrice?: {
2433
- amount: string;
2434
- convertedAmount: string;
2435
- formattedAmount: string;
2436
- formattedConvertedAmount: string;
2437
- };
2438
- fullPrice?: {
2439
- amount: string;
2440
- convertedAmount: string;
2441
- formattedAmount: string;
2442
- formattedConvertedAmount: string;
2443
- };
2444
- };
2445
- paymentOption: PaymentOptionType;
2446
- }[];
2447
- priceSummary?: {
2448
- subtotal?: {
2449
- amount: string;
2450
- convertedAmount: string;
2451
- formattedAmount: string;
2452
- formattedConvertedAmount: string;
2453
- };
2454
- shipping?: {
2455
- amount: string;
2456
- convertedAmount: string;
2457
- formattedAmount: string;
2458
- formattedConvertedAmount: string;
2459
- };
2460
- tax?: {
2461
- amount: string;
2462
- convertedAmount: string;
2463
- formattedAmount: string;
2464
- formattedConvertedAmount: string;
2465
- };
2466
- discount?: {
2467
- amount: string;
2468
- convertedAmount: string;
2469
- formattedAmount: string;
2470
- formattedConvertedAmount: string;
2471
- };
2472
- total?: {
2473
- amount: string;
2474
- convertedAmount: string;
2475
- formattedAmount: string;
2476
- formattedConvertedAmount: string;
2477
- };
2478
- additionalFees?: {
2479
- amount: string;
2480
- convertedAmount: string;
2481
- formattedAmount: string;
2482
- formattedConvertedAmount: string;
2483
- };
2484
- };
2485
- giftCard?: {
2486
- _id: string;
2487
- obfuscatedCode: string;
2488
- amount?: {
2489
- amount: string;
2490
- convertedAmount: string;
2491
- formattedAmount: string;
2492
- formattedConvertedAmount: string;
2493
- };
2494
- appId: string;
2495
- };
2496
- taxSummary?: {
2497
- taxableAmount?: {
2498
- amount: string;
2499
- convertedAmount: string;
2500
- formattedAmount: string;
2501
- formattedConvertedAmount: string;
2502
- };
2503
- totalTax?: {
2504
- amount: string;
2505
- convertedAmount: string;
2506
- formattedAmount: string;
2507
- formattedConvertedAmount: string;
2508
- };
2509
- calculationDetails?: {
2510
- manualRateReason: ManualCalculationReason;
2511
- autoTaxFallbackDetails?: {
2512
- fallbackReason: FallbackReason;
2513
- error?: {
2514
- code: string;
2515
- description: string;
2516
- };
2517
- };
2518
- rateType: RateType;
2519
- };
2520
- };
2521
- shippingInfo?: {
2522
- region?: {
2523
- _id: string;
2524
- name: string;
2525
- };
2526
- selectedCarrierServiceOption?: {
2527
- code: string;
2528
- title: string;
2529
- logistics?: {
2530
- pickupDetails?: {
2531
- businessLocation: boolean;
2532
- pickupMethod: PickupMethod;
2533
- };
2534
- };
2535
- cost?: {
2536
- totalPriceAfterTax?: {
2537
- amount: string;
2538
- convertedAmount: string;
2539
- formattedAmount: string;
2540
- formattedConvertedAmount: string;
2541
- };
2542
- totalPriceBeforeTax?: {
2543
- amount: string;
2544
- convertedAmount: string;
2545
- formattedAmount: string;
2546
- formattedConvertedAmount: string;
2547
- };
2548
- taxDetails?: {
2549
- taxableAmount?: {
2550
- amount: string;
2551
- convertedAmount: string;
2552
- formattedAmount: string;
2553
- formattedConvertedAmount: string;
2554
- };
2555
- taxRate: string;
2556
- totalTax?: {
2557
- amount: string;
2558
- convertedAmount: string;
2559
- formattedAmount: string;
2560
- formattedConvertedAmount: string;
2561
- };
2562
- rateBreakdown: {
2563
- name: string;
2564
- rate: string;
2565
- tax?: {
2566
- amount: string;
2567
- convertedAmount: string;
2568
- formattedAmount: string;
2569
- formattedConvertedAmount: string;
2570
- };
2571
- }[];
2572
- };
2573
- totalDiscount?: {
2574
- amount: string;
2575
- convertedAmount: string;
2576
- formattedAmount: string;
2577
- formattedConvertedAmount: string;
2578
- };
2579
- price?: {
2580
- amount: string;
2581
- convertedAmount: string;
2582
- formattedAmount: string;
2583
- formattedConvertedAmount: string;
2584
- };
2585
- };
2586
- requestedShippingOption: boolean;
2587
- otherCharges: {
2588
- type: ChargeType;
2589
- cost?: {
2590
- totalPriceAfterTax?: {
2591
- amount: string;
2592
- convertedAmount: string;
2593
- formattedAmount: string;
2594
- formattedConvertedAmount: string;
2595
- };
2596
- totalPriceBeforeTax?: {
2597
- amount: string;
2598
- convertedAmount: string;
2599
- formattedAmount: string;
2600
- formattedConvertedAmount: string;
2601
- };
2602
- taxDetails?: {
2603
- taxableAmount?: {
2604
- amount: string;
2605
- convertedAmount: string;
2606
- formattedAmount: string;
2607
- formattedConvertedAmount: string;
2608
- };
2609
- taxRate: string;
2610
- totalTax?: {
2611
- amount: string;
2612
- convertedAmount: string;
2613
- formattedAmount: string;
2614
- formattedConvertedAmount: string;
2615
- };
2616
- rateBreakdown: {
2617
- name: string;
2618
- rate: string;
2619
- tax?: {
2620
- amount: string;
2621
- convertedAmount: string;
2622
- formattedAmount: string;
2623
- formattedConvertedAmount: string;
2624
- };
2625
- }[];
2626
- };
2627
- totalDiscount?: {
2628
- amount: string;
2629
- convertedAmount: string;
2630
- formattedAmount: string;
2631
- formattedConvertedAmount: string;
2632
- };
2633
- price?: {
2634
- amount: string;
2635
- convertedAmount: string;
2636
- formattedAmount: string;
2637
- formattedConvertedAmount: string;
2638
- };
2639
- };
2640
- }[];
2641
- };
2642
- carrierServiceOptions: {
2643
- carrierId: string;
2644
- shippingOptions: {
2645
- code: string;
2646
- title: string;
2647
- logistics?: {
2648
- pickupDetails?: {
2649
- businessLocation: boolean;
2650
- pickupMethod: PickupMethod;
2651
- };
2652
- };
2653
- cost?: {
2654
- price?: {
2655
- amount: string;
2656
- convertedAmount: string;
2657
- formattedAmount: string;
2658
- formattedConvertedAmount: string;
2659
- };
2660
- otherCharges: {
2661
- type: ChargeType;
2662
- price?: {
2663
- amount: string;
2664
- convertedAmount: string;
2665
- formattedAmount: string;
2666
- formattedConvertedAmount: string;
2667
- };
2668
- }[];
2669
- };
2670
- }[];
2671
- }[];
2672
- };
2673
- appliedDiscounts: {
2674
- coupon?: {
2675
- _id: string;
2676
- code: string;
2677
- amount?: {
2678
- amount: string;
2679
- convertedAmount: string;
2680
- formattedAmount: string;
2681
- formattedConvertedAmount: string;
2682
- };
2683
- name: string;
2684
- };
2685
- merchantDiscount?: {
2686
- amount?: {
2687
- amount: string;
2688
- convertedAmount: string;
2689
- formattedAmount: string;
2690
- formattedConvertedAmount: string;
2691
- };
2692
- };
2693
- discountRule?: {
2694
- _id: string;
2695
- name?: {
2696
- original: string;
2697
- };
2698
- amount?: {
2699
- amount: string;
2700
- convertedAmount: string;
2701
- formattedAmount: string;
2702
- formattedConvertedAmount: string;
2703
- };
2704
- };
2705
- discountType: DiscountType;
2706
- lineItemIds: string[];
2707
- }[];
2708
- calculationErrors?: {
2709
- generalShippingCalculationError?: {
2710
- applicationError?: {
2711
- code: string;
2712
- description: string;
2713
- };
2714
- validationError?: {
2715
- fieldViolations: {
2716
- field: string;
2717
- description: string;
2718
- violatedRule: RuleType;
2719
- }[];
2720
- };
2721
- };
2722
- carrierErrors?: {
2723
- errors: {
2724
- carrierId: string;
2725
- error?: {
2726
- applicationError?: {
2727
- code: string;
2728
- description: string;
2729
- };
2730
- validationError?: {
2731
- fieldViolations: {
2732
- field: string;
2733
- description: string;
2734
- violatedRule: RuleType;
2735
- }[];
2736
- };
2737
- };
2738
- }[];
2739
- };
2740
- taxCalculationError?: {
2741
- applicationError?: {
2742
- code: string;
2743
- description: string;
2744
- };
2745
- validationError?: {
2746
- fieldViolations: {
2747
- field: string;
2748
- description: string;
2749
- violatedRule: RuleType;
2750
- }[];
2751
- };
2752
- };
2753
- couponCalculationError?: {
2754
- applicationError?: {
2755
- code: string;
2756
- description: string;
2757
- };
2758
- validationError?: {
2759
- fieldViolations: {
2760
- field: string;
2761
- description: string;
2762
- violatedRule: RuleType;
2763
- }[];
2764
- };
2765
- };
2766
- giftCardCalculationError?: {
2767
- applicationError?: {
2768
- code: string;
2769
- description: string;
2770
- };
2771
- validationError?: {
2772
- fieldViolations: {
2773
- field: string;
2774
- description: string;
2775
- violatedRule: RuleType;
2776
- }[];
2777
- };
2778
- };
2779
- orderValidationErrors: {
2780
- code: string;
2781
- description: string;
2782
- }[];
2783
- membershipError?: {
2784
- applicationError?: {
2785
- code: string;
2786
- description: string;
2787
- };
2788
- validationError?: {
2789
- fieldViolations: {
2790
- field: string;
2791
- description: string;
2792
- violatedRule: RuleType;
2793
- }[];
2794
- };
2795
- };
2796
- discountsCalculationError?: {
2797
- applicationError?: {
2798
- code: string;
2799
- description: string;
2800
- };
2801
- validationError?: {
2802
- fieldViolations: {
2803
- field: string;
2804
- description: string;
2805
- violatedRule: RuleType;
2806
- }[];
2807
- };
2808
- };
2809
- };
2810
- weightUnit: WeightUnit;
2811
- currency: string;
2812
- payNow?: {
2813
- subtotal?: {
2814
- amount: string;
2815
- convertedAmount: string;
2816
- formattedAmount: string;
2817
- formattedConvertedAmount: string;
2818
- };
2819
- shipping?: {
2820
- amount: string;
2821
- convertedAmount: string;
2822
- formattedAmount: string;
2823
- formattedConvertedAmount: string;
2824
- };
2825
- tax?: {
2826
- amount: string;
2827
- convertedAmount: string;
2828
- formattedAmount: string;
2829
- formattedConvertedAmount: string;
2830
- };
2831
- discount?: {
2832
- amount: string;
2833
- convertedAmount: string;
2834
- formattedAmount: string;
2835
- formattedConvertedAmount: string;
2836
- };
2837
- total?: {
2838
- amount: string;
2839
- convertedAmount: string;
2840
- formattedAmount: string;
2841
- formattedConvertedAmount: string;
2842
- };
2843
- additionalFees?: {
2844
- amount: string;
2845
- convertedAmount: string;
2846
- formattedAmount: string;
2847
- formattedConvertedAmount: string;
2848
- };
2849
- };
2850
- payLater?: {
2851
- subtotal?: {
2852
- amount: string;
2853
- convertedAmount: string;
2854
- formattedAmount: string;
2855
- formattedConvertedAmount: string;
2856
- };
2857
- shipping?: {
2858
- amount: string;
2859
- convertedAmount: string;
2860
- formattedAmount: string;
2861
- formattedConvertedAmount: string;
2862
- };
2863
- tax?: {
2864
- amount: string;
2865
- convertedAmount: string;
2866
- formattedAmount: string;
2867
- formattedConvertedAmount: string;
2868
- };
2869
- discount?: {
2870
- amount: string;
2871
- convertedAmount: string;
2872
- formattedAmount: string;
2873
- formattedConvertedAmount: string;
2874
- };
2875
- total?: {
2876
- amount: string;
2877
- convertedAmount: string;
2878
- formattedAmount: string;
2879
- formattedConvertedAmount: string;
2880
- };
2881
- additionalFees?: {
2882
- amount: string;
2883
- convertedAmount: string;
2884
- formattedAmount: string;
2885
- formattedConvertedAmount: string;
2886
- };
2887
- };
2888
- membershipOptions?: {
2889
- eligibleMemberships: {
2890
- _id: string;
2891
- appId: string;
2892
- name?: {
2893
- original: string;
2894
- };
2895
- lineItemIds: string[];
2896
- credits?: {
2897
- total: number;
2898
- remaining: number;
2899
- };
2900
- }[];
2901
- invalidMemberships: {
2902
- membership?: {
2903
- _id: string;
2904
- appId: string;
2905
- name?: {
2906
- original: string;
2907
- };
2908
- lineItemIds: string[];
2909
- credits?: {
2910
- total: number;
2911
- remaining: number;
2912
- };
2913
- };
2914
- reason: string;
2915
- }[];
2916
- selectedMemberships: {
2917
- _id: string;
2918
- appId: string;
2919
- lineItemIds: string[];
2920
- }[];
2921
- };
2922
- additionalFees: {
2923
- name: string;
2924
- price?: {
2925
- amount: string;
2926
- convertedAmount: string;
2927
- formattedAmount: string;
2928
- formattedConvertedAmount: string;
2929
- };
2930
- taxDetails?: {
2931
- taxableAmount?: {
2932
- amount: string;
2933
- convertedAmount: string;
2934
- formattedAmount: string;
2935
- formattedConvertedAmount: string;
2936
- };
2937
- taxRate: string;
2938
- totalTax?: {
2939
- amount: string;
2940
- convertedAmount: string;
2941
- formattedAmount: string;
2942
- formattedConvertedAmount: string;
2943
- };
2944
- rateBreakdown: {
2945
- name: string;
2946
- rate: string;
2947
- tax?: {
2948
- amount: string;
2949
- convertedAmount: string;
2950
- formattedAmount: string;
2951
- formattedConvertedAmount: string;
2952
- };
2953
- }[];
2954
- };
2955
- priceBeforeTax?: {
2956
- amount: string;
2957
- convertedAmount: string;
2958
- formattedAmount: string;
2959
- formattedConvertedAmount: string;
2960
- };
2961
- lineItemIds: string[];
2962
- }[];
2963
- violations: {
2964
- severity: Severity;
2965
- target?: {
2966
- other?: {
2967
- name: NameInOther;
2968
- };
2969
- lineItem?: {
2970
- name: NameInLineItem;
2971
- };
2972
- };
2973
- }[];
2974
- }
2975
- export interface CreateCartResponseNonNullableFields {
2976
- cart?: {
2977
- lineItems: {
2978
- quantity: number;
2979
- catalogReference?: {
2980
- catalogItemId: string;
2981
- appId: string;
2982
- };
2983
- productName?: {
2984
- original: string;
2985
- };
2986
- url: string;
2987
- price?: {
2988
- amount: string;
2989
- convertedAmount: string;
2990
- formattedAmount: string;
2991
- formattedConvertedAmount: string;
2992
- };
2993
- fullPrice?: {
2994
- amount: string;
2995
- convertedAmount: string;
2996
- formattedAmount: string;
2997
- formattedConvertedAmount: string;
2998
- };
2999
- priceBeforeDiscounts?: {
3000
- amount: string;
3001
- convertedAmount: string;
3002
- formattedAmount: string;
3003
- formattedConvertedAmount: string;
3004
- };
3005
- descriptionLines: {
3006
- plainText?: {
3007
- original: string;
3008
- };
3009
- colorInfo?: {
3010
- original: string;
3011
- };
3012
- name?: {
3013
- original: string;
3014
- };
3015
- }[];
3016
- image: string;
3017
- availability?: {
3018
- status: ItemAvailabilityStatus;
3019
- };
3020
- physicalProperties?: {
3021
- shippable: boolean;
3022
- };
3023
- itemType?: {
3024
- preset: ItemTypeItemType;
3025
- custom: string;
3026
- };
3027
- paymentOption: PaymentOptionType;
3028
- priceDescription?: {
3029
- original: string;
3030
- };
3031
- depositAmount?: {
3032
- amount: string;
3033
- convertedAmount: string;
3034
- formattedAmount: string;
3035
- formattedConvertedAmount: string;
3036
- };
3037
- selectedMembership?: {
3038
- _id: string;
3039
- appId: string;
3040
- };
3041
- }[];
3042
- buyerInfo?: {
3043
- visitorId: string;
3044
- memberId: string;
3045
- userId: string;
3046
- };
3047
- currency: string;
3048
- conversionCurrency: string;
3049
- weightUnit: WeightUnit;
3050
- appliedDiscounts: {
3051
- coupon?: {
3052
- _id: string;
3053
- code: string;
3054
- };
3055
- merchantDiscount?: {
3056
- amount?: {
3057
- amount: string;
3058
- convertedAmount: string;
3059
- formattedAmount: string;
3060
- formattedConvertedAmount: string;
3061
- };
3062
- };
3063
- }[];
3064
- contactInfo?: {
3065
- contactDetails?: {
3066
- vatId?: {
3067
- _id: string;
3068
- type: VatType;
3069
- };
3070
- };
3071
- };
3072
- selectedShippingOption?: {
3073
- code: string;
3074
- };
3075
- };
3076
- }
3077
- export interface GetCartResponseNonNullableFields {
3078
- cart?: {
3079
- lineItems: {
3080
- quantity: number;
3081
- catalogReference?: {
3082
- catalogItemId: string;
3083
- appId: string;
3084
- };
3085
- productName?: {
3086
- original: string;
3087
- };
3088
- url: string;
3089
- price?: {
3090
- amount: string;
3091
- convertedAmount: string;
3092
- formattedAmount: string;
3093
- formattedConvertedAmount: string;
3094
- };
3095
- fullPrice?: {
3096
- amount: string;
3097
- convertedAmount: string;
3098
- formattedAmount: string;
3099
- formattedConvertedAmount: string;
3100
- };
3101
- priceBeforeDiscounts?: {
3102
- amount: string;
3103
- convertedAmount: string;
3104
- formattedAmount: string;
3105
- formattedConvertedAmount: string;
3106
- };
3107
- descriptionLines: {
3108
- plainText?: {
3109
- original: string;
3110
- };
3111
- colorInfo?: {
3112
- original: string;
3113
- };
3114
- name?: {
3115
- original: string;
3116
- };
3117
- }[];
3118
- image: string;
3119
- availability?: {
3120
- status: ItemAvailabilityStatus;
3121
- };
3122
- physicalProperties?: {
3123
- shippable: boolean;
3124
- };
3125
- itemType?: {
3126
- preset: ItemTypeItemType;
3127
- custom: string;
3128
- };
3129
- paymentOption: PaymentOptionType;
3130
- priceDescription?: {
3131
- original: string;
3132
- };
3133
- depositAmount?: {
3134
- amount: string;
3135
- convertedAmount: string;
3136
- formattedAmount: string;
3137
- formattedConvertedAmount: string;
3138
- };
3139
- selectedMembership?: {
3140
- _id: string;
3141
- appId: string;
3142
- };
3143
- }[];
3144
- buyerInfo?: {
3145
- visitorId: string;
3146
- memberId: string;
3147
- userId: string;
3148
- };
3149
- currency: string;
3150
- conversionCurrency: string;
3151
- weightUnit: WeightUnit;
3152
- appliedDiscounts: {
3153
- coupon?: {
3154
- _id: string;
3155
- code: string;
3156
- };
3157
- merchantDiscount?: {
3158
- amount?: {
3159
- amount: string;
3160
- convertedAmount: string;
3161
- formattedAmount: string;
3162
- formattedConvertedAmount: string;
3163
- };
3164
- };
3165
- }[];
3166
- contactInfo?: {
3167
- contactDetails?: {
3168
- vatId?: {
3169
- _id: string;
3170
- type: VatType;
3171
- };
3172
- };
3173
- };
3174
- selectedShippingOption?: {
3175
- code: string;
3176
- };
3177
- };
3178
- }
3179
- export declare const onCartUpdated: EventDefinition<DomainUpdatedEvent<Cart>, "wix.ecom.v1.cart_updated">;
3180
- export declare const onCartDeleted: EventDefinition<DomainDeletedEvent<Cart>, "wix.ecom.v1.cart_deleted">;
3181
- export declare const onCartCreated: EventDefinition<DomainCreatedEvent<Cart>, "wix.ecom.v1.cart_created">;
3182
- /**
3183
- * Retrieves the current site visitor's cart.
3184
- *
3185
- *
3186
- * The `getCurrentCart()` function returns a Promise that resolves when the current cart is retrieved.
3187
- * @public
3188
- * @permissionScope Manage Stores - all permissions
3189
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3190
- * @permissionScope Read eCommerce - all read permissions
3191
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
3192
- * @permissionScope Read Orders
3193
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
3194
- * @permissionScope Read Stores - all read permissions
3195
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
3196
- * @permissionScope Manage eCommerce - all permissions
3197
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3198
- * @permissionScope Manage Orders
3199
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
3200
- * @applicableIdentity APP
3201
- * @applicableIdentity VISITOR
3202
- * @returns Current session's active cart.
3203
- */
3204
- export declare function getCurrentCart(): Promise<Cart & NonNullable<GetCurrentCartResponseNonNullableFields>['cart']>;
3205
- /**
3206
- * Updates the current site visitor's cart.
3207
- *
3208
- *
3209
- * The `updateCurrentCart()` function returns a Promise that resolves when the current cart's properties are updated.
3210
- *
3211
- * > **Note:** When updating catalog items, `options.lineItems.catalogReference` is required.
3212
- * @public
3213
- * @requiredField options.lineItems.catalogReference
3214
- * @param options - Current cart update options.
3215
- * @permissionScope Manage Stores - all permissions
3216
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3217
- * @permissionScope Manage eCommerce - all permissions
3218
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3219
- * @applicableIdentity APP
3220
- * @applicableIdentity VISITOR
3221
- * @returns Fulfilled - The updated current cart.
3222
- */
3223
- export declare function updateCurrentCart(options?: UpdateCurrentCartOptions): Promise<Cart & NonNullable<UpdateCartResponseNonNullableFields>['cart']>;
3224
- export interface UpdateCurrentCartOptions {
3225
- /** Cart info. */
3226
- cartInfo?: Cart;
3227
- /** The code of an existing coupon to apply to the cart. For more information, see the [Coupons API](https://www.wix.com/velo/reference/wix-marketing-backend/coupons). */
3228
- couponCode?: string | null;
3229
- /** Merchant discounts to apply to specific line items. If no `lineItemIds` are passed, the discount will be applied to the whole cart. */
3230
- merchantDiscounts?: MerchantDiscountInput[];
3231
- /** Catalog line items. */
3232
- lineItems?: LineItem[];
3233
- }
3234
- /**
3235
- * Adds catalog line items to the current site visitor's cart.
3236
- *
3237
- *
3238
- * The `addToCurrentCart()` function returns a Promise that resolves to the updated current cart when the specified items have been added.
3239
- *
3240
- * > **Note:** When adding catalog items, `options.lineItems.catalogReference` is required.
3241
- * @public
3242
- * @requiredField options.lineItems.catalogReference
3243
- * @requiredField options.lineItems.quantity
3244
- * @requiredField options.lineItems.selectedMembership._id
3245
- * @requiredField options.lineItems.selectedMembership.appId
3246
- * @param options - Items to be added to the current cart.
3247
- * @permissionScope Manage Stores - all permissions
3248
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3249
- * @permissionScope Manage eCommerce - all permissions
3250
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3251
- * @applicableIdentity APP
3252
- * @applicableIdentity VISITOR
3253
- */
3254
- export declare function addToCurrentCart(options?: AddToCurrentCartOptions): Promise<AddToCartResponse & AddToCartResponseNonNullableFields>;
3255
- export interface AddToCurrentCartOptions {
3256
- /** Catalog line items. */
3257
- lineItems?: LineItem[];
3258
- }
3259
- /**
3260
- * Removes line items from the current site visitor's cart.
3261
- *
3262
- *
3263
- * The `removeLineItemsFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the line items are removed.
3264
- * @public
3265
- * @requiredField lineItemIds
3266
- * @param lineItemIds - IDs of the line items to remove from the cart.
3267
- * @permissionScope Manage Stores - all permissions
3268
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3269
- * @permissionScope Manage eCommerce - all permissions
3270
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3271
- * @applicableIdentity APP
3272
- * @applicableIdentity VISITOR
3273
- */
3274
- export declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<RemoveLineItemsResponse & RemoveLineItemsResponseNonNullableFields>;
3275
- /**
3276
- * Creates a checkout from the current site visitor’s cart.
3277
- *
3278
- *
3279
- * The `createCheckoutFromCurrentCart()` function returns a Promise that resolves to the new checkout's ID when it's created.
3280
- *
3281
- * If a checkout was already created from the current cart, that checkout will be updated with any new information from the cart.
3282
- *
3283
- * > **Note:** `options.channelType` is a required field.
3284
- * @public
3285
- * @param options - Checkout creation options.
3286
- * @permissionScope Manage Stores - all permissions
3287
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3288
- * @permissionScope Manage eCommerce - all permissions
3289
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3290
- * @permissionScope Manage Orders
3291
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
3292
- * @applicableIdentity APP
3293
- * @applicableIdentity VISITOR
3294
- */
3295
- export declare function createCheckoutFromCurrentCart(options?: CreateCheckoutFromCurrentCartOptions): Promise<CreateCheckoutResponse & CreateCheckoutResponseNonNullableFields>;
3296
- export interface CreateCheckoutFromCurrentCartOptions {
3297
- /**
3298
- * **Required**. Sales channel type. Supported values:
3299
- * + `"AMAZON"`
3300
- * + `"BACKOFFICE_MERCHANT"`
3301
- * + `"EBAY"`
3302
- * + `"OTHER_PLATFORM"`
3303
- * + `"POS"`
3304
- * + `"WEB"`
3305
- * + `"WISH"`
3306
- * + `"WIX_APP_STORE"`
3307
- * + `"WIX_INVOICES"`
3308
- */
3309
- channelType?: ChannelType;
3310
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
3311
- shippingAddress?: Address;
3312
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
3313
- billingAddress?: Address;
3314
- /** Selected shipping option. */
3315
- selectedShippingOption?: SelectedShippingOption;
3316
- /** Mandatory when setting a billing or shipping address if the site visitor isn't logged in. */
3317
- email?: string | null;
3318
- }
3319
- /**
3320
- * Removes the coupon from the current site visitor's cart.
3321
- *
3322
- *
3323
- * The `removeCouponFromCurrentCart()` function returns a Promise that resolves to the updated current cart when the coupon is removed.
3324
- * @public
3325
- * @permissionScope Manage Stores - all permissions
3326
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3327
- * @permissionScope Manage eCommerce - all permissions
3328
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3329
- * @applicableIdentity APP
3330
- * @applicableIdentity VISITOR
3331
- * @returns Fulfilled - Updated current cart.
3332
- */
3333
- export declare function removeCouponFromCurrentCart(): Promise<RemoveCouponResponse & RemoveCouponResponseNonNullableFields>;
3334
- /**
3335
- * Updates the quantity of one or more line items in the current site visitor's cart.
3336
- *
3337
- *
3338
- * The `updateCurrentCartLineItemQuantity()` function returns a Promise that resolves when the quantities of the current cart's line items are updated. This endpoint is only for updating the quantity of line items. To entirely remove a line item from the current cart, use [`removeLineItemsFromCurrentCart()`](#removelineitemsfromcurrentcart).
3339
- * To add a new line item to the current cart, use [`addToCurrentCart()`](#addtocurrentcart).
3340
- *
3341
- * This endpoint checks the amount of stock remaining for this line item. If the specified `quantity` is greater than the remaining stock, then the `quantity` returned in the response is the total amount of remaining stock.
3342
- * @param lineItems - Line item IDs and their new quantity.
3343
- * @public
3344
- * @requiredField lineItems
3345
- * @permissionScope Manage Stores - all permissions
3346
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3347
- * @permissionScope Manage eCommerce - all permissions
3348
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3349
- * @applicableIdentity APP
3350
- * @applicableIdentity VISITOR
3351
- * @returns Fulfilled - The updated current cart.
3352
- */
3353
- export declare function updateCurrentCartLineItemQuantity(lineItems: LineItemQuantityUpdate[]): Promise<UpdateLineItemsQuantityResponse & UpdateLineItemsQuantityResponseNonNullableFields>;
3354
- /**
3355
- * Estimates the current cart's price totals (including tax), based on a selected carrier service, shipping address, and billing information.
3356
- *
3357
- *
3358
- * The `estimateCurrentCartTotals()` function returns a Promise that resolves when the estimated totals are generated.
3359
- *
3360
- * > **Note:** Not passing any `options` properties will only estimate the cart items price totals.
3361
- * @public
3362
- * @param options - Total estimation options.
3363
- * @permissionScope Manage Stores - all permissions
3364
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3365
- * @permissionScope Read eCommerce - all read permissions
3366
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM
3367
- * @permissionScope Read Orders
3368
- * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS
3369
- * @permissionScope Read Stores - all read permissions
3370
- * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES
3371
- * @permissionScope Manage eCommerce - all permissions
3372
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3373
- * @permissionScope Manage Orders
3374
- * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS
3375
- * @applicableIdentity APP
3376
- * @applicableIdentity VISITOR
3377
- */
3378
- export declare function estimateCurrentCartTotals(options?: EstimateCurrentCartTotalsOptions): Promise<EstimateTotalsResponse & EstimateTotalsResponseNonNullableFields>;
3379
- export interface EstimateCurrentCartTotalsOptions {
3380
- /** Selected shipping option. */
3381
- selectedShippingOption?: SelectedShippingOption;
3382
- /** Shipping address. Used for calculating tax and shipping (when applicable). */
3383
- shippingAddress?: Address;
3384
- /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
3385
- billingAddress?: Address;
3386
- /** The selected membership payment options and which line items they apply to. */
3387
- selectedMemberships?: SelectedMemberships;
3388
- }
3389
- /**
3390
- * Deletes the current site visitor's cart.
3391
- *
3392
- *
3393
- * The `deleteCurrentCart()` function returns a Promise that resolves when the current cart is deleted.
3394
- * @public
3395
- * @permissionScope Manage Stores - all permissions
3396
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
3397
- * @permissionScope Manage eCommerce - all permissions
3398
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
3399
- * @applicableIdentity APP
3400
- * @applicableIdentity VISITOR
3401
- * @returns Fulfilled - When the current cart is deleted. Rejected - Error message.
3402
- */
3403
- export declare function deleteCurrentCart(): Promise<void>;