@feedmepos/mf-payment 1.0.28-beta.2 → 1.1.0-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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-CBh520Qd.js → PayoutAccount-BHJpjUqD.js} +5 -5
- package/dist/{PayoutAccount-BnHoTtMi.js → PayoutAccount-DCkf_1yL.js} +5 -4
- package/dist/PayoutAccountSetting-Bk-g7ucZ.js +723 -0
- package/dist/{Restaurant-Hg88M5VI.js → Restaurant-D2qq84VL.js} +56 -54
- package/dist/{RestaurantSetting-B-wc4YDK.js → RestaurantSetting-DAtrtX6S.js} +3 -3
- package/dist/{Settlement-BGS6kLTS.js → Settlement-BVIsszEJ.js} +37 -34
- package/dist/{Settlement-Ce2W2XDS.js → Settlement-Cx1tc5wt.js} +9 -8
- package/dist/{SettlementTransactions-DACSkgFS.js → SettlementTransactions-C82DyYlO.js} +14 -14
- package/dist/{SettlementTransactions-CFS-4VBi.js → SettlementTransactions-CeN4SRWa.js} +39 -39
- package/dist/{Terminal-yfS0o6id.js → Terminal-Az2k8E6F.js} +323 -342
- package/dist/{TerminalSetting-NvYoH1FN.js → TerminalSetting-C-xlLYXa.js} +27 -27
- package/dist/Transaction-CC8hc8_r.js +250 -0
- package/dist/{Transaction-DOkGYxU_.js → Transaction-Y_mc0yQv.js} +123 -105
- package/dist/{TransactionOld-zxpmzUzh.js → TransactionOld-BxhI-wwm.js} +7 -7
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-dwwesT4_.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-U2zosiYM.js → app-OBp4HaEY.js} +873 -811
- package/dist/app.js +1 -1
- package/dist/{assets-C5ikBqta.js → assets-pLBp82yE.js} +208 -58
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-Bf91brqK.js → grafana-hv7inD36.js} +1 -1
- package/dist/{index-GteStxtj.js → index-1xF00w89.js} +1 -1
- package/dist/{index-BBoi9wDz.js → index-CFYD8Dv4.js} +1 -1
- package/dist/index-Cqq3p9PP.js +66 -0
- package/dist/{index-B5xc12hq.js → index-DD5mEX0D.js} +1 -1
- package/dist/{index-D8J1GO2q.js → index-DGKxdJVj.js} +8164 -8082
- package/dist/index-oM4Z9ffu.js +45 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-DZwLItyk.js → index.vue_vue_type_script_setup_true_lang-C9tnqgzY.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +2 -2
- package/dist/{payout-account-BKcgcf9C.js → payout-account-DPaS3dIs.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- 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/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +2 -2
- package/dist/PayoutAccountSetting-xC8_JQLN.js +0 -426
- package/dist/TerminalTransaction-BulIYAWj.js +0 -333
- package/dist/TerminalTransaction-HMmRqtr1.js +0 -589
- package/dist/Transaction-B1u_AbEJ.js +0 -247
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-DEPASHaN.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-6CRJVoBq.js +0 -52
- package/dist/index-Cti5gi62.js +0 -77
- package/dist/index-l27QvtNB.js +0 -40
- package/dist/transaction-CxXve4F4.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,589 +0,0 @@
|
|
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-D8J1GO2q.js";
|
3
|
-
import { h as N } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as P } from "./index-GteStxtj.js";
|
5
|
-
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-DZwLItyk.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-C5ikBqta.js";
|
9
|
-
import { E as Q, t as R } from "./index-Cti5gi62.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-Bf91brqK.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, u) => {
|
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 u() {
|
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, i) => {
|
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(u())
|
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(u())
|
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, u = Z();
|
115
|
-
function r() {
|
116
|
-
u.push(a.route);
|
117
|
-
}
|
118
|
-
return (i, 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(i.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, u = [
|
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 && u.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, i) => {
|
154
|
-
const s = w("FmIcon"), f = w("FmMenuItem"), b = w("FmMenu");
|
155
|
-
return h(), C("div", {
|
156
|
-
onClick: i[0] || (i[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, $(u, (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, u) => {
|
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(), u = H(), r = L(), { dateRange: i, 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([i, 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, c, n;
|
241
|
-
const t = (c = (o = r.value) == null ? void 0 : o.pageData()) == null ? void 0 : c.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, c;
|
274
|
-
const t = (c = (o = r.value) == null ? void 0 : o.pageData()) == null ? void 0 : c.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
|
-
u,
|
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 c, n;
|
319
|
-
const t = (n = (c = r.value) == null ? void 0 : c.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 c = 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: c ? N(c).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"), c = 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(c, {
|
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(l(i), 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(i),
|
562
|
-
"onUpdate:modelValue": t[3] || (t[3] = (n) => F(i) ? i.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(i).startDate,
|
578
|
-
end: l(i).endDate
|
579
|
-
})
|
580
|
-
}, null, 8, ["paginate"])
|
581
|
-
]),
|
582
|
-
_: 1
|
583
|
-
});
|
584
|
-
};
|
585
|
-
}
|
586
|
-
});
|
587
|
-
export {
|
588
|
-
Oe as default
|
589
|
-
};
|