@feedmepos/mf-payment 1.5.76-dev → 1.5.77

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