@feedmepos/mf-payment 1.0.17-beta.1 → 1.0.18-beta.1
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-DVTKC9HU.js → PayoutAccount-DCq9zJ7I.js} +3 -3
- package/dist/{PayoutAccount-DaSWi1Me.js → PayoutAccount-Dlrre2MV.js} +83 -115
- package/dist/PayoutAccountSetting-D6Scsqvm.js +426 -0
- package/dist/{Restaurant-C-pno48_.js → Restaurant-AoDzEhKi.js} +4 -4
- package/dist/{RestaurantSetting-D5BXiTn2.js → RestaurantSetting-CAQfJwaq.js} +137 -115
- package/dist/{Settlement-Cgxts5eu.js → Settlement-anAN-1YR.js} +3 -3
- package/dist/Settlement-kfM1jLO-.js +444 -0
- package/dist/{SettlementTransactions-BXPsJSOI.js → SettlementTransactions-IhEM3Qtp.js} +4 -4
- package/dist/{SettlementTransactions-BWe-hWjq.js → SettlementTransactions-dVE594dr.js} +4 -4
- package/dist/Terminal-C0Irg7I_.js +435 -0
- package/dist/{TerminalSetting-BciOf47B.js → TerminalSetting-mMj1OSGc.js} +3 -3
- package/dist/{TerminalTransaction-BYlEOFjg.js → TerminalTransaction-2Oe5b_rm.js} +176 -188
- package/dist/TerminalTransaction-Coth2MwA.js +269 -0
- package/dist/Transaction-BbbVDMIm.js +247 -0
- package/dist/{Transaction-B362xcHT.js → Transaction-ChE2VgSa.js} +6 -6
- package/dist/{TransactionOld--8HuiCzC.js → TransactionOld-T8CKBB6U.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-yAM0nD2z.js → TransactionTable.vue_vue_type_script_setup_true_lang-CoPiWynn.js} +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/settlement/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -2
- package/dist/{app-Dm8kGtux.js → app-B36bwKcX.js} +165 -165
- package/dist/app.js +1 -1
- package/dist/{assets-BDTkzAxB.js → assets-fxpnHIZr.js} +1 -1
- package/dist/grafana-BFQCDk-V.js +54 -0
- package/dist/index-9a-RyWYf.js +52 -0
- package/dist/{index-BroiGVyD.js → index-C2q2ptf8.js} +1 -1
- package/dist/{index-D7Uh09kd.js → index-CC8HNMje.js} +1 -1
- package/dist/{index-DmltKkqh.js → index-CEJAjyRa.js} +1 -1
- package/dist/{index-4uEqQ1dj.js → index-Cj90pU-C.js} +27 -20
- package/dist/{index-CtVHR2Os.js → index-DueuWuxx.js} +1 -1
- package/dist/{index-CZAwC5k6.js → index-ZMBnoQxd.js} +31 -23
- package/dist/{index.vue_vue_type_script_setup_true_lang-3Bmqvkzy.js → index.vue_vue_type_script_setup_true_lang-PfAufXp3.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BZ-WV3GM.js → payout-account-D-LZ6-Lb.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{transaction-XK-M9o1a.js → transaction-5dZS6JFA.js} +21 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
- package/package.json +2 -2
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-CYE3OEXe.js +0 -110
- package/dist/PayoutAccountSetting-CqWDYDDi.js +0 -758
- package/dist/Settlement-I67N2bqy.js +0 -145
- package/dist/Terminal-o9zfC9WW.js +0 -404
- package/dist/TerminalTransaction-C_2wLJJV.js +0 -820
- package/dist/Transaction-gDdSiqs9.js +0 -145
- package/dist/grafana-Dtn-kbRH.js +0 -49
- package/dist/index-BC85ddk1.js +0 -47
- package/dist/index-CZ9tbaEh.js +0 -28
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,13 +1,13 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { c as
|
3
|
-
import { h as
|
4
|
-
import { u as P } from "./index-
|
5
|
-
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-
|
1
|
+
import { defineComponent as C, openBlock as w, createElementBlock as x, unref as i, createCommentVNode as q, createElementVNode as g, resolveComponent as h, createBlock as F, normalizeClass as E, withCtx as T, toDisplayString as N, createVNode as d, Fragment as K, renderList as L, ref as $, watch as S, isRef as R, h as A } from "vue";
|
2
|
+
import { c as p } from "./index-CC8HNMje.js";
|
3
|
+
import { h as b } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as P } from "./index-DueuWuxx.js";
|
5
|
+
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-PfAufXp3.js";
|
6
6
|
import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as B, useDialog as H } from "@feedmepos/ui-library";
|
8
|
-
import { g as
|
9
|
-
import { E as
|
10
|
-
import { d as
|
8
|
+
import { g as j } from "./assets-fxpnHIZr.js";
|
9
|
+
import { E as Q, t as v } from "./index-ZMBnoQxd.js";
|
10
|
+
import { d as W } from "./dinero-CIVmXLL-.js";
|
11
11
|
import { _ as z } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
12
|
import { _ as J } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
13
13
|
import { useRouter as X } from "vue-router";
|
@@ -15,64 +15,64 @@ import { w as Z } from "./Modal-DB8M9o1T.js";
|
|
15
15
|
import { u as M } from "./error-K1CakhA9.js";
|
16
16
|
import { _ as ee } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
17
17
|
import { _ as te } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
18
|
-
import { g as ae } from "./grafana-
|
19
|
-
const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */
|
18
|
+
import { g as ae } from "./grafana-BFQCDk-V.js";
|
19
|
+
const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ C({
|
20
20
|
__name: "Gateway",
|
21
21
|
props: {
|
22
22
|
row: {},
|
23
23
|
data: {}
|
24
24
|
},
|
25
|
-
setup(
|
26
|
-
return (a,
|
27
|
-
a.row.original.ecrGateway ? (
|
25
|
+
setup(f) {
|
26
|
+
return (a, u) => (w(), x("div", ne, [
|
27
|
+
a.row.original.ecrGateway ? (w(), x("img", {
|
28
28
|
key: 0,
|
29
29
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
30
|
-
src:
|
31
|
-
}, null, 8, re)) :
|
32
|
-
|
30
|
+
src: i(Q)
|
31
|
+
}, null, 8, re)) : q("", !0),
|
32
|
+
g("img", {
|
33
33
|
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
34
|
-
src:
|
34
|
+
src: i(j)(a.row.original.gateway)
|
35
35
|
}, null, 8, oe)
|
36
36
|
]));
|
37
37
|
}
|
38
|
-
}), le = /* @__PURE__ */
|
38
|
+
}), le = /* @__PURE__ */ C({
|
39
39
|
__name: "Status",
|
40
40
|
props: {
|
41
41
|
row: {},
|
42
42
|
data: {}
|
43
43
|
},
|
44
|
-
setup(
|
45
|
-
const a =
|
46
|
-
function
|
47
|
-
return a.data ===
|
44
|
+
setup(f) {
|
45
|
+
const a = f;
|
46
|
+
function u() {
|
47
|
+
return a.data === p.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === p.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : a.data === p.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
48
48
|
}
|
49
|
-
return (
|
50
|
-
const s =
|
51
|
-
return a.data !==
|
49
|
+
return (o, c) => {
|
50
|
+
const s = h("FmBadge"), m = h("FmTooltip");
|
51
|
+
return a.data !== i(p.F_TERMINAL_TRANSACTION_ACTION).Enum.failed ? (w(), F(s, {
|
52
52
|
key: 0,
|
53
53
|
inline: "",
|
54
|
-
class: E(
|
54
|
+
class: E(u())
|
55
55
|
}, {
|
56
|
-
default:
|
57
|
-
|
56
|
+
default: T(() => [
|
57
|
+
g("div", null, N(o.data.toUpperCase()), 1)
|
58
58
|
]),
|
59
59
|
_: 1
|
60
|
-
}, 8, ["class"])) : (
|
60
|
+
}, 8, ["class"])) : (w(), F(m, {
|
61
61
|
key: 1,
|
62
62
|
variant: "rich",
|
63
63
|
placement: "top"
|
64
64
|
}, {
|
65
|
-
content:
|
66
|
-
|
67
|
-
|
65
|
+
content: T(() => [
|
66
|
+
g("p", null, "Code: " + N(a.row.original.error.code ?? "-"), 1),
|
67
|
+
g("p", null, "Message: " + N(a.row.original.error.message ?? "-"), 1)
|
68
68
|
]),
|
69
|
-
default:
|
70
|
-
|
69
|
+
default: T(() => [
|
70
|
+
d(s, {
|
71
71
|
inline: "",
|
72
|
-
class: E(
|
72
|
+
class: E(u())
|
73
73
|
}, {
|
74
|
-
default:
|
75
|
-
|
74
|
+
default: T(() => [
|
75
|
+
g("div", null, N(o.data.toUpperCase()), 1)
|
76
76
|
]),
|
77
77
|
_: 1
|
78
78
|
}, 8, ["class"])
|
@@ -81,32 +81,32 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
81
81
|
}));
|
82
82
|
};
|
83
83
|
}
|
84
|
-
}), ie = /* @__PURE__ */
|
84
|
+
}), ie = /* @__PURE__ */ C({
|
85
85
|
__name: "RouteCell",
|
86
86
|
props: {
|
87
87
|
data: {},
|
88
88
|
route: {}
|
89
89
|
},
|
90
|
-
setup(
|
91
|
-
const a =
|
92
|
-
function
|
93
|
-
|
90
|
+
setup(f) {
|
91
|
+
const a = f, u = X();
|
92
|
+
function o() {
|
93
|
+
u.push(a.route);
|
94
94
|
}
|
95
|
-
return (
|
95
|
+
return (c, s) => (w(), x("div", {
|
96
96
|
class: "fm-typo-en-link-md-600",
|
97
|
-
onClick: s[0] || (s[0] = (
|
98
|
-
|
97
|
+
onClick: s[0] || (s[0] = (m) => {
|
98
|
+
m.stopPropagation(), o();
|
99
99
|
})
|
100
|
-
},
|
100
|
+
}, N(c.data), 1));
|
101
101
|
}
|
102
|
-
}), ce = /* @__PURE__ */
|
102
|
+
}), ce = /* @__PURE__ */ C({
|
103
103
|
__name: "Actions",
|
104
104
|
props: {
|
105
105
|
onAction: { type: Function },
|
106
106
|
gateway: {}
|
107
107
|
},
|
108
|
-
setup(
|
109
|
-
const a =
|
108
|
+
setup(f) {
|
109
|
+
const a = f, u = [
|
110
110
|
{
|
111
111
|
label: "Log",
|
112
112
|
sublabel: "Inspect transaction historical actions, requests and responses.",
|
@@ -114,7 +114,7 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
114
114
|
action: "history"
|
115
115
|
}
|
116
116
|
];
|
117
|
-
return a.gateway ===
|
117
|
+
return a.gateway === p.F_TERMINAL_PAYMENT_GATEWAY_PROVIDER.Enum.ScanPay && u.push(
|
118
118
|
{
|
119
119
|
label: "Query",
|
120
120
|
sublabel: "Perform transaction status inquriy",
|
@@ -127,25 +127,25 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
127
127
|
icon: "request_page",
|
128
128
|
action: "refund"
|
129
129
|
}
|
130
|
-
), (
|
131
|
-
const s =
|
132
|
-
return
|
133
|
-
onClick:
|
130
|
+
), (o, c) => {
|
131
|
+
const s = h("FmIcon"), m = h("FmMenuItem"), I = h("FmMenu");
|
132
|
+
return w(), x("div", {
|
133
|
+
onClick: c[0] || (c[0] = (_) => {
|
134
134
|
_.stopPropagation();
|
135
135
|
})
|
136
136
|
}, [
|
137
|
-
|
138
|
-
"menu-button":
|
139
|
-
|
137
|
+
d(I, null, {
|
138
|
+
"menu-button": T(() => [
|
139
|
+
d(s, { name: "settings" })
|
140
140
|
]),
|
141
|
-
default:
|
142
|
-
(
|
141
|
+
default: T(() => [
|
142
|
+
(w(), x(K, null, L(u, (_) => d(m, {
|
143
143
|
selectable: !0,
|
144
144
|
key: _.label,
|
145
145
|
sublabel: _.sublabel,
|
146
146
|
label: _.label,
|
147
147
|
icon: _.icon,
|
148
|
-
onclick: () =>
|
148
|
+
onclick: () => o.onAction(_.action)
|
149
149
|
}, null, 8, ["sublabel", "label", "icon", "onclick"])), 64))
|
150
150
|
]),
|
151
151
|
_: 1
|
@@ -154,72 +154,43 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
154
154
|
};
|
155
155
|
}
|
156
156
|
});
|
157
|
-
function ue(
|
157
|
+
function ue(f) {
|
158
158
|
let a;
|
159
159
|
try {
|
160
|
-
a = parseInt(
|
160
|
+
a = parseInt(f.substr(0, 8), 16) * 1e3;
|
161
161
|
} catch {
|
162
162
|
return null;
|
163
163
|
}
|
164
164
|
return new Date(a);
|
165
165
|
}
|
166
|
-
const me = /* @__PURE__ */
|
167
|
-
__name: "Timestamp",
|
168
|
-
props: {
|
169
|
-
createdAt: {},
|
170
|
-
transactionAt: {},
|
171
|
-
refundedAt: {}
|
172
|
-
},
|
173
|
-
setup(p) {
|
174
|
-
return (a, m) => {
|
175
|
-
const r = T("FmListItem"), l = T("FmList");
|
176
|
-
return b(), x(l, { class: "w-[180px]" }, {
|
177
|
-
default: A(() => [
|
178
|
-
u(r, {
|
179
|
-
label: "Created At",
|
180
|
-
sublabel: a.createdAt
|
181
|
-
}, null, 8, ["sublabel"]),
|
182
|
-
u(r, {
|
183
|
-
label: "Transaction At",
|
184
|
-
sublabel: a.transactionAt
|
185
|
-
}, null, 8, ["sublabel"]),
|
186
|
-
u(r, {
|
187
|
-
label: "Refunded At",
|
188
|
-
sublabel: a.refundedAt
|
189
|
-
}, null, 8, ["sublabel"])
|
190
|
-
]),
|
191
|
-
_: 1
|
192
|
-
});
|
193
|
-
};
|
194
|
-
}
|
195
|
-
}), de = { class: "flex justify-between mb-6 items-start" }, pe = { class: "flex space-x-4 items-start" }, fe = { class: "flex space-x-4 self-center" }, _e = { class: "mb-6" }, ke = /* @__PURE__ */ I({
|
166
|
+
const me = { class: "flex justify-between mb-6 items-start" }, de = { class: "flex space-x-4 items-start" }, pe = { class: "flex space-x-4 self-center" }, fe = { class: "mb-6" }, Me = /* @__PURE__ */ C({
|
196
167
|
__name: "TerminalTransaction",
|
197
|
-
setup(
|
198
|
-
const a = B(),
|
168
|
+
setup(f) {
|
169
|
+
const a = B(), u = H(), o = $(), { dateRange: c, status: s, searchKey: m } = P({
|
199
170
|
searchKey: "",
|
200
|
-
status: [
|
171
|
+
status: [p.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
201
172
|
dateRange: {
|
202
|
-
startDate:
|
203
|
-
endDate:
|
173
|
+
startDate: b().startOf("day").format("YYYY-MM-DD"),
|
174
|
+
endDate: b().endOf("day").format("YYYY-MM-DD")
|
204
175
|
}
|
205
176
|
});
|
206
|
-
S([
|
177
|
+
S([c, s], () => {
|
207
178
|
var e;
|
208
|
-
return (e =
|
179
|
+
return (e = o.value) == null ? void 0 : e.reset();
|
209
180
|
});
|
210
|
-
let
|
211
|
-
S(
|
212
|
-
|
181
|
+
let I;
|
182
|
+
S(m, async () => {
|
183
|
+
I && clearTimeout(I), I = setTimeout(
|
213
184
|
() => {
|
214
185
|
var e;
|
215
|
-
return (e =
|
186
|
+
return (e = o.value) == null ? void 0 : e.reset();
|
216
187
|
},
|
217
188
|
700
|
218
189
|
);
|
219
190
|
});
|
220
191
|
async function _(e) {
|
221
|
-
var
|
222
|
-
const t = (
|
192
|
+
var r, l, n;
|
193
|
+
const t = (l = (r = o.value) == null ? void 0 : r.pageData()) == null ? void 0 : l.at(e);
|
223
194
|
if (!t) {
|
224
195
|
a.open({
|
225
196
|
type: "error",
|
@@ -237,22 +208,22 @@ const me = /* @__PURE__ */ I({
|
|
237
208
|
return;
|
238
209
|
}
|
239
210
|
try {
|
240
|
-
const
|
241
|
-
(n =
|
211
|
+
const y = await v.queryTransaction(t._id);
|
212
|
+
(n = o.value) == null || n.replaceData(e, y), a.open({
|
242
213
|
type: "success",
|
243
214
|
title: "Transaction queried and updated successfully."
|
244
215
|
});
|
245
|
-
} catch (
|
216
|
+
} catch (y) {
|
246
217
|
a.open({
|
247
218
|
type: "error",
|
248
219
|
title: "Fail to query transaction.",
|
249
|
-
message: M(
|
220
|
+
message: M(y)
|
250
221
|
});
|
251
222
|
}
|
252
223
|
}
|
253
224
|
async function k(e) {
|
254
|
-
var
|
255
|
-
const t = (
|
225
|
+
var r, l;
|
226
|
+
const t = (l = (r = o.value) == null ? void 0 : r.pageData()) == null ? void 0 : l.at(e);
|
256
227
|
if (!t) {
|
257
228
|
a.open({
|
258
229
|
type: "error",
|
@@ -270,34 +241,34 @@ const me = /* @__PURE__ */ I({
|
|
270
241
|
return;
|
271
242
|
}
|
272
243
|
Z(
|
273
|
-
|
244
|
+
u,
|
274
245
|
"Refund Transaction",
|
275
246
|
"Are you sure to refund transaction? This action cannot be revert!",
|
276
247
|
async () => {
|
277
248
|
var n;
|
278
249
|
try {
|
279
|
-
const
|
250
|
+
const y = await v.refundTransaction({
|
280
251
|
transactionId: t._id,
|
281
252
|
reason: "portal transaction refund",
|
282
253
|
amount: t.details.amount
|
283
254
|
});
|
284
|
-
(n =
|
255
|
+
(n = o.value) == null || n.replaceData(e, y), a.open({
|
285
256
|
type: "success",
|
286
257
|
title: "Transaction queried and updated successfully."
|
287
258
|
});
|
288
|
-
} catch (
|
259
|
+
} catch (y) {
|
289
260
|
a.open({
|
290
261
|
type: "error",
|
291
262
|
title: "Fail to query transaction.",
|
292
|
-
message: M(
|
263
|
+
message: M(y)
|
293
264
|
});
|
294
265
|
}
|
295
266
|
}
|
296
267
|
);
|
297
268
|
}
|
298
269
|
async function O(e) {
|
299
|
-
var
|
300
|
-
const t = (n = (
|
270
|
+
var l, n;
|
271
|
+
const t = (n = (l = o.value) == null ? void 0 : l.pageData()) == null ? void 0 : n.at(e);
|
301
272
|
if (!t) {
|
302
273
|
a.open({
|
303
274
|
type: "error",
|
@@ -306,37 +277,37 @@ const me = /* @__PURE__ */ I({
|
|
306
277
|
});
|
307
278
|
return;
|
308
279
|
}
|
309
|
-
const
|
280
|
+
const r = ae([
|
310
281
|
{
|
311
282
|
type: "span",
|
312
283
|
queryKey: "transaction.id",
|
313
284
|
queryValue: t._id
|
314
285
|
}
|
315
286
|
]);
|
316
|
-
window.open(
|
287
|
+
window.open(r, "_blank");
|
317
288
|
}
|
318
289
|
const D = [
|
319
290
|
{
|
320
291
|
label: "Success",
|
321
|
-
value:
|
292
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
322
293
|
},
|
323
294
|
{
|
324
295
|
label: "Refunded",
|
325
|
-
value:
|
296
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
326
297
|
},
|
327
298
|
{
|
328
299
|
label: "Process",
|
329
|
-
value:
|
300
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
330
301
|
},
|
331
302
|
{
|
332
303
|
label: "Failed",
|
333
|
-
value:
|
304
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
334
305
|
}
|
335
|
-
],
|
306
|
+
], V = function(e) {
|
336
307
|
const t = e;
|
337
|
-
let
|
338
|
-
t.details && t.details.amount && (
|
339
|
-
const
|
308
|
+
let r = "-";
|
309
|
+
t.details && t.details.amount && (r = W(t.details.amount).toFormat("$0.00"));
|
310
|
+
const l = ue(e._id);
|
340
311
|
return {
|
341
312
|
id: e._id,
|
342
313
|
transactionId: e.transactionId,
|
@@ -347,20 +318,20 @@ const me = /* @__PURE__ */ I({
|
|
347
318
|
action: e.action,
|
348
319
|
gateway: e.gateway,
|
349
320
|
ecrGateway: e.ecrGateway,
|
350
|
-
amount:
|
351
|
-
createdAt:
|
352
|
-
transactionAt: e.transactionAt ?
|
353
|
-
refundedAt: e.refundedAt ?
|
321
|
+
amount: r,
|
322
|
+
createdAt: l ? b(l).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
323
|
+
transactionAt: e.transactionAt ? b(e.transactionAt).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
324
|
+
refundedAt: e.refundedAt ? b(e.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "N/A",
|
354
325
|
error: e.error
|
355
326
|
};
|
356
|
-
},
|
327
|
+
}, Y = [
|
357
328
|
{
|
358
329
|
accessorKey: "transactionId",
|
359
330
|
header: () => "Transaction ID",
|
360
331
|
meta: {
|
361
332
|
textAlign: "left"
|
362
333
|
},
|
363
|
-
cell: ({ cell: e }) =>
|
334
|
+
cell: ({ cell: e }) => A(J, { data: e.getValue() })
|
364
335
|
},
|
365
336
|
{
|
366
337
|
accessorKey: "orderId",
|
@@ -383,16 +354,15 @@ const me = /* @__PURE__ */ I({
|
|
383
354
|
textAlign: "center",
|
384
355
|
maxWidth: "128px"
|
385
356
|
},
|
386
|
-
cell: ({ cell: e, row: t }) =>
|
357
|
+
cell: ({ cell: e, row: t }) => A(se, { row: t, data: e.getValue() })
|
387
358
|
},
|
388
359
|
{
|
389
360
|
accessorKey: "action",
|
390
361
|
header: () => "Status",
|
391
362
|
meta: {
|
392
|
-
textAlign: "right"
|
393
|
-
maxWidth: "132px"
|
363
|
+
textAlign: "right"
|
394
364
|
},
|
395
|
-
cell: ({ cell: e, row: t }) =>
|
365
|
+
cell: ({ cell: e, row: t }) => A(le, { row: t, data: e.getValue() })
|
396
366
|
},
|
397
367
|
{
|
398
368
|
accessorKey: "amount",
|
@@ -408,12 +378,12 @@ const me = /* @__PURE__ */ I({
|
|
408
378
|
textAlign: "left"
|
409
379
|
},
|
410
380
|
cell: ({ cell: e, row: t }) => {
|
411
|
-
const
|
412
|
-
return
|
413
|
-
data:
|
381
|
+
const r = e.getValue();
|
382
|
+
return A(ie, {
|
383
|
+
data: r,
|
414
384
|
route: {
|
415
385
|
name: "mf-payment-admin.terminal-setting",
|
416
|
-
params: { terminalId:
|
386
|
+
params: { terminalId: r }
|
417
387
|
}
|
418
388
|
});
|
419
389
|
}
|
@@ -426,73 +396,91 @@ const me = /* @__PURE__ */ I({
|
|
426
396
|
}
|
427
397
|
},
|
428
398
|
{
|
429
|
-
accessorKey: "
|
430
|
-
header: () => "
|
399
|
+
accessorKey: "createdAt",
|
400
|
+
header: () => "Created At",
|
431
401
|
meta: {
|
432
|
-
textAlign: "left"
|
402
|
+
textAlign: "left",
|
403
|
+
headerClass: "min-w-[172px] justify-items-center",
|
404
|
+
cellClass: "min-w-[172px]"
|
433
405
|
},
|
434
|
-
cell: ({
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
406
|
+
cell: ({ cell: e }) => A("p", e.getValue())
|
407
|
+
},
|
408
|
+
{
|
409
|
+
accessorKey: "transactionAt",
|
410
|
+
header: () => "Transaction At",
|
411
|
+
meta: {
|
412
|
+
textAlign: "left",
|
413
|
+
headerClass: "min-w-[172px] justify-items-center",
|
414
|
+
cellClass: "min-w-[172px]"
|
415
|
+
},
|
416
|
+
cell: ({ cell: e }) => A("p", e.getValue())
|
417
|
+
},
|
418
|
+
{
|
419
|
+
accessorKey: "refundedAt",
|
420
|
+
header: () => "Refunded At",
|
421
|
+
meta: {
|
422
|
+
textAlign: "left",
|
423
|
+
headerClass: "min-w-[172px] justify-items-center",
|
424
|
+
cellClass: "min-w-[172px]"
|
425
|
+
},
|
426
|
+
cell: ({ cell: e }) => A("p", e.getValue())
|
439
427
|
},
|
440
428
|
{
|
441
429
|
header: () => "Actions",
|
442
430
|
accessorKey: "actions",
|
443
|
-
cell: ({ row: e }) =>
|
431
|
+
cell: ({ row: e }) => A(ce, {
|
444
432
|
gateway: e.original.gateway,
|
445
433
|
onAction: (t) => {
|
446
|
-
const
|
434
|
+
const r = e.index;
|
447
435
|
switch (t) {
|
448
436
|
case "history":
|
449
|
-
return O(
|
437
|
+
return O(r);
|
450
438
|
case "query":
|
451
|
-
return _(
|
439
|
+
return _(r);
|
452
440
|
case "refund":
|
453
|
-
return k(
|
441
|
+
return k(r);
|
454
442
|
}
|
455
443
|
}
|
456
444
|
})
|
457
445
|
}
|
458
446
|
];
|
459
447
|
return (e, t) => {
|
460
|
-
const
|
461
|
-
return
|
448
|
+
const r = h("FmSearch"), l = h("FmSelect");
|
449
|
+
return w(), F(U, {
|
462
450
|
title: "Terminal Transactions",
|
463
451
|
loading: !1
|
464
452
|
}, {
|
465
|
-
default:
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
"model-value":
|
470
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
453
|
+
default: T(() => [
|
454
|
+
g("div", me, [
|
455
|
+
g("div", de, [
|
456
|
+
d(r, {
|
457
|
+
"model-value": i(m),
|
458
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => R(m) ? m.value = n : null),
|
471
459
|
class: "mr-8",
|
472
460
|
label: "Search",
|
473
461
|
placeholder: "Search Transactions ..."
|
474
462
|
}, null, 8, ["model-value"]),
|
475
|
-
|
476
|
-
modelValue:
|
477
|
-
"onUpdate:modelValue": t[2] || (t[2] = (n) =>
|
463
|
+
d(l, {
|
464
|
+
modelValue: i(s),
|
465
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => R(s) ? s.value = n : null),
|
478
466
|
class: "mr-6 w-[300px]",
|
479
467
|
label: "Status",
|
480
468
|
"label-mark": "required",
|
481
469
|
multiselect: "",
|
482
470
|
items: D
|
483
471
|
}, {
|
484
|
-
"prepend-menu":
|
485
|
-
|
486
|
-
modelValue:
|
487
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) =>
|
472
|
+
"prepend-menu": T(() => [
|
473
|
+
d(ee, {
|
474
|
+
modelValue: i(s),
|
475
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => R(s) ? s.value = n : null),
|
488
476
|
items: D
|
489
477
|
}, null, 8, ["modelValue"])
|
490
478
|
]),
|
491
479
|
_: 1
|
492
480
|
}, 8, ["modelValue"])
|
493
481
|
]),
|
494
|
-
|
495
|
-
|
482
|
+
g("div", pe, [
|
483
|
+
d(z, {
|
496
484
|
button: {
|
497
485
|
appendIcon: "file_download",
|
498
486
|
variant: "primary",
|
@@ -500,31 +488,31 @@ const me = /* @__PURE__ */ I({
|
|
500
488
|
},
|
501
489
|
handler: async () => {
|
502
490
|
var n;
|
503
|
-
return
|
491
|
+
return i(v).downloadTransactions(await ((n = o.value) == null ? void 0 : n.allData()) ?? []);
|
504
492
|
}
|
505
493
|
}, null, 8, ["handler"])
|
506
494
|
])
|
507
495
|
]),
|
508
|
-
|
509
|
-
|
510
|
-
modelValue: c
|
511
|
-
"onUpdate:modelValue": t[3] || (t[3] = (n) =>
|
496
|
+
g("div", fe, [
|
497
|
+
d(te, {
|
498
|
+
modelValue: i(c),
|
499
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => R(c) ? c.value = n : null)
|
512
500
|
}, null, 8, ["modelValue"])
|
513
501
|
]),
|
514
|
-
|
502
|
+
d(G, {
|
515
503
|
ref_key: "controller",
|
516
|
-
ref:
|
517
|
-
"column-defs":
|
518
|
-
"rows-defs":
|
504
|
+
ref: o,
|
505
|
+
"column-defs": Y,
|
506
|
+
"rows-defs": V,
|
519
507
|
onRowClick: t[4] || (t[4] = () => {
|
520
508
|
}),
|
521
|
-
paginate: (n,
|
522
|
-
status:
|
523
|
-
searchKey:
|
509
|
+
paginate: (n, y) => i(v).readTransactions({
|
510
|
+
status: i(s),
|
511
|
+
searchKey: i(m),
|
524
512
|
limit: n,
|
525
|
-
cursor:
|
526
|
-
start: c
|
527
|
-
end: c
|
513
|
+
cursor: y,
|
514
|
+
start: i(c).startDate,
|
515
|
+
end: i(c).endDate
|
528
516
|
})
|
529
517
|
}, null, 8, ["paginate"])
|
530
518
|
]),
|
@@ -534,5 +522,5 @@ const me = /* @__PURE__ */ I({
|
|
534
522
|
}
|
535
523
|
});
|
536
524
|
export {
|
537
|
-
|
525
|
+
Me as default
|
538
526
|
};
|