@pisell/pisellos 2.2.244 → 2.2.246

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 (316) hide show
  1. package/dist/model/strategy/adapter/promotion/evaluator.js +3 -2
  2. package/dist/model/strategy/adapter/walletPass/utils.js +7 -4
  3. package/dist/modules/BookingContext/index.d.ts +48 -0
  4. package/dist/modules/BookingContext/index.js +566 -0
  5. package/dist/modules/BookingContext/types.d.ts +102 -0
  6. package/dist/modules/BookingContext/types.js +51 -0
  7. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +16 -0
  8. package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +284 -0
  9. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +8 -0
  10. package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +148 -0
  11. package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +76 -0
  12. package/dist/modules/BookingContext/utils/cacheItemToBookingInput.js +218 -0
  13. package/dist/modules/BookingContext/utils/flexible.d.ts +28 -0
  14. package/dist/modules/BookingContext/utils/flexible.js +56 -0
  15. package/dist/modules/BookingContext/utils/formatResourceList.d.ts +8 -0
  16. package/dist/modules/BookingContext/utils/formatResourceList.js +38 -0
  17. package/dist/modules/BookingContext/utils/index.d.ts +11 -0
  18. package/dist/modules/BookingContext/utils/index.js +11 -0
  19. package/dist/modules/BookingContext/utils/noResource.d.ts +13 -0
  20. package/dist/modules/BookingContext/utils/noResource.js +77 -0
  21. package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts +1 -0
  22. package/dist/modules/BookingContext/utils/orderLineDisplay.js +36 -0
  23. package/dist/modules/BookingContext/utils/productExtend.d.ts +72 -0
  24. package/dist/modules/BookingContext/utils/productExtend.js +339 -0
  25. package/dist/modules/BookingContext/utils/resourceErrors.d.ts +41 -0
  26. package/dist/modules/BookingContext/utils/resourceErrors.js +74 -0
  27. package/dist/modules/BookingContext/utils/resourceSelection.d.ts +7 -0
  28. package/dist/modules/BookingContext/utils/resourceSelection.js +24 -0
  29. package/dist/modules/BookingContext/utils/resources.d.ts +80 -0
  30. package/dist/modules/BookingContext/utils/resources.js +486 -0
  31. package/dist/modules/BookingContext/utils/serviceTimes.d.ts +55 -0
  32. package/dist/modules/BookingContext/utils/serviceTimes.js +151 -0
  33. package/dist/modules/BookingContext/utils/timeSlices.d.ts +42 -0
  34. package/dist/modules/BookingContext/utils/timeSlices.js +100 -0
  35. package/dist/modules/Cart/utils/cartProduct.js +24 -3
  36. package/dist/modules/Cart/utils/changePrice.js +11 -11
  37. package/dist/modules/Customer/index.d.ts +20 -0
  38. package/dist/modules/Customer/index.js +172 -83
  39. package/dist/modules/Customer/types.d.ts +2 -0
  40. package/dist/modules/Discount/index.d.ts +1 -1
  41. package/dist/modules/Discount/index.js +13 -6
  42. package/dist/modules/Discount/types.d.ts +1 -0
  43. package/dist/modules/OpenData/index.d.ts +8 -0
  44. package/dist/modules/OpenData/index.js +37 -17
  45. package/dist/modules/Order/index.d.ts +277 -18
  46. package/dist/modules/Order/index.js +3581 -779
  47. package/dist/modules/Order/types.d.ts +286 -31
  48. package/dist/modules/Order/types.js +38 -0
  49. package/dist/modules/Order/utils/manualProductDiscount.d.ts +106 -0
  50. package/dist/modules/Order/utils/manualProductDiscount.js +210 -0
  51. package/dist/modules/Order/utils.d.ts +147 -5
  52. package/dist/modules/Order/utils.js +750 -104
  53. package/dist/modules/Payment/index.d.ts +10 -13
  54. package/dist/modules/Payment/index.js +467 -837
  55. package/dist/modules/Payment/types.d.ts +2 -0
  56. package/dist/modules/Payment/utils.js +2 -1
  57. package/dist/modules/Payment/walletpass.js +41 -25
  58. package/dist/modules/ProductList/index.d.ts +16 -12
  59. package/dist/modules/ProductList/index.js +133 -59
  60. package/dist/modules/ProductList/types.d.ts +14 -0
  61. package/dist/modules/Quotation/index.d.ts +0 -1
  62. package/dist/modules/Quotation/index.js +25 -22
  63. package/dist/modules/Rules/index.d.ts +4 -0
  64. package/dist/modules/Rules/index.js +97 -70
  65. package/dist/modules/Rules/types.d.ts +1 -0
  66. package/dist/modules/SalesSummary/index.d.ts +8 -25
  67. package/dist/modules/SalesSummary/index.js +86 -35
  68. package/dist/modules/SalesSummary/types.d.ts +4 -1
  69. package/dist/modules/SalesSummary/utils.d.ts +2 -25
  70. package/dist/modules/SalesSummary/utils.js +794 -162
  71. package/dist/modules/Schedule/index.d.ts +7 -0
  72. package/dist/modules/Schedule/index.js +24 -2
  73. package/dist/modules/Summary/index.js +4 -3
  74. package/dist/modules/SurchargeList/index.d.ts +16 -0
  75. package/dist/modules/SurchargeList/index.js +162 -0
  76. package/dist/modules/SurchargeList/types.d.ts +11 -0
  77. package/dist/modules/SurchargeList/types.js +1 -0
  78. package/dist/modules/index.d.ts +2 -0
  79. package/dist/modules/index.js +3 -1
  80. package/dist/plugins/request.d.ts +1 -0
  81. package/dist/server/index.d.ts +204 -1
  82. package/dist/server/index.js +3654 -922
  83. package/dist/server/modules/index.d.ts +2 -0
  84. package/dist/server/modules/index.js +2 -0
  85. package/dist/server/modules/order/index.d.ts +120 -3
  86. package/dist/server/modules/order/index.js +1762 -448
  87. package/dist/server/modules/order/types.d.ts +32 -3
  88. package/dist/server/modules/order/types.js +8 -0
  89. package/dist/server/modules/order/utils/filterBookings.js +26 -3
  90. package/dist/server/modules/order/utils/filterOrders.js +23 -8
  91. package/dist/server/modules/payment/index.d.ts +28 -0
  92. package/dist/server/modules/payment/index.js +305 -0
  93. package/dist/server/modules/payment/types.d.ts +9 -0
  94. package/dist/server/modules/payment/types.js +1 -0
  95. package/dist/server/modules/products/index.d.ts +34 -7
  96. package/dist/server/modules/products/index.js +631 -317
  97. package/dist/server/modules/resource/index.d.ts +2 -0
  98. package/dist/server/modules/resource/index.js +29 -3
  99. package/dist/server/modules/schedule/index.d.ts +4 -4
  100. package/dist/server/modules/schedule/index.js +111 -88
  101. package/dist/server/test.json +713 -0
  102. package/dist/server/utils/small-ticket.d.ts +71 -0
  103. package/dist/server/utils/small-ticket.js +840 -0
  104. package/dist/solution/BaseSales/index.d.ts +133 -10
  105. package/dist/solution/BaseSales/index.js +1950 -447
  106. package/dist/solution/BaseSales/types.d.ts +82 -6
  107. package/dist/solution/BaseSales/types.js +5 -4
  108. package/dist/solution/BaseSales/utils/cartPromotion.d.ts +287 -0
  109. package/dist/solution/BaseSales/utils/cartPromotion.js +1438 -0
  110. package/dist/solution/BaseSales/utils/quotationPrice.d.ts +7 -0
  111. package/dist/solution/BaseSales/utils/quotationPrice.js +237 -0
  112. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +1 -0
  113. package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +105 -24
  114. package/dist/solution/BaseSales/utils.d.ts +1 -1
  115. package/dist/solution/BaseSales/utils.js +62 -21
  116. package/dist/solution/BookingByStep/index.d.ts +1 -1
  117. package/dist/solution/BookingTicket/index.d.ts +271 -11
  118. package/dist/solution/BookingTicket/index.js +1777 -242
  119. package/dist/solution/BookingTicket/types.d.ts +118 -1
  120. package/dist/solution/BookingTicket/types.js +41 -2
  121. package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +117 -0
  122. package/dist/solution/BookingTicket/utils/addProductDecision.js +346 -0
  123. package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts +35 -0
  124. package/dist/solution/BookingTicket/utils/addTimeAvailability.js +95 -0
  125. package/dist/solution/BookingTicket/utils/bookingStatus.d.ts +40 -0
  126. package/dist/solution/BookingTicket/utils/bookingStatus.js +70 -0
  127. package/dist/solution/BookingTicket/utils/cartView.d.ts +9 -1
  128. package/dist/solution/BookingTicket/utils/cartView.js +94 -7
  129. package/dist/solution/BookingTicket/utils/exampleData.d.ts +123 -0
  130. package/dist/solution/BookingTicket/utils/exampleData.js +183 -0
  131. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +185 -0
  132. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.js +438 -0
  133. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +36 -0
  134. package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.js +400 -0
  135. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +32 -0
  136. package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.js +56 -0
  137. package/dist/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  138. package/dist/solution/BookingTicket/utils/scan/index.js +20 -8
  139. package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts +21 -0
  140. package/dist/solution/BookingTicket/utils/scan/scanProductValues.js +150 -0
  141. package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts +23 -0
  142. package/dist/solution/BookingTicket/utils/sessionCatalogStale.js +78 -0
  143. package/dist/solution/Checkout/index.d.ts +1 -0
  144. package/dist/solution/Checkout/index.js +10 -9
  145. package/dist/solution/RegisterAndLogin/config.js +2 -10
  146. package/dist/solution/ScanOrder/index.d.ts +9 -3
  147. package/dist/solution/ScanOrder/index.js +241 -134
  148. package/dist/solution/ScanOrder/types.d.ts +9 -5
  149. package/dist/solution/ScanOrder/types.js +2 -3
  150. package/dist/solution/ScanOrder/utils.d.ts +1 -1
  151. package/dist/solution/ScanOrder/utils.js +84 -22
  152. package/dist/solution/VenueBooking/index.d.ts +5 -2
  153. package/dist/solution/VenueBooking/index.js +110 -59
  154. package/dist/solution/VenueBooking/sales-section-4-annotated.json +0 -2
  155. package/dist/solution/VenueBooking/utils/slotMerge.d.ts +4 -0
  156. package/dist/solution/VenueBooking/utils/slotMerge.js +10 -0
  157. package/dist/types/index.d.ts +10 -0
  158. package/lib/model/strategy/adapter/promotion/evaluator.js +2 -1
  159. package/lib/model/strategy/adapter/promotion/index.js +49 -0
  160. package/lib/model/strategy/adapter/walletPass/utils.js +3 -2
  161. package/lib/modules/BookingContext/index.d.ts +48 -0
  162. package/lib/modules/BookingContext/index.js +368 -0
  163. package/lib/modules/BookingContext/types.d.ts +102 -0
  164. package/lib/modules/BookingContext/types.js +34 -0
  165. package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +16 -0
  166. package/lib/modules/BookingContext/utils/buildCacheItemFromOrderLine.js +276 -0
  167. package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +8 -0
  168. package/lib/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.js +154 -0
  169. package/lib/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +76 -0
  170. package/lib/modules/BookingContext/utils/cacheItemToBookingInput.js +201 -0
  171. package/lib/modules/BookingContext/utils/flexible.d.ts +28 -0
  172. package/lib/modules/BookingContext/utils/flexible.js +80 -0
  173. package/lib/modules/BookingContext/utils/formatResourceList.d.ts +8 -0
  174. package/lib/modules/BookingContext/utils/formatResourceList.js +50 -0
  175. package/lib/modules/BookingContext/utils/index.d.ts +11 -0
  176. package/lib/modules/BookingContext/utils/index.js +43 -0
  177. package/lib/modules/BookingContext/utils/noResource.d.ts +13 -0
  178. package/lib/modules/BookingContext/utils/noResource.js +90 -0
  179. package/lib/modules/BookingContext/utils/orderLineDisplay.d.ts +1 -0
  180. package/lib/modules/BookingContext/utils/orderLineDisplay.js +56 -0
  181. package/lib/modules/BookingContext/utils/productExtend.d.ts +72 -0
  182. package/lib/modules/BookingContext/utils/productExtend.js +283 -0
  183. package/lib/modules/BookingContext/utils/resourceErrors.d.ts +41 -0
  184. package/lib/modules/BookingContext/utils/resourceErrors.js +80 -0
  185. package/lib/modules/BookingContext/utils/resourceSelection.d.ts +7 -0
  186. package/lib/modules/BookingContext/utils/resourceSelection.js +46 -0
  187. package/lib/modules/BookingContext/utils/resources.d.ts +80 -0
  188. package/lib/modules/BookingContext/utils/resources.js +377 -0
  189. package/lib/modules/BookingContext/utils/serviceTimes.d.ts +55 -0
  190. package/lib/modules/BookingContext/utils/serviceTimes.js +162 -0
  191. package/lib/modules/BookingContext/utils/timeSlices.d.ts +42 -0
  192. package/lib/modules/BookingContext/utils/timeSlices.js +124 -0
  193. package/lib/modules/Cart/utils/cartProduct.js +20 -3
  194. package/lib/modules/Cart/utils/changePrice.js +12 -20
  195. package/lib/modules/Customer/index.d.ts +20 -0
  196. package/lib/modules/Customer/index.js +64 -11
  197. package/lib/modules/Customer/types.d.ts +2 -0
  198. package/lib/modules/Discount/index.d.ts +1 -1
  199. package/lib/modules/Discount/index.js +9 -1
  200. package/lib/modules/Discount/types.d.ts +1 -0
  201. package/lib/modules/OpenData/index.d.ts +8 -0
  202. package/lib/modules/OpenData/index.js +19 -5
  203. package/lib/modules/Order/index.d.ts +277 -18
  204. package/lib/modules/Order/index.js +2317 -337
  205. package/lib/modules/Order/types.d.ts +286 -31
  206. package/lib/modules/Order/types.js +1 -0
  207. package/lib/modules/Order/utils/manualProductDiscount.d.ts +106 -0
  208. package/lib/modules/Order/utils/manualProductDiscount.js +206 -0
  209. package/lib/modules/Order/utils.d.ts +147 -5
  210. package/lib/modules/Order/utils.js +615 -46
  211. package/lib/modules/Payment/index.d.ts +10 -13
  212. package/lib/modules/Payment/index.js +18 -150
  213. package/lib/modules/Payment/types.d.ts +2 -0
  214. package/lib/modules/Payment/utils.js +2 -1
  215. package/lib/modules/Payment/walletpass.js +16 -3
  216. package/lib/modules/ProductList/index.d.ts +16 -12
  217. package/lib/modules/ProductList/index.js +41 -4
  218. package/lib/modules/ProductList/types.d.ts +14 -0
  219. package/lib/modules/Quotation/index.d.ts +0 -1
  220. package/lib/modules/Quotation/index.js +19 -16
  221. package/lib/modules/Rules/index.d.ts +4 -0
  222. package/lib/modules/Rules/index.js +137 -120
  223. package/lib/modules/Rules/types.d.ts +1 -0
  224. package/lib/modules/SalesSummary/index.d.ts +8 -25
  225. package/lib/modules/SalesSummary/index.js +30 -4
  226. package/lib/modules/SalesSummary/types.d.ts +4 -1
  227. package/lib/modules/SalesSummary/utils.d.ts +2 -25
  228. package/lib/modules/SalesSummary/utils.js +645 -91
  229. package/lib/modules/Schedule/index.d.ts +7 -0
  230. package/lib/modules/Schedule/index.js +17 -1
  231. package/lib/modules/Summary/index.js +5 -4
  232. package/lib/modules/SurchargeList/index.d.ts +16 -0
  233. package/lib/modules/SurchargeList/index.js +89 -0
  234. package/lib/modules/SurchargeList/types.d.ts +11 -0
  235. package/lib/modules/SurchargeList/types.js +17 -0
  236. package/lib/modules/index.d.ts +2 -0
  237. package/lib/modules/index.js +5 -1
  238. package/lib/plugins/request.d.ts +1 -0
  239. package/lib/server/index.d.ts +204 -1
  240. package/lib/server/index.js +1891 -59
  241. package/lib/server/modules/index.d.ts +2 -0
  242. package/lib/server/modules/index.js +3 -0
  243. package/lib/server/modules/order/index.d.ts +120 -3
  244. package/lib/server/modules/order/index.js +887 -94
  245. package/lib/server/modules/order/types.d.ts +32 -3
  246. package/lib/server/modules/order/utils/filterBookings.js +24 -5
  247. package/lib/server/modules/order/utils/filterOrders.js +15 -6
  248. package/lib/server/modules/payment/index.d.ts +28 -0
  249. package/lib/server/modules/payment/index.js +192 -0
  250. package/lib/server/modules/payment/types.d.ts +9 -0
  251. package/lib/server/modules/payment/types.js +17 -0
  252. package/lib/server/modules/products/index.d.ts +34 -7
  253. package/lib/server/modules/products/index.js +189 -54
  254. package/lib/server/modules/resource/index.d.ts +2 -0
  255. package/lib/server/modules/resource/index.js +27 -3
  256. package/lib/server/modules/schedule/index.d.ts +4 -4
  257. package/lib/server/modules/schedule/index.js +47 -40
  258. package/lib/server/test.json +713 -0
  259. package/lib/server/utils/small-ticket.d.ts +71 -0
  260. package/lib/server/utils/small-ticket.js +800 -0
  261. package/lib/solution/BaseSales/index.d.ts +133 -10
  262. package/lib/solution/BaseSales/index.js +1111 -63
  263. package/lib/solution/BaseSales/types.d.ts +82 -6
  264. package/lib/solution/BaseSales/types.js +3 -1
  265. package/lib/solution/BaseSales/utils/cartPromotion.d.ts +287 -0
  266. package/lib/solution/BaseSales/utils/cartPromotion.js +992 -0
  267. package/lib/solution/BaseSales/utils/quotationPrice.d.ts +7 -0
  268. package/lib/solution/BaseSales/utils/quotationPrice.js +277 -0
  269. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +1 -0
  270. package/lib/solution/BaseSales/utils/transformBaseProductToOrderProduct.js +106 -18
  271. package/lib/solution/BaseSales/utils.d.ts +1 -1
  272. package/lib/solution/BaseSales/utils.js +54 -10
  273. package/lib/solution/BookingByStep/index.d.ts +1 -1
  274. package/lib/solution/BookingTicket/index.d.ts +271 -11
  275. package/lib/solution/BookingTicket/index.js +922 -29
  276. package/lib/solution/BookingTicket/types.d.ts +118 -1
  277. package/lib/solution/BookingTicket/types.js +11 -0
  278. package/lib/solution/BookingTicket/utils/addProductDecision.d.ts +117 -0
  279. package/lib/solution/BookingTicket/utils/addProductDecision.js +318 -0
  280. package/lib/solution/BookingTicket/utils/addTimeAvailability.d.ts +35 -0
  281. package/lib/solution/BookingTicket/utils/addTimeAvailability.js +125 -0
  282. package/lib/solution/BookingTicket/utils/bookingStatus.d.ts +40 -0
  283. package/lib/solution/BookingTicket/utils/bookingStatus.js +44 -2
  284. package/lib/solution/BookingTicket/utils/cartView.d.ts +9 -1
  285. package/lib/solution/BookingTicket/utils/cartView.js +61 -6
  286. package/lib/solution/BookingTicket/utils/exampleData.d.ts +123 -0
  287. package/lib/solution/BookingTicket/utils/exampleData.js +0 -0
  288. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +185 -0
  289. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.js +254 -0
  290. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +36 -0
  291. package/lib/solution/BookingTicket/utils/scan/applyGlobalScan.js +169 -0
  292. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +32 -0
  293. package/lib/solution/BookingTicket/utils/scan/formatGlobalScan.js +51 -0
  294. package/lib/solution/BookingTicket/utils/scan/index.d.ts +5 -0
  295. package/lib/solution/BookingTicket/utils/scan/index.js +17 -3
  296. package/lib/solution/BookingTicket/utils/scan/scanProductValues.d.ts +21 -0
  297. package/lib/solution/BookingTicket/utils/scan/scanProductValues.js +127 -0
  298. package/lib/solution/BookingTicket/utils/sessionCatalogStale.d.ts +23 -0
  299. package/lib/solution/BookingTicket/utils/sessionCatalogStale.js +85 -0
  300. package/lib/solution/Checkout/index.d.ts +1 -0
  301. package/lib/solution/Checkout/index.js +1 -2
  302. package/lib/solution/RegisterAndLogin/config.js +2 -10
  303. package/lib/solution/ScanOrder/index.d.ts +9 -3
  304. package/lib/solution/ScanOrder/index.js +153 -70
  305. package/lib/solution/ScanOrder/types.d.ts +9 -5
  306. package/lib/solution/ScanOrder/utils.d.ts +1 -1
  307. package/lib/solution/ScanOrder/utils.js +83 -17
  308. package/lib/solution/VenueBooking/index.d.ts +5 -2
  309. package/lib/solution/VenueBooking/index.js +54 -17
  310. package/lib/solution/VenueBooking/sales-section-4-annotated.json +0 -2
  311. package/lib/solution/VenueBooking/utils/slotMerge.d.ts +4 -0
  312. package/lib/solution/VenueBooking/utils/slotMerge.js +10 -0
  313. package/lib/types/index.d.ts +10 -0
  314. package/package.json +1 -1
  315. package/dist/solution/Checkout/appointmentDemo.json +0 -1
  316. 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
+ }]