@wix/ecom 1.0.521 → 1.0.523

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 +28 -11
  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 -491
  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 -177
  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 -546
  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 -1025
  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 -916
  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 -1366
  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 -183
  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 -729
  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 -492
  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 -240
  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 -1621
  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 -624
  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 -1001
  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 -189
  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 -460
  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 -150
  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 -513
  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 -989
  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 -881
  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 -1328
  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 -155
  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 -697
  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 -460
  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 -232
  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 -1621
  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 -593
  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 -970
  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 -161
  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,1983 +0,0 @@
1
- import { EventDefinition } from '@wix/sdk-types';
2
- export interface CheckoutTemplate {
3
- /**
4
- * Checkout template ID.
5
- * @readonly
6
- */
7
- _id?: string | null;
8
- /**
9
- * Status of the checkout template.
10
- *
11
- * When `status` is `INACTIVE` checkouts will not be created with this template `_id`. Instead, the function will redirect to the domain site.
12
- *
13
- * Default: `ACTIVE`
14
- */
15
- status?: Status;
16
- /** Custom settings to apply to the checkout page created from this template. */
17
- customization?: CheckoutCustomization;
18
- /**
19
- * Line items.
20
- *
21
- * Max: 300 items
22
- */
23
- lineItems?: V1LineItem[];
24
- /**
25
- * Coupon code.
26
- *
27
- * Note that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.
28
- * For additional information, see the Coupons API.
29
- */
30
- couponCode?: string | null;
31
- }
32
- export declare enum Status {
33
- UNKNOWN_STATUS = "UNKNOWN_STATUS",
34
- ACTIVE = "ACTIVE",
35
- INACTIVE = "INACTIVE"
36
- }
37
- export interface CheckoutCustomization {
38
- /** Web client customizations. These customizations only apply to the standard Wix checkout page. */
39
- webClient?: WebClientCustomization;
40
- /**
41
- * Whether to lock the ability to add or remove a gift card.
42
- *
43
- * Default: `false`
44
- */
45
- redeemGiftCardLocked?: boolean | null;
46
- /**
47
- * Whether to lock the ability to apply or remove a coupon code.
48
- *
49
- * Default: `false`
50
- */
51
- applyCouponLocked?: boolean | null;
52
- }
53
- export interface WebClientCustomization {
54
- /**
55
- * Whether to disable the "Continue shopping" button.
56
- *
57
- * Default: `false`
58
- */
59
- continueShoppingHidden?: boolean | null;
60
- }
61
- export interface V1LineItem {
62
- /**
63
- * Item quantity.
64
- *
65
- * Min: `1` <br />
66
- * Max: `100000`
67
- */
68
- quantity?: number;
69
- /**
70
- * Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info.
71
- *
72
- * > **Note:** For more information on what to pass to `lineItems.catalogReference`, see [eCommerce Integration in the Wix Stores Catalog API](https://dev.wix.com/api/rest/wix-stores/catalog/ecommerce-integration).
73
- */
74
- catalogReference?: CatalogReference;
75
- }
76
- /** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */
77
- export interface CatalogReference {
78
- /** ID of the item within the catalog it belongs to. */
79
- catalogItemId?: string;
80
- /**
81
- * ID of the app providing the catalog.
82
- *
83
- * You can get your app's ID from its page in the [Wix Dev Center](https://dev.wix.com/apps).
84
- *
85
- * For items from Wix catalogs, the following values always apply:
86
- * + Wix Stores: `"215238eb-22a5-4c36-9e7b-e7c08025e04e"`
87
- * + Wix Bookings: `"13d21c63-b5ec-5912-8397-c3a5ddb27a97"`
88
- * + Wix Restaurants: `"9a5d83fd-8570-482e-81ab-cfa88942ee60"`
89
- */
90
- appId?: string;
91
- /**
92
- * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.
93
- *
94
- * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).
95
- */
96
- options?: Record<string, any> | null;
97
- }
98
- export interface CustomLineItem {
99
- /**
100
- * Custom line item quantity.
101
- *
102
- * Min: `1`
103
- * Max: `100000`
104
- */
105
- quantity?: number;
106
- /**
107
- * Custom line item price.
108
- *
109
- * Must be a number or a decimal without symbols.
110
- */
111
- price?: string;
112
- /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67". */
113
- priceDescription?: PriceDescription;
114
- /** Custom line item description lines. Used for display purposes for the cart, checkout and order. */
115
- descriptionLines?: DescriptionLine[];
116
- /** Custom line item's media. */
117
- media?: string;
118
- /**
119
- * Custom line item ID. If passed, `id` must be unique.
120
- * Default: auto-generated ID.
121
- */
122
- _id?: string | null;
123
- /** Tax group ID for this custom line item. */
124
- taxGroupId?: string | null;
125
- /**
126
- * *Required** - Item name.
127
- * + Stores - `product.name`
128
- * + Bookings - `service.info.name`
129
- * + Events - `ticket.name`
130
- */
131
- productName?: ProductName;
132
- /**
133
- * 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.
134
- * The URL is optional and if not provided, the site URL will be used.
135
- */
136
- url?: string;
137
- /** *Required** - Item type. Either a preset type or custom. */
138
- itemType?: ItemType;
139
- /** Optional - Item price **before** catalog-defined discount. Defaults to `price` when not provided. */
140
- fullPrice?: string | null;
141
- /**
142
- * Optional - Item quantity available for purchase. Only return this if inventory is managed.
143
- * Not returning this field means that the buyer can "infinitely" tick up the number of items in the cart.
144
- */
145
- quantityAvailable?: number | null;
146
- /** Optional - Physical properties of the item. When relevant, contains information such as SKU and item weight. */
147
- physicalProperties?: PhysicalProperties;
148
- /**
149
- * Optional - Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
150
- * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.
151
- * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
152
- * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.
153
- * + `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.
154
- */
155
- paymentOption?: PaymentOptionType;
156
- /**
157
- * Optional - Service properties. When relevant, this contains information such as date and number of participants.
158
- * Used, among other things, when checking for valid memberships.
159
- */
160
- serviceProperties?: ServiceProperties;
161
- /**
162
- * Optional - In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
163
- * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
164
- * + in most cases, this field is the name as `catalogReference.catalogItemId`.
165
- * + Used in membership validation.
166
- */
167
- rootCatalogItemId?: string | null;
168
- /**
169
- * Optional - partial payment for the given item to be paid upfront during the checkout.
170
- * Eligible for catalog items with type `DEPOSIT_ONLINE`.
171
- * If omitted - item's price will not be split and is expected to be paid in single installment
172
- */
173
- depositAmount?: string | null;
174
- /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
175
- catalogReference?: CatalogReference;
176
- }
177
- export interface PriceDescription {
178
- /** __Required.__ Price description in the site's default language. */
179
- original?: string;
180
- /**
181
- * Price description translated into the buyer's language.
182
- *
183
- * Default: Same as `original`.
184
- */
185
- translated?: string | null;
186
- }
187
- export interface DescriptionLine extends DescriptionLineValueOneOf, DescriptionLineDescriptionLineValueOneOf {
188
- /** Description line plain text value. */
189
- plainText?: PlainTextValue;
190
- /** Description line color value. */
191
- colorInfo?: Color;
192
- /** Description line name. */
193
- name?: DescriptionLineName;
194
- }
195
- /** @oneof */
196
- export interface DescriptionLineValueOneOf {
197
- /** Description line plain text value. */
198
- plainText?: PlainTextValue;
199
- /** Description line color value. */
200
- colorInfo?: Color;
201
- }
202
- /** @oneof */
203
- export interface DescriptionLineDescriptionLineValueOneOf {
204
- }
205
- export interface DescriptionLineName {
206
- /** Description line name in the site's default language. */
207
- original?: string;
208
- /**
209
- * Description line name translated into the buyer's language.
210
- *
211
- * Default: Same as `original`.
212
- */
213
- translated?: string | null;
214
- }
215
- export interface PlainTextValue {
216
- /** Description line plain text value in the site's default language. */
217
- original?: string;
218
- /**
219
- * Description line plain text value translated into the buyer's language.
220
- *
221
- * Default: Same as `original`.
222
- */
223
- translated?: string | null;
224
- }
225
- export interface Color {
226
- /** Description line color name in the site's default language. */
227
- original?: string;
228
- /**
229
- * Description line color name translated into the buyer's language.
230
- *
231
- * Default: Same as `original`.
232
- */
233
- translated?: string | null;
234
- /** HEX or RGB color code for display. */
235
- code?: string | null;
236
- }
237
- export declare enum DescriptionLineType {
238
- UNRECOGNISED = "UNRECOGNISED",
239
- PLAIN_TEXT = "PLAIN_TEXT",
240
- COLOR = "COLOR"
241
- }
242
- export interface ProductName {
243
- /**
244
- * __Required.__ Item name in the site's default language.
245
- *
246
- * Min: 1 character.
247
- * Max: 200 characters.
248
- */
249
- original?: string;
250
- /**
251
- * Item name translated into the buyer's language.
252
- *
253
- * Min: 1 character.
254
- * Max: 400 characters.
255
- * Default: Same as `original`.
256
- */
257
- translated?: string | null;
258
- }
259
- export interface ItemType extends ItemTypeItemTypeDataOneOf {
260
- /** Preset item type. */
261
- preset?: ItemTypeItemType;
262
- /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
263
- custom?: string;
264
- }
265
- /** @oneof */
266
- export interface ItemTypeItemTypeDataOneOf {
267
- /** Preset item type. */
268
- preset?: ItemTypeItemType;
269
- /** Custom item type. When none of the preset types are suitable, specifies the custom type. */
270
- custom?: string;
271
- }
272
- export declare enum ItemTypeItemType {
273
- UNRECOGNISED = "UNRECOGNISED",
274
- PHYSICAL = "PHYSICAL",
275
- DIGITAL = "DIGITAL",
276
- GIFT_CARD = "GIFT_CARD",
277
- SERVICE = "SERVICE"
278
- }
279
- export interface PhysicalProperties {
280
- /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */
281
- weight?: number | null;
282
- /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */
283
- sku?: string | null;
284
- /** Whether this line item is shippable. */
285
- shippable?: boolean;
286
- }
287
- export interface Scope {
288
- /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
289
- namespace?: string;
290
- /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */
291
- group?: Group;
292
- }
293
- export interface Group {
294
- /** 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). */
295
- name?: string;
296
- /** Item ID (when the coupon scope is limited to just one item). */
297
- entityId?: string | null;
298
- }
299
- export interface SubscriptionOptionInfo {
300
- /** Subscription option settings. */
301
- subscriptionSettings?: SubscriptionSettings;
302
- /** Subscription option title. */
303
- title?: Title;
304
- /** Subscription option description. */
305
- description?: Description;
306
- }
307
- export interface SubscriptionSettings {
308
- /** Frequency of recurring payment. */
309
- frequency?: SubscriptionFrequency;
310
- /** Whether subscription is renewed automatically at the end of each period. */
311
- autoRenewal?: boolean;
312
- /** Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`. */
313
- billingCycles?: number | null;
314
- }
315
- /** Frequency unit of recurring payment */
316
- export declare enum SubscriptionFrequency {
317
- UNDEFINED = "UNDEFINED",
318
- DAY = "DAY",
319
- WEEK = "WEEK",
320
- MONTH = "MONTH",
321
- YEAR = "YEAR"
322
- }
323
- export interface Title {
324
- /** Subscription option name in the site's default language. */
325
- original?: string;
326
- /**
327
- * Subscription option name translated into the buyer's language.
328
- *
329
- * Default: Same as `original`.
330
- */
331
- translated?: string | null;
332
- }
333
- export interface Description {
334
- /** Subscription option description. */
335
- original?: string;
336
- /** Translated subscription option description. */
337
- translated?: string | null;
338
- }
339
- export interface SecuredMedia {
340
- /** Media ID in Wix Media Manager. */
341
- _id?: string;
342
- /** Original filename. */
343
- fileName?: string;
344
- /** File type. */
345
- fileType?: FileType;
346
- }
347
- export declare enum FileType {
348
- UNSPECIFIED = "UNSPECIFIED",
349
- SECURE_PICTURE = "SECURE_PICTURE",
350
- SECURE_VIDEO = "SECURE_VIDEO",
351
- SECURE_DOCUMENT = "SECURE_DOCUMENT",
352
- SECURE_MUSIC = "SECURE_MUSIC",
353
- SECURE_ARCHIVE = "SECURE_ARCHIVE"
354
- }
355
- /** Type of selected payment option for catalog item */
356
- export declare enum PaymentOptionType {
357
- /** The entire payment for this item happens as part of the checkout. */
358
- FULL_PAYMENT_ONLINE = "FULL_PAYMENT_ONLINE",
359
- /** The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods. */
360
- FULL_PAYMENT_OFFLINE = "FULL_PAYMENT_OFFLINE",
361
- /** Payment for this item is done by charging a membership. When selected, `price` is `0`. */
362
- MEMBERSHIP = "MEMBERSHIP",
363
- /** Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is specified in `depositAmount`. */
364
- DEPOSIT_ONLINE = "DEPOSIT_ONLINE",
365
- /** 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`. */
366
- MEMBERSHIP_OFFLINE = "MEMBERSHIP_OFFLINE"
367
- }
368
- export interface ServiceProperties {
369
- /**
370
- * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.
371
- * For example, the start time of a class.
372
- */
373
- scheduledDate?: Date;
374
- /** The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room. */
375
- numberOfParticipants?: number | null;
376
- }
377
- export interface CreateCheckoutTemplateRequest {
378
- /** Checkout template to create. */
379
- checkoutTemplate: CheckoutTemplate;
380
- }
381
- export interface CreateCheckoutTemplateResponse {
382
- /** Created checkout template. */
383
- checkoutTemplate?: CheckoutTemplate;
384
- }
385
- export interface GetCheckoutTemplateRequest {
386
- /** ID of the checkout template to retrieve. */
387
- checkoutTemplateId: string;
388
- }
389
- export interface GetCheckoutTemplateResponse {
390
- /** Retrieved checkout template. */
391
- checkoutTemplate?: CheckoutTemplate;
392
- }
393
- export interface UpdateCheckoutTemplateRequest {
394
- /** Checkout template info to update. */
395
- checkoutTemplate: CheckoutTemplate;
396
- }
397
- export interface UpdateCheckoutTemplateResponse {
398
- /** Updated checkout template. */
399
- checkoutTemplate?: CheckoutTemplate;
400
- }
401
- export interface DeleteCheckoutTemplateRequest {
402
- /** ID of the checkout template to delete. */
403
- checkoutTemplateId: string;
404
- }
405
- export interface DeleteCheckoutTemplateResponse {
406
- }
407
- export interface QueryCheckoutTemplatesRequest {
408
- /** Query options. */
409
- query?: CursorQuery;
410
- }
411
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
412
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
413
- cursorPaging?: CursorPaging;
414
- /**
415
- * Filter object in the following format:
416
- * `"filter" : {
417
- * "fieldName1": "value1",
418
- * "fieldName2":{"$operator":"value2"}
419
- * }`
420
- *
421
- * Example of operators: `$eq`, `$ne`, `$in`, `$startsWith`, `$exists`, `$hasSome`
422
- */
423
- filter?: Record<string, any> | null;
424
- /**
425
- * Sort object in the following format:
426
- * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
427
- */
428
- sort?: Sorting[];
429
- }
430
- /** @oneof */
431
- export interface CursorQueryPagingMethodOneOf {
432
- /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
433
- cursorPaging?: CursorPaging;
434
- }
435
- export interface Sorting {
436
- /** Name of the field to sort by. */
437
- fieldName?: string;
438
- /** Sort order. */
439
- order?: SortOrder;
440
- }
441
- export declare enum SortOrder {
442
- ASC = "ASC",
443
- DESC = "DESC"
444
- }
445
- export interface CursorPaging {
446
- /** Number of items to load. */
447
- limit?: number | null;
448
- /**
449
- * Pointer to the next or previous page in the list of results. </ br>
450
- *
451
- * You can get the relevant cursor token
452
- * from the `pagingMetadata` object in the previous call's response.
453
- * Not relevant for the first request.
454
- */
455
- cursor?: string | null;
456
- }
457
- export interface QueryCheckoutTemplatesResponse {
458
- /** Retrieved checkout templates. */
459
- checkoutTemplates?: CheckoutTemplate[];
460
- /** Paging metadata. */
461
- pagingMetadata?: CursorPagingMetadata;
462
- }
463
- export interface CursorPagingMetadata {
464
- /** Number of items returned in the response. */
465
- count?: number | null;
466
- /** Offset that was requested. */
467
- cursors?: Cursors;
468
- /**
469
- * Indicates if there are more results after the current page.
470
- * If `true`, another page of results can be retrieved.
471
- * If `false`, this is the last page.
472
- */
473
- hasNext?: boolean | null;
474
- }
475
- export interface Cursors {
476
- /** Cursor pointing to next page in the list of results. */
477
- next?: string | null;
478
- /** Cursor pointing to previous page in the list of results. */
479
- prev?: string | null;
480
- }
481
- export interface CreateCheckoutFromTemplateRequest {
482
- /** ID of the checkout template to use to create a checkout from. */
483
- checkoutTemplateId: string;
484
- /** ID of the site associated with the checkout template. */
485
- siteId: string;
486
- }
487
- export interface CreateCheckoutFromTemplateResponse {
488
- /** ID of the created checkout. */
489
- checkoutId?: string;
490
- /** URL of the created checkout page. */
491
- checkoutUrl?: string;
492
- }
493
- /** Triggered when newly checkout created successfully from checkout template */
494
- export interface CheckoutTemplateUsed {
495
- /** checkout template */
496
- checkoutTemplate?: CheckoutTemplate;
497
- /** newly created checkout */
498
- checkout?: Checkout;
499
- }
500
- export interface Checkout {
501
- /**
502
- * Checkout ID.
503
- * @readonly
504
- */
505
- _id?: string | null;
506
- /**
507
- * Line items.
508
- *
509
- * Max: 300 items
510
- * @readonly
511
- */
512
- lineItems?: LineItem[];
513
- /** Billing information. */
514
- billingInfo?: AddressWithContact;
515
- /** Shipping information. */
516
- shippingInfo?: ShippingInfo;
517
- /** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */
518
- buyerNote?: string | null;
519
- /** Buyer information. */
520
- buyerInfo?: BuyerInfo;
521
- /**
522
- * All converted prices are displayed in this currency in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
523
- * @readonly
524
- */
525
- conversionCurrency?: string;
526
- /**
527
- * Calculated price summary for the checkout.
528
- * @readonly
529
- */
530
- priceSummary?: PriceSummary;
531
- /**
532
- * Errors when calculating totals.
533
- * @readonly
534
- */
535
- calculationErrors?: CalculationErrors;
536
- /**
537
- * Applied gift card details.
538
- *
539
- * >**Note:** Gift cards are supported through the Wix UI, though the SPI is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/wix-stores-setting-up-wix-gift-cards).
540
- * @readonly
541
- */
542
- giftCard?: GiftCard;
543
- /**
544
- * Applied discounts.
545
- * @readonly
546
- */
547
- appliedDiscounts?: AppliedDiscount[];
548
- /** Custom fields. */
549
- customFields?: CustomField[];
550
- /**
551
- * Weight measurement unit - defaults to site's weight unit.
552
- * @readonly
553
- */
554
- weightUnit?: WeightUnit;
555
- /**
556
- * Tax summary.
557
- * @readonly
558
- */
559
- taxSummary?: TaxSummary;
560
- /**
561
- * The currency used when submitting the order.
562
- * @readonly
563
- */
564
- currency?: string;
565
- /**
566
- * Sales channel that submitted the order.
567
- * + `"UNSPECIFIED"`: Unspecified sales channel. This value is not supported.
568
- * + `"WEB"`: A web client.
569
- * + `"POS"`: [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395)
570
- * + `"EBAY"`: [eBay](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop)
571
- * + `"AMAZON"`: [Amazon](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop)
572
- * + `"WISH"`: [Wish](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-a-wish-shop)
573
- * + `"WIX_INVOICES"`: Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings)
574
- * + `"WIX_APP_STORE"`: [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview)
575
- * + `"BACKOFFICE_MERCHANT"`: Wix merchant backoffice
576
- * + `"OTHER_PLATFORM"`: Other sales platform.
577
- * @readonly
578
- */
579
- channelType?: ChannelType;
580
- /**
581
- * Site language in which original values are shown.
582
- * @readonly
583
- */
584
- siteLanguage?: string;
585
- /**
586
- * Language for communication with the buyer. Defaults to the site language.
587
- * For a site that supports multiple languages, this is the language the buyer selected.
588
- * @readonly
589
- */
590
- buyerLanguage?: string;
591
- /**
592
- * Whether an order was successfully created from this checkout.
593
- * For an order to be successful, it must be successfully paid for (unless the total is 0).
594
- * @readonly
595
- */
596
- completed?: boolean;
597
- /**
598
- * Whether tax is included in line item prices.
599
- * @readonly
600
- */
601
- taxIncludedInPrice?: boolean;
602
- /**
603
- * ID of the checkout's initiator.
604
- * @readonly
605
- */
606
- createdBy?: CreatedBy;
607
- /**
608
- * Date and time the checkout was created.
609
- * @readonly
610
- */
611
- _createdDate?: Date;
612
- /**
613
- * Date and time the checkout was updated.
614
- * @readonly
615
- */
616
- _updatedDate?: Date;
617
- /**
618
- * Minimal amount to pay in order to place the order.
619
- * @readonly
620
- */
621
- payNow?: PriceSummary;
622
- /**
623
- * Remaining amount for the order to be fully paid.
624
- * @readonly
625
- */
626
- payLater?: PriceSummary;
627
- /** Memberships to apply when creating the order. */
628
- membershipOptions?: MembershipOptions;
629
- /** Additional Fees. */
630
- additionalFees?: AdditionalFee[];
631
- /** Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart. */
632
- cartId?: string | null;
633
- /**
634
- * List of validation violations raised by the [Validations SPI](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
635
- * @readonly
636
- */
637
- violations?: Violation[];
638
- /**
639
- * Custom field data for the checkout object.
640
- *
641
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the Wix Dev Center before they can be accessed with API calls.
642
- */
643
- extendedFields?: ExtendedFields;
644
- /**
645
- * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.
646
- * @readonly
647
- */
648
- purchaseFlowId?: string | null;
649
- /**
650
- * Additional settings for customization of the checkout process.
651
- *
652
- * Custom settings can only be set when [creating a checkout](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/checkout/create-checkout).
653
- */
654
- customSettings?: CustomSettings;
655
- }
656
- export interface LineItem {
657
- /**
658
- * Line item ID.
659
- * @readonly
660
- */
661
- _id?: string | null;
662
- /**
663
- * Item quantity.
664
- *
665
- * Min: `"1"`
666
- * Max: `"100000"`
667
- */
668
- quantity?: number;
669
- /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. */
670
- catalogReference?: CatalogReference;
671
- /**
672
- * Item name.
673
- * + Stores - `product.name`
674
- * + Bookings - `service.info.name`
675
- * + Events - `ticket.name`
676
- * @readonly
677
- */
678
- productName?: ProductName;
679
- /**
680
- * URL to the item's page on the site.
681
- * @readonly
682
- */
683
- url?: string;
684
- /**
685
- * Item price **after** catalog-defined discount and line item discounts.
686
- * @readonly
687
- */
688
- price?: MultiCurrencyPrice;
689
- /**
690
- * Total line item price **after** catalog-defined discount and line item discounts.
691
- * @readonly
692
- */
693
- lineItemPrice?: MultiCurrencyPrice;
694
- /**
695
- * Item price **before** catalog-defined discount. Defaults to `price` when not provided.
696
- * @readonly
697
- */
698
- fullPrice?: MultiCurrencyPrice;
699
- /**
700
- * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.
701
- * @readonly
702
- */
703
- priceBeforeDiscounts?: MultiCurrencyPrice;
704
- /**
705
- * Total price after all discounts and tax.
706
- * @readonly
707
- */
708
- totalPriceAfterTax?: MultiCurrencyPrice;
709
- /**
710
- * Total price after discounts, and before tax.
711
- * @readonly
712
- */
713
- totalPriceBeforeTax?: MultiCurrencyPrice;
714
- /**
715
- * Tax details for this line item.
716
- * @readonly
717
- */
718
- taxDetails?: ItemTaxFullDetails;
719
- /**
720
- * Discount for this line item's entire quantity.
721
- * @readonly
722
- */
723
- discount?: MultiCurrencyPrice;
724
- /**
725
- * Line item description lines. Used for display purposes for the cart, checkout and order.
726
- * @readonly
727
- */
728
- descriptionLines?: DescriptionLine[];
729
- /**
730
- * Line item image details.
731
- * @readonly
732
- */
733
- media?: string;
734
- /**
735
- * Item availability details.
736
- * @readonly
737
- */
738
- availability?: ItemAvailabilityInfo;
739
- /**
740
- * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.
741
- * @readonly
742
- */
743
- physicalProperties?: PhysicalProperties;
744
- /**
745
- * Item type. Either a preset type or custom.
746
- * @readonly
747
- */
748
- itemType?: ItemType;
749
- /**
750
- * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.
751
- * + `FULL_PAYMENT_ONLINE`: The entire payment for this item happens as part of the checkout.
752
- * + `FULL_PAYMENT_OFFLINE`: The entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.
753
- * + `MEMBERSHIP`: Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is `0`.
754
- * + `DEPOSIT_ONLINE`: Partial payment to be paid upfront during the checkout. Initial amount to be paid for each line item is defined by `lineItem.deposit`.
755
- * + `MEMBERSHIP_OFFLINE`: Payment for this item can only be performed by using a membership and must be manually redeemed in the dashboard by the site owner. When this option is used, `lineItem.price.amount` is `0`.
756
- * @readonly
757
- */
758
- paymentOption?: PaymentOptionType;
759
- /**
760
- * Service properties. When relevant, this contains information such as date and number of participants.
761
- * @readonly
762
- */
763
- serviceProperties?: ServiceProperties;
764
- /**
765
- * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.
766
- * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.
767
- * + In most cases, this field has the same value as `catalogReference.catalogItemId`.
768
- * + Used in membership validation.
769
- * @readonly
770
- */
771
- rootCatalogItemId?: string | null;
772
- /**
773
- * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
774
- * @readonly
775
- */
776
- priceDescription?: PriceDescription;
777
- /**
778
- * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
779
- * @readonly
780
- */
781
- depositAmount?: MultiCurrencyPrice;
782
- }
783
- export interface MultiCurrencyPrice {
784
- /** Amount. */
785
- amount?: string;
786
- /**
787
- * Converted amount.
788
- * @readonly
789
- */
790
- convertedAmount?: string;
791
- /**
792
- * Amount formatted with currency symbol.
793
- * @readonly
794
- */
795
- formattedAmount?: string;
796
- /**
797
- * Converted amount formatted with currency symbol.
798
- * @readonly
799
- */
800
- formattedConvertedAmount?: string;
801
- }
802
- export interface ItemTaxFullDetails {
803
- /** Amount for which tax is calculated. */
804
- taxableAmount?: MultiCurrencyPrice;
805
- /** Tax rate %, as a decimal point between 0 and 1. */
806
- taxRate?: string;
807
- /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
808
- totalTax?: MultiCurrencyPrice;
809
- /**
810
- * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.
811
- * @readonly
812
- */
813
- rateBreakdown?: TaxRateBreakdown[];
814
- }
815
- export interface TaxRateBreakdown {
816
- /** Name of tax against which the calculation was performed. */
817
- name?: string;
818
- /** Rate at which this tax detail was calculated. */
819
- rate?: string;
820
- /** Amount of tax for this tax detail. */
821
- tax?: MultiCurrencyPrice;
822
- }
823
- /**
824
- * TaxBreakdown represents tax information for a line item.
825
- * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
826
- */
827
- export interface TaxBreakdown {
828
- /** The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec". */
829
- jurisdiction?: string | null;
830
- /** The amount of this line item price that was considered nontaxable. (Decimal value) */
831
- nonTaxableAmount?: MultiCurrencyPrice;
832
- /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value) */
833
- rate?: string | null;
834
- /** The amount of tax estimated for this line item. (Decimal value) */
835
- taxAmount?: MultiCurrencyPrice;
836
- /** The taxable amount of this line item. */
837
- taxableAmount?: MultiCurrencyPrice;
838
- /** The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc. */
839
- taxType?: string | null;
840
- /**
841
- * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
842
- * This name should be explicit enough to allow the merchant to understand what tax was calculated.
843
- */
844
- taxName?: string | null;
845
- /** The type of the jurisdiction in which this tax detail applies. */
846
- jurisdictionType?: JurisdictionType;
847
- }
848
- /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
849
- export declare enum JurisdictionType {
850
- UNDEFINED = "UNDEFINED",
851
- COUNTRY = "COUNTRY",
852
- STATE = "STATE",
853
- COUNTY = "COUNTY",
854
- CITY = "CITY",
855
- SPECIAL = "SPECIAL"
856
- }
857
- export interface ItemAvailabilityInfo {
858
- /**
859
- * Item availability status.
860
- * + `"NOT_FOUND"`: Item does not exist
861
- * + `"NOT_AVAILABLE"`: Item not in stock
862
- * + `"PARTIALLY_AVAILABLE"`: Available quantity is less than requested
863
- */
864
- status?: ItemAvailabilityStatus;
865
- /** Quantity available. */
866
- quantityAvailable?: number | null;
867
- }
868
- export declare enum ItemAvailabilityStatus {
869
- AVAILABLE = "AVAILABLE",
870
- NOT_FOUND = "NOT_FOUND",
871
- /** Not in stock */
872
- NOT_AVAILABLE = "NOT_AVAILABLE",
873
- /** Available quantity is less than requested */
874
- PARTIALLY_AVAILABLE = "PARTIALLY_AVAILABLE"
875
- }
876
- /** Billing Info and shipping details */
877
- export interface AddressWithContact {
878
- /** Address. */
879
- address?: Address;
880
- /** Contact details. */
881
- contactDetails?: FullAddressContactDetails;
882
- }
883
- /** Physical address */
884
- export interface Address {
885
- /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */
886
- country?: string | null;
887
- /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */
888
- subdivision?: string | null;
889
- /** City name. */
890
- city?: string | null;
891
- /** Postal or zip code. */
892
- postalCode?: string | null;
893
- /** Street address. */
894
- streetAddress?: StreetAddress;
895
- /** Main address line (usually street name and number). */
896
- addressLine1?: string | null;
897
- /** Free text providing more detailed address info. Usually contains apt, suite, floor. */
898
- addressLine2?: string | null;
899
- }
900
- export interface StreetAddress {
901
- /** Street number. */
902
- number?: string;
903
- /** Street name. */
904
- name?: string;
905
- }
906
- export interface AddressLocation {
907
- /** Address latitude. */
908
- latitude?: number | null;
909
- /** Address longitude. */
910
- longitude?: number | null;
911
- }
912
- /** Full contact details for an address */
913
- export interface FullAddressContactDetails {
914
- /** First name. */
915
- firstName?: string | null;
916
- /** Last name. */
917
- lastName?: string | null;
918
- /** Phone number. */
919
- phone?: string | null;
920
- /** Company name. */
921
- company?: string | null;
922
- /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
923
- vatId?: VatId;
924
- }
925
- export interface VatId {
926
- /** Customer's tax ID. */
927
- _id?: string;
928
- /**
929
- * Tax type.
930
- *
931
- * Supported values:
932
- * + `CPF`: for individual tax payers
933
- * + `CNPJ`: for corporations
934
- */
935
- type?: VatType;
936
- }
937
- /** tax info types */
938
- export declare enum VatType {
939
- UNSPECIFIED = "UNSPECIFIED",
940
- /** CPF - for individual tax payers. */
941
- CPF = "CPF",
942
- /** CNPJ - for corporations */
943
- CNPJ = "CNPJ"
944
- }
945
- export interface ShippingInfo {
946
- /** Shipping address and contact details. */
947
- shippingDestination?: AddressWithContact;
948
- /** Selected option out of the options allowed for the `region`. */
949
- selectedCarrierServiceOption?: SelectedCarrierServiceOption;
950
- /**
951
- * Shipping region. Based on the address provided.
952
- * @readonly
953
- */
954
- region?: ShippingRegion;
955
- /**
956
- * All carrier options for this shipping rule.
957
- * @readonly
958
- */
959
- carrierServiceOptions?: CarrierServiceOption[];
960
- }
961
- export interface SelectedCarrierServiceOption {
962
- /** Unique identifier of selected option. For example, "usps_std_overnight". */
963
- code?: string;
964
- /**
965
- * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
966
- * For example, "Standard" or "First-Class Package International".
967
- * @readonly
968
- */
969
- title?: string;
970
- /**
971
- * Delivery logistics.
972
- * @readonly
973
- */
974
- logistics?: DeliveryLogistics;
975
- /**
976
- * Shipping costs.
977
- * @readonly
978
- */
979
- cost?: SelectedCarrierServiceOptionPrices;
980
- /**
981
- * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
982
- * @readonly
983
- */
984
- requestedShippingOption?: boolean;
985
- /** Other charges */
986
- otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
987
- /** This carrier's unique ID */
988
- carrierId?: string | null;
989
- }
990
- export interface DeliveryLogistics {
991
- /** Expected delivery time, in free text. For example, "3-5 business days". */
992
- deliveryTime?: string | null;
993
- /** Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot". */
994
- instructions?: string | null;
995
- /** Pickup details. */
996
- pickupDetails?: PickupDetails;
997
- }
998
- export interface PickupDetails {
999
- /** Pickup address. */
1000
- address?: Address;
1001
- /** Whether the pickup address is that of a business - this may effect tax calculation. */
1002
- businessLocation?: boolean;
1003
- /** Pickup method */
1004
- pickupMethod?: PickupMethod;
1005
- }
1006
- export declare enum PickupMethod {
1007
- UNKNOWN_METHOD = "UNKNOWN_METHOD",
1008
- STORE_PICKUP = "STORE_PICKUP",
1009
- PICKUP_POINT = "PICKUP_POINT"
1010
- }
1011
- export interface DeliveryTimeSlot {
1012
- /** starting time of the delivery time slot */
1013
- from?: Date;
1014
- /** ending time of the delivery time slot */
1015
- to?: Date;
1016
- }
1017
- export interface SelectedCarrierServiceOptionPrices {
1018
- /** Total shipping price, after discount and after tax. */
1019
- totalPriceAfterTax?: MultiCurrencyPrice;
1020
- /** Total price of shipping after discounts (when relevant), and before tax. */
1021
- totalPriceBeforeTax?: MultiCurrencyPrice;
1022
- /** Tax details. */
1023
- taxDetails?: ItemTaxFullDetails;
1024
- /** Shipping discount before tax. */
1025
- totalDiscount?: MultiCurrencyPrice;
1026
- /** Shipping price before discount and before tax. */
1027
- price?: MultiCurrencyPrice;
1028
- }
1029
- export interface SelectedCarrierServiceOptionOtherCharge {
1030
- /** Type of additional cost. */
1031
- type?: ChargeType;
1032
- /** Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'. */
1033
- details?: string | null;
1034
- /** Price of added charge. */
1035
- cost?: SelectedCarrierServiceOptionPrices;
1036
- }
1037
- export declare enum ChargeType {
1038
- HANDLING_FEE = "HANDLING_FEE",
1039
- INSURANCE = "INSURANCE"
1040
- }
1041
- export interface ShippingRegion {
1042
- /**
1043
- * Shipping region ID.
1044
- * @readonly
1045
- */
1046
- _id?: string;
1047
- /** Shipping region name. */
1048
- name?: string;
1049
- }
1050
- export interface CarrierServiceOption {
1051
- /** Carrier ID. */
1052
- carrierId?: string;
1053
- /** Shipping options offered by this carrier for this request. */
1054
- shippingOptions?: ShippingOption[];
1055
- }
1056
- export interface ShippingOption {
1057
- /**
1058
- * Unique code of provided shipping option like "usps_std_overnight".
1059
- * For legacy calculators this would be the UUID of the option.
1060
- */
1061
- code?: string;
1062
- /**
1063
- * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
1064
- * For example, "Standard" or "First-Class Package International".
1065
- */
1066
- title?: string;
1067
- /** Delivery logistics. */
1068
- logistics?: DeliveryLogistics;
1069
- /** Sipping price information. */
1070
- cost?: ShippingPrice;
1071
- }
1072
- export interface ShippingPrice {
1073
- /** Shipping price. */
1074
- price?: MultiCurrencyPrice;
1075
- /** Other costs such as insurance, handling & packaging for fragile items, etc. */
1076
- otherCharges?: OtherCharge[];
1077
- }
1078
- export interface OtherCharge {
1079
- /** Type of additional cost. */
1080
- type?: ChargeType;
1081
- /** Price of added cost. */
1082
- price?: MultiCurrencyPrice;
1083
- }
1084
- export interface BuyerInfo extends BuyerInfoIdOneOf {
1085
- /**
1086
- * Visitor ID (if site visitor is **not** a member).
1087
- * @readonly
1088
- */
1089
- visitorId?: string;
1090
- /**
1091
- * Member ID (if site visitor is a site member).
1092
- * @readonly
1093
- */
1094
- memberId?: string;
1095
- /**
1096
- * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).
1097
- * @readonly
1098
- */
1099
- contactId?: string | null;
1100
- /** Buyer email address. */
1101
- email?: string | null;
1102
- }
1103
- /** @oneof */
1104
- export interface BuyerInfoIdOneOf {
1105
- /**
1106
- * Visitor ID (if site visitor is **not** a member).
1107
- * @readonly
1108
- */
1109
- visitorId?: string;
1110
- /**
1111
- * Member ID (if site visitor is a site member).
1112
- * @readonly
1113
- */
1114
- memberId?: string;
1115
- }
1116
- export interface PriceSummary {
1117
- /** Subtotal of all line items, before discounts and before tax. */
1118
- subtotal?: MultiCurrencyPrice;
1119
- /** Total shipping price, before discounts and before tax. */
1120
- shipping?: MultiCurrencyPrice;
1121
- /** Total tax. */
1122
- tax?: MultiCurrencyPrice;
1123
- /** Total calculated discount value. */
1124
- discount?: MultiCurrencyPrice;
1125
- /** Total price after discounts, gift cards, and tax. */
1126
- total?: MultiCurrencyPrice;
1127
- /** Total additional fees price before tax. */
1128
- additionalFees?: MultiCurrencyPrice;
1129
- }
1130
- export interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1131
- /** General shipping calculation error. */
1132
- generalShippingCalculationError?: Details;
1133
- /** Carrier errors. */
1134
- carrierErrors?: CarrierErrors;
1135
- /** Tax calculation error. */
1136
- taxCalculationError?: Details;
1137
- /** Coupon calculation error. */
1138
- couponCalculationError?: Details;
1139
- /** Gift card calculation error. */
1140
- giftCardCalculationError?: Details;
1141
- /** Order validation errors. */
1142
- orderValidationErrors?: ApplicationError[];
1143
- /**
1144
- * Membership payment methods calculation errors
1145
- * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1146
- */
1147
- membershipError?: Details;
1148
- /** Discount Rule calculation error. */
1149
- discountsCalculationError?: Details;
1150
- }
1151
- /** @oneof */
1152
- export interface CalculationErrorsShippingCalculationErrorOneOf {
1153
- /** General shipping calculation error. */
1154
- generalShippingCalculationError?: Details;
1155
- /** Carrier errors. */
1156
- carrierErrors?: CarrierErrors;
1157
- }
1158
- export interface Details extends DetailsKindOneOf {
1159
- applicationError?: ApplicationError;
1160
- validationError?: ValidationError;
1161
- systemError?: SystemError;
1162
- /** deprecated in API's - to enable migration from rendering arbitrary tracing to rest response */
1163
- tracing?: Record<string, string>;
1164
- }
1165
- /** @oneof */
1166
- export interface DetailsKindOneOf {
1167
- applicationError?: ApplicationError;
1168
- validationError?: ValidationError;
1169
- systemError?: SystemError;
1170
- }
1171
- export interface ApplicationError {
1172
- /** Error code. */
1173
- code?: string;
1174
- /** Description of the error. */
1175
- description?: string;
1176
- /** Data related to the error. */
1177
- data?: Record<string, any> | null;
1178
- }
1179
- /**
1180
- * example result:
1181
- * {
1182
- * "fieldViolations": [
1183
- * {
1184
- * "field": "fieldA",
1185
- * "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
1186
- * "violatedRule": "OTHER",
1187
- * "ruleName": "INVALID_NOTE",
1188
- * "data": {
1189
- * "value": "FI"
1190
- * }
1191
- * },
1192
- * {
1193
- * "field": "fieldB",
1194
- * "description": "field value out of range. supported range: [0-20]",
1195
- * "violatedRule": "MAX",
1196
- * "data": {
1197
- * "threshold": 20
1198
- * }
1199
- * },
1200
- * {
1201
- * "field": "fieldC",
1202
- * "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
1203
- * "violatedRule": "FORMAT",
1204
- * "data": {
1205
- * "type": "PHONE"
1206
- * }
1207
- * }
1208
- * ]
1209
- * }
1210
- */
1211
- export interface ValidationError {
1212
- fieldViolations?: FieldViolation[];
1213
- }
1214
- export declare enum RuleType {
1215
- VALIDATION = "VALIDATION",
1216
- OTHER = "OTHER",
1217
- MAX = "MAX",
1218
- MIN = "MIN",
1219
- MAX_LENGTH = "MAX_LENGTH",
1220
- MIN_LENGTH = "MIN_LENGTH",
1221
- MAX_SIZE = "MAX_SIZE",
1222
- MIN_SIZE = "MIN_SIZE",
1223
- FORMAT = "FORMAT",
1224
- DECIMAL_LTE = "DECIMAL_LTE",
1225
- DECIMAL_GTE = "DECIMAL_GTE",
1226
- DECIMAL_LT = "DECIMAL_LT",
1227
- DECIMAL_GT = "DECIMAL_GT",
1228
- DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
1229
- INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
1230
- REQUIRED_FIELD = "REQUIRED_FIELD",
1231
- FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
1232
- ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT"
1233
- }
1234
- export interface FieldViolation {
1235
- field?: string;
1236
- description?: string;
1237
- violatedRule?: RuleType;
1238
- /** applicable when violated_rule=OTHER */
1239
- ruleName?: string | null;
1240
- data?: Record<string, any> | null;
1241
- }
1242
- export interface SystemError {
1243
- /** Error code. */
1244
- errorCode?: string | null;
1245
- }
1246
- export interface CarrierErrors {
1247
- /** Carrier errors. */
1248
- errors?: CarrierError[];
1249
- }
1250
- export interface CarrierError {
1251
- /** Carrier ID. */
1252
- carrierId?: string;
1253
- /** Error details. */
1254
- error?: Details;
1255
- }
1256
- export interface GiftCard {
1257
- /** Gift Card ID. */
1258
- _id?: string;
1259
- /** Gift card obfuscated code. */
1260
- obfuscatedCode?: string;
1261
- /** Gift card value. */
1262
- amount?: MultiCurrencyPrice;
1263
- /** App ID of the gift card provider. */
1264
- appId?: string;
1265
- }
1266
- export interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
1267
- /** Coupon details. */
1268
- coupon?: Coupon;
1269
- /** Merchant discount. */
1270
- merchantDiscount?: MerchantDiscount;
1271
- /** Discount rule */
1272
- discountRule?: DiscountRule;
1273
- /** Discount type. */
1274
- discountType?: DiscountType;
1275
- /** IDs of line items the discount applies to. */
1276
- lineItemIds?: string[];
1277
- }
1278
- /** @oneof */
1279
- export interface AppliedDiscountDiscountSourceOneOf {
1280
- /** Coupon details. */
1281
- coupon?: Coupon;
1282
- /** Merchant discount. */
1283
- merchantDiscount?: MerchantDiscount;
1284
- /** Discount rule */
1285
- discountRule?: DiscountRule;
1286
- }
1287
- export declare enum DiscountType {
1288
- GLOBAL = "GLOBAL",
1289
- SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
1290
- SHIPPING = "SHIPPING"
1291
- }
1292
- /** Coupon */
1293
- export interface Coupon {
1294
- /** Coupon ID. */
1295
- _id?: string;
1296
- /** Coupon code. */
1297
- code?: string;
1298
- /** Coupon value. */
1299
- amount?: MultiCurrencyPrice;
1300
- /** Coupon name. */
1301
- name?: string;
1302
- }
1303
- export interface MerchantDiscount {
1304
- /** Discount value. */
1305
- amount?: MultiCurrencyPrice;
1306
- }
1307
- export interface DiscountRule {
1308
- /** Discount rule ID */
1309
- _id?: string;
1310
- /** Discount rule name */
1311
- name?: DiscountRuleName;
1312
- /** Discount value. */
1313
- amount?: MultiCurrencyPrice;
1314
- }
1315
- export interface DiscountRuleName {
1316
- /** Original discount rule name (in site's default language). */
1317
- original?: string;
1318
- /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */
1319
- translated?: string | null;
1320
- }
1321
- export interface LineItemDiscount {
1322
- /** ID of line item the discount applies to. */
1323
- _id?: string;
1324
- /** Discount value. */
1325
- totalDiscountAmount?: MultiCurrencyPrice;
1326
- }
1327
- export interface CustomField {
1328
- /** Custom field value. */
1329
- value?: any;
1330
- /** Custom field title. */
1331
- title?: string;
1332
- /** Translated custom field title. */
1333
- translatedTitle?: string | null;
1334
- }
1335
- export declare enum WeightUnit {
1336
- /** Weight unit can't be classified, due to an error */
1337
- UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
1338
- /** Kilograms */
1339
- KG = "KG",
1340
- /** Pounds */
1341
- LB = "LB"
1342
- }
1343
- export interface TaxSummary {
1344
- /**
1345
- * Amount for which tax is calculated, added from line items.
1346
- * @readonly
1347
- */
1348
- taxableAmount?: MultiCurrencyPrice;
1349
- /**
1350
- * Calculated tax, added from line items.
1351
- * @readonly
1352
- */
1353
- totalTax?: MultiCurrencyPrice;
1354
- /** Tax calculator that was active when the order was created. */
1355
- calculationDetails?: TaxCalculationDetails;
1356
- }
1357
- export interface TaxCalculationDetails extends TaxCalculationDetailsCalculationDetailsOneOf {
1358
- /** Reason the manual calculation was used. */
1359
- manualRateReason?: ManualCalculationReason;
1360
- /** Details of the fallback rate calculation. */
1361
- autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1362
- /** Rate calculation type. */
1363
- rateType?: RateType;
1364
- }
1365
- /** @oneof */
1366
- export interface TaxCalculationDetailsCalculationDetailsOneOf {
1367
- /** Reason the manual calculation was used. */
1368
- manualRateReason?: ManualCalculationReason;
1369
- /** Details of the fallback rate calculation. */
1370
- autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
1371
- }
1372
- export declare enum RateType {
1373
- /** no tax being collected for this request due to location of purchase */
1374
- NO_TAX_COLLECTED = "NO_TAX_COLLECTED",
1375
- /** manual rate used for calculation */
1376
- MANUAL_RATE = "MANUAL_RATE",
1377
- /** autotax rate used for calculation */
1378
- AUTO_RATE = "AUTO_RATE",
1379
- /** fallback rate used for calculation */
1380
- FALLBACK_RATE = "FALLBACK_RATE"
1381
- }
1382
- export declare enum ManualCalculationReason {
1383
- /** user set calculator in Business Manager to be Manual */
1384
- GLOBAL_SETTING_TO_MANUAL = "GLOBAL_SETTING_TO_MANUAL",
1385
- /** specific region is on manual even though Global setting is Auto-tax */
1386
- REGION_SETTING_TO_MANUAL = "REGION_SETTING_TO_MANUAL"
1387
- }
1388
- export interface AutoTaxFallbackCalculationDetails {
1389
- /** reason for fallback */
1390
- fallbackReason?: FallbackReason;
1391
- /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */
1392
- error?: ApplicationError;
1393
- }
1394
- export declare enum FallbackReason {
1395
- /** auto-tax failed to be calculated */
1396
- AUTO_TAX_FAILED = "AUTO_TAX_FAILED",
1397
- /** auto-tax was temporarily deactivated on a system-level */
1398
- AUTO_TAX_DEACTIVATED = "AUTO_TAX_DEACTIVATED"
1399
- }
1400
- /**
1401
- * 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.
1402
- * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
1403
- */
1404
- export interface AggregatedTaxBreakdown {
1405
- /** The name of the tax against which this tax amount was calculated. */
1406
- taxName?: string;
1407
- /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */
1408
- taxType?: string;
1409
- /** The name of the jurisdiction in which this tax detail applies. */
1410
- jurisdiction?: string;
1411
- /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
1412
- jurisdictionType?: string;
1413
- /** The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value) */
1414
- rate?: string;
1415
- /** The sum of all the tax from line items that calculated by the tax identifiers. */
1416
- aggregatedTaxAmount?: MultiCurrencyPrice;
1417
- }
1418
- export declare enum ChannelType {
1419
- UNSPECIFIED = "UNSPECIFIED",
1420
- WEB = "WEB",
1421
- POS = "POS",
1422
- EBAY = "EBAY",
1423
- AMAZON = "AMAZON",
1424
- OTHER_PLATFORM = "OTHER_PLATFORM",
1425
- WIX_APP_STORE = "WIX_APP_STORE",
1426
- WIX_INVOICES = "WIX_INVOICES",
1427
- BACKOFFICE_MERCHANT = "BACKOFFICE_MERCHANT",
1428
- WISH = "WISH",
1429
- CLASS_PASS = "CLASS_PASS",
1430
- GLOBAL_E = "GLOBAL_E"
1431
- }
1432
- export interface CreatedBy extends CreatedByIdOneOf {
1433
- /**
1434
- * User ID - when the order was created by a Wix user on behalf of a buyer.
1435
- * For example, via POS (point of service).
1436
- */
1437
- userId?: string;
1438
- /** Member ID - when the order was created by a **logged in** site visitor. */
1439
- memberId?: string;
1440
- /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1441
- visitorId?: string;
1442
- /** App ID - when the order was created by an external application or Wix service. */
1443
- appId?: string;
1444
- }
1445
- /** @oneof */
1446
- export interface CreatedByIdOneOf {
1447
- /**
1448
- * User ID - when the order was created by a Wix user on behalf of a buyer.
1449
- * For example, via POS (point of service).
1450
- */
1451
- userId?: string;
1452
- /** Member ID - when the order was created by a **logged in** site visitor. */
1453
- memberId?: string;
1454
- /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */
1455
- visitorId?: string;
1456
- /** App ID - when the order was created by an external application or Wix service. */
1457
- appId?: string;
1458
- }
1459
- /** Reserved for internal use. */
1460
- export interface MembershipOptions {
1461
- /**
1462
- * Reserved for internal use.
1463
- * @readonly
1464
- */
1465
- eligibleMemberships?: Membership[];
1466
- /**
1467
- * Reserved for internal use.
1468
- * @readonly
1469
- */
1470
- invalidMemberships?: InvalidMembership[];
1471
- /** Selected membership to apply to this checkout. */
1472
- selectedMemberships?: SelectedMemberships;
1473
- }
1474
- export interface Membership {
1475
- /** Membership ID. */
1476
- _id?: string;
1477
- /** ID of the application providing this payment option. */
1478
- appId?: string;
1479
- /** The name of this membership. */
1480
- name?: MembershipName;
1481
- /** Line item IDs which are "paid" for by this membership. */
1482
- lineItemIds?: string[];
1483
- /** Optional - For a membership that has limited credits, information about credit usage. */
1484
- credits?: MembershipPaymentCredits;
1485
- /** Optional - TMembership expiry date. */
1486
- expirationDate?: Date;
1487
- /** Additional data about this membership. */
1488
- additionalData?: Record<string, any> | null;
1489
- }
1490
- export interface MembershipName {
1491
- /** The name of this membership */
1492
- original?: string;
1493
- /** Optional - Translated name of this membership. Defaults to `original` when not provided. */
1494
- translated?: string | null;
1495
- }
1496
- export interface MembershipPaymentCredits {
1497
- /** How much credit this membership has in total */
1498
- total?: number;
1499
- /** How much credit remained for this membership */
1500
- remaining?: number;
1501
- }
1502
- export interface InvalidMembership {
1503
- /** Membership details. */
1504
- membership?: Membership;
1505
- /** Reason why this membership is invalid and cannot be used. */
1506
- reason?: string;
1507
- }
1508
- export interface SelectedMemberships {
1509
- /** Selected memberships. */
1510
- memberships?: SelectedMembership[];
1511
- }
1512
- export interface SelectedMembership {
1513
- /** Membership ID. */
1514
- _id?: string;
1515
- /** ID of the app providing this payment option. */
1516
- appId?: string;
1517
- /** IDs of the line items this membership applies to. */
1518
- lineItemIds?: string[];
1519
- }
1520
- export interface AdditionalFee {
1521
- /** Additional fee's unique code (or ID) for future processing. */
1522
- code?: string | null;
1523
- /** Translated additional fee's name. */
1524
- name?: string;
1525
- /** Additional fee's price. */
1526
- price?: MultiCurrencyPrice;
1527
- /** Tax details. */
1528
- taxDetails?: ItemTaxFullDetails;
1529
- /** Provider's app id. */
1530
- providerAppId?: string | null;
1531
- /** Additional fee's price before tax. */
1532
- priceBeforeTax?: MultiCurrencyPrice;
1533
- /**
1534
- * Optional - Line items associated with this additional fee.
1535
- * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
1536
- */
1537
- lineItemIds?: string[];
1538
- }
1539
- export interface ConversionInfo {
1540
- /**
1541
- * The site currency.
1542
- * @readonly
1543
- */
1544
- siteCurrency?: string;
1545
- /**
1546
- * The rate used when converting from the site currency to the checkout currency.
1547
- * @readonly
1548
- */
1549
- conversionRate?: string;
1550
- }
1551
- export interface Violation {
1552
- /** 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. */
1553
- severity?: Severity;
1554
- /** Target location on a checkout or cart page where the violation will be displayed. */
1555
- target?: Target;
1556
- /** 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>`. */
1557
- description?: string | null;
1558
- }
1559
- export declare enum Severity {
1560
- /** The user is allowed to move forward in the flow. */
1561
- WARNING = "WARNING",
1562
- /**
1563
- * The user is blocked from moving forward in the flow.
1564
- * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
1565
- */
1566
- ERROR = "ERROR"
1567
- }
1568
- export interface Target extends TargetTargetTypeOneOf {
1569
- /** General (other) violation. */
1570
- other?: Other;
1571
- /** Specific line item violation. */
1572
- lineItem?: TargetLineItem;
1573
- }
1574
- /** @oneof */
1575
- export interface TargetTargetTypeOneOf {
1576
- /** General (other) violation. */
1577
- other?: Other;
1578
- /** Specific line item violation. */
1579
- lineItem?: TargetLineItem;
1580
- }
1581
- /** Available locations on the webpage */
1582
- export declare enum NameInOther {
1583
- /** default location, in case no specific location is specified */
1584
- OTHER_DEFAULT = "OTHER_DEFAULT"
1585
- }
1586
- /** Available locations on the line item */
1587
- export declare enum NameInLineItem {
1588
- /** default location, in case no specific location is specified */
1589
- LINE_ITEM_DEFAULT = "LINE_ITEM_DEFAULT"
1590
- }
1591
- /** General (other) violation. */
1592
- export interface Other {
1593
- /** Location on a checkout or a cart page where a general (other) violation will be displayed. */
1594
- name?: NameInOther;
1595
- }
1596
- /** Specific line item violation. */
1597
- export interface TargetLineItem {
1598
- /** Location on a checkout or a cart page where the specific line item violation will be displayed. */
1599
- name?: NameInLineItem;
1600
- /** ID of the line item containing the violation. */
1601
- _id?: string | null;
1602
- }
1603
- export interface ExtendedFields {
1604
- /**
1605
- * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
1606
- * The value of each key is structured according to the schema defined when the extended fields were configured.
1607
- *
1608
- * You can only access fields for which you have the appropriate permissions.
1609
- *
1610
- * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
1611
- */
1612
- namespaces?: Record<string, Record<string, any>>;
1613
- }
1614
- export interface CustomSettings {
1615
- /**
1616
- * Whether to restrict the option to add or remove a gift card on the checkout page.
1617
- *
1618
- * Default: `false`
1619
- */
1620
- lockGiftCard?: boolean;
1621
- /**
1622
- * Whether to restrict the option to add or remove a coupon code on the checkout page.
1623
- *
1624
- * Default: `false`
1625
- */
1626
- lockCouponCode?: boolean;
1627
- }
1628
- export interface CreateAndRedirectToCheckoutRequest {
1629
- /** ID of the checkout template to use to create a checkout. */
1630
- checkoutTemplateId?: string;
1631
- /** ID of the site associated with the checkout template. */
1632
- siteId?: string;
1633
- }
1634
- export interface RawHttpResponse {
1635
- body?: Uint8Array;
1636
- statusCode?: number | null;
1637
- headers?: HeadersEntry[];
1638
- }
1639
- export interface HeadersEntry {
1640
- key?: string;
1641
- value?: string;
1642
- }
1643
- export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
1644
- createdEvent?: EntityCreatedEvent<T>;
1645
- updatedEvent?: EntityUpdatedEvent<T>;
1646
- deletedEvent?: EntityDeletedEvent<T>;
1647
- actionEvent?: ActionEvent<T>;
1648
- /**
1649
- * Unique event ID.
1650
- * Allows clients to ignore duplicate webhooks.
1651
- */
1652
- _id?: string;
1653
- /**
1654
- * Assumes actions are also always typed to an entity_type
1655
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1656
- */
1657
- entityFqdn?: string;
1658
- /**
1659
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1660
- * This is although the created/updated/deleted notion is duplication of the oneof types
1661
- * Example: created/updated/deleted/started/completed/email_opened
1662
- */
1663
- slug?: string;
1664
- /** ID of the entity associated with the event. */
1665
- entityId?: string;
1666
- /** Event timestamp. */
1667
- eventTime?: Date;
1668
- /**
1669
- * Whether the event was triggered as a result of a privacy regulation application
1670
- * (for example, GDPR).
1671
- */
1672
- triggeredByAnonymizeRequest?: boolean | null;
1673
- /** If present, indicates the action that triggered the event. */
1674
- originatedFrom?: string | null;
1675
- /**
1676
- * A sequence number defining the order of updates to the underlying entity.
1677
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
1678
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1679
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1680
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
1681
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1682
- */
1683
- entityEventSequence?: string | null;
1684
- }
1685
- export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
1686
- }
1687
- export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
1688
- }
1689
- export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
1690
- }
1691
- export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
1692
- }
1693
- /** @oneof */
1694
- export interface DomainEventBodyOneOf<T> {
1695
- createdEvent?: EntityCreatedEvent<T>;
1696
- updatedEvent?: EntityUpdatedEvent<T>;
1697
- deletedEvent?: EntityDeletedEvent<T>;
1698
- actionEvent?: ActionEvent<T>;
1699
- }
1700
- export interface EntityCreatedEvent<T> {
1701
- entity?: T;
1702
- }
1703
- export interface EntityUpdatedEvent<T> {
1704
- /**
1705
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1706
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1707
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1708
- */
1709
- currentEntity?: T;
1710
- }
1711
- export interface EntityDeletedEvent<T> {
1712
- /** Entity that was deleted */
1713
- deletedEntity?: T | null;
1714
- }
1715
- export interface ActionEvent<T> {
1716
- body?: T;
1717
- }
1718
- export interface CreateCheckoutTemplateResponseNonNullableFields {
1719
- checkoutTemplate?: {
1720
- status: Status;
1721
- lineItems: {
1722
- quantity: number;
1723
- catalogReference?: {
1724
- catalogItemId: string;
1725
- appId: string;
1726
- };
1727
- }[];
1728
- };
1729
- }
1730
- export interface GetCheckoutTemplateResponseNonNullableFields {
1731
- checkoutTemplate?: {
1732
- status: Status;
1733
- lineItems: {
1734
- quantity: number;
1735
- catalogReference?: {
1736
- catalogItemId: string;
1737
- appId: string;
1738
- };
1739
- }[];
1740
- };
1741
- }
1742
- export interface UpdateCheckoutTemplateResponseNonNullableFields {
1743
- checkoutTemplate?: {
1744
- status: Status;
1745
- lineItems: {
1746
- quantity: number;
1747
- catalogReference?: {
1748
- catalogItemId: string;
1749
- appId: string;
1750
- };
1751
- }[];
1752
- };
1753
- }
1754
- export interface QueryCheckoutTemplatesResponseNonNullableFields {
1755
- checkoutTemplates: {
1756
- status: Status;
1757
- lineItems: {
1758
- quantity: number;
1759
- catalogReference?: {
1760
- catalogItemId: string;
1761
- appId: string;
1762
- };
1763
- }[];
1764
- }[];
1765
- }
1766
- export interface CreateCheckoutFromTemplateResponseNonNullableFields {
1767
- checkoutId: string;
1768
- checkoutUrl: string;
1769
- }
1770
- export declare const onCheckoutTemplateCreated: EventDefinition<DomainCreatedEvent<CheckoutTemplate>, "wix.ecom.v1.checkout_template_created">;
1771
- export declare const onCheckoutTemplateUpdated: EventDefinition<DomainUpdatedEvent<CheckoutTemplate>, "wix.ecom.v1.checkout_template_updated">;
1772
- export declare const onCheckoutTemplateDeleted: EventDefinition<DomainDeletedEvent<CheckoutTemplate>, "wix.ecom.v1.checkout_template_deleted">;
1773
- export declare const onCheckoutTemplateUsed: EventDefinition<DomainActionEvent<CheckoutTemplateUsed>, "wix.ecom.v1.checkout_template_used">;
1774
- /**
1775
- * Creates a checkout template.
1776
- *
1777
- * A checkout template is used to create a new checkout that will include predefined information. For example, a single link with
1778
- * a `checkoutTemplateId` can be shared with customers and each time the link is clicked, a new checkout page will be created
1779
- * for that customer with certain checkout information already populated.
1780
- *
1781
- * The customizable features include the option to allow or to lock coupon codes or gift cards. For example, if a store owner is
1782
- * using the checkout template to offer a flash sale to their social media followers, they may want to lock the option to apply an
1783
- * additional coupon on top of the sale being offered. If so, they can set `customization.applyCouponLocked` to `true`.
1784
- *
1785
- * A checkout can be created with a checkout template by calling `createCheckoutFromTemplate()`. The site may add further customizations to the new checkout and then redirect the customer using the new checkout's `checkoutUrl`.
1786
- * @param checkoutTemplate - Checkout template to create.
1787
- * @public
1788
- * @documentationMaturity preview
1789
- * @requiredField checkoutTemplate
1790
- * @requiredField checkoutTemplate.lineItems.catalogReference
1791
- * @requiredField checkoutTemplate.lineItems.catalogReference.appId
1792
- * @requiredField checkoutTemplate.lineItems.catalogReference.catalogItemId
1793
- * @requiredField checkoutTemplate.lineItems.quantity
1794
- * @permissionScope Manage Stores - all permissions
1795
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1796
- * @permissionScope Manage eCommerce - all permissions
1797
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1798
- * @applicableIdentity APP
1799
- * @returns Created checkout template.
1800
- */
1801
- export declare function createCheckoutTemplate(checkoutTemplate: CheckoutTemplate): Promise<CheckoutTemplate & NonNullable<CreateCheckoutTemplateResponseNonNullableFields>['checkoutTemplate']>;
1802
- /**
1803
- * Retrieves a checkout template.
1804
- * @param checkoutTemplateId - ID of the checkout template to retrieve.
1805
- * @public
1806
- * @documentationMaturity preview
1807
- * @requiredField checkoutTemplateId
1808
- * @permissionScope Manage Stores - all permissions
1809
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1810
- * @permissionScope Manage eCommerce - all permissions
1811
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1812
- * @applicableIdentity APP
1813
- * @returns Retrieved checkout template.
1814
- */
1815
- export declare function getCheckoutTemplate(checkoutTemplateId: string): Promise<CheckoutTemplate & NonNullable<GetCheckoutTemplateResponseNonNullableFields>['checkoutTemplate']>;
1816
- /**
1817
- * Updates a checkout template.
1818
- *
1819
- * If the info in a checkout template is updated, only new checkouts created from this template will include the updated items. Checkouts previously
1820
- * created from this template before the update will not be affected.
1821
- * @param _id - Checkout template ID.
1822
- * @public
1823
- * @documentationMaturity preview
1824
- * @requiredField _id
1825
- * @requiredField checkoutTemplate
1826
- * @param checkoutTemplate - Checkout template info to update.
1827
- * @permissionScope Manage Stores - all permissions
1828
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1829
- * @permissionScope Manage eCommerce - all permissions
1830
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1831
- * @applicableIdentity APP
1832
- * @returns Updated checkout template.
1833
- */
1834
- export declare function updateCheckoutTemplate(_id: string | null, checkoutTemplate: UpdateCheckoutTemplate): Promise<CheckoutTemplate & NonNullable<UpdateCheckoutTemplateResponseNonNullableFields>['checkoutTemplate']>;
1835
- export interface UpdateCheckoutTemplate {
1836
- /**
1837
- * Checkout template ID.
1838
- * @readonly
1839
- */
1840
- _id?: string | null;
1841
- /**
1842
- * Status of the checkout template.
1843
- *
1844
- * When `status` is `INACTIVE` checkouts will not be created with this template `_id`. Instead, the function will redirect to the domain site.
1845
- *
1846
- * Default: `ACTIVE`
1847
- */
1848
- status?: Status;
1849
- /** Custom settings to apply to the checkout page created from this template. */
1850
- customization?: CheckoutCustomization;
1851
- /**
1852
- * Line items.
1853
- *
1854
- * Max: 300 items
1855
- */
1856
- lineItems?: V1LineItem[];
1857
- /**
1858
- * Coupon code.
1859
- *
1860
- * Note that a checkout can only hold one `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.
1861
- * For additional information, see the Coupons API.
1862
- */
1863
- couponCode?: string | null;
1864
- }
1865
- /**
1866
- * Deletes a checkout template.
1867
- *
1868
- * If a checkout template is deleted and a customer attempts to create a checkout with that `checkoutTemplateId` then
1869
- * the customer will be redirected to the domain site.
1870
- * @param checkoutTemplateId - ID of the checkout template to delete.
1871
- * @public
1872
- * @documentationMaturity preview
1873
- * @requiredField checkoutTemplateId
1874
- * @permissionScope Manage Stores - all permissions
1875
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1876
- * @permissionScope Manage eCommerce - all permissions
1877
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1878
- * @applicableIdentity APP
1879
- */
1880
- export declare function deleteCheckoutTemplate(checkoutTemplateId: string): Promise<void>;
1881
- /**
1882
- * Creates a query to retrieve a list of checkout templates.
1883
- *
1884
- * The `queryCheckoutTemplates()` function builds a query to retrieve a list of checkout templates and returns a `CheckoutTemplatesQueryBuilder` object.
1885
- *
1886
- * The returned object contains the query definition, which is typically used to run the query using the `find()` function.
1887
- *
1888
- * You can refine the query by chaining `CheckoutTemplatesQueryBuilder` functions onto the query. `CheckoutTemplatesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCheckoutTemplates()` returns.
1889
- *
1890
- * `queryCheckoutTemplates()` runs with the following `CheckoutTemplatesQueryBuilder` default that you can override:
1891
- * + `ascending("_id")`
1892
- *
1893
- * The functions that are chained to `queryCheckoutTemplates()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("_id")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"_id"`.
1894
- *
1895
- * The following `CheckoutTemplatesQueryBuilder` functions are supported for the `queryCheckoutTemplates()` function. For a full description of the checkout template object, see the object returned for the `items` property in `CheckoutTemplatesQueryResult`.
1896
- * @public
1897
- * @documentationMaturity preview
1898
- * @permissionScope Manage Stores - all permissions
1899
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1900
- * @permissionScope Manage eCommerce - all permissions
1901
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1902
- * @applicableIdentity APP
1903
- */
1904
- export declare function queryCheckoutTemplates(): CheckoutTemplatesQueryBuilder;
1905
- interface QueryCursorResult {
1906
- cursors: Cursors;
1907
- hasNext: () => boolean;
1908
- hasPrev: () => boolean;
1909
- length: number;
1910
- pageSize: number;
1911
- }
1912
- export interface CheckoutTemplatesQueryResult extends QueryCursorResult {
1913
- items: CheckoutTemplate[];
1914
- query: CheckoutTemplatesQueryBuilder;
1915
- next: () => Promise<CheckoutTemplatesQueryResult>;
1916
- prev: () => Promise<CheckoutTemplatesQueryResult>;
1917
- }
1918
- export interface CheckoutTemplatesQueryBuilder {
1919
- /** @param propertyName - Property whose value is compared with `value`.
1920
- * @param value - Value to compare against.
1921
- * @documentationMaturity preview
1922
- */
1923
- eq: (propertyName: '_id' | 'status', value: any) => CheckoutTemplatesQueryBuilder;
1924
- /** @param propertyName - Property whose value is compared with `value`.
1925
- * @param value - Value to compare against.
1926
- * @documentationMaturity preview
1927
- */
1928
- ne: (propertyName: '_id' | 'status', value: any) => CheckoutTemplatesQueryBuilder;
1929
- /** @param propertyName - Property whose value is compared with `string`.
1930
- * @param string - String to compare against. Case-insensitive.
1931
- * @documentationMaturity preview
1932
- */
1933
- startsWith: (propertyName: '_id', value: string) => CheckoutTemplatesQueryBuilder;
1934
- /** @param propertyName - Property whose value is compared with `values`.
1935
- * @param values - List of values to compare against.
1936
- * @documentationMaturity preview
1937
- */
1938
- hasSome: (propertyName: '_id' | 'status', value: any[]) => CheckoutTemplatesQueryBuilder;
1939
- /** @documentationMaturity preview */
1940
- in: (propertyName: '_id' | 'status', value: any) => CheckoutTemplatesQueryBuilder;
1941
- /** @documentationMaturity preview */
1942
- exists: (propertyName: '_id' | 'status', value: boolean) => CheckoutTemplatesQueryBuilder;
1943
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1944
- * @documentationMaturity preview
1945
- */
1946
- ascending: (...propertyNames: Array<'_id' | 'status'>) => CheckoutTemplatesQueryBuilder;
1947
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
1948
- * @documentationMaturity preview
1949
- */
1950
- descending: (...propertyNames: Array<'_id' | 'status'>) => CheckoutTemplatesQueryBuilder;
1951
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1952
- * @documentationMaturity preview
1953
- */
1954
- limit: (limit: number) => CheckoutTemplatesQueryBuilder;
1955
- /** @param cursor - A pointer to specific record
1956
- * @documentationMaturity preview
1957
- */
1958
- skipTo: (cursor: string) => CheckoutTemplatesQueryBuilder;
1959
- /** @documentationMaturity preview */
1960
- find: () => Promise<CheckoutTemplatesQueryResult>;
1961
- }
1962
- /**
1963
- * Creates a new checkout based on the checkout template.
1964
- *
1965
- * Before using this function, you must have a checkout template available. Create a checkout template with `createCheckoutTemplate()`.
1966
- *
1967
- * The customer can be directed to the new checkout using the checkout's `checkoutUrl`.
1968
- * @param checkoutTemplateId - ID of the checkout template to use to create a checkout from.
1969
- * @param siteId - ID of the site associated with the checkout template.
1970
- * @public
1971
- * @documentationMaturity preview
1972
- * @requiredField checkoutTemplateId
1973
- * @requiredField siteId
1974
- * @permissionScope Manage Stores - all permissions
1975
- * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES
1976
- * @permissionScope Manage eCommerce - all permissions
1977
- * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM
1978
- * @applicableIdentity APP
1979
- * @applicableIdentity MEMBER
1980
- * @applicableIdentity VISITOR
1981
- */
1982
- export declare function createCheckoutFromTemplate(checkoutTemplateId: string, siteId: string): Promise<CreateCheckoutFromTemplateResponse & CreateCheckoutFromTemplateResponseNonNullableFields>;
1983
- export {};