@feedmepos/mf-payment 1.0.18 → 1.0.19
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.
- package/dist/{PayoutAccount-ZN7IRI6O.js → PayoutAccount-BENwV3lk.js} +5 -5
- package/dist/{PayoutAccount-Dv0dceI3.js → PayoutAccount-ByQB42Gc.js} +194 -192
- package/dist/{PayoutAccountSetting-VMdZensm.js → PayoutAccountSetting-CydTWOWI.js} +3 -3
- package/dist/{Restaurant-CTxTsQFv.js → Restaurant-pJl9p9u9.js} +4 -4
- package/dist/{RestaurantSetting-Bqvnelo8.js → RestaurantSetting-DpMvpUSw.js} +3 -3
- package/dist/{Settlement-BSj78Ba9.js → Settlement-BSngFpfA.js} +15 -18
- package/dist/{Settlement-DSZqTw2I.js → Settlement-CkOvY9EW.js} +3 -3
- package/dist/{SettlementTransactions-BWIwc4ZZ.js → SettlementTransactions-BzY2bT8y.js} +4 -4
- package/dist/{SettlementTransactions-Bj4iSdv_.js → SettlementTransactions-CaeDLXwI.js} +4 -4
- package/dist/{Terminal-BhuneSe8.js → Terminal-wkX0L_1Y.js} +5 -5
- package/dist/{TerminalSetting-BimysF11.js → TerminalSetting-BRV6qlwa.js} +3 -3
- package/dist/TerminalTransaction-B2NnGV-R.js +589 -0
- package/dist/TerminalTransaction-BbrpviyU.js +333 -0
- package/dist/{Transaction-CXw3jt6f.js → Transaction-BPXBn10N.js} +5 -5
- package/dist/{Transaction-BEtxeY9O.js → Transaction-CVRaWZIu.js} +6 -6
- package/dist/{TransactionOld-Xcs-6Z1b.js → TransactionOld-BQwPUyLq.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-D4QcdL5X.js → TransactionTable.vue_vue_type_script_setup_true_lang-CCAelE9m.js} +37 -24
- package/dist/{app-BlscAAsO.js → app-D_5m116p.js} +155 -155
- package/dist/app.js +1 -1
- package/dist/{assets-xyh7W1wK.js → assets-DhDHTnmn.js} +49 -37
- package/dist/{grafana-B-RVxYdP.js → grafana-DZkWD3p-.js} +1 -1
- package/dist/{index-bJOEc7zH.js → index-B1JgcLgz.js} +1 -1
- package/dist/{index-C6f_xBIo.js → index-CeYD2mT5.js} +1 -1
- package/dist/{index-SUutyAWX.js → index-DcAhh2M-.js} +1 -1
- package/dist/{index-xc3L-8Ux.js → index-Dg_KntKU.js} +1 -1
- package/dist/{index-CsXstZjx.js → index-DkrN-Env.js} +11887 -11591
- package/dist/{index-WVDQG4KF.js → index-b9spwt9h.js} +1 -1
- package/dist/{index-DnwqnqjY.js → index-hisS88O8.js} +22 -17
- package/dist/{index.vue_vue_type_script_setup_true_lang-DkCV_ODh.js → index.vue_vue_type_script_setup_true_lang-PXRIoJh6.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DgotuCLx.js → payout-account-DIpqGTDD.js} +2 -2
- package/dist/stores/payoutAccount.d.ts +2 -2
- package/dist/{transaction-Y5r0QrCZ.js → transaction-DWwuMk6T.js} +22 -20
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +4 -4
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +7 -0
- package/dist/views/transaction/cell/Method.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/TerminalTransaction-DCRTQ5uG.js +0 -526
- package/dist/TerminalTransaction-DSCWAFeV.js +0 -269
@@ -0,0 +1,589 @@
|
|
1
|
+
import { defineComponent as I, resolveComponent as w, openBlock as h, createElementBlock as C, Fragment as V, createVNode as p, withCtx as _, unref as l, createCommentVNode as K, createElementVNode as y, createBlock as v, normalizeClass as E, toDisplayString as x, renderList as $, ref as L, watch as M, isRef as F, h as T } from "vue";
|
2
|
+
import { c as m } from "./index-DkrN-Env.js";
|
3
|
+
import { h as N } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as P } from "./index-b9spwt9h.js";
|
5
|
+
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-PXRIoJh6.js";
|
6
|
+
import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
|
+
import { useSnackbar as B, useDialog as H } from "@feedmepos/ui-library";
|
8
|
+
import { g as j, a as W } from "./assets-DhDHTnmn.js";
|
9
|
+
import { E as Q, t as R } from "./index-hisS88O8.js";
|
10
|
+
import { d as z } from "./dinero-CIVmXLL-.js";
|
11
|
+
import { _ as J } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
+
import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
13
|
+
import { useRouter as Z } from "vue-router";
|
14
|
+
import { w as ee } from "./Modal-DB8M9o1T.js";
|
15
|
+
import { u as S } from "./error-K1CakhA9.js";
|
16
|
+
import { _ as te } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
17
|
+
import { _ as ae } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
18
|
+
import { g as ne } from "./grafana-DZkWD3p-.js";
|
19
|
+
const re = ["src"], oe = ["src"], se = /* @__PURE__ */ I({
|
20
|
+
__name: "Gateway",
|
21
|
+
props: {
|
22
|
+
row: {},
|
23
|
+
data: {}
|
24
|
+
},
|
25
|
+
setup(g) {
|
26
|
+
return (a, c) => {
|
27
|
+
const r = w("FmTooltip");
|
28
|
+
return h(), C(V, null, [
|
29
|
+
p(r, {
|
30
|
+
variant: "plain",
|
31
|
+
placement: "top",
|
32
|
+
content: "ECR Terminal",
|
33
|
+
"hide-arrow": !0
|
34
|
+
}, {
|
35
|
+
default: _(() => [
|
36
|
+
a.row.original.ecrGateway ? (h(), C("img", {
|
37
|
+
key: 0,
|
38
|
+
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
39
|
+
src: l(Q)
|
40
|
+
}, null, 8, re)) : K("", !0)
|
41
|
+
]),
|
42
|
+
_: 1
|
43
|
+
}),
|
44
|
+
p(r, {
|
45
|
+
variant: "plain",
|
46
|
+
placement: "top",
|
47
|
+
content: a.row.original.gateway,
|
48
|
+
"hide-arrow": !0
|
49
|
+
}, {
|
50
|
+
default: _(() => [
|
51
|
+
y("img", {
|
52
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
53
|
+
src: l(j)(a.row.original.gateway)
|
54
|
+
}, null, 8, oe)
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}, 8, ["content"])
|
58
|
+
], 64);
|
59
|
+
};
|
60
|
+
}
|
61
|
+
}), le = /* @__PURE__ */ I({
|
62
|
+
__name: "Status",
|
63
|
+
props: {
|
64
|
+
row: {},
|
65
|
+
data: {}
|
66
|
+
},
|
67
|
+
setup(g) {
|
68
|
+
const a = g;
|
69
|
+
function c() {
|
70
|
+
return a.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : a.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
71
|
+
}
|
72
|
+
return (r, u) => {
|
73
|
+
const s = w("FmBadge"), f = w("FmTooltip");
|
74
|
+
return a.data !== l(m.F_TERMINAL_TRANSACTION_ACTION).Enum.failed ? (h(), v(s, {
|
75
|
+
key: 0,
|
76
|
+
inline: "",
|
77
|
+
class: E(c())
|
78
|
+
}, {
|
79
|
+
default: _(() => [
|
80
|
+
y("div", null, x(r.data.toUpperCase()), 1)
|
81
|
+
]),
|
82
|
+
_: 1
|
83
|
+
}, 8, ["class"])) : (h(), v(f, {
|
84
|
+
key: 1,
|
85
|
+
variant: "rich",
|
86
|
+
placement: "top"
|
87
|
+
}, {
|
88
|
+
content: _(() => [
|
89
|
+
y("p", null, "Code: " + x(a.row.original.error.code ?? "-"), 1),
|
90
|
+
y("p", null, "Message: " + x(a.row.original.error.message ?? "-"), 1)
|
91
|
+
]),
|
92
|
+
default: _(() => [
|
93
|
+
p(s, {
|
94
|
+
inline: "",
|
95
|
+
class: E(c())
|
96
|
+
}, {
|
97
|
+
default: _(() => [
|
98
|
+
y("div", null, x(r.data.toUpperCase()), 1)
|
99
|
+
]),
|
100
|
+
_: 1
|
101
|
+
}, 8, ["class"])
|
102
|
+
]),
|
103
|
+
_: 1
|
104
|
+
}));
|
105
|
+
};
|
106
|
+
}
|
107
|
+
}), ie = /* @__PURE__ */ I({
|
108
|
+
__name: "RouteCell",
|
109
|
+
props: {
|
110
|
+
data: {},
|
111
|
+
route: {}
|
112
|
+
},
|
113
|
+
setup(g) {
|
114
|
+
const a = g, c = Z();
|
115
|
+
function r() {
|
116
|
+
c.push(a.route);
|
117
|
+
}
|
118
|
+
return (u, s) => (h(), C("div", {
|
119
|
+
class: "fm-typo-en-link-md-600",
|
120
|
+
onClick: s[0] || (s[0] = (f) => {
|
121
|
+
f.stopPropagation(), r();
|
122
|
+
})
|
123
|
+
}, x(u.data), 1));
|
124
|
+
}
|
125
|
+
}), ce = /* @__PURE__ */ I({
|
126
|
+
__name: "Actions",
|
127
|
+
props: {
|
128
|
+
onAction: { type: Function },
|
129
|
+
gateway: {}
|
130
|
+
},
|
131
|
+
setup(g) {
|
132
|
+
const a = g, c = [
|
133
|
+
{
|
134
|
+
label: "Log",
|
135
|
+
sublabel: "Inspect transaction historical actions, requests and responses.",
|
136
|
+
icon: "history",
|
137
|
+
action: "history"
|
138
|
+
}
|
139
|
+
];
|
140
|
+
return a.gateway === m.F_TERMINAL_PAYMENT_GATEWAY_PROVIDER.Enum.ScanPay && c.push(
|
141
|
+
{
|
142
|
+
label: "Query",
|
143
|
+
sublabel: "Perform transaction status inquriy",
|
144
|
+
icon: "question_answer",
|
145
|
+
action: "query"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
label: "Refund",
|
149
|
+
sublabel: "Perform transaction refund request",
|
150
|
+
icon: "request_page",
|
151
|
+
action: "refund"
|
152
|
+
}
|
153
|
+
), (r, u) => {
|
154
|
+
const s = w("FmIcon"), f = w("FmMenuItem"), b = w("FmMenu");
|
155
|
+
return h(), C("div", {
|
156
|
+
onClick: u[0] || (u[0] = (A) => {
|
157
|
+
A.stopPropagation();
|
158
|
+
})
|
159
|
+
}, [
|
160
|
+
p(b, null, {
|
161
|
+
"menu-button": _(() => [
|
162
|
+
p(s, { name: "settings" })
|
163
|
+
]),
|
164
|
+
default: _(() => [
|
165
|
+
(h(), C(V, null, $(c, (A) => p(f, {
|
166
|
+
selectable: !0,
|
167
|
+
key: A.label,
|
168
|
+
sublabel: A.sublabel,
|
169
|
+
label: A.label,
|
170
|
+
icon: A.icon,
|
171
|
+
onclick: () => r.onAction(A.action)
|
172
|
+
}, null, 8, ["sublabel", "label", "icon", "onclick"])), 64))
|
173
|
+
]),
|
174
|
+
_: 1
|
175
|
+
})
|
176
|
+
]);
|
177
|
+
};
|
178
|
+
}
|
179
|
+
});
|
180
|
+
function ue(g) {
|
181
|
+
let a;
|
182
|
+
try {
|
183
|
+
a = parseInt(g.substr(0, 8), 16) * 1e3;
|
184
|
+
} catch {
|
185
|
+
return null;
|
186
|
+
}
|
187
|
+
return new Date(a);
|
188
|
+
}
|
189
|
+
const de = ["src"], me = /* @__PURE__ */ I({
|
190
|
+
__name: "Method",
|
191
|
+
props: {
|
192
|
+
row: {},
|
193
|
+
data: {}
|
194
|
+
},
|
195
|
+
setup(g) {
|
196
|
+
return (a, c) => {
|
197
|
+
const r = w("FmTooltip");
|
198
|
+
return h(), v(r, {
|
199
|
+
variant: "plain",
|
200
|
+
placement: "top",
|
201
|
+
content: a.row.original.method,
|
202
|
+
"hide-arrow": !0
|
203
|
+
}, {
|
204
|
+
default: _(() => [
|
205
|
+
y("img", {
|
206
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
207
|
+
src: l(W)(a.row.original.method, "")
|
208
|
+
}, null, 8, de)
|
209
|
+
]),
|
210
|
+
_: 1
|
211
|
+
}, 8, ["content"]);
|
212
|
+
};
|
213
|
+
}
|
214
|
+
}), pe = { class: "flex justify-between mb-6 items-start" }, fe = { class: "flex space-x-4 items-start" }, _e = { class: "flex space-x-4 self-center" }, ge = { class: "mb-6" }, Oe = /* @__PURE__ */ I({
|
215
|
+
__name: "TerminalTransaction",
|
216
|
+
setup(g) {
|
217
|
+
const a = B(), c = H(), r = L(), { dateRange: u, status: s, searchKey: f } = P({
|
218
|
+
searchKey: "",
|
219
|
+
status: [m.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
220
|
+
dateRange: {
|
221
|
+
startDate: N().startOf("day").format("YYYY-MM-DD"),
|
222
|
+
endDate: N().endOf("day").format("YYYY-MM-DD")
|
223
|
+
}
|
224
|
+
});
|
225
|
+
M([u, s], () => {
|
226
|
+
var e;
|
227
|
+
return (e = r.value) == null ? void 0 : e.reset();
|
228
|
+
});
|
229
|
+
let b;
|
230
|
+
M(f, async () => {
|
231
|
+
b && clearTimeout(b), b = setTimeout(
|
232
|
+
() => {
|
233
|
+
var e;
|
234
|
+
return (e = r.value) == null ? void 0 : e.reset();
|
235
|
+
},
|
236
|
+
700
|
237
|
+
);
|
238
|
+
});
|
239
|
+
async function A(e) {
|
240
|
+
var o, i, n;
|
241
|
+
const t = (i = (o = r.value) == null ? void 0 : o.pageData()) == null ? void 0 : i.at(e);
|
242
|
+
if (!t) {
|
243
|
+
a.open({
|
244
|
+
type: "error",
|
245
|
+
title: "Something went wrong",
|
246
|
+
message: "Fail to find transactions from the displayed transactions."
|
247
|
+
});
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
if (!t.refId) {
|
251
|
+
a.open({
|
252
|
+
type: "error",
|
253
|
+
title: "Something went wrong",
|
254
|
+
message: "Transaction isn't a valid transaction to perform query"
|
255
|
+
});
|
256
|
+
return;
|
257
|
+
}
|
258
|
+
try {
|
259
|
+
const d = await R.queryTransaction(t._id);
|
260
|
+
(n = r.value) == null || n.replaceData(e, d), a.open({
|
261
|
+
type: "success",
|
262
|
+
title: "Transaction queried and updated successfully."
|
263
|
+
});
|
264
|
+
} catch (d) {
|
265
|
+
a.open({
|
266
|
+
type: "error",
|
267
|
+
title: "Fail to query transaction.",
|
268
|
+
message: S(d)
|
269
|
+
});
|
270
|
+
}
|
271
|
+
}
|
272
|
+
async function k(e) {
|
273
|
+
var o, i;
|
274
|
+
const t = (i = (o = r.value) == null ? void 0 : o.pageData()) == null ? void 0 : i.at(e);
|
275
|
+
if (!t) {
|
276
|
+
a.open({
|
277
|
+
type: "error",
|
278
|
+
title: "Something went wrong",
|
279
|
+
message: "Fail to find transactions from the displayed transactions."
|
280
|
+
});
|
281
|
+
return;
|
282
|
+
}
|
283
|
+
if (!t.refId) {
|
284
|
+
a.open({
|
285
|
+
type: "error",
|
286
|
+
title: "Something went wrong",
|
287
|
+
message: "Transaction isn't a valid transaction to perform refund"
|
288
|
+
});
|
289
|
+
return;
|
290
|
+
}
|
291
|
+
ee(
|
292
|
+
c,
|
293
|
+
"Refund Transaction",
|
294
|
+
"Are you sure to refund transaction? This action cannot be revert!",
|
295
|
+
async () => {
|
296
|
+
var n;
|
297
|
+
try {
|
298
|
+
const d = await R.refundTransaction({
|
299
|
+
transactionId: t._id,
|
300
|
+
reason: "portal transaction refund",
|
301
|
+
amount: t.details.amount
|
302
|
+
});
|
303
|
+
(n = r.value) == null || n.replaceData(e, d), a.open({
|
304
|
+
type: "success",
|
305
|
+
title: "Transaction queried and updated successfully."
|
306
|
+
});
|
307
|
+
} catch (d) {
|
308
|
+
a.open({
|
309
|
+
type: "error",
|
310
|
+
title: "Fail to query transaction.",
|
311
|
+
message: S(d)
|
312
|
+
});
|
313
|
+
}
|
314
|
+
}
|
315
|
+
);
|
316
|
+
}
|
317
|
+
async function O(e) {
|
318
|
+
var i, n;
|
319
|
+
const t = (n = (i = r.value) == null ? void 0 : i.pageData()) == null ? void 0 : n.at(e);
|
320
|
+
if (!t) {
|
321
|
+
a.open({
|
322
|
+
type: "error",
|
323
|
+
title: "Something went wrong",
|
324
|
+
message: "Fail to find transactions from the displayed transactions."
|
325
|
+
});
|
326
|
+
return;
|
327
|
+
}
|
328
|
+
const o = ne([
|
329
|
+
{
|
330
|
+
type: "span",
|
331
|
+
queryKey: "transaction.id",
|
332
|
+
queryValue: t._id
|
333
|
+
}
|
334
|
+
]);
|
335
|
+
window.open(o, "_blank");
|
336
|
+
}
|
337
|
+
const D = [
|
338
|
+
{
|
339
|
+
label: "Success",
|
340
|
+
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
341
|
+
},
|
342
|
+
{
|
343
|
+
label: "Refunded",
|
344
|
+
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
345
|
+
},
|
346
|
+
{
|
347
|
+
label: "Process",
|
348
|
+
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
349
|
+
},
|
350
|
+
{
|
351
|
+
label: "Failed",
|
352
|
+
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
353
|
+
}
|
354
|
+
], Y = function(e) {
|
355
|
+
let t = "-", o = "-";
|
356
|
+
if (e.details) {
|
357
|
+
e.details.amount && (t = z(e.details.amount).toFormat("$0.00"));
|
358
|
+
const n = m.FdoTerminalTransactionWalletDetails.safeParse(e.details);
|
359
|
+
n.success && (o = n.data.method.issuer);
|
360
|
+
const d = m.FdoTerminalTransactionCardDetails.safeParse(e.details);
|
361
|
+
d.success && (o = d.data.cardType);
|
362
|
+
}
|
363
|
+
const i = ue(e._id);
|
364
|
+
return {
|
365
|
+
id: e._id,
|
366
|
+
transactionId: e.transactionId,
|
367
|
+
orderId: e.orderId,
|
368
|
+
refId: e.refId,
|
369
|
+
owner: e.owner,
|
370
|
+
terminalId: e.terminalId,
|
371
|
+
action: e.action,
|
372
|
+
gateway: e.gateway,
|
373
|
+
ecrGateway: e.ecrGateway,
|
374
|
+
amount: t,
|
375
|
+
method: o,
|
376
|
+
createdAt: i ? N(i).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
377
|
+
transactionAt: e.transactionAt ? N(e.transactionAt).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
378
|
+
refundedAt: e.refundedAt ? N(e.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
379
|
+
error: e.error
|
380
|
+
};
|
381
|
+
}, q = [
|
382
|
+
{
|
383
|
+
accessorKey: "transactionId",
|
384
|
+
header: () => "Transaction ID",
|
385
|
+
meta: {
|
386
|
+
textAlign: "left"
|
387
|
+
},
|
388
|
+
cell: ({ cell: e }) => T(X, { data: e.getValue() })
|
389
|
+
},
|
390
|
+
{
|
391
|
+
accessorKey: "orderId",
|
392
|
+
header: () => "Pay ID",
|
393
|
+
meta: {
|
394
|
+
textAlign: "left"
|
395
|
+
}
|
396
|
+
},
|
397
|
+
{
|
398
|
+
accessorKey: "refId",
|
399
|
+
header: () => "Reference ID",
|
400
|
+
meta: {
|
401
|
+
textAlign: "left"
|
402
|
+
}
|
403
|
+
},
|
404
|
+
{
|
405
|
+
accessorKey: "gateway",
|
406
|
+
header: () => "Gateway",
|
407
|
+
meta: {
|
408
|
+
textAlign: "center",
|
409
|
+
maxWidth: "128px"
|
410
|
+
},
|
411
|
+
cell: ({ cell: e, row: t }) => T(se, { row: t, data: e.getValue() })
|
412
|
+
},
|
413
|
+
{
|
414
|
+
accessorKey: "method",
|
415
|
+
header: () => "Method",
|
416
|
+
meta: {
|
417
|
+
textAlign: "center",
|
418
|
+
maxWidth: "128px"
|
419
|
+
},
|
420
|
+
cell: ({ cell: e, row: t }) => T(me, { row: t, data: e.getValue() })
|
421
|
+
},
|
422
|
+
{
|
423
|
+
accessorKey: "action",
|
424
|
+
header: () => "Status",
|
425
|
+
meta: {
|
426
|
+
textAlign: "right"
|
427
|
+
},
|
428
|
+
cell: ({ cell: e, row: t }) => T(le, { row: t, data: e.getValue() })
|
429
|
+
},
|
430
|
+
{
|
431
|
+
accessorKey: "amount",
|
432
|
+
header: () => "Sales Amount",
|
433
|
+
meta: {
|
434
|
+
textAlign: "center"
|
435
|
+
}
|
436
|
+
},
|
437
|
+
{
|
438
|
+
accessorKey: "terminalId",
|
439
|
+
header: () => "Terminal ID",
|
440
|
+
meta: {
|
441
|
+
textAlign: "left"
|
442
|
+
},
|
443
|
+
cell: ({ cell: e, row: t }) => {
|
444
|
+
const o = e.getValue();
|
445
|
+
return T(ie, {
|
446
|
+
data: o,
|
447
|
+
route: {
|
448
|
+
name: "mf-payment-admin.terminal-setting",
|
449
|
+
params: { terminalId: o }
|
450
|
+
}
|
451
|
+
});
|
452
|
+
}
|
453
|
+
},
|
454
|
+
{
|
455
|
+
accessorKey: "owner",
|
456
|
+
header: () => "Reference",
|
457
|
+
meta: {
|
458
|
+
textAlign: "left"
|
459
|
+
}
|
460
|
+
},
|
461
|
+
{
|
462
|
+
accessorKey: "createdAt",
|
463
|
+
header: () => "Created At",
|
464
|
+
meta: {
|
465
|
+
textAlign: "left",
|
466
|
+
headerClass: "min-w-[172px] justify-items-center",
|
467
|
+
cellClass: "min-w-[172px]"
|
468
|
+
},
|
469
|
+
cell: ({ cell: e }) => T("p", e.getValue())
|
470
|
+
},
|
471
|
+
{
|
472
|
+
accessorKey: "transactionAt",
|
473
|
+
header: () => "Transaction At",
|
474
|
+
meta: {
|
475
|
+
textAlign: "left",
|
476
|
+
headerClass: "min-w-[172px] justify-items-center",
|
477
|
+
cellClass: "min-w-[172px]"
|
478
|
+
},
|
479
|
+
cell: ({ cell: e }) => T("p", e.getValue())
|
480
|
+
},
|
481
|
+
{
|
482
|
+
accessorKey: "refundedAt",
|
483
|
+
header: () => "Refunded At",
|
484
|
+
meta: {
|
485
|
+
textAlign: "left",
|
486
|
+
headerClass: "min-w-[172px] justify-items-center",
|
487
|
+
cellClass: "min-w-[172px]"
|
488
|
+
},
|
489
|
+
cell: ({ cell: e }) => T("p", e.getValue())
|
490
|
+
},
|
491
|
+
{
|
492
|
+
header: () => "Actions",
|
493
|
+
accessorKey: "actions",
|
494
|
+
cell: ({ row: e }) => T(ce, {
|
495
|
+
gateway: e.original.gateway,
|
496
|
+
onAction: (t) => {
|
497
|
+
const o = e.index;
|
498
|
+
switch (t) {
|
499
|
+
case "history":
|
500
|
+
return O(o);
|
501
|
+
case "query":
|
502
|
+
return A(o);
|
503
|
+
case "refund":
|
504
|
+
return k(o);
|
505
|
+
}
|
506
|
+
}
|
507
|
+
})
|
508
|
+
}
|
509
|
+
];
|
510
|
+
return (e, t) => {
|
511
|
+
const o = w("FmSearch"), i = w("FmSelect");
|
512
|
+
return h(), v(U, {
|
513
|
+
title: "Terminal Transactions",
|
514
|
+
loading: !1
|
515
|
+
}, {
|
516
|
+
default: _(() => [
|
517
|
+
y("div", pe, [
|
518
|
+
y("div", fe, [
|
519
|
+
p(o, {
|
520
|
+
"model-value": l(f),
|
521
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => F(f) ? f.value = n : null),
|
522
|
+
class: "mr-8",
|
523
|
+
label: "Search",
|
524
|
+
placeholder: "Search Transactions ..."
|
525
|
+
}, null, 8, ["model-value"]),
|
526
|
+
p(i, {
|
527
|
+
modelValue: l(s),
|
528
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => F(s) ? s.value = n : null),
|
529
|
+
class: "mr-6 w-[300px]",
|
530
|
+
label: "Status",
|
531
|
+
"label-mark": "required",
|
532
|
+
multiselect: "",
|
533
|
+
items: D
|
534
|
+
}, {
|
535
|
+
"prepend-menu": _(() => [
|
536
|
+
p(te, {
|
537
|
+
modelValue: l(s),
|
538
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => F(s) ? s.value = n : null),
|
539
|
+
items: D
|
540
|
+
}, null, 8, ["modelValue"])
|
541
|
+
]),
|
542
|
+
_: 1
|
543
|
+
}, 8, ["modelValue"])
|
544
|
+
]),
|
545
|
+
y("div", _e, [
|
546
|
+
p(J, {
|
547
|
+
button: {
|
548
|
+
appendIcon: "file_download",
|
549
|
+
variant: "primary",
|
550
|
+
label: "Export"
|
551
|
+
},
|
552
|
+
handler: async () => {
|
553
|
+
var n;
|
554
|
+
return l(R).downloadTransactions(await ((n = r.value) == null ? void 0 : n.allData()) ?? []);
|
555
|
+
}
|
556
|
+
}, null, 8, ["handler"])
|
557
|
+
])
|
558
|
+
]),
|
559
|
+
y("div", ge, [
|
560
|
+
p(ae, {
|
561
|
+
modelValue: l(u),
|
562
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => F(u) ? u.value = n : null)
|
563
|
+
}, null, 8, ["modelValue"])
|
564
|
+
]),
|
565
|
+
p(G, {
|
566
|
+
ref_key: "controller",
|
567
|
+
ref: r,
|
568
|
+
"column-defs": q,
|
569
|
+
"rows-defs": Y,
|
570
|
+
onRowClick: t[4] || (t[4] = () => {
|
571
|
+
}),
|
572
|
+
paginate: (n, d) => l(R).readTransactions({
|
573
|
+
status: l(s),
|
574
|
+
searchKey: l(f),
|
575
|
+
limit: n,
|
576
|
+
cursor: d,
|
577
|
+
start: l(u).startDate,
|
578
|
+
end: l(u).endDate
|
579
|
+
})
|
580
|
+
}, null, 8, ["paginate"])
|
581
|
+
]),
|
582
|
+
_: 1
|
583
|
+
});
|
584
|
+
};
|
585
|
+
}
|
586
|
+
});
|
587
|
+
export {
|
588
|
+
Oe as default
|
589
|
+
};
|