@feedmepos/mf-payment 1.5.77 → 1.5.78-dev

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 (119) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-D_PoXVbz.js → Actions.vue_vue_type_script_setup_true_lang-CkOYpI0o.js} +1 -1
  2. package/dist/{Chargeback-CzwL8PJv.js → Chargeback-C5vvqZPC.js} +7 -7
  3. package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js → DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js} +1 -1
  4. package/dist/{no-data-BRmo6XOO.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DF7Bz7mG.js} +92 -2
  5. package/dist/{OnboardForm-DZeWRzRD.js → OnboardForm-D1UEL7nA.js} +554 -482
  6. package/dist/{OnboardForm-C6LuVVyr.js → OnboardForm-Jk61FTsk.js} +6 -6
  7. package/dist/OnboardSubmission-CJ8Wz4Z5.js +446 -0
  8. package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-VVsokhdH.js} +27 -27
  9. package/dist/{PayoutAccount-VbRd7cmv.js → PayoutAccount-BJupz1C5.js} +101 -102
  10. package/dist/{PayoutAccount-BMQZ5bOZ.js → PayoutAccount-CgmR-Kft.js} +5 -5
  11. package/dist/PayoutAccountSetting-D18R7415.js +1502 -0
  12. package/dist/{Restaurant-4cO60aVP.js → Restaurant-CYzqYWvJ.js} +4 -4
  13. package/dist/{RestaurantSetting-Bvk0dnCI.js → RestaurantSetting-BjmaAH2A.js} +325 -243
  14. package/dist/{Settlement-CklF8pz7.js → Settlement-BgksUxPW.js} +4 -4
  15. package/dist/{Settlement-Cme1wMB-.js → Settlement-TT5-yT7m.js} +5 -5
  16. package/dist/{SettlementTransactions-DD285bSJ.js → SettlementTransactions-COjlsFX-.js} +4 -4
  17. package/dist/{SettlementTransactions-3F4EOoyz.js → SettlementTransactions-Cd0zM7MD.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js → Status.vue_vue_type_script_setup_true_lang-C0vazu3N.js} +1 -1
  19. package/dist/{Terminal-CK6ULW6U.js → Terminal-Chq-Kp8B.js} +6 -6
  20. package/dist/{TerminalSetting-CEQG3OV6.js → TerminalSetting-CZv6obZH.js} +887 -712
  21. package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js → TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js} +1 -1
  22. package/dist/Transaction-BLooVLyD.js +507 -0
  23. package/dist/{Transaction-DjzWqLtN.js → Transaction-BoFiQSqu.js} +99 -102
  24. package/dist/TransactionOld-BGf-ROT_.js +313 -0
  25. package/dist/api/onboard-submission/index.d.ts +3 -1
  26. package/dist/api/terminal/index.d.ts +1 -0
  27. package/dist/app-B4Scdw84.js +9185 -0
  28. package/dist/app.d.ts +96 -1
  29. package/dist/app.js +5 -4
  30. package/dist/{assets-DIbq1BVX.js → assets-Bqo86swf.js} +81 -79
  31. package/dist/composable/async-poller/index.d.ts +22 -0
  32. package/dist/{grafana-B0iQmK6j.js → grafana-DpTMPSvF.js} +1 -1
  33. package/dist/{index-B0L21J1j.js → index-A5VPgbH5.js} +1 -1
  34. package/dist/{index-BkQ7t3F6.js → index-Bga288jX.js} +1 -1
  35. package/dist/{index-BHCs_NnD.js → index-C0KJhQjz.js} +1 -1
  36. package/dist/{index-CnN_MV2-.js → index-C4nXco1m.js} +24 -9
  37. package/dist/{index-C80a7-Ks.js → index-CU0pfEVD.js} +1 -1
  38. package/dist/{index-CxnWUe_K.js → index-CuktSZEC.js} +3 -3
  39. package/dist/{index-D0j1LZAB.js → index-DNKuiv7L.js} +9430 -9267
  40. package/dist/{index-C_Y5Sfc9.js → index-GF2nlppI.js} +1 -1
  41. package/dist/index-JP_7k-Ja.js +63 -0
  42. package/dist/index-MdV54cWO.js +58 -0
  43. package/dist/{index.vue_vue_type_script_setup_true_lang-BksGFeSf.js → index.vue_vue_type_script_setup_true_lang-Cs_vaAfF.js} +1 -1
  44. package/dist/main.d.ts +1 -0
  45. package/dist/model/payout-account.d.ts +2 -2
  46. package/dist/package.json +4 -3
  47. package/dist/{payout-account-B7OikYn5.js → payout-account-Bklp9Lrq.js} +37 -37
  48. package/dist/stores/payoutAccount.d.ts +44 -34
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/tyro-BovmsorS.js +5 -0
  51. package/dist/utils/permission.d.ts +1 -0
  52. package/dist/{validator-CTlVogBQ.js → validator-DzjyJnvv.js} +0 -1
  53. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
  54. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
  55. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
  56. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +44 -34
  57. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +64 -54
  58. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +64 -54
  59. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +44 -34
  60. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +44 -43
  61. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +64 -54
  62. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  63. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  64. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  65. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  66. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  67. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +39 -0
  68. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  69. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  70. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  71. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  72. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  73. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
  74. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  75. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  76. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  77. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  78. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +48 -0
  79. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  80. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -4
  81. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
  82. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
  83. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +2 -2
  84. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
  85. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +2 -2
  86. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +2 -2
  87. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +4 -4
  88. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +2 -2
  89. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +2 -2
  90. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +2 -2
  91. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +2 -2
  92. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +2 -2
  93. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +2 -2
  94. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +2 -2
  95. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +2 -2
  96. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +2 -2
  97. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +2 -2
  98. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +2 -2
  99. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +2 -2
  100. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +2 -2
  101. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +2 -2
  102. package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +12 -0
  103. package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
  104. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +88 -68
  105. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +84 -84
  106. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +42 -42
  107. package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
  108. package/dist/views/transaction/TransactionTable.vue.d.ts +2 -2
  109. package/package.json +4 -3
  110. package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js +0 -94
  111. package/dist/Forbidden-1aaq-Ilm.js +0 -38
  112. package/dist/OnboardSubmission-DvWwQFy6.js +0 -222
  113. package/dist/PayoutAccountSetting-DzzABgzs.js +0 -1765
  114. package/dist/Transaction-D-Z3zRd7.js +0 -517
  115. package/dist/TransactionOld-BXjA15Dd.js +0 -314
  116. package/dist/app-CEy5Ojtg.js +0 -7661
  117. package/dist/index-XTdSN6CV.js +0 -60
  118. package/dist/softspace-D9cEyOQT.js +0 -4
  119. package/dist/views/admin/payout-account/tabs/SettlementEditDialog.vue.d.ts +0 -56
@@ -1,314 +0,0 @@
1
- import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
2
- import { t as v } from "./index-BHCs_NnD.js";
3
- import { u as U } from "./index-D0j1LZAB.js";
4
- import { useSnackbar as L, useDialog as P } from "@feedmepos/ui-library";
5
- import { _ as B, b as $, t as J } from "./assets-DIbq1BVX.js";
6
- import { _ as j, a as G, b as Q } from "./Actions.vue_vue_type_script_setup_true_lang-D_PoXVbz.js";
7
- import { g as z } from "./grafana-B0iQmK6j.js";
8
- import { w as k } from "./Modal-DB8M9o1T.js";
9
- import { u as V } from "./error-K1CakhA9.js";
10
- import { useCoreStore as N, useI18n as E } from "@feedmepos/mf-common";
11
- import { h as I } from "./moment-h96o7c8I.js";
12
- import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
13
- import { u as W } from "./index-BkQ7t3F6.js";
14
- import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
15
- import { _ as Z } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js";
16
- import { _ as aa } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
17
- const ea = /* @__PURE__ */ S({
18
- __name: "TransactionTable",
19
- props: {
20
- data: {
21
- type: Array,
22
- required: !0
23
- },
24
- loading: {
25
- type: Boolean,
26
- required: !0
27
- }
28
- },
29
- emits: ["row-click"],
30
- setup(q, { emit: d }) {
31
- var f, T;
32
- const o = q, l = K([...o.data]);
33
- x(
34
- () => o.data,
35
- (e) => {
36
- l.value = [...e];
37
- },
38
- { deep: !0, immediate: !0 }
39
- );
40
- const D = d, c = L(), m = P(), { sessionUser: r } = N(), { t } = E();
41
- async function h(e) {
42
- try {
43
- const a = await v.refetchTransaction({ transactionId: e.id });
44
- l.value = l.value.map((n) => n.id === a._id ? $(a) : n), c.open({
45
- type: "success",
46
- title: "Transaction queried and updated successfully."
47
- });
48
- } catch (a) {
49
- c.open({
50
- type: "error",
51
- title: "Fail to query transaction.",
52
- message: V(a)
53
- });
54
- }
55
- }
56
- async function b(e) {
57
- k(
58
- m,
59
- "Refund Transaction",
60
- "Are you sure to refund transaction? This action cannot be revert!",
61
- async () => {
62
- try {
63
- const a = await v.refundTransaction({
64
- transactionId: e.id,
65
- reason: "portal transaction refund",
66
- amount: e.fdoAmount
67
- });
68
- l.value = l.value.map((n) => n.id === a._id ? $(a) : n), c.open({
69
- type: "success",
70
- title: "Transaction refund request initiated."
71
- });
72
- } catch (a) {
73
- c.open({
74
- type: "error",
75
- title: "Fail to request refund transaction.",
76
- message: V(a)
77
- });
78
- }
79
- }
80
- );
81
- }
82
- async function g(e) {
83
- k(
84
- m,
85
- "Notify Transaction",
86
- "Are you sure to perform notify transaction?",
87
- async () => {
88
- try {
89
- await v.renotifyTransaction(e.id), c.open({
90
- type: "success",
91
- title: "Transaction notify successfully."
92
- });
93
- } catch (a) {
94
- c.open({
95
- type: "error",
96
- title: "Fail to notify transaction.",
97
- message: V(a)
98
- });
99
- }
100
- }
101
- );
102
- }
103
- async function y(e) {
104
- const a = z([
105
- {
106
- type: "span",
107
- queryKey: "transaction.id",
108
- queryValue: e.id
109
- }
110
- ], e.transactionAt);
111
- window.open(a, "_blank");
112
- }
113
- const s = K(""), p = [
114
- {
115
- header: () => t("payment.transactions.table.id"),
116
- accessorKey: "id",
117
- cell: ({ cell: e, row: a }) => {
118
- var n, u;
119
- return ((n = r.value) != null && n.role.isStaff || (u = r.value) != null && u.role.isAdmin) && a.original.transactionId ? a.original.id + `
120
- ID: ` + a.original.transactionId : a.original.id;
121
- }
122
- },
123
- {
124
- header: () => t("payment.transactions.table.pay_id"),
125
- accessorKey: "payId"
126
- },
127
- {
128
- header: () => t("payment.transactions.table.gateway_id"),
129
- accessorKey: "gatewayTransactionId"
130
- },
131
- {
132
- header: () => t("payment.transactions.table.bill_seq"),
133
- accessorKey: "seqNumber"
134
- },
135
- {
136
- header: () => t("payment.transactions.table.gateway"),
137
- accessorKey: "gateway",
138
- meta: {
139
- textAlign: "center"
140
- },
141
- cell: ({ cell: e, row: a }) => a.original.gateway ? A(j, { row: a, data: e.getValue() }) : ""
142
- },
143
- {
144
- header: () => t("payment.transactions.table.method"),
145
- accessorKey: "method",
146
- meta: {
147
- textAlign: "center"
148
- },
149
- cell: ({ cell: e, row: a }) => a.original.method ? A(G, { row: a, data: e.getValue() }) : ""
150
- },
151
- {
152
- header: () => t("payment.transactions.table.type"),
153
- accessorKey: "payFor",
154
- meta: {
155
- textAlign: "center"
156
- }
157
- },
158
- {
159
- header: () => t("payment.transactions.table.status"),
160
- accessorKey: "status",
161
- cell: ({ cell: e }) => A(B, { data: e.getValue() })
162
- },
163
- {
164
- header: () => t("payment.transactions.table.restaurant"),
165
- accessorKey: "restaurantId"
166
- },
167
- {
168
- header: () => t("payment.transactions.table.source"),
169
- accessorKey: "source",
170
- cell: ({ cell: e, row: a }) => `(${a.original.sourceType}) ${a.original.source}`
171
- },
172
- {
173
- header: () => t("payment.transactions.table.transaction_at"),
174
- accessorKey: "transactionAt",
175
- meta: {
176
- width: "180px"
177
- },
178
- cell: ({ cell: e, row: a }) => a.original.status === "REFUNDED" ? a.original.refundedAt : a.original.transactionAt
179
- },
180
- {
181
- header: () => t("payment.transactions.table.sales_amount"),
182
- accessorKey: "amount",
183
- cell: ({ cell: e, row: a }) => {
184
- var n, u;
185
- return ((n = r.value) != null && n.role.isStaff || (u = r.value) != null && u.role.isAdmin) && a.original.flags.isDelivery ? a.original.amount + "( " + a.original.gatewayAmount + ")" : a.original.amount;
186
- }
187
- }
188
- ];
189
- return ((f = r.value) != null && f.role.isStaff || (T = r.value) != null && T.role.isAdmin) && p.push({
190
- header: () => t("payment.transactions.table.actions"),
191
- accessorKey: "actions",
192
- cell: ({ row: e }) => A(Q, {
193
- transaction: e.original,
194
- onAction: (a) => {
195
- var n;
196
- switch (a) {
197
- case "notify":
198
- return g(e.original);
199
- case "query":
200
- return h(e.original);
201
- case "refund":
202
- return (n = r.value) != null && n.role.isStaff ? c.open({
203
- type: "error",
204
- title: "You are not allowed to refund transaction."
205
- }) : b(e.original);
206
- case "history":
207
- return y(e.original);
208
- }
209
- }
210
- })
211
- }), (e, a) => {
212
- const n = F("FmTable");
213
- return Y(), C(n, {
214
- modelValue: s.value,
215
- "onUpdate:modelValue": a[0] || (a[0] = (u) => s.value = u),
216
- "column-defs": p,
217
- "row-data": l.value,
218
- loading: o.loading,
219
- onRowClick: a[1] || (a[1] = (u) => D("row-click", l.value.at(u.index)))
220
- }, null, 8, ["modelValue", "row-data", "loading"]);
221
- };
222
- }
223
- }), ta = { class: "flex justify-between mb-6 items-center" }, na = { class: "flex space-x-8" }, ra = { class: "flex space-x-4 self-center" }, oa = { class: "flex gap-8 mb-6" }, Aa = /* @__PURE__ */ S({
224
- __name: "TransactionOld",
225
- setup(q) {
226
- const { dateRange: d, searchKey: o } = W({
227
- searchKey: "",
228
- dateRange: {
229
- startDate: I().startOf("day").format("YYYY-MM-DD"),
230
- endDate: I().endOf("day").format("YYYY-MM-DD")
231
- }
232
- }), { isLoading: l, startAsyncCall: D } = U(!0), { currentRestaurant: c } = N(), { t: m } = E(), r = K([]), t = K([]);
233
- async function h() {
234
- await D(async () => {
235
- const { startDate: y, endDate: s } = d.value, p = await v.readRestaurantTransactions({
236
- start: y,
237
- end: s
238
- });
239
- if (r.value = J(p), t.value = r.value, o.value > "") {
240
- var f = new RegExp(o.value, "i");
241
- t.value = r.value.filter((T) => {
242
- const e = JSON.stringify(T);
243
- return f.test(e);
244
- });
245
- }
246
- });
247
- }
248
- function b() {
249
- h();
250
- }
251
- M(b), x(c, b), x(d, h);
252
- let g;
253
- return x(o, async () => {
254
- g && clearTimeout(g), g = setTimeout(() => {
255
- var y = new RegExp(o.value, "i");
256
- t.value = r.value.filter((s) => {
257
- const p = JSON.stringify(s);
258
- return y.test(p);
259
- });
260
- }, 700);
261
- }), (y, s) => {
262
- const p = F("FmSearch");
263
- return Y(), C(H, {
264
- title: i(m)("payment.transactions.title"),
265
- description: i(m)("payment.transactions.description"),
266
- loading: i(l)
267
- }, {
268
- default: O(() => [
269
- w("div", ta, [
270
- w("div", na, [
271
- _(p, {
272
- "model-value": i(o),
273
- "onUpdate:modelValue": s[0] || (s[0] = (f) => R(o) ? o.value = f : null),
274
- label: i(m)("payment.transactions.search.title"),
275
- placeholder: i(m)("payment.transactions.search.placeholder")
276
- }, null, 8, ["model-value", "label", "placeholder"])
277
- ]),
278
- w("div", ra, [
279
- _(X, {
280
- button: {
281
- appendIcon: "file_download",
282
- variant: "primary",
283
- label: i(m)("payment.transactions.button.export")
284
- },
285
- handler: async () => {
286
- await i(v).downloadPortalTransactionReport(
287
- i(d),
288
- r.value,
289
- !0
290
- );
291
- }
292
- }, null, 8, ["button", "handler"])
293
- ])
294
- ]),
295
- w("div", oa, [
296
- _(Z),
297
- _(aa, {
298
- modelValue: i(d),
299
- "onUpdate:modelValue": s[1] || (s[1] = (f) => R(d) ? d.value = f : null)
300
- }, null, 8, ["modelValue"])
301
- ]),
302
- _(ea, {
303
- loading: i(l),
304
- data: t.value
305
- }, null, 8, ["loading", "data"])
306
- ]),
307
- _: 1
308
- }, 8, ["title", "description", "loading"]);
309
- };
310
- }
311
- });
312
- export {
313
- Aa as default
314
- };