@pisell/pisellos 0.0.568 → 0.0.570

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 (455) hide show
  1. package/dist/effects/index.d.ts +2 -2
  2. package/dist/model/strategy/adapter/dataVariant/type.d.ts +3 -3
  3. package/dist/model/strategy/adapter/itemRule/type.d.ts +6 -6
  4. package/dist/model/strategy/adapter/promotion/evaluator.js +3 -2
  5. package/dist/model/strategy/adapter/promotion/type.d.ts +5 -5
  6. package/dist/model/strategy/adapter/walletPass/utils.js +7 -4
  7. package/dist/model/strategy/type.d.ts +1 -1
  8. package/dist/modules/BaseModule.d.ts +2 -2
  9. package/dist/modules/BaseModule.js +4 -4
  10. package/dist/modules/BookingContext/index.d.ts +48 -0
  11. package/dist/modules/BookingContext/index.js +566 -0
  12. package/dist/modules/BookingContext/types.d.ts +102 -0
  13. package/dist/modules/BookingContext/types.js +51 -0
  14. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +16 -0
  15. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +302 -0
  16. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +8 -0
  17. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +149 -0
  18. package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +76 -0
  19. package/dist/modules/BookingContext/utils/cacheItemToBookingInput.js +249 -0
  20. package/dist/modules/BookingContext/utils/flexible.d.ts +28 -0
  21. package/dist/modules/BookingContext/utils/flexible.js +56 -0
  22. package/dist/modules/BookingContext/utils/formatResourceList.d.ts +8 -0
  23. package/dist/modules/BookingContext/utils/formatResourceList.js +38 -0
  24. package/dist/modules/BookingContext/utils/index.d.ts +11 -0
  25. package/dist/modules/BookingContext/utils/index.js +11 -0
  26. package/dist/modules/BookingContext/utils/noResource.d.ts +13 -0
  27. package/dist/modules/BookingContext/utils/noResource.js +77 -0
  28. package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts +1 -0
  29. package/dist/modules/BookingContext/utils/orderLineDisplay.js +36 -0
  30. package/dist/modules/BookingContext/utils/productExtend.d.ts +72 -0
  31. package/dist/modules/BookingContext/utils/productExtend.js +339 -0
  32. package/dist/modules/BookingContext/utils/resourceErrors.d.ts +41 -0
  33. package/dist/modules/BookingContext/utils/resourceErrors.js +74 -0
  34. package/dist/modules/BookingContext/utils/resourceSelection.d.ts +7 -0
  35. package/dist/modules/BookingContext/utils/resourceSelection.js +24 -0
  36. package/dist/modules/BookingContext/utils/resources.d.ts +80 -0
  37. package/dist/modules/BookingContext/utils/resources.js +486 -0
  38. package/dist/modules/BookingContext/utils/serviceTimes.d.ts +55 -0
  39. package/dist/modules/BookingContext/utils/serviceTimes.js +151 -0
  40. package/dist/modules/BookingContext/utils/timeSlices.d.ts +42 -0
  41. package/dist/modules/BookingContext/utils/timeSlices.js +100 -0
  42. package/dist/modules/Cart/utils/cartProduct.js +26 -5
  43. package/dist/modules/Cart/utils/changePrice.js +27 -20
  44. package/dist/modules/Customer/index.d.ts +20 -0
  45. package/dist/modules/Customer/index.js +172 -83
  46. package/dist/modules/Customer/types.d.ts +3 -1
  47. package/dist/modules/Discount/index.d.ts +2 -1
  48. package/dist/modules/Discount/index.js +37 -9
  49. package/dist/modules/Discount/types.d.ts +2 -1
  50. package/dist/modules/Holder/types.d.ts +1 -1
  51. package/dist/modules/OpenData/index.d.ts +8 -0
  52. package/dist/modules/OpenData/index.js +36 -16
  53. package/dist/modules/OpenData/types.d.ts +1 -1
  54. package/dist/modules/Order/index.d.ts +448 -23
  55. package/dist/modules/Order/index.js +5417 -561
  56. package/dist/modules/Order/types.d.ts +693 -88
  57. package/dist/modules/Order/types.js +68 -1
  58. package/dist/modules/Order/utils/bundleDiscountHydration.d.ts +5 -0
  59. package/dist/modules/Order/utils/bundleDiscountHydration.js +144 -0
  60. package/dist/modules/Order/utils/manualProductDiscount.d.ts +106 -0
  61. package/dist/modules/Order/utils/manualProductDiscount.js +210 -0
  62. package/dist/modules/Order/utils/orderCollectionIdentity.d.ts +53 -0
  63. package/dist/modules/Order/utils/orderCollectionIdentity.js +405 -0
  64. package/dist/modules/Order/utils.d.ts +167 -18
  65. package/dist/modules/Order/utils.js +960 -165
  66. package/dist/modules/Payment/index.d.ts +10 -9
  67. package/dist/modules/Payment/index.js +465 -703
  68. package/dist/modules/Payment/types.d.ts +47 -23
  69. package/dist/modules/Payment/utils.d.ts +1 -1
  70. package/dist/modules/Payment/utils.js +4 -3
  71. package/dist/modules/Payment/walletpass.js +44 -29
  72. package/dist/modules/Product/index.d.ts +1 -1
  73. package/dist/modules/Product/types.d.ts +29 -7
  74. package/dist/modules/ProductList/index.d.ts +17 -13
  75. package/dist/modules/ProductList/index.js +184 -74
  76. package/dist/modules/ProductList/types.d.ts +17 -0
  77. package/dist/modules/Quotation/index.d.ts +22 -2
  78. package/dist/modules/Quotation/index.js +108 -42
  79. package/dist/modules/Quotation/types.d.ts +19 -0
  80. package/dist/modules/ResourcePlanner/index.d.ts +24 -0
  81. package/dist/modules/ResourcePlanner/index.js +181 -0
  82. package/dist/modules/ResourcePlanner/planner.d.ts +14 -0
  83. package/dist/modules/ResourcePlanner/planner.js +1069 -0
  84. package/dist/modules/ResourcePlanner/types.d.ts +227 -0
  85. package/dist/modules/ResourcePlanner/types.js +1 -0
  86. package/dist/modules/Rules/index.d.ts +8 -10
  87. package/dist/modules/Rules/index.js +222 -109
  88. package/dist/modules/Rules/types.d.ts +15 -4
  89. package/dist/modules/SalesSummary/index.d.ts +23 -26
  90. package/dist/modules/SalesSummary/index.js +152 -46
  91. package/dist/modules/SalesSummary/types.d.ts +9 -1
  92. package/dist/modules/SalesSummary/utils.d.ts +3 -22
  93. package/dist/modules/SalesSummary/utils.js +803 -163
  94. package/dist/modules/ScanOrderLogger/types.d.ts +2 -2
  95. package/dist/modules/Schedule/getDateIsInSchedule.d.ts +1 -1
  96. package/dist/modules/Schedule/getDateIsInSchedule.js +14 -7
  97. package/dist/modules/Schedule/index.d.ts +18 -5
  98. package/dist/modules/Schedule/index.js +78 -24
  99. package/dist/modules/Schedule/type.d.ts +7 -7
  100. package/dist/modules/Schedule/types.d.ts +11 -9
  101. package/dist/modules/Summary/index.js +4 -3
  102. package/dist/modules/SurchargeList/index.d.ts +18 -0
  103. package/dist/modules/SurchargeList/index.js +185 -0
  104. package/dist/modules/SurchargeList/types.d.ts +15 -0
  105. package/dist/modules/SurchargeList/types.js +1 -0
  106. package/dist/modules/index.d.ts +3 -0
  107. package/dist/modules/index.js +4 -1
  108. package/dist/plugins/app.d.ts +2 -0
  109. package/dist/plugins/request.d.ts +3 -2
  110. package/dist/server/index.d.ts +462 -8
  111. package/dist/server/index.js +6112 -656
  112. package/dist/server/modules/floor-plan/index.d.ts +39 -0
  113. package/dist/server/modules/floor-plan/index.js +595 -0
  114. package/dist/server/modules/floor-plan/types.d.ts +43 -0
  115. package/dist/server/modules/floor-plan/types.js +13 -0
  116. package/dist/server/modules/index.d.ts +7 -2
  117. package/dist/server/modules/index.js +6 -0
  118. package/dist/server/modules/menu/types.d.ts +1 -1
  119. package/dist/server/modules/order/index.d.ts +207 -14
  120. package/dist/server/modules/order/index.js +2326 -379
  121. package/dist/server/modules/order/types.d.ts +91 -20
  122. package/dist/server/modules/order/types.js +14 -1
  123. package/dist/server/modules/order/utils/filterBookings.d.ts +7 -1
  124. package/dist/server/modules/order/utils/filterBookings.js +118 -11
  125. package/dist/server/modules/order/utils/filterOrders.js +242 -14
  126. package/dist/server/modules/payment/index.d.ts +28 -0
  127. package/dist/server/modules/payment/index.js +305 -0
  128. package/dist/server/modules/payment/types.d.ts +9 -0
  129. package/dist/server/modules/payment/types.js +1 -0
  130. package/dist/server/modules/products/index.d.ts +105 -14
  131. package/dist/server/modules/products/index.js +1393 -516
  132. package/dist/server/modules/products/types.d.ts +35 -2
  133. package/dist/server/modules/products/types.js +4 -0
  134. package/dist/server/modules/quotation/index.d.ts +39 -0
  135. package/dist/server/modules/quotation/index.js +278 -66
  136. package/dist/server/modules/resource/index.d.ts +2 -3
  137. package/dist/server/modules/resource/index.js +108 -86
  138. package/dist/server/modules/resource/types.d.ts +1 -1
  139. package/dist/server/modules/schedule/index.d.ts +6 -4
  140. package/dist/server/modules/schedule/index.js +116 -85
  141. package/dist/server/modules/schedule/utils.d.ts +1 -1
  142. package/dist/server/test.json +713 -0
  143. package/dist/server/types.d.ts +6 -4
  144. package/dist/server/utils/product.js +2 -2
  145. package/dist/server/utils/small-ticket.d.ts +71 -0
  146. package/dist/server/utils/small-ticket.js +963 -0
  147. package/dist/solution/BaseSales/index.d.ts +378 -0
  148. package/dist/solution/BaseSales/index.js +4006 -0
  149. package/dist/solution/BaseSales/types.d.ts +394 -0
  150. package/dist/solution/BaseSales/types.js +40 -0
  151. package/dist/solution/BaseSales/utils/cartPromotion.d.ts +287 -0
  152. package/dist/solution/BaseSales/utils/cartPromotion.js +1450 -0
  153. package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts +144 -0
  154. package/dist/solution/BaseSales/utils/parseSalesResponse.js +157 -0
  155. package/dist/solution/BaseSales/utils/quotationPrice.d.ts +18 -0
  156. package/dist/solution/BaseSales/utils/quotationPrice.js +250 -0
  157. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +63 -0
  158. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +218 -0
  159. package/dist/solution/BaseSales/utils.d.ts +40 -0
  160. package/dist/solution/BaseSales/utils.js +263 -0
  161. package/dist/solution/BookingByStep/index.d.ts +2 -2
  162. package/dist/solution/BookingByStep/utils/resources.d.ts +1 -1
  163. package/dist/solution/BookingTicket/index.d.ts +382 -25
  164. package/dist/solution/BookingTicket/index.js +2506 -443
  165. package/dist/solution/BookingTicket/types.d.ts +191 -6
  166. package/dist/solution/BookingTicket/types.js +83 -10
  167. package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +117 -0
  168. package/dist/solution/BookingTicket/utils/addProductDecision.js +346 -0
  169. package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts +35 -0
  170. package/dist/solution/BookingTicket/utils/addTimeAvailability.js +95 -0
  171. package/dist/solution/BookingTicket/utils/bookingStatus.d.ts +77 -0
  172. package/dist/solution/BookingTicket/utils/bookingStatus.js +136 -0
  173. package/dist/solution/BookingTicket/utils/cartView.d.ts +29 -0
  174. package/dist/solution/BookingTicket/utils/cartView.js +209 -0
  175. package/dist/solution/BookingTicket/utils/exampleData.d.ts +123 -0
  176. package/dist/solution/BookingTicket/utils/exampleData.js +183 -0
  177. package/dist/solution/BookingTicket/utils/orderCustomer.d.ts +4 -0
  178. package/dist/solution/BookingTicket/utils/orderCustomer.js +31 -0
  179. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +185 -0
  180. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.js +438 -0
  181. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +36 -0
  182. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +400 -0
  183. package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts +4 -0
  184. package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +41 -1
  185. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +32 -0
  186. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.js +56 -0
  187. package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +3 -1
  188. package/dist/solution/BookingTicket/utils/scan/handleScan.js +11 -3
  189. package/dist/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  190. package/dist/solution/BookingTicket/utils/scan/index.js +20 -8
  191. package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts +21 -0
  192. package/dist/solution/BookingTicket/utils/scan/scanProductValues.js +150 -0
  193. package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts +23 -0
  194. package/dist/solution/BookingTicket/utils/sessionCatalogStale.js +78 -0
  195. package/dist/solution/Checkout/index.d.ts +1 -0
  196. package/dist/solution/Checkout/index.js +25 -34
  197. package/dist/solution/Checkout/utils/index.js +4 -4
  198. package/dist/solution/RegisterAndLogin/config.js +2 -10
  199. package/dist/solution/Sales/index.d.ts +50 -5
  200. package/dist/solution/Sales/index.js +484 -92
  201. package/dist/solution/Sales/types.d.ts +29 -5
  202. package/dist/solution/ScanOrder/index.d.ts +27 -21
  203. package/dist/solution/ScanOrder/index.js +499 -434
  204. package/dist/solution/ScanOrder/types.d.ts +38 -16
  205. package/dist/solution/ScanOrder/types.js +4 -5
  206. package/dist/solution/ScanOrder/utils.d.ts +4 -1
  207. package/dist/solution/ScanOrder/utils.js +109 -34
  208. package/dist/solution/ShopDiscount/index.js +4 -4
  209. package/dist/solution/ShopDiscount/types.d.ts +1 -1
  210. package/dist/solution/ShopDiscount/utils.d.ts +2 -2
  211. package/dist/solution/UnifiedBookingSales/index.d.ts +183 -0
  212. package/dist/solution/UnifiedBookingSales/index.js +1871 -0
  213. package/dist/solution/UnifiedBookingSales/types.d.ts +143 -0
  214. package/dist/solution/UnifiedBookingSales/types.js +11 -0
  215. package/dist/solution/VenueBooking/index.d.ts +29 -20
  216. package/dist/solution/VenueBooking/index.js +301 -213
  217. package/dist/solution/VenueBooking/sales-section-4-annotated.json +0 -2
  218. package/dist/solution/VenueBooking/types.d.ts +1 -1
  219. package/dist/solution/VenueBooking/utils/slotMerge.d.ts +6 -0
  220. package/dist/solution/VenueBooking/utils/slotMerge.js +9 -3
  221. package/dist/solution/index.d.ts +2 -0
  222. package/dist/solution/index.js +3 -1
  223. package/dist/types/index.d.ts +12 -2
  224. package/dist/utils/task.d.ts +2 -2
  225. package/dist/utils/watch.d.ts +2 -2
  226. package/lib/effects/index.d.ts +2 -2
  227. package/lib/model/strategy/adapter/dataVariant/type.d.ts +3 -3
  228. package/lib/model/strategy/adapter/itemRule/type.d.ts +6 -6
  229. package/lib/model/strategy/adapter/promotion/evaluator.js +3 -2
  230. package/lib/model/strategy/adapter/promotion/type.d.ts +5 -5
  231. package/lib/model/strategy/adapter/walletPass/utils.js +6 -4
  232. package/lib/model/strategy/type.d.ts +1 -1
  233. package/lib/modules/BaseModule.d.ts +2 -2
  234. package/lib/modules/BaseModule.js +4 -4
  235. package/lib/modules/BookingContext/index.d.ts +48 -0
  236. package/lib/modules/BookingContext/index.js +390 -0
  237. package/lib/modules/BookingContext/types.d.ts +102 -0
  238. package/lib/modules/BookingContext/types.js +48 -0
  239. package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +16 -0
  240. package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +286 -0
  241. package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +8 -0
  242. package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +148 -0
  243. package/lib/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +76 -0
  244. package/lib/modules/BookingContext/utils/cacheItemToBookingInput.js +242 -0
  245. package/lib/modules/BookingContext/utils/flexible.d.ts +28 -0
  246. package/lib/modules/BookingContext/utils/flexible.js +63 -0
  247. package/lib/modules/BookingContext/utils/formatResourceList.d.ts +8 -0
  248. package/lib/modules/BookingContext/utils/formatResourceList.js +35 -0
  249. package/lib/modules/BookingContext/utils/index.d.ts +11 -0
  250. package/lib/modules/BookingContext/utils/index.js +126 -0
  251. package/lib/modules/BookingContext/utils/noResource.d.ts +13 -0
  252. package/lib/modules/BookingContext/utils/noResource.js +78 -0
  253. package/lib/modules/BookingContext/utils/orderLineDisplay.d.ts +1 -0
  254. package/lib/modules/BookingContext/utils/orderLineDisplay.js +29 -0
  255. package/lib/modules/BookingContext/utils/productExtend.d.ts +72 -0
  256. package/lib/modules/BookingContext/utils/productExtend.js +330 -0
  257. package/lib/modules/BookingContext/utils/resourceErrors.d.ts +41 -0
  258. package/lib/modules/BookingContext/utils/resourceErrors.js +80 -0
  259. package/lib/modules/BookingContext/utils/resourceSelection.d.ts +7 -0
  260. package/lib/modules/BookingContext/utils/resourceSelection.js +24 -0
  261. package/lib/modules/BookingContext/utils/resources.d.ts +80 -0
  262. package/lib/modules/BookingContext/utils/resources.js +419 -0
  263. package/lib/modules/BookingContext/utils/serviceTimes.d.ts +55 -0
  264. package/lib/modules/BookingContext/utils/serviceTimes.js +161 -0
  265. package/lib/modules/BookingContext/utils/timeSlices.d.ts +42 -0
  266. package/lib/modules/BookingContext/utils/timeSlices.js +114 -0
  267. package/lib/modules/Cart/utils/cartProduct.js +27 -5
  268. package/lib/modules/Cart/utils/changePrice.js +20 -14
  269. package/lib/modules/Customer/index.d.ts +20 -0
  270. package/lib/modules/Customer/index.js +63 -10
  271. package/lib/modules/Customer/types.d.ts +3 -1
  272. package/lib/modules/Discount/index.d.ts +2 -1
  273. package/lib/modules/Discount/index.js +18 -2
  274. package/lib/modules/Discount/types.d.ts +2 -1
  275. package/lib/modules/Holder/types.d.ts +1 -1
  276. package/lib/modules/OpenData/index.d.ts +8 -0
  277. package/lib/modules/OpenData/index.js +21 -3
  278. package/lib/modules/OpenData/types.d.ts +1 -1
  279. package/lib/modules/Order/index.d.ts +448 -23
  280. package/lib/modules/Order/index.js +3641 -308
  281. package/lib/modules/Order/types.d.ts +693 -88
  282. package/lib/modules/Order/types.js +55 -1
  283. package/lib/modules/Order/utils/bundleDiscountHydration.d.ts +5 -0
  284. package/lib/modules/Order/utils/bundleDiscountHydration.js +106 -0
  285. package/lib/modules/Order/utils/manualProductDiscount.d.ts +106 -0
  286. package/lib/modules/Order/utils/manualProductDiscount.js +207 -0
  287. package/lib/modules/Order/utils/orderCollectionIdentity.d.ts +53 -0
  288. package/lib/modules/Order/utils/orderCollectionIdentity.js +353 -0
  289. package/lib/modules/Order/utils.d.ts +167 -18
  290. package/lib/modules/Order/utils.js +974 -138
  291. package/lib/modules/Payment/index.d.ts +10 -9
  292. package/lib/modules/Payment/index.js +30 -124
  293. package/lib/modules/Payment/types.d.ts +47 -23
  294. package/lib/modules/Payment/utils.d.ts +1 -1
  295. package/lib/modules/Payment/utils.js +4 -3
  296. package/lib/modules/Payment/walletpass.js +16 -6
  297. package/lib/modules/Product/index.d.ts +1 -1
  298. package/lib/modules/Product/types.d.ts +29 -7
  299. package/lib/modules/ProductList/index.d.ts +17 -13
  300. package/lib/modules/ProductList/index.js +92 -51
  301. package/lib/modules/ProductList/types.d.ts +17 -0
  302. package/lib/modules/Quotation/index.d.ts +22 -2
  303. package/lib/modules/Quotation/index.js +76 -20
  304. package/lib/modules/Quotation/types.d.ts +19 -0
  305. package/lib/modules/ResourcePlanner/index.d.ts +24 -0
  306. package/lib/modules/ResourcePlanner/index.js +147 -0
  307. package/lib/modules/ResourcePlanner/planner.d.ts +14 -0
  308. package/lib/modules/ResourcePlanner/planner.js +895 -0
  309. package/lib/modules/ResourcePlanner/types.d.ts +227 -0
  310. package/lib/modules/ResourcePlanner/types.js +5 -0
  311. package/lib/modules/Rules/index.d.ts +8 -10
  312. package/lib/modules/Rules/index.js +153 -61
  313. package/lib/modules/Rules/types.d.ts +15 -4
  314. package/lib/modules/SalesSummary/index.d.ts +23 -26
  315. package/lib/modules/SalesSummary/index.js +84 -16
  316. package/lib/modules/SalesSummary/types.d.ts +9 -1
  317. package/lib/modules/SalesSummary/utils.d.ts +3 -22
  318. package/lib/modules/SalesSummary/utils.js +616 -111
  319. package/lib/modules/ScanOrderLogger/types.d.ts +2 -2
  320. package/lib/modules/Schedule/getDateIsInSchedule.d.ts +1 -1
  321. package/lib/modules/Schedule/getDateIsInSchedule.js +14 -7
  322. package/lib/modules/Schedule/index.d.ts +18 -5
  323. package/lib/modules/Schedule/index.js +49 -14
  324. package/lib/modules/Schedule/type.d.ts +7 -7
  325. package/lib/modules/Schedule/types.d.ts +11 -9
  326. package/lib/modules/Summary/index.js +2 -2
  327. package/lib/modules/SurchargeList/index.d.ts +18 -0
  328. package/lib/modules/SurchargeList/index.js +95 -0
  329. package/lib/modules/SurchargeList/types.d.ts +15 -0
  330. package/lib/modules/SurchargeList/types.js +5 -0
  331. package/lib/modules/index.d.ts +3 -0
  332. package/lib/modules/index.js +33 -0
  333. package/lib/plugins/app.d.ts +2 -0
  334. package/lib/plugins/request.d.ts +3 -2
  335. package/lib/server/index.d.ts +462 -8
  336. package/lib/server/index.js +3901 -205
  337. package/lib/server/modules/floor-plan/index.d.ts +39 -0
  338. package/lib/server/modules/floor-plan/index.js +306 -0
  339. package/lib/server/modules/floor-plan/types.d.ts +43 -0
  340. package/lib/server/modules/floor-plan/types.js +19 -0
  341. package/lib/server/modules/index.d.ts +7 -2
  342. package/lib/server/modules/index.js +21 -0
  343. package/lib/server/modules/menu/types.d.ts +1 -1
  344. package/lib/server/modules/order/index.d.ts +207 -14
  345. package/lib/server/modules/order/index.js +1324 -141
  346. package/lib/server/modules/order/types.d.ts +91 -20
  347. package/lib/server/modules/order/types.js +11 -1
  348. package/lib/server/modules/order/utils/filterBookings.d.ts +7 -1
  349. package/lib/server/modules/order/utils/filterBookings.js +119 -11
  350. package/lib/server/modules/order/utils/filterOrders.js +238 -13
  351. package/lib/server/modules/payment/index.d.ts +28 -0
  352. package/lib/server/modules/payment/index.js +168 -0
  353. package/lib/server/modules/payment/types.d.ts +9 -0
  354. package/lib/server/modules/payment/types.js +5 -0
  355. package/lib/server/modules/products/index.d.ts +105 -14
  356. package/lib/server/modules/products/index.js +588 -97
  357. package/lib/server/modules/products/types.d.ts +35 -2
  358. package/lib/server/modules/products/types.js +3 -0
  359. package/lib/server/modules/quotation/index.d.ts +39 -0
  360. package/lib/server/modules/quotation/index.js +145 -1
  361. package/lib/server/modules/resource/index.d.ts +2 -3
  362. package/lib/server/modules/resource/index.js +71 -45
  363. package/lib/server/modules/resource/types.d.ts +1 -1
  364. package/lib/server/modules/schedule/index.d.ts +6 -4
  365. package/lib/server/modules/schedule/index.js +55 -44
  366. package/lib/server/modules/schedule/utils.d.ts +1 -1
  367. package/lib/server/test.json +713 -0
  368. package/lib/server/types.d.ts +6 -4
  369. package/lib/server/utils/product.js +2 -2
  370. package/lib/server/utils/small-ticket.d.ts +71 -0
  371. package/lib/server/utils/small-ticket.js +926 -0
  372. package/lib/solution/BaseSales/index.d.ts +378 -0
  373. package/lib/solution/BaseSales/index.js +2367 -0
  374. package/lib/solution/BaseSales/types.d.ts +394 -0
  375. package/lib/solution/BaseSales/types.js +47 -0
  376. package/lib/solution/BaseSales/utils/cartPromotion.d.ts +287 -0
  377. package/lib/solution/BaseSales/utils/cartPromotion.js +1155 -0
  378. package/lib/solution/BaseSales/utils/parseSalesResponse.d.ts +144 -0
  379. package/lib/solution/BaseSales/utils/parseSalesResponse.js +140 -0
  380. package/lib/solution/BaseSales/utils/quotationPrice.d.ts +18 -0
  381. package/lib/solution/BaseSales/utils/quotationPrice.js +231 -0
  382. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +63 -0
  383. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +215 -0
  384. package/lib/solution/BaseSales/utils.d.ts +40 -0
  385. package/lib/solution/BaseSales/utils.js +259 -0
  386. package/lib/solution/BookingByStep/index.d.ts +2 -2
  387. package/lib/solution/BookingByStep/utils/resources.d.ts +1 -1
  388. package/lib/solution/BookingTicket/index.d.ts +382 -25
  389. package/lib/solution/BookingTicket/index.js +1350 -76
  390. package/lib/solution/BookingTicket/types.d.ts +191 -6
  391. package/lib/solution/BookingTicket/types.js +71 -10
  392. package/lib/solution/BookingTicket/utils/addProductDecision.d.ts +117 -0
  393. package/lib/solution/BookingTicket/utils/addProductDecision.js +353 -0
  394. package/lib/solution/BookingTicket/utils/addTimeAvailability.d.ts +35 -0
  395. package/lib/solution/BookingTicket/utils/addTimeAvailability.js +94 -0
  396. package/lib/solution/BookingTicket/utils/bookingStatus.d.ts +77 -0
  397. package/lib/solution/BookingTicket/utils/bookingStatus.js +136 -0
  398. package/lib/solution/BookingTicket/utils/cartView.d.ts +29 -0
  399. package/lib/solution/BookingTicket/utils/cartView.js +200 -0
  400. package/lib/solution/BookingTicket/utils/exampleData.d.ts +123 -0
  401. package/lib/solution/BookingTicket/utils/exampleData.js +185 -0
  402. package/lib/solution/BookingTicket/utils/orderCustomer.d.ts +4 -0
  403. package/lib/solution/BookingTicket/utils/orderCustomer.js +35 -0
  404. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +185 -0
  405. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.js +387 -0
  406. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +36 -0
  407. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +220 -0
  408. package/lib/solution/BookingTicket/utils/scan/cloudSearch.d.ts +4 -0
  409. package/lib/solution/BookingTicket/utils/scan/cloudSearch.js +24 -3
  410. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +32 -0
  411. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.js +64 -0
  412. package/lib/solution/BookingTicket/utils/scan/handleScan.d.ts +3 -1
  413. package/lib/solution/BookingTicket/utils/scan/handleScan.js +4 -2
  414. package/lib/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  415. package/lib/solution/BookingTicket/utils/scan/index.js +14 -2
  416. package/lib/solution/BookingTicket/utils/scan/scanProductValues.d.ts +21 -0
  417. package/lib/solution/BookingTicket/utils/scan/scanProductValues.js +115 -0
  418. package/lib/solution/BookingTicket/utils/sessionCatalogStale.d.ts +23 -0
  419. package/lib/solution/BookingTicket/utils/sessionCatalogStale.js +83 -0
  420. package/lib/solution/Checkout/index.d.ts +1 -0
  421. package/lib/solution/Checkout/index.js +18 -19
  422. package/lib/solution/Checkout/utils/index.js +4 -4
  423. package/lib/solution/RegisterAndLogin/config.js +2 -10
  424. package/lib/solution/Sales/index.d.ts +50 -5
  425. package/lib/solution/Sales/index.js +296 -39
  426. package/lib/solution/Sales/types.d.ts +29 -5
  427. package/lib/solution/ScanOrder/index.d.ts +27 -21
  428. package/lib/solution/ScanOrder/index.js +144 -103
  429. package/lib/solution/ScanOrder/types.d.ts +38 -16
  430. package/lib/solution/ScanOrder/types.js +4 -5
  431. package/lib/solution/ScanOrder/utils.d.ts +4 -1
  432. package/lib/solution/ScanOrder/utils.js +98 -26
  433. package/lib/solution/ShopDiscount/index.js +3 -3
  434. package/lib/solution/ShopDiscount/types.d.ts +1 -1
  435. package/lib/solution/ShopDiscount/utils.d.ts +2 -2
  436. package/lib/solution/UnifiedBookingSales/index.d.ts +183 -0
  437. package/lib/solution/UnifiedBookingSales/index.js +1050 -0
  438. package/lib/solution/UnifiedBookingSales/types.d.ts +143 -0
  439. package/lib/solution/UnifiedBookingSales/types.js +14 -0
  440. package/lib/solution/VenueBooking/index.d.ts +29 -20
  441. package/lib/solution/VenueBooking/index.js +169 -94
  442. package/lib/solution/VenueBooking/sales-section-4-annotated.json +0 -2
  443. package/lib/solution/VenueBooking/types.d.ts +1 -1
  444. package/lib/solution/VenueBooking/utils/slotMerge.d.ts +6 -0
  445. package/lib/solution/VenueBooking/utils/slotMerge.js +9 -3
  446. package/lib/solution/index.d.ts +2 -0
  447. package/lib/solution/index.js +22 -0
  448. package/lib/types/index.d.ts +12 -2
  449. package/lib/utils/task.d.ts +2 -2
  450. package/lib/utils/watch.d.ts +2 -2
  451. package/package.json +18 -19
  452. package/dist/model/strategy/adapter/promotion/index.d.ts +0 -4
  453. package/dist/solution/Checkout/appointmentDemo.json +0 -1
  454. package/lib/model/strategy/adapter/promotion/index.d.ts +0 -4
  455. package/lib/solution/Checkout/appointmentDemo.json +0 -1
@@ -0,0 +1,713 @@
1
+ [{
2
+ "order_id": null,
3
+ "external_sale_number": "LOCAL_9_a59a7849_20260609205409880_470806",
4
+ "order_number": null,
5
+ "shop_order_number": "11T5BOTEFHB",
6
+ "shop_full_order_number": "4900001",
7
+ "type": "virtual",
8
+ "business_code": "",
9
+ "platform": "pos",
10
+ "sales_channel": "my_pisel",
11
+ "order_sales_channel": "pos",
12
+ "status": "normal",
13
+ "payment_status": "paid",
14
+ "shipping_status": "unfulfilled",
15
+ "customer_id": 1,
16
+ "customer_name": "Select a customer",
17
+ "country_calling_code": "",
18
+ "phone": "",
19
+ "email": "",
20
+ "is_price_include_tax": 0,
21
+ "tax_title": "GST",
22
+ "tax_country_code": "AU",
23
+ "currency_code": "AUD",
24
+ "currency_symbol": "$",
25
+ "currency_format": "symbol_first",
26
+ "is_deposit": 0,
27
+ "deposit_amount": "0.00",
28
+ "shop_discount": "0.00",
29
+ "surcharge_fee": "2.80",
30
+ "note": "",
31
+ "schedule_date": "2026-06-09 20:54:09",
32
+ "request_unique_idempotency_token": "LOCAL_9_a59a7849_20260609205409880_470806_1781009649880_payment_1",
33
+ "vouchers": [],
34
+ "products": [
35
+ {
36
+ "order_detail_id": null,
37
+ "product_id": 61743,
38
+ "product_variant_id": 0,
39
+ "product_sku": {
40
+ "option": []
41
+ },
42
+ "selling_price": "8.00",
43
+ "original_price": "8.00",
44
+ "tax_fee": "1.08",
45
+ "is_charge_tax": 1,
46
+ "discount_list": [],
47
+ "product_bundle": [],
48
+ "metadata": {
49
+ "unique_identification_number": "c33068cd-95f6-43df-9031-19d4c8aab0fb",
50
+ "main_product_original_price": "8.00",
51
+ "main_product_selling_price": "8.00",
52
+ "main_product_attached_bundle_selling_price": "8.00",
53
+ "main_product_attached_bundle_payment_price": "8.00",
54
+ "average_discount_amount_rate": "1",
55
+ "source_product_price": "8.00",
56
+ "main_product_attached_bundle_surcharge_fee": "2.80",
57
+ "main_product_attached_bundle_tax_fee": "1.08",
58
+ "surcharge_rounding_remainder": "0.00",
59
+ "tax_fee_rounding_remainder": "0.00",
60
+ "relation_surcharge_ids": [
61
+ 2782
62
+ ],
63
+ "product_discount_difference": ""
64
+ },
65
+ "note": "",
66
+ "payment_price": "8.00",
67
+ "main_product_attached_bundle_surcharge_fee": "2.80",
68
+ "surcharge_rounding_remainder": 0,
69
+ "relation_surcharge_ids": [
70
+ 2782
71
+ ],
72
+ "original_tax_fee_rounding_remainder": 0,
73
+ "main_product_attached_bundle_tax_fee": "1.08",
74
+ "original_tax_fee": 1.08,
75
+ "tax_fee_rounding_remainder": 0,
76
+ "product_quantity": 1
77
+ }
78
+ ],
79
+ "bookings": [],
80
+ "payments": [
81
+ {
82
+ "amount": "11.88",
83
+ "code": "CASHMANUAL",
84
+ "custom_payment_id": 20,
85
+ "name": "Cash",
86
+ "type": "default",
87
+ "voucher_id": 0,
88
+ "origin_amount": "11.88",
89
+ "status": "paid",
90
+ "metadata": {
91
+ "unique_payment_number": "cash-1781009844896-d0789f2a8f2488",
92
+ "actual_paid_amount": 11.88,
93
+ "change_given_amount": 0
94
+ },
95
+ "rounding_amount": "0"
96
+ }
97
+ ],
98
+ "surcharges": [
99
+ {
100
+ "key": "custom_surcharge_0",
101
+ "label": {
102
+ "en": "Pay surcharge 10%+2",
103
+ "zh-CN": "支付附加费10%+2",
104
+ "zh-HK": "支付附加費10%+2",
105
+ "original": "支付附加费10%+2"
106
+ },
107
+ "name": {
108
+ "en": "Pay surcharge 10%+2",
109
+ "zh-CN": "支付附加费10%+2",
110
+ "zh-HK": "支付附加費10%+2",
111
+ "original": "支付附加费10%+2"
112
+ },
113
+ "value": 2.8,
114
+ "surcharge_id": 2782,
115
+ "description": {
116
+ "en": "",
117
+ "zh-CN": "",
118
+ "zh-HK": "",
119
+ "original": "支付附加费"
120
+ },
121
+ "type": "default",
122
+ "fixed": "2.00",
123
+ "amount": 2.8,
124
+ "percentage": "0.1000",
125
+ "metadata": {
126
+ "open_product": 1
127
+ }
128
+ }
129
+ ],
130
+ "relation_forms": [],
131
+ "contacts": [],
132
+ "contacts_info": null,
133
+ "holder": null,
134
+ "metadata": {},
135
+ "delivery_type": "nil",
136
+ "small_ticket_data_flag": 1,
137
+ "need_sync": 1,
138
+ "payment_info": {
139
+ "small_ticket_data": {
140
+ "zh_CN": {
141
+ "base_data": {
142
+ "shop_name": "Devtest shop",
143
+ "note": "",
144
+ "shop_order_number": "11T5BOTEFHB",
145
+ "order_number": "4900001",
146
+ "shop_tax_number": "289390111113144",
147
+ "shop_phone": "13772099769",
148
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, 澳大利亚",
149
+ "original_payment_status": "paid",
150
+ "is_repeat": 0,
151
+ "buzzer": "",
152
+ "order_no": "4900001",
153
+ "order_time": "2026/06/09 20:57:24"
154
+ },
155
+ "products": [
156
+ {
157
+ "product_title": "咖啡",
158
+ "product_quantity": 1,
159
+ "selling_price": "$8.00",
160
+ "original_price": "$8.00",
161
+ "total_original_price": "$8.00",
162
+ "extension_list": []
163
+ }
164
+ ],
165
+ "fees": {
166
+ "fees": [
167
+ {
168
+ "item": "支付附加费10%+2",
169
+ "value": "$2.80"
170
+ }
171
+ ],
172
+ "countFee": {
173
+ "total_amount": "$0.00",
174
+ "product_expect_amount": "$0.00",
175
+ "expect_amount": "$0.00",
176
+ "product_quantity": 1,
177
+ "has_pay": "$11.88",
178
+ "payment_method": "",
179
+ "tax_title": "GST",
180
+ "total_refund_amount": "$0.00"
181
+ }
182
+ },
183
+ "customer": [
184
+ {
185
+ "item": "联系人姓名",
186
+ "value": ""
187
+ },
188
+ {
189
+ "item": "联系电话",
190
+ "value": ""
191
+ },
192
+ {
193
+ "item": "邮箱",
194
+ "value": ""
195
+ }
196
+ ],
197
+ "appointment": [],
198
+ "delivery": [
199
+ {
200
+ "item": "",
201
+ "value": "堂食",
202
+ "size": 2,
203
+ "align": "left"
204
+ }
205
+ ],
206
+ "resources": [],
207
+ "payment_data": [
208
+ [
209
+ {
210
+ "item": "Cash",
211
+ "value": "$11.88"
212
+ },
213
+ {
214
+ "item": "2026/06/09 20:57:24",
215
+ "value": ""
216
+ }
217
+ ]
218
+ ],
219
+ "tickets": [],
220
+ "source_shop": [],
221
+ "refund_data": [],
222
+ "expend_data": []
223
+ },
224
+ "en": {
225
+ "base_data": {
226
+ "shop_name": "Devtest shop",
227
+ "note": "",
228
+ "shop_order_number": "11T5BOTEFHB",
229
+ "order_number": "4900001",
230
+ "shop_tax_number": "289390111113144",
231
+ "shop_phone": "13772099769",
232
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, 澳大利亚",
233
+ "original_payment_status": "paid",
234
+ "is_repeat": 0,
235
+ "buzzer": "",
236
+ "order_no": "4900001",
237
+ "order_time": "20:57:24 09/06/2026"
238
+ },
239
+ "products": [
240
+ {
241
+ "product_title": "咖啡",
242
+ "product_quantity": 1,
243
+ "selling_price": "$8.00",
244
+ "original_price": "$8.00",
245
+ "total_original_price": "$8.00",
246
+ "extension_list": []
247
+ }
248
+ ],
249
+ "fees": {
250
+ "fees": [
251
+ {
252
+ "item": "Pay surcharge 10%+2",
253
+ "value": "$2.80"
254
+ }
255
+ ],
256
+ "countFee": {
257
+ "total_amount": "$0.00",
258
+ "product_expect_amount": "$0.00",
259
+ "expect_amount": "$0.00",
260
+ "product_quantity": 1,
261
+ "has_pay": "$11.88",
262
+ "payment_method": "",
263
+ "tax_title": "GST",
264
+ "total_refund_amount": "$0.00"
265
+ }
266
+ },
267
+ "customer": [
268
+ {
269
+ "item": "Contact name",
270
+ "value": ""
271
+ },
272
+ {
273
+ "item": "Contact Mobile",
274
+ "value": ""
275
+ },
276
+ {
277
+ "item": "email",
278
+ "value": ""
279
+ }
280
+ ],
281
+ "appointment": [],
282
+ "delivery": [
283
+ {
284
+ "item": "",
285
+ "value": "Dine-in",
286
+ "size": 2,
287
+ "align": "left"
288
+ }
289
+ ],
290
+ "resources": [],
291
+ "payment_data": [
292
+ [
293
+ {
294
+ "item": "Cash",
295
+ "value": "$11.88"
296
+ },
297
+ {
298
+ "item": "20:57:24 09/06/2026",
299
+ "value": ""
300
+ }
301
+ ]
302
+ ],
303
+ "tickets": [],
304
+ "source_shop": [],
305
+ "refund_data": [],
306
+ "expend_data": []
307
+ }
308
+ }
309
+ }
310
+ },{
311
+ "payment_info": {
312
+ "failed_payments": [],
313
+ "machine_code_info": [],
314
+ "small_ticket_data": {
315
+ "en": {
316
+ "base_data": {
317
+ "shop_name": "Devtest shop",
318
+ "note": "",
319
+ "shop_order_number": "11T5BOTEFHB",
320
+ "order_number": "4900001",
321
+ "shop_tax_number": "289390111113144",
322
+ "shop_phone": "",
323
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, Australia",
324
+ "original_payment_status": "paid",
325
+ "is_repeat": 0,
326
+ "buzzer": "",
327
+ "order_no": "4900001",
328
+ "order_time": "20:57 09/06/2026"
329
+ },
330
+ "products": [
331
+ {
332
+ "product_title": "Coffee",
333
+ "product_quantity": 1,
334
+ "selling_price": "$8.00",
335
+ "original_price": "$8.00",
336
+ "total_original_price": "$8.00",
337
+ "extension_list": []
338
+ }
339
+ ],
340
+ "fees": {
341
+ "fees": [
342
+ {
343
+ "item": "Pay surcharge 10%+2",
344
+ "value": "$2.80"
345
+ },
346
+ {
347
+ "item": "GST",
348
+ "value": "$1.08"
349
+ }
350
+ ],
351
+ "countFee": {
352
+ "total_amount": "$11.88",
353
+ "product_expect_amount": "$8.00",
354
+ "expect_amount": "$11.88",
355
+ "product_quantity": 1,
356
+ "has_pay": "$11.88",
357
+ "payment_method": "",
358
+ "tax_title": "GST",
359
+ "total_refund_amount": "$0.00"
360
+ }
361
+ },
362
+ "customer": [
363
+ {
364
+ "item": "Contact name",
365
+ "value": "Select a customer"
366
+ },
367
+ {
368
+ "item": "Contact Mobile",
369
+ "value": ""
370
+ },
371
+ {
372
+ "item": "email",
373
+ "value": ""
374
+ }
375
+ ],
376
+ "payment_data": [
377
+ [
378
+ {
379
+ "item": "Cash",
380
+ "value": "$11.88"
381
+ },
382
+ {
383
+ "item": "Change cash",
384
+ "value": "$0.00"
385
+ },
386
+ {
387
+ "item": "20:57:26 09/06/2026",
388
+ "value": ""
389
+ }
390
+ ]
391
+ ]
392
+ },
393
+ "zh_CN": {
394
+ "base_data": {
395
+ "shop_name": "Devtest shop",
396
+ "note": "",
397
+ "shop_order_number": "11T5BOTEFHB",
398
+ "order_number": "4900001",
399
+ "shop_tax_number": "289390111113144",
400
+ "shop_phone": "",
401
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, Australia",
402
+ "original_payment_status": "paid",
403
+ "is_repeat": 0,
404
+ "buzzer": "",
405
+ "order_no": "4900001",
406
+ "order_time": "2026/06/09 20:57"
407
+ },
408
+ "products": [
409
+ {
410
+ "product_title": "咖啡",
411
+ "product_quantity": 1,
412
+ "selling_price": "$8.00",
413
+ "original_price": "$8.00",
414
+ "total_original_price": "$8.00",
415
+ "extension_list": []
416
+ }
417
+ ],
418
+ "fees": {
419
+ "fees": [
420
+ {
421
+ "item": "支付附加费10%+2",
422
+ "value": "$2.80"
423
+ },
424
+ {
425
+ "item": "GST",
426
+ "value": "$1.08"
427
+ }
428
+ ],
429
+ "countFee": {
430
+ "total_amount": "$11.88",
431
+ "product_expect_amount": "$8.00",
432
+ "expect_amount": "$11.88",
433
+ "product_quantity": 1,
434
+ "has_pay": "$11.88",
435
+ "payment_method": "",
436
+ "tax_title": "GST",
437
+ "total_refund_amount": "$0.00"
438
+ }
439
+ },
440
+ "customer": [
441
+ {
442
+ "item": "联系人姓名",
443
+ "value": "Select a customer"
444
+ },
445
+ {
446
+ "item": "联系电话",
447
+ "value": ""
448
+ },
449
+ {
450
+ "item": "邮箱",
451
+ "value": ""
452
+ }
453
+ ],
454
+ "payment_data": [
455
+ [
456
+ {
457
+ "item": "现金支付",
458
+ "value": "$11.88"
459
+ },
460
+ {
461
+ "item": "找零",
462
+ "value": "$0.00"
463
+ },
464
+ {
465
+ "item": "2026/06/09 20:57:26",
466
+ "value": ""
467
+ }
468
+ ]
469
+ ]
470
+ },
471
+ "zh_HK": {
472
+ "base_data": {
473
+ "shop_name": "Devtest shop",
474
+ "note": "",
475
+ "shop_order_number": "11T5BOTEFHB",
476
+ "order_number": "4900001",
477
+ "shop_tax_number": "289390111113144",
478
+ "shop_phone": "",
479
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, Australia",
480
+ "original_payment_status": "paid",
481
+ "is_repeat": 0,
482
+ "buzzer": "",
483
+ "order_no": "4900001",
484
+ "order_time": "2026/06/09 20:57"
485
+ },
486
+ "products": [
487
+ {
488
+ "product_title": "咖啡",
489
+ "product_quantity": 1,
490
+ "selling_price": "$8.00",
491
+ "original_price": "$8.00",
492
+ "total_original_price": "$8.00",
493
+ "extension_list": []
494
+ }
495
+ ],
496
+ "fees": {
497
+ "fees": [
498
+ {
499
+ "item": "支付附加費10%+2",
500
+ "value": "$2.80"
501
+ },
502
+ {
503
+ "item": "GST",
504
+ "value": "$1.08"
505
+ }
506
+ ],
507
+ "countFee": {
508
+ "total_amount": "$11.88",
509
+ "product_expect_amount": "$8.00",
510
+ "expect_amount": "$11.88",
511
+ "product_quantity": 1,
512
+ "has_pay": "$11.88",
513
+ "payment_method": "",
514
+ "tax_title": "GST",
515
+ "total_refund_amount": "$0.00"
516
+ }
517
+ },
518
+ "customer": [
519
+ {
520
+ "item": "聯繫人姓名",
521
+ "value": "Select a customer"
522
+ },
523
+ {
524
+ "item": "聯繫電話",
525
+ "value": ""
526
+ },
527
+ {
528
+ "item": "邮箱",
529
+ "value": ""
530
+ }
531
+ ],
532
+ "payment_data": [
533
+ [
534
+ {
535
+ "item": "現金支付",
536
+ "value": "$11.88"
537
+ },
538
+ {
539
+ "item": "找零",
540
+ "value": "$0.00"
541
+ },
542
+ {
543
+ "item": "2026/06/09 20:57:26",
544
+ "value": ""
545
+ }
546
+ ]
547
+ ]
548
+ },
549
+ "ja": {
550
+ "base_data": {
551
+ "shop_name": "Devtest shop",
552
+ "note": "",
553
+ "shop_order_number": "11T5BOTEFHB",
554
+ "order_number": "4900001",
555
+ "shop_tax_number": "289390111113144",
556
+ "shop_phone": "",
557
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, Australia",
558
+ "original_payment_status": "paid",
559
+ "is_repeat": 0,
560
+ "buzzer": "",
561
+ "order_no": "4900001",
562
+ "order_time": "2026/06/09 20:57"
563
+ },
564
+ "products": [
565
+ {
566
+ "product_title": "コーヒー",
567
+ "product_quantity": 1,
568
+ "selling_price": "$8.00",
569
+ "original_price": "$8.00",
570
+ "total_original_price": "$8.00",
571
+ "extension_list": []
572
+ }
573
+ ],
574
+ "fees": {
575
+ "fees": [
576
+ {
577
+ "item": "支付附加费10%+2",
578
+ "value": "$2.80"
579
+ },
580
+ {
581
+ "item": "GST",
582
+ "value": "$1.08"
583
+ }
584
+ ],
585
+ "countFee": {
586
+ "total_amount": "$11.88",
587
+ "product_expect_amount": "$8.00",
588
+ "expect_amount": "$11.88",
589
+ "product_quantity": 1,
590
+ "has_pay": "$11.88",
591
+ "payment_method": "",
592
+ "tax_title": "GST",
593
+ "total_refund_amount": "$0.00"
594
+ }
595
+ },
596
+ "customer": [
597
+ {
598
+ "item": "連絡先名",
599
+ "value": "Select a customer"
600
+ },
601
+ {
602
+ "item": "連絡先電話",
603
+ "value": ""
604
+ },
605
+ {
606
+ "item": "メール",
607
+ "value": ""
608
+ }
609
+ ],
610
+ "payment_data": [
611
+ [
612
+ {
613
+ "item": "現金",
614
+ "value": "$11.88"
615
+ },
616
+ {
617
+ "item": "お釣り",
618
+ "value": "$0.00"
619
+ },
620
+ {
621
+ "item": "2026/06/09 20:57:26",
622
+ "value": ""
623
+ }
624
+ ]
625
+ ]
626
+ },
627
+ "pt": {
628
+ "base_data": {
629
+ "shop_name": "Devtest shop",
630
+ "note": "",
631
+ "shop_order_number": "11T5BOTEFHB",
632
+ "order_number": "4900001",
633
+ "shop_tax_number": "289390111113144",
634
+ "shop_phone": "",
635
+ "shop_address": "41 Exhibition Street, Melbourne VIC 3000, Australia",
636
+ "original_payment_status": "paid",
637
+ "is_repeat": 0,
638
+ "buzzer": "",
639
+ "order_no": "4900001",
640
+ "order_time": "2026/06/09 20:57"
641
+ },
642
+ "products": [
643
+ {
644
+ "product_title": "café",
645
+ "product_quantity": 1,
646
+ "selling_price": "$8.00",
647
+ "original_price": "$8.00",
648
+ "total_original_price": "$8.00",
649
+ "extension_list": []
650
+ }
651
+ ],
652
+ "fees": {
653
+ "fees": [
654
+ {
655
+ "item": "支付附加费10%+2",
656
+ "value": "$2.80"
657
+ },
658
+ {
659
+ "item": "GST",
660
+ "value": "$1.08"
661
+ }
662
+ ],
663
+ "countFee": {
664
+ "total_amount": "$11.88",
665
+ "product_expect_amount": "$8.00",
666
+ "expect_amount": "$11.88",
667
+ "product_quantity": 1,
668
+ "has_pay": "$11.88",
669
+ "payment_method": "",
670
+ "tax_title": "GST",
671
+ "total_refund_amount": "$0.00"
672
+ }
673
+ },
674
+ "customer": [
675
+ {
676
+ "item": "Nome de contato",
677
+ "value": "Select a customer"
678
+ },
679
+ {
680
+ "item": "Celular de contato",
681
+ "value": ""
682
+ },
683
+ {
684
+ "item": "e-mail",
685
+ "value": ""
686
+ }
687
+ ],
688
+ "payment_data": [
689
+ [
690
+ {
691
+ "item": "Dinheiro",
692
+ "value": "$11.88"
693
+ },
694
+ {
695
+ "item": "Troco",
696
+ "value": "$0.00"
697
+ },
698
+ {
699
+ "item": "2026/06/09 20:57:26",
700
+ "value": ""
701
+ }
702
+ ]
703
+ ]
704
+ }
705
+ },
706
+ "current_change_given_amount": "0.00"
707
+ },
708
+ "order_id": 99905,
709
+ "payment_status": "paid",
710
+ "expect_amount": "11.88",
711
+ "machine_code_print_info_v2": [],
712
+ "need_sync": 0
713
+ }]