@feedmepos/mf-payment 1.4.26 → 1.4.27
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/{Actions.vue_vue_type_script_setup_true_lang-DKeIpNIW.js → Actions.vue_vue_type_script_setup_true_lang-zAszH-r3.js} +2 -2
- package/dist/{Chargeback-BDRSyAmK.js → Chargeback-JEmRZ6hx.js} +5 -5
- package/dist/{OnboardForm-AB0mVuJ9.js → OnboardForm-D1Qw74UP.js} +202 -196
- package/dist/{OnboardForm-BSOqOm95.js → OnboardForm-DuxgDu-0.js} +4 -4
- package/dist/{OnboardSubmission-DRWeuOKJ.js → OnboardSubmission-BBELFk7w.js} +5 -5
- package/dist/{OnboardSubmission-Dnk7gYO_.js → OnboardSubmission-s5vKvUwj.js} +2 -2
- package/dist/{PayoutAccount-xYdw-qwo.js → PayoutAccount-C2Im-5FU.js} +5 -5
- package/dist/{PayoutAccount-_3rSThA1.js → PayoutAccount-CjL1qAks.js} +5 -5
- package/dist/{PayoutAccountSetting-BkFPooSa.js → PayoutAccountSetting-BpmU8FGs.js} +3 -3
- package/dist/{Restaurant-7tDDS7PZ.js → Restaurant-D9M7PHlA.js} +4 -4
- package/dist/{RestaurantSetting-jsHDhjrj.js → RestaurantSetting-CKb_KF5v.js} +3 -3
- package/dist/{Settlement-BPeUovFo.js → Settlement-CvD9Q522.js} +3 -3
- package/dist/{Settlement-BOQdhdzn.js → Settlement-DD50OmCm.js} +3 -3
- package/dist/{SettlementTransactions-D7wfVl0P.js → SettlementTransactions-Bdm6r2gK.js} +4 -4
- package/dist/{SettlementTransactions-CmzgEQs0.js → SettlementTransactions-IGbYWQQS.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D3aXDlnu.js → Status.vue_vue_type_script_setup_true_lang-BR--E-L0.js} +1 -1
- package/dist/{Terminal-Bk-fLvmw.js → Terminal-Dh7-SYOx.js} +5 -5
- package/dist/{TerminalSetting-BGtvOvPk.js → TerminalSetting-ODh-KnL9.js} +3 -3
- package/dist/{Transaction-CD3eAEsP.js → Transaction-B3dYL69B.js} +146 -130
- package/dist/{Transaction-B5xuKV97.js → Transaction-a3yfy8Zj.js} +162 -146
- package/dist/{TransactionOld-D8xULx8n.js → TransactionOld-D1ciU1RQ.js} +6 -6
- package/dist/api/index.d.ts +2 -2
- package/dist/{app-BGLSsKgl.js → app-DIbDbLeP.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-BDZz71O5.js → assets-BVxfu_q2.js} +1 -1
- package/dist/{grafana-Dq_GUJiP.js → grafana-DDvZIL19.js} +1 -1
- package/dist/{index-0n1_opm-.js → index-BV3uerRE.js} +1 -1
- package/dist/{index-CqAsZVgo.js → index-BnoTSbLe.js} +1 -1
- package/dist/{index-DeG469p5.js → index-CG_mkFJ1.js} +1 -1
- package/dist/{index-hAcBjD4I.js → index-CeGG2hCY.js} +1 -1
- package/dist/{index-tbFfJPr9.js → index-Cpy4IBFc.js} +2 -2
- package/dist/{index-oXO2UZ2G.js → index-D-8D8G8R.js} +1 -1
- package/dist/{index-hkLk1b3K.js → index-D-D10LpW.js} +5 -4
- package/dist/{index-BIKn02lu.js → index-Dy6ZENAg.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BJ9Ys3KF.js → index.vue_vue_type_script_setup_true_lang-69bFWx5Y.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DRg9Hv9K.js → payout-account-B_Go7Y66.js} +3 -3
- package/dist/{plugins-CXIAJ_yL.js → plugins-Bxz6OiqC.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
- package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,114 +1,114 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as w } from "./index-
|
|
3
|
-
import { h as
|
|
4
|
-
import { g as U, a as
|
|
5
|
-
import { u as
|
|
1
|
+
import { defineComponent as b, resolveComponent as d, openBlock as m, createBlock as T, normalizeClass as C, withCtx as h, createElementVNode as g, toDisplayString as E, unref as f, createElementBlock as D, createVNode as y, Fragment as Y, renderList as O, createTextVNode as P, ref as B, watch as x, isRef as N, h as _ } from "vue";
|
|
2
|
+
import { t as w } from "./index-D-D10LpW.js";
|
|
3
|
+
import { h as F } from "./moment-h96o7c8I.js";
|
|
4
|
+
import { g as U, a as G, t as L, b as q } from "./assets-BVxfu_q2.js";
|
|
5
|
+
import { u as z } from "./index-BV3uerRE.js";
|
|
6
6
|
import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
|
7
7
|
import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
|
-
import { useSnackbar as
|
|
8
|
+
import { useSnackbar as H, useDialog as J } from "@feedmepos/ui-library";
|
|
9
9
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { g as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { e as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { useCoreStore as
|
|
17
|
-
const
|
|
10
|
+
import { u as A } from "./error-K1CakhA9.js";
|
|
11
|
+
import { _ as W } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
12
|
+
import { g as X } from "./grafana-DDvZIL19.js";
|
|
13
|
+
import { _ as Z } from "./index.vue_vue_type_script_setup_true_lang-69bFWx5Y.js";
|
|
14
|
+
import { e as I } from "./index-CG_mkFJ1.js";
|
|
15
|
+
import { _ as ee } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js";
|
|
16
|
+
import { useCoreStore as te } from "@feedmepos/mf-common";
|
|
17
|
+
const ae = /* @__PURE__ */ b({
|
|
18
18
|
__name: "Status",
|
|
19
19
|
props: {
|
|
20
20
|
row: {},
|
|
21
21
|
data: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const r =
|
|
23
|
+
setup(l) {
|
|
24
|
+
const r = l;
|
|
25
25
|
function s() {
|
|
26
|
-
return r.data ===
|
|
26
|
+
return r.data === I.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === I.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : r.data === I.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
|
27
27
|
}
|
|
28
|
-
return (
|
|
29
|
-
const
|
|
30
|
-
return
|
|
28
|
+
return (o, p) => {
|
|
29
|
+
const i = d("FmBadge");
|
|
30
|
+
return m(), T(i, {
|
|
31
31
|
inline: "",
|
|
32
32
|
class: C(s())
|
|
33
33
|
}, {
|
|
34
|
-
default:
|
|
35
|
-
|
|
34
|
+
default: h(() => [
|
|
35
|
+
g("div", null, E(o.data), 1)
|
|
36
36
|
]),
|
|
37
37
|
_: 1
|
|
38
38
|
}, 8, ["class"]);
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), ne = ["src"], re = /* @__PURE__ */ b({
|
|
42
42
|
__name: "Gateway",
|
|
43
43
|
props: {
|
|
44
44
|
row: {},
|
|
45
45
|
data: {}
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
47
|
+
setup(l) {
|
|
48
48
|
return (r, s) => {
|
|
49
|
-
const
|
|
50
|
-
return
|
|
49
|
+
const o = d("FmTooltip");
|
|
50
|
+
return m(), T(o, {
|
|
51
51
|
variant: "plain",
|
|
52
52
|
placement: "top",
|
|
53
53
|
content: r.row.original.gateway,
|
|
54
54
|
"hide-arrow": !0
|
|
55
55
|
}, {
|
|
56
|
-
default:
|
|
57
|
-
|
|
56
|
+
default: h(() => [
|
|
57
|
+
g("img", {
|
|
58
58
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
59
|
-
src:
|
|
60
|
-
}, null, 8,
|
|
59
|
+
src: f(U)(r.row.original.gateway)
|
|
60
|
+
}, null, 8, ne)
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}, 8, ["content"]);
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
}),
|
|
66
|
+
}), oe = ["src"], se = /* @__PURE__ */ b({
|
|
67
67
|
__name: "Method",
|
|
68
68
|
props: {
|
|
69
69
|
row: {},
|
|
70
70
|
data: {}
|
|
71
71
|
},
|
|
72
|
-
setup(
|
|
72
|
+
setup(l) {
|
|
73
73
|
return (r, s) => {
|
|
74
|
-
const
|
|
75
|
-
return
|
|
74
|
+
const o = d("FmTooltip");
|
|
75
|
+
return m(), T(o, {
|
|
76
76
|
variant: "plain",
|
|
77
77
|
placement: "top",
|
|
78
78
|
content: r.row.original.method.issuer,
|
|
79
79
|
"hide-arrow": !0
|
|
80
80
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
|
|
81
|
+
default: h(() => [
|
|
82
|
+
g("img", {
|
|
83
83
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
84
|
-
src:
|
|
85
|
-
}, null, 8,
|
|
84
|
+
src: f(G)(r.row.original.method.issuer, r.row.original.method.variant)
|
|
85
|
+
}, null, 8, oe)
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
88
|
}, 8, ["content"]);
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), ie = /* @__PURE__ */ b({
|
|
92
92
|
__name: "Actions",
|
|
93
93
|
props: {
|
|
94
94
|
onAction: { type: Function },
|
|
95
95
|
transaction: {}
|
|
96
96
|
},
|
|
97
|
-
setup(
|
|
97
|
+
setup(l) {
|
|
98
98
|
const r = [
|
|
99
|
-
|
|
99
|
+
l.transaction.flags.query && {
|
|
100
100
|
label: "Query",
|
|
101
101
|
sublabel: "Perform transaction status inquriy",
|
|
102
102
|
icon: "question_answer",
|
|
103
103
|
action: "query"
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
l.transaction.flags.refund && {
|
|
106
106
|
label: "Refund",
|
|
107
107
|
sublabel: "Perform transaction refund request",
|
|
108
108
|
icon: "request_page",
|
|
109
109
|
action: "refund"
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
l.transaction.flags.notify && {
|
|
112
112
|
label: "Notify",
|
|
113
113
|
sublabel: "Perform webhook notification for transaction",
|
|
114
114
|
icon: "webhook",
|
|
@@ -121,19 +121,19 @@ const te = /* @__PURE__ */ T({
|
|
|
121
121
|
action: "history"
|
|
122
122
|
}
|
|
123
123
|
];
|
|
124
|
-
return (s,
|
|
125
|
-
const
|
|
126
|
-
return
|
|
127
|
-
onClick:
|
|
124
|
+
return (s, o) => {
|
|
125
|
+
const p = d("FmIcon"), i = d("FmMenuItem"), v = d("FmMenu");
|
|
126
|
+
return m(), D("div", {
|
|
127
|
+
onClick: o[0] || (o[0] = (c) => {
|
|
128
128
|
c.stopPropagation();
|
|
129
129
|
})
|
|
130
130
|
}, [
|
|
131
|
-
|
|
132
|
-
"menu-button":
|
|
133
|
-
|
|
131
|
+
y(v, null, {
|
|
132
|
+
"menu-button": h(() => [
|
|
133
|
+
y(p, { name: "settings" })
|
|
134
134
|
]),
|
|
135
|
-
default:
|
|
136
|
-
(
|
|
135
|
+
default: h(() => [
|
|
136
|
+
(m(!0), D(Y, null, O(r.filter((c) => !!c), (c) => (m(), T(i, {
|
|
137
137
|
selectable: !0,
|
|
138
138
|
key: c.label,
|
|
139
139
|
sublabel: c.sublabel,
|
|
@@ -147,29 +147,48 @@ const te = /* @__PURE__ */ T({
|
|
|
147
147
|
]);
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
|
-
}),
|
|
150
|
+
}), ce = { class: "flex items-center gap-1" }, le = /* @__PURE__ */ b({
|
|
151
|
+
__name: "BillSeqNumber",
|
|
152
|
+
props: {
|
|
153
|
+
row: {},
|
|
154
|
+
data: {}
|
|
155
|
+
},
|
|
156
|
+
setup(l) {
|
|
157
|
+
return (r, s) => {
|
|
158
|
+
const o = d("FmIcon");
|
|
159
|
+
return m(), D("span", ce, [
|
|
160
|
+
P(E(r.row.original.seqNumber) + " ", 1),
|
|
161
|
+
y(o, {
|
|
162
|
+
size: "md",
|
|
163
|
+
name: "check",
|
|
164
|
+
color: "#16a34a"
|
|
165
|
+
})
|
|
166
|
+
]);
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
}), ue = { class: "flex justify-between mb-6 items-center" }, de = { class: "flex space-x-4" }, me = { class: "flex space-x-4 self-center" }, pe = { class: "mb-6" }, qe = /* @__PURE__ */ b({
|
|
151
170
|
__name: "Transaction",
|
|
152
|
-
setup(
|
|
153
|
-
const r =
|
|
171
|
+
setup(l) {
|
|
172
|
+
const r = B(), { dateRange: s, searchKey: o } = z({
|
|
154
173
|
searchKey: "",
|
|
155
174
|
dateRange: {
|
|
156
|
-
startDate:
|
|
157
|
-
endDate:
|
|
175
|
+
startDate: F().startOf("day").format("YYYY-MM-DD"),
|
|
176
|
+
endDate: F().endOf("day").format("YYYY-MM-DD")
|
|
158
177
|
}
|
|
159
|
-
}), { sessionUser:
|
|
160
|
-
let
|
|
161
|
-
Number.isNaN(
|
|
162
|
-
const
|
|
163
|
-
start:
|
|
164
|
-
end:
|
|
178
|
+
}), { sessionUser: p } = te(), i = H(), v = J(), c = async (t, e) => {
|
|
179
|
+
let n = parseInt(e);
|
|
180
|
+
Number.isNaN(n) && (n = 1);
|
|
181
|
+
const a = await w.readTransactions({
|
|
182
|
+
start: F(s.value.startDate).startOf("day").toISOString(),
|
|
183
|
+
end: F(s.value.endDate).endOf("day").toISOString(),
|
|
165
184
|
limit: t,
|
|
166
|
-
skip: (
|
|
167
|
-
search:
|
|
168
|
-
}),
|
|
185
|
+
skip: (n - 1) * t,
|
|
186
|
+
search: o.value
|
|
187
|
+
}), u = a.length == t;
|
|
169
188
|
return {
|
|
170
|
-
data:
|
|
189
|
+
data: L(a),
|
|
171
190
|
meta: {
|
|
172
|
-
cursor:
|
|
191
|
+
cursor: u ? (n + 1).toString() : ""
|
|
173
192
|
}
|
|
174
193
|
};
|
|
175
194
|
};
|
|
@@ -178,17 +197,17 @@ const te = /* @__PURE__ */ T({
|
|
|
178
197
|
(t = r.value) == null || t.reset();
|
|
179
198
|
});
|
|
180
199
|
let S;
|
|
181
|
-
x(
|
|
200
|
+
x(o, async () => {
|
|
182
201
|
S && clearTimeout(S), S = setTimeout(() => {
|
|
183
202
|
var t;
|
|
184
203
|
(t = r.value) == null || t.reset();
|
|
185
204
|
}, 700);
|
|
186
205
|
});
|
|
187
|
-
async function
|
|
188
|
-
var
|
|
189
|
-
const e = (
|
|
206
|
+
async function $(t) {
|
|
207
|
+
var n, a;
|
|
208
|
+
const e = (n = r.value) == null ? void 0 : n.pageData().at(t);
|
|
190
209
|
if (!e) {
|
|
191
|
-
|
|
210
|
+
i.open({
|
|
192
211
|
type: "error",
|
|
193
212
|
title: "Something went wrong",
|
|
194
213
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -196,24 +215,24 @@ const te = /* @__PURE__ */ T({
|
|
|
196
215
|
return;
|
|
197
216
|
}
|
|
198
217
|
try {
|
|
199
|
-
const
|
|
200
|
-
(
|
|
218
|
+
const u = await w.refetchTransaction({ transactionId: e.id });
|
|
219
|
+
(a = r.value) == null || a.replaceData(t, q(u)), i.open({
|
|
201
220
|
type: "success",
|
|
202
221
|
title: "Transaction queried and updated successfully."
|
|
203
222
|
});
|
|
204
|
-
} catch (
|
|
205
|
-
|
|
223
|
+
} catch (u) {
|
|
224
|
+
i.open({
|
|
206
225
|
type: "error",
|
|
207
226
|
title: "Fail to query transaction.",
|
|
208
|
-
message:
|
|
227
|
+
message: A(u)
|
|
209
228
|
});
|
|
210
229
|
}
|
|
211
230
|
}
|
|
212
|
-
async function
|
|
213
|
-
var
|
|
214
|
-
const e = (
|
|
231
|
+
async function K(t) {
|
|
232
|
+
var n;
|
|
233
|
+
const e = (n = r.value) == null ? void 0 : n.pageData().at(t);
|
|
215
234
|
if (!e) {
|
|
216
|
-
|
|
235
|
+
i.open({
|
|
217
236
|
type: "error",
|
|
218
237
|
title: "Something went wrong",
|
|
219
238
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -225,32 +244,32 @@ const te = /* @__PURE__ */ T({
|
|
|
225
244
|
"Refund Transaction",
|
|
226
245
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
227
246
|
async () => {
|
|
228
|
-
var
|
|
247
|
+
var a;
|
|
229
248
|
try {
|
|
230
|
-
const
|
|
249
|
+
const u = await w.refundTransaction({
|
|
231
250
|
transactionId: e.id,
|
|
232
251
|
reason: "portal transaction refund",
|
|
233
252
|
amount: e.fdoAmount
|
|
234
253
|
});
|
|
235
|
-
(
|
|
254
|
+
(a = r.value) == null || a.replaceData(t, q(u)), i.open({
|
|
236
255
|
type: "success",
|
|
237
256
|
title: "Transaction refund request initiated."
|
|
238
257
|
});
|
|
239
|
-
} catch (
|
|
240
|
-
|
|
258
|
+
} catch (u) {
|
|
259
|
+
i.open({
|
|
241
260
|
type: "error",
|
|
242
261
|
title: "Fail to request refund transaction.",
|
|
243
|
-
message:
|
|
262
|
+
message: A(u)
|
|
244
263
|
});
|
|
245
264
|
}
|
|
246
265
|
}
|
|
247
266
|
);
|
|
248
267
|
}
|
|
249
|
-
async function
|
|
250
|
-
var
|
|
251
|
-
const e = (
|
|
268
|
+
async function M(t) {
|
|
269
|
+
var n;
|
|
270
|
+
const e = (n = r.value) == null ? void 0 : n.pageData().at(t);
|
|
252
271
|
if (!e) {
|
|
253
|
-
|
|
272
|
+
i.open({
|
|
254
273
|
type: "error",
|
|
255
274
|
title: "Something went wrong",
|
|
256
275
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -263,49 +282,49 @@ const te = /* @__PURE__ */ T({
|
|
|
263
282
|
"Are you sure to perform notify transaction?",
|
|
264
283
|
async () => {
|
|
265
284
|
try {
|
|
266
|
-
await w.renotifyTransaction(e.id),
|
|
285
|
+
await w.renotifyTransaction(e.id), i.open({
|
|
267
286
|
type: "success",
|
|
268
287
|
title: "Transaction notify successfully."
|
|
269
288
|
});
|
|
270
|
-
} catch (
|
|
271
|
-
|
|
289
|
+
} catch (a) {
|
|
290
|
+
i.open({
|
|
272
291
|
type: "error",
|
|
273
292
|
title: "Fail to notify transaction.",
|
|
274
|
-
message:
|
|
293
|
+
message: A(a)
|
|
275
294
|
});
|
|
276
295
|
}
|
|
277
296
|
}
|
|
278
297
|
);
|
|
279
298
|
}
|
|
280
|
-
async function
|
|
281
|
-
var
|
|
282
|
-
const e = (
|
|
299
|
+
async function R(t) {
|
|
300
|
+
var a;
|
|
301
|
+
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
283
302
|
if (!e) {
|
|
284
|
-
|
|
303
|
+
i.open({
|
|
285
304
|
type: "error",
|
|
286
305
|
title: "Something went wrong",
|
|
287
306
|
message: "Fail to find transactions from the displayed transactions."
|
|
288
307
|
});
|
|
289
308
|
return;
|
|
290
309
|
}
|
|
291
|
-
const
|
|
310
|
+
const n = X([
|
|
292
311
|
{
|
|
293
312
|
type: "span",
|
|
294
313
|
queryKey: "transaction.id",
|
|
295
314
|
queryValue: e.id
|
|
296
315
|
}
|
|
297
316
|
], e.transactionAt);
|
|
298
|
-
window.open(
|
|
317
|
+
window.open(n, "_blank");
|
|
299
318
|
}
|
|
300
|
-
const
|
|
319
|
+
const V = [
|
|
301
320
|
{
|
|
302
321
|
header: () => "Transaction ID",
|
|
303
322
|
accessorKey: "id",
|
|
304
323
|
cell: ({ cell: t }) => {
|
|
305
|
-
var
|
|
324
|
+
var n, a;
|
|
306
325
|
let e = "";
|
|
307
|
-
return ((
|
|
308
|
-
ID: ${t.row.original.transactionId}`),
|
|
326
|
+
return ((n = p.value) != null && n.role.isStaff || (a = p.value) != null && a.role.isAdmin) && t.row.original.transactionId && (e = `
|
|
327
|
+
ID: ${t.row.original.transactionId}`), _(ee, { data: t.getValue(), extra: e });
|
|
309
328
|
}
|
|
310
329
|
},
|
|
311
330
|
{
|
|
@@ -315,10 +334,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
315
334
|
{
|
|
316
335
|
header: () => "Bill",
|
|
317
336
|
accessorKey: "seqNumber",
|
|
318
|
-
cell: ({ cell: t, row: e }) => {
|
|
319
|
-
let a = "❌";
|
|
320
|
-
return e.original.seqNumberBinded && (a = "✅"), `${a} ${e.original.seqNumber}`;
|
|
321
|
-
}
|
|
337
|
+
cell: ({ cell: t, row: e }) => e.original.seqNumberBinded ? _(le, { row: e, data: t.getValue() }) : e.original.seqNumber
|
|
322
338
|
},
|
|
323
339
|
{
|
|
324
340
|
header: () => "Gateway",
|
|
@@ -326,7 +342,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
326
342
|
meta: {
|
|
327
343
|
textAlign: "center"
|
|
328
344
|
},
|
|
329
|
-
cell: ({ cell: t, row: e }) => e.original.method ?
|
|
345
|
+
cell: ({ cell: t, row: e }) => e.original.method ? _(re, { row: e, data: t.getValue() }) : ""
|
|
330
346
|
},
|
|
331
347
|
{
|
|
332
348
|
header: () => "Method",
|
|
@@ -334,7 +350,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
334
350
|
meta: {
|
|
335
351
|
textAlign: "center"
|
|
336
352
|
},
|
|
337
|
-
cell: ({ cell: t, row: e }) => e.original.method ?
|
|
353
|
+
cell: ({ cell: t, row: e }) => e.original.method ? _(se, { row: e, data: t.getValue() }) : ""
|
|
338
354
|
},
|
|
339
355
|
{
|
|
340
356
|
header: () => "Gateway ID",
|
|
@@ -351,7 +367,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
351
367
|
{
|
|
352
368
|
header: () => "Status",
|
|
353
369
|
accessorKey: "status",
|
|
354
|
-
cell: ({ cell: t, row: e }) =>
|
|
370
|
+
cell: ({ cell: t, row: e }) => _(ae, { row: e, data: t.getValue() })
|
|
355
371
|
},
|
|
356
372
|
{
|
|
357
373
|
header: () => "Source",
|
|
@@ -369,36 +385,36 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
369
385
|
header: () => "Sales Amount",
|
|
370
386
|
accessorKey: "amount",
|
|
371
387
|
cell: ({ cell: t, row: e }) => {
|
|
372
|
-
var
|
|
373
|
-
return ((
|
|
388
|
+
var n, a;
|
|
389
|
+
return ((n = p.value) != null && n.role.isStaff || (a = p.value) != null && a.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
374
390
|
}
|
|
375
391
|
},
|
|
376
392
|
{
|
|
377
393
|
header: () => "Actions",
|
|
378
394
|
accessorKey: "actions",
|
|
379
395
|
cell: ({ row: t }) => {
|
|
380
|
-
var
|
|
381
|
-
const e = (
|
|
396
|
+
var n;
|
|
397
|
+
const e = (n = r.value) == null ? void 0 : n.pageData().at(t.index);
|
|
382
398
|
if (!e) {
|
|
383
|
-
|
|
399
|
+
i.open({
|
|
384
400
|
type: "error",
|
|
385
401
|
title: "Something went wrong",
|
|
386
402
|
message: "Fail to find transactions from the displayed transactions."
|
|
387
403
|
});
|
|
388
404
|
return;
|
|
389
405
|
}
|
|
390
|
-
return
|
|
406
|
+
return _(ie, {
|
|
391
407
|
transaction: e,
|
|
392
|
-
onAction: (
|
|
393
|
-
switch (
|
|
408
|
+
onAction: (a) => {
|
|
409
|
+
switch (a) {
|
|
394
410
|
case "notify":
|
|
395
|
-
return
|
|
411
|
+
return M(t.index);
|
|
396
412
|
case "query":
|
|
397
|
-
return E(t.index);
|
|
398
|
-
case "refund":
|
|
399
413
|
return $(t.index);
|
|
414
|
+
case "refund":
|
|
415
|
+
return K(t.index);
|
|
400
416
|
case "history":
|
|
401
|
-
return
|
|
417
|
+
return R(t.index);
|
|
402
418
|
}
|
|
403
419
|
}
|
|
404
420
|
});
|
|
@@ -406,49 +422,49 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
406
422
|
}
|
|
407
423
|
];
|
|
408
424
|
return (t, e) => {
|
|
409
|
-
const
|
|
410
|
-
return
|
|
425
|
+
const n = d("FmSearch");
|
|
426
|
+
return m(), T(Q, {
|
|
411
427
|
title: "Transactions",
|
|
412
428
|
loading: !1
|
|
413
429
|
}, {
|
|
414
|
-
default:
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
"model-value":
|
|
419
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
430
|
+
default: h(() => [
|
|
431
|
+
g("div", ue, [
|
|
432
|
+
g("div", de, [
|
|
433
|
+
y(n, {
|
|
434
|
+
"model-value": f(o),
|
|
435
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => N(o) ? o.value = a : null),
|
|
420
436
|
class: "mr-8",
|
|
421
437
|
label: "Search",
|
|
422
438
|
placeholder: "Search Transactions ..."
|
|
423
439
|
}, null, 8, ["model-value"])
|
|
424
440
|
]),
|
|
425
|
-
|
|
426
|
-
|
|
441
|
+
g("div", me, [
|
|
442
|
+
y(j, {
|
|
427
443
|
button: {
|
|
428
444
|
appendIcon: "file_download",
|
|
429
445
|
variant: "primary",
|
|
430
446
|
label: "Export"
|
|
431
447
|
},
|
|
432
448
|
handler: async () => {
|
|
433
|
-
await
|
|
434
|
-
start:
|
|
435
|
-
end:
|
|
449
|
+
await f(w).downloadTransactionReport({
|
|
450
|
+
start: f(s).startDate,
|
|
451
|
+
end: f(s).endDate
|
|
436
452
|
});
|
|
437
453
|
}
|
|
438
454
|
}, null, 8, ["handler"])
|
|
439
455
|
])
|
|
440
456
|
]),
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
modelValue:
|
|
444
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
457
|
+
g("div", pe, [
|
|
458
|
+
y(W, {
|
|
459
|
+
modelValue: f(s),
|
|
460
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => N(s) ? s.value = a : null)
|
|
445
461
|
}, null, 8, ["modelValue"])
|
|
446
462
|
]),
|
|
447
|
-
|
|
463
|
+
y(Z, {
|
|
448
464
|
ref_key: "controller",
|
|
449
465
|
ref: r,
|
|
450
|
-
"column-defs":
|
|
451
|
-
"rows-defs": (
|
|
466
|
+
"column-defs": V,
|
|
467
|
+
"rows-defs": (a) => a,
|
|
452
468
|
paginate: c
|
|
453
469
|
}, null, 8, ["rows-defs"])
|
|
454
470
|
]),
|
|
@@ -458,5 +474,5 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
458
474
|
}
|
|
459
475
|
});
|
|
460
476
|
export {
|
|
461
|
-
|
|
477
|
+
qe as default
|
|
462
478
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
|
|
2
|
-
import { t as v } from "./index-
|
|
3
|
-
import { u as U } from "./index-
|
|
2
|
+
import { t as v } from "./index-D-D10LpW.js";
|
|
3
|
+
import { u as U } from "./index-CG_mkFJ1.js";
|
|
4
4
|
import { useSnackbar as L, useDialog as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { b as $, t as B } from "./assets-
|
|
6
|
-
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { g as z } from "./grafana-
|
|
5
|
+
import { b as $, t as B } from "./assets-BVxfu_q2.js";
|
|
6
|
+
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-zAszH-r3.js";
|
|
7
|
+
import { g as z } from "./grafana-DDvZIL19.js";
|
|
8
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
9
9
|
import { u as V } from "./error-K1CakhA9.js";
|
|
10
10
|
import { useCoreStore as N, useI18n as E } from "@feedmepos/mf-common";
|
|
11
11
|
import { h as I } from "./moment-h96o7c8I.js";
|
|
12
12
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
13
|
-
import { u as W } from "./index-
|
|
13
|
+
import { u as W } from "./index-BV3uerRE.js";
|
|
14
14
|
import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
15
15
|
import { _ as Z } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
|
16
16
|
import { _ as aa } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
package/dist/api/index.d.ts
CHANGED
|
@@ -30,9 +30,9 @@ export declare const authInstance: (config?: {
|
|
|
30
30
|
}) => AxiosInstance;
|
|
31
31
|
export declare const businessClientInstance: () => AxiosInstance;
|
|
32
32
|
export declare const restaurantClientInstance: (prefix?: string) => AxiosInstance;
|
|
33
|
-
type TransformFunction<T> = (value: T) => any;
|
|
33
|
+
type TransformFunction<T, I> = (value: T, item: I) => any;
|
|
34
34
|
type TransformFunctions<T> = {
|
|
35
|
-
[K in keyof T | string]?: TransformFunction<T[K | any]>;
|
|
35
|
+
[K in keyof T | string]?: TransformFunction<T[K | any], T>;
|
|
36
36
|
};
|
|
37
37
|
export declare function flattenObject(obj: Record<string, any>, parentKey?: string): Record<string, any>;
|
|
38
38
|
export declare function localWorkbookAndDownload<T extends Object>(data: T[], options?: {
|