@feedmepos/mf-payment 1.0.17 → 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-B4_FlpNy.js → PayoutAccount-DCq9zJ7I.js} +4 -3
- package/dist/{PayoutAccount-C1F4nzhY.js → PayoutAccount-Dlrre2MV.js} +83 -115
- package/dist/PayoutAccountSetting-D6Scsqvm.js +426 -0
- package/dist/{Restaurant-TCSbQjCj.js → Restaurant-AoDzEhKi.js} +4 -4
- package/dist/{RestaurantSetting-D_dNcxQd.js → RestaurantSetting-CAQfJwaq.js} +137 -115
- package/dist/{Settlement-BQe2JW-Q.js → Settlement-anAN-1YR.js} +3 -3
- package/dist/Settlement-kfM1jLO-.js +444 -0
- package/dist/{SettlementTransactions-DD6wLd4W.js → SettlementTransactions-IhEM3Qtp.js} +4 -4
- package/dist/{SettlementTransactions-9sVg8_eQ.js → SettlementTransactions-dVE594dr.js} +4 -4
- package/dist/Terminal-C0Irg7I_.js +435 -0
- package/dist/{TerminalSetting-CNjiW8AS.js → TerminalSetting-mMj1OSGc.js} +43 -41
- package/dist/{TerminalTransaction-BHdUR8kU.js → TerminalTransaction-2Oe5b_rm.js} +205 -194
- package/dist/TerminalTransaction-Coth2MwA.js +269 -0
- package/dist/Transaction-BbbVDMIm.js +247 -0
- package/dist/{Transaction-Sq0Vy8K5.js → Transaction-ChE2VgSa.js} +6 -6
- package/dist/{TransactionOld-DgFEZ8lO.js → TransactionOld-T8CKBB6U.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.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-DSs9frsP.js → app-B36bwKcX.js} +145 -145
- package/dist/app.js +1 -1
- package/dist/{assets-isbnAWcO.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-M-Xwbigf.js → index-C2q2ptf8.js} +1 -1
- package/dist/{index-CRJ6lKaL.js → index-CC8HNMje.js} +2 -2
- package/dist/{index-zuIHTzhv.js → index-CEJAjyRa.js} +1 -1
- package/dist/{index-CMfikq5P.js → index-Cj90pU-C.js} +27 -20
- package/dist/{index-_cvebzIU.js → index-DueuWuxx.js} +1 -1
- package/dist/{index-C-YBzOUs.js → index-ZMBnoQxd.js} +31 -23
- package/dist/{index.vue_vue_type_script_setup_true_lang-atP7HnX3.js → index.vue_vue_type_script_setup_true_lang-PfAufXp3.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DcBR5HoD.js → payout-account-D-LZ6-Lb.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{transaction-3qMvkl2b.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-D1JZ56cv.js +0 -110
- package/dist/PayoutAccountSetting-BEw1XNuX.js +0 -758
- package/dist/Settlement-DTA0SdZc.js +0 -145
- package/dist/Terminal-Dd2OGvH_.js +0 -404
- package/dist/TerminalTransaction-BDye71lK.js +0 -819
- package/dist/Transaction-EmgoD2xm.js +0 -145
- package/dist/grafana-Bf4L47IF.js +0 -49
- package/dist/index-B7mrn8cQ.js +0 -47
- package/dist/index-DuemQbuN.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,90 +1,112 @@
|
|
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-
|
6
|
-
import { _ as
|
7
|
-
import { useSnackbar as
|
8
|
-
import { g as
|
9
|
-
import { E as
|
10
|
-
import { d as
|
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
|
+
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 } 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";
|
14
14
|
import { w as Z } from "./Modal-DB8M9o1T.js";
|
15
|
-
import { u as
|
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
|
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
|
+
key: 0,
|
52
53
|
inline: "",
|
53
|
-
class:
|
54
|
+
class: E(u())
|
55
|
+
}, {
|
56
|
+
default: T(() => [
|
57
|
+
g("div", null, N(o.data.toUpperCase()), 1)
|
58
|
+
]),
|
59
|
+
_: 1
|
60
|
+
}, 8, ["class"])) : (w(), F(m, {
|
61
|
+
key: 1,
|
62
|
+
variant: "rich",
|
63
|
+
placement: "top"
|
54
64
|
}, {
|
55
|
-
|
56
|
-
|
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
|
+
]),
|
69
|
+
default: T(() => [
|
70
|
+
d(s, {
|
71
|
+
inline: "",
|
72
|
+
class: E(u())
|
73
|
+
}, {
|
74
|
+
default: T(() => [
|
75
|
+
g("div", null, N(o.data.toUpperCase()), 1)
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}, 8, ["class"])
|
57
79
|
]),
|
58
80
|
_: 1
|
59
|
-
}
|
81
|
+
}));
|
60
82
|
};
|
61
83
|
}
|
62
|
-
}), ie = /* @__PURE__ */
|
84
|
+
}), ie = /* @__PURE__ */ C({
|
63
85
|
__name: "RouteCell",
|
64
86
|
props: {
|
65
87
|
data: {},
|
66
88
|
route: {}
|
67
89
|
},
|
68
|
-
setup(
|
69
|
-
const a =
|
70
|
-
function
|
71
|
-
|
90
|
+
setup(f) {
|
91
|
+
const a = f, u = X();
|
92
|
+
function o() {
|
93
|
+
u.push(a.route);
|
72
94
|
}
|
73
|
-
return (
|
95
|
+
return (c, s) => (w(), x("div", {
|
74
96
|
class: "fm-typo-en-link-md-600",
|
75
|
-
onClick: s[0] || (s[0] = (
|
76
|
-
|
97
|
+
onClick: s[0] || (s[0] = (m) => {
|
98
|
+
m.stopPropagation(), o();
|
77
99
|
})
|
78
|
-
},
|
100
|
+
}, N(c.data), 1));
|
79
101
|
}
|
80
|
-
}), ce = /* @__PURE__ */
|
102
|
+
}), ce = /* @__PURE__ */ C({
|
81
103
|
__name: "Actions",
|
82
104
|
props: {
|
83
105
|
onAction: { type: Function },
|
84
106
|
gateway: {}
|
85
107
|
},
|
86
|
-
setup(
|
87
|
-
const a =
|
108
|
+
setup(f) {
|
109
|
+
const a = f, u = [
|
88
110
|
{
|
89
111
|
label: "Log",
|
90
112
|
sublabel: "Inspect transaction historical actions, requests and responses.",
|
@@ -92,7 +114,7 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
92
114
|
action: "history"
|
93
115
|
}
|
94
116
|
];
|
95
|
-
return a.gateway ===
|
117
|
+
return a.gateway === p.F_TERMINAL_PAYMENT_GATEWAY_PROVIDER.Enum.ScanPay && u.push(
|
96
118
|
{
|
97
119
|
label: "Query",
|
98
120
|
sublabel: "Perform transaction status inquriy",
|
@@ -105,25 +127,25 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
105
127
|
icon: "request_page",
|
106
128
|
action: "refund"
|
107
129
|
}
|
108
|
-
), (
|
109
|
-
const s =
|
110
|
-
return
|
111
|
-
onClick:
|
112
|
-
|
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
|
+
_.stopPropagation();
|
113
135
|
})
|
114
136
|
}, [
|
115
|
-
|
116
|
-
"menu-button":
|
117
|
-
|
137
|
+
d(I, null, {
|
138
|
+
"menu-button": T(() => [
|
139
|
+
d(s, { name: "settings" })
|
118
140
|
]),
|
119
|
-
default:
|
120
|
-
(
|
141
|
+
default: T(() => [
|
142
|
+
(w(), x(K, null, L(u, (_) => d(m, {
|
121
143
|
selectable: !0,
|
122
|
-
key:
|
123
|
-
sublabel:
|
124
|
-
label:
|
125
|
-
icon:
|
126
|
-
onclick: () =>
|
144
|
+
key: _.label,
|
145
|
+
sublabel: _.sublabel,
|
146
|
+
label: _.label,
|
147
|
+
icon: _.icon,
|
148
|
+
onclick: () => o.onAction(_.action)
|
127
149
|
}, null, 8, ["sublabel", "label", "icon", "onclick"])), 64))
|
128
150
|
]),
|
129
151
|
_: 1
|
@@ -132,72 +154,43 @@ const ne = { class: "flex" }, re = ["src"], oe = ["src"], se = /* @__PURE__ */ I
|
|
132
154
|
};
|
133
155
|
}
|
134
156
|
});
|
135
|
-
function ue(
|
157
|
+
function ue(f) {
|
136
158
|
let a;
|
137
159
|
try {
|
138
|
-
a = parseInt(
|
160
|
+
a = parseInt(f.substr(0, 8), 16) * 1e3;
|
139
161
|
} catch {
|
140
162
|
return null;
|
141
163
|
}
|
142
164
|
return new Date(a);
|
143
165
|
}
|
144
|
-
const me = /* @__PURE__ */
|
145
|
-
__name: "Timestamp",
|
146
|
-
props: {
|
147
|
-
createdAt: {},
|
148
|
-
transactionAt: {},
|
149
|
-
refundedAt: {}
|
150
|
-
},
|
151
|
-
setup(d) {
|
152
|
-
return (a, m) => {
|
153
|
-
const r = g("FmListItem"), l = g("FmList");
|
154
|
-
return A(), v(l, { class: "w-[180px]" }, {
|
155
|
-
default: w(() => [
|
156
|
-
u(r, {
|
157
|
-
label: "Created At",
|
158
|
-
sublabel: a.createdAt
|
159
|
-
}, null, 8, ["sublabel"]),
|
160
|
-
u(r, {
|
161
|
-
label: "Transaction At",
|
162
|
-
sublabel: a.transactionAt
|
163
|
-
}, null, 8, ["sublabel"]),
|
164
|
-
u(r, {
|
165
|
-
label: "Refunded At",
|
166
|
-
sublabel: a.refundedAt
|
167
|
-
}, null, 8, ["sublabel"])
|
168
|
-
]),
|
169
|
-
_: 1
|
170
|
-
});
|
171
|
-
};
|
172
|
-
}
|
173
|
-
}), 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" }, Ye = /* @__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({
|
174
167
|
__name: "TerminalTransaction",
|
175
|
-
setup(
|
176
|
-
const a =
|
168
|
+
setup(f) {
|
169
|
+
const a = B(), u = H(), o = $(), { dateRange: c, status: s, searchKey: m } = P({
|
177
170
|
searchKey: "",
|
178
|
-
status: [
|
171
|
+
status: [p.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
179
172
|
dateRange: {
|
180
|
-
startDate:
|
181
|
-
endDate:
|
173
|
+
startDate: b().startOf("day").format("YYYY-MM-DD"),
|
174
|
+
endDate: b().endOf("day").format("YYYY-MM-DD")
|
182
175
|
}
|
183
176
|
});
|
184
|
-
|
177
|
+
S([c, s], () => {
|
185
178
|
var e;
|
186
|
-
return (e =
|
179
|
+
return (e = o.value) == null ? void 0 : e.reset();
|
187
180
|
});
|
188
|
-
let
|
189
|
-
|
190
|
-
|
181
|
+
let I;
|
182
|
+
S(m, async () => {
|
183
|
+
I && clearTimeout(I), I = setTimeout(
|
191
184
|
() => {
|
192
185
|
var e;
|
193
|
-
return (e =
|
186
|
+
return (e = o.value) == null ? void 0 : e.reset();
|
194
187
|
},
|
195
188
|
700
|
196
189
|
);
|
197
190
|
});
|
198
|
-
async function
|
199
|
-
var
|
200
|
-
const t = (
|
191
|
+
async function _(e) {
|
192
|
+
var r, l, n;
|
193
|
+
const t = (l = (r = o.value) == null ? void 0 : r.pageData()) == null ? void 0 : l.at(e);
|
201
194
|
if (!t) {
|
202
195
|
a.open({
|
203
196
|
type: "error",
|
@@ -215,22 +208,22 @@ const me = /* @__PURE__ */ I({
|
|
215
208
|
return;
|
216
209
|
}
|
217
210
|
try {
|
218
|
-
const
|
219
|
-
(n =
|
211
|
+
const y = await v.queryTransaction(t._id);
|
212
|
+
(n = o.value) == null || n.replaceData(e, y), a.open({
|
220
213
|
type: "success",
|
221
214
|
title: "Transaction queried and updated successfully."
|
222
215
|
});
|
223
|
-
} catch (
|
216
|
+
} catch (y) {
|
224
217
|
a.open({
|
225
218
|
type: "error",
|
226
219
|
title: "Fail to query transaction.",
|
227
|
-
message:
|
220
|
+
message: M(y)
|
228
221
|
});
|
229
222
|
}
|
230
223
|
}
|
231
|
-
async function
|
232
|
-
var
|
233
|
-
const t = (
|
224
|
+
async function k(e) {
|
225
|
+
var r, l;
|
226
|
+
const t = (l = (r = o.value) == null ? void 0 : r.pageData()) == null ? void 0 : l.at(e);
|
234
227
|
if (!t) {
|
235
228
|
a.open({
|
236
229
|
type: "error",
|
@@ -248,34 +241,34 @@ const me = /* @__PURE__ */ I({
|
|
248
241
|
return;
|
249
242
|
}
|
250
243
|
Z(
|
251
|
-
|
244
|
+
u,
|
252
245
|
"Refund Transaction",
|
253
246
|
"Are you sure to refund transaction? This action cannot be revert!",
|
254
247
|
async () => {
|
255
248
|
var n;
|
256
249
|
try {
|
257
|
-
const
|
250
|
+
const y = await v.refundTransaction({
|
258
251
|
transactionId: t._id,
|
259
252
|
reason: "portal transaction refund",
|
260
253
|
amount: t.details.amount
|
261
254
|
});
|
262
|
-
(n =
|
255
|
+
(n = o.value) == null || n.replaceData(e, y), a.open({
|
263
256
|
type: "success",
|
264
257
|
title: "Transaction queried and updated successfully."
|
265
258
|
});
|
266
|
-
} catch (
|
259
|
+
} catch (y) {
|
267
260
|
a.open({
|
268
261
|
type: "error",
|
269
262
|
title: "Fail to query transaction.",
|
270
|
-
message:
|
263
|
+
message: M(y)
|
271
264
|
});
|
272
265
|
}
|
273
266
|
}
|
274
267
|
);
|
275
268
|
}
|
276
|
-
async function
|
277
|
-
var
|
278
|
-
const t = (n = (
|
269
|
+
async function O(e) {
|
270
|
+
var l, n;
|
271
|
+
const t = (n = (l = o.value) == null ? void 0 : l.pageData()) == null ? void 0 : n.at(e);
|
279
272
|
if (!t) {
|
280
273
|
a.open({
|
281
274
|
type: "error",
|
@@ -284,37 +277,37 @@ const me = /* @__PURE__ */ I({
|
|
284
277
|
});
|
285
278
|
return;
|
286
279
|
}
|
287
|
-
const
|
280
|
+
const r = ae([
|
288
281
|
{
|
289
282
|
type: "span",
|
290
283
|
queryKey: "transaction.id",
|
291
284
|
queryValue: t._id
|
292
285
|
}
|
293
286
|
]);
|
294
|
-
window.open(
|
287
|
+
window.open(r, "_blank");
|
295
288
|
}
|
296
|
-
const
|
289
|
+
const D = [
|
297
290
|
{
|
298
291
|
label: "Success",
|
299
|
-
value:
|
292
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
300
293
|
},
|
301
294
|
{
|
302
295
|
label: "Refunded",
|
303
|
-
value:
|
296
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
304
297
|
},
|
305
298
|
{
|
306
299
|
label: "Process",
|
307
|
-
value:
|
300
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
308
301
|
},
|
309
302
|
{
|
310
303
|
label: "Failed",
|
311
|
-
value:
|
304
|
+
value: p.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
312
305
|
}
|
313
|
-
],
|
306
|
+
], V = function(e) {
|
314
307
|
const t = e;
|
315
|
-
let
|
316
|
-
t.details && t.details.amount && (
|
317
|
-
const
|
308
|
+
let r = "-";
|
309
|
+
t.details && t.details.amount && (r = W(t.details.amount).toFormat("$0.00"));
|
310
|
+
const l = ue(e._id);
|
318
311
|
return {
|
319
312
|
id: e._id,
|
320
313
|
transactionId: e.transactionId,
|
@@ -325,19 +318,20 @@ const me = /* @__PURE__ */ I({
|
|
325
318
|
action: e.action,
|
326
319
|
gateway: e.gateway,
|
327
320
|
ecrGateway: e.ecrGateway,
|
328
|
-
amount:
|
329
|
-
createdAt:
|
330
|
-
transactionAt: e.transactionAt ?
|
331
|
-
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",
|
325
|
+
error: e.error
|
332
326
|
};
|
333
|
-
},
|
327
|
+
}, Y = [
|
334
328
|
{
|
335
329
|
accessorKey: "transactionId",
|
336
330
|
header: () => "Transaction ID",
|
337
331
|
meta: {
|
338
332
|
textAlign: "left"
|
339
333
|
},
|
340
|
-
cell: ({ cell: e }) =>
|
334
|
+
cell: ({ cell: e }) => A(J, { data: e.getValue() })
|
341
335
|
},
|
342
336
|
{
|
343
337
|
accessorKey: "orderId",
|
@@ -360,16 +354,15 @@ const me = /* @__PURE__ */ I({
|
|
360
354
|
textAlign: "center",
|
361
355
|
maxWidth: "128px"
|
362
356
|
},
|
363
|
-
cell: ({ cell: e, row: t }) =>
|
357
|
+
cell: ({ cell: e, row: t }) => A(se, { row: t, data: e.getValue() })
|
364
358
|
},
|
365
359
|
{
|
366
360
|
accessorKey: "action",
|
367
361
|
header: () => "Status",
|
368
362
|
meta: {
|
369
|
-
textAlign: "right"
|
370
|
-
maxWidth: "132px"
|
363
|
+
textAlign: "right"
|
371
364
|
},
|
372
|
-
cell: ({ cell: e, row: t }) =>
|
365
|
+
cell: ({ cell: e, row: t }) => A(le, { row: t, data: e.getValue() })
|
373
366
|
},
|
374
367
|
{
|
375
368
|
accessorKey: "amount",
|
@@ -385,12 +378,12 @@ const me = /* @__PURE__ */ I({
|
|
385
378
|
textAlign: "left"
|
386
379
|
},
|
387
380
|
cell: ({ cell: e, row: t }) => {
|
388
|
-
const
|
389
|
-
return
|
390
|
-
data:
|
381
|
+
const r = e.getValue();
|
382
|
+
return A(ie, {
|
383
|
+
data: r,
|
391
384
|
route: {
|
392
385
|
name: "mf-payment-admin.terminal-setting",
|
393
|
-
params: { terminalId:
|
386
|
+
params: { terminalId: r }
|
394
387
|
}
|
395
388
|
});
|
396
389
|
}
|
@@ -403,73 +396,91 @@ const me = /* @__PURE__ */ I({
|
|
403
396
|
}
|
404
397
|
},
|
405
398
|
{
|
406
|
-
accessorKey: "
|
407
|
-
header: () => "
|
399
|
+
accessorKey: "createdAt",
|
400
|
+
header: () => "Created At",
|
408
401
|
meta: {
|
409
|
-
textAlign: "left"
|
402
|
+
textAlign: "left",
|
403
|
+
headerClass: "min-w-[172px] justify-items-center",
|
404
|
+
cellClass: "min-w-[172px]"
|
410
405
|
},
|
411
|
-
cell: ({
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
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())
|
416
427
|
},
|
417
428
|
{
|
418
429
|
header: () => "Actions",
|
419
430
|
accessorKey: "actions",
|
420
|
-
cell: ({ row: e }) =>
|
431
|
+
cell: ({ row: e }) => A(ce, {
|
421
432
|
gateway: e.original.gateway,
|
422
433
|
onAction: (t) => {
|
423
|
-
const
|
434
|
+
const r = e.index;
|
424
435
|
switch (t) {
|
425
436
|
case "history":
|
426
|
-
return
|
437
|
+
return O(r);
|
427
438
|
case "query":
|
428
|
-
return
|
439
|
+
return _(r);
|
429
440
|
case "refund":
|
430
|
-
return
|
441
|
+
return k(r);
|
431
442
|
}
|
432
443
|
}
|
433
444
|
})
|
434
445
|
}
|
435
446
|
];
|
436
447
|
return (e, t) => {
|
437
|
-
const
|
438
|
-
return
|
448
|
+
const r = h("FmSearch"), l = h("FmSelect");
|
449
|
+
return w(), F(U, {
|
439
450
|
title: "Terminal Transactions",
|
440
451
|
loading: !1
|
441
452
|
}, {
|
442
|
-
default:
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
"model-value":
|
447
|
-
"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),
|
448
459
|
class: "mr-8",
|
449
460
|
label: "Search",
|
450
461
|
placeholder: "Search Transactions ..."
|
451
462
|
}, null, 8, ["model-value"]),
|
452
|
-
|
453
|
-
modelValue:
|
454
|
-
"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),
|
455
466
|
class: "mr-6 w-[300px]",
|
456
467
|
label: "Status",
|
457
468
|
"label-mark": "required",
|
458
469
|
multiselect: "",
|
459
|
-
items:
|
470
|
+
items: D
|
460
471
|
}, {
|
461
|
-
"prepend-menu":
|
462
|
-
|
463
|
-
modelValue:
|
464
|
-
"onUpdate:modelValue": t[1] || (t[1] = (n) =>
|
465
|
-
items:
|
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),
|
476
|
+
items: D
|
466
477
|
}, null, 8, ["modelValue"])
|
467
478
|
]),
|
468
479
|
_: 1
|
469
480
|
}, 8, ["modelValue"])
|
470
481
|
]),
|
471
|
-
|
472
|
-
|
482
|
+
g("div", pe, [
|
483
|
+
d(z, {
|
473
484
|
button: {
|
474
485
|
appendIcon: "file_download",
|
475
486
|
variant: "primary",
|
@@ -477,31 +488,31 @@ const me = /* @__PURE__ */ I({
|
|
477
488
|
},
|
478
489
|
handler: async () => {
|
479
490
|
var n;
|
480
|
-
return
|
491
|
+
return i(v).downloadTransactions(await ((n = o.value) == null ? void 0 : n.allData()) ?? []);
|
481
492
|
}
|
482
493
|
}, null, 8, ["handler"])
|
483
494
|
])
|
484
495
|
]),
|
485
|
-
|
486
|
-
|
487
|
-
modelValue: c
|
488
|
-
"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)
|
489
500
|
}, null, 8, ["modelValue"])
|
490
501
|
]),
|
491
|
-
|
502
|
+
d(G, {
|
492
503
|
ref_key: "controller",
|
493
|
-
ref:
|
494
|
-
"column-defs":
|
495
|
-
"rows-defs":
|
504
|
+
ref: o,
|
505
|
+
"column-defs": Y,
|
506
|
+
"rows-defs": V,
|
496
507
|
onRowClick: t[4] || (t[4] = () => {
|
497
508
|
}),
|
498
|
-
paginate: (n,
|
499
|
-
status:
|
500
|
-
searchKey:
|
509
|
+
paginate: (n, y) => i(v).readTransactions({
|
510
|
+
status: i(s),
|
511
|
+
searchKey: i(m),
|
501
512
|
limit: n,
|
502
|
-
cursor:
|
503
|
-
start: c
|
504
|
-
end: c
|
513
|
+
cursor: y,
|
514
|
+
start: i(c).startDate,
|
515
|
+
end: i(c).endDate
|
505
516
|
})
|
506
517
|
}, null, 8, ["paginate"])
|
507
518
|
]),
|
@@ -511,5 +522,5 @@ const me = /* @__PURE__ */ I({
|
|
511
522
|
}
|
512
523
|
});
|
513
524
|
export {
|
514
|
-
|
525
|
+
Me as default
|
515
526
|
};
|