@feedmepos/mf-payment 1.4.25 → 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-C3FaA4nS.js → Actions.vue_vue_type_script_setup_true_lang-zAszH-r3.js} +2 -2
- package/dist/{Chargeback-BoY4sNPQ.js → Chargeback-JEmRZ6hx.js} +5 -5
- package/dist/{OnboardForm-D6X8LFLw.js → OnboardForm-D1Qw74UP.js} +202 -196
- package/dist/{OnboardForm-9Rb5b4mY.js → OnboardForm-DuxgDu-0.js} +4 -4
- package/dist/{OnboardSubmission-Bnuo32bn.js → OnboardSubmission-BBELFk7w.js} +5 -5
- package/dist/{OnboardSubmission-DaKfRQTC.js → OnboardSubmission-s5vKvUwj.js} +2 -2
- package/dist/{PayoutAccount-UP0shZMn.js → PayoutAccount-C2Im-5FU.js} +5 -5
- package/dist/{PayoutAccount-BwqjoKCd.js → PayoutAccount-CjL1qAks.js} +5 -5
- package/dist/{PayoutAccountSetting-BIIeO_h-.js → PayoutAccountSetting-BpmU8FGs.js} +3 -3
- package/dist/{Restaurant-DcSXFIRF.js → Restaurant-D9M7PHlA.js} +4 -4
- package/dist/{RestaurantSetting-C3yTbo5H.js → RestaurantSetting-CKb_KF5v.js} +3 -3
- package/dist/{Settlement-CyQTaeVj.js → Settlement-CvD9Q522.js} +3 -3
- package/dist/{Settlement-r4llJs77.js → Settlement-DD50OmCm.js} +3 -3
- package/dist/{SettlementTransactions-Cri5jcFr.js → SettlementTransactions-Bdm6r2gK.js} +4 -4
- package/dist/{SettlementTransactions-WlD-PeWg.js → SettlementTransactions-IGbYWQQS.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CzsRrsWJ.js → Status.vue_vue_type_script_setup_true_lang-BR--E-L0.js} +1 -1
- package/dist/{Terminal-CAfjZl5r.js → Terminal-Dh7-SYOx.js} +5 -5
- package/dist/{TerminalSetting-CV6uai7K.js → TerminalSetting-ODh-KnL9.js} +3 -3
- package/dist/{Transaction-BG-3FqP7.js → Transaction-B3dYL69B.js} +146 -130
- package/dist/{Transaction-BpjeM2Kl.js → Transaction-a3yfy8Zj.js} +139 -119
- package/dist/{TransactionOld-DXE1fL9I.js → TransactionOld-D1ciU1RQ.js} +6 -6
- package/dist/api/index.d.ts +2 -2
- package/dist/{app-D9VW-nZZ.js → app-DIbDbLeP.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-BB1p-gT5.js → assets-BVxfu_q2.js} +1 -1
- package/dist/{grafana-Dgr59sIY.js → grafana-DDvZIL19.js} +1 -1
- package/dist/{index-BU2M6dJ6.js → index-BV3uerRE.js} +1 -1
- package/dist/{index-CrUS7DCJ.js → index-BnoTSbLe.js} +1 -1
- package/dist/{index-BGtZVNWb.js → index-CG_mkFJ1.js} +9121 -9318
- package/dist/{index-CAV8HKHv.js → index-CeGG2hCY.js} +1 -1
- package/dist/{index-BFD_JkFY.js → index-Cpy4IBFc.js} +2 -2
- package/dist/{index-Qv0p1ng_.js → index-D-8D8G8R.js} +1 -1
- package/dist/{index-UNw836Co.js → index-D-D10LpW.js} +5 -4
- package/dist/{index-5qlpodLM.js → index-Dy6ZENAg.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-5lM9sOEW.js → index.vue_vue_type_script_setup_true_lang-69bFWx5Y.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-Ax8tPOZ7.js → payout-account-B_Go7Y66.js} +3 -3
- package/dist/{plugins-CdWbUilR.js → plugins-Bxz6OiqC.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +4 -4
- 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 +2 -2
|
@@ -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
|
|
9
|
-
import { w as
|
|
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
|
|
8
|
+
import { useSnackbar as H, useDialog as J } from "@feedmepos/ui-library";
|
|
9
|
+
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
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:
|
|
178
|
+
}), { sessionUser: p } = te(), i = H(), v = J(), c = async (t, e) => {
|
|
160
179
|
let n = parseInt(e);
|
|
161
180
|
Number.isNaN(n) && (n = 1);
|
|
162
181
|
const a = await w.readTransactions({
|
|
163
|
-
start:
|
|
164
|
-
end:
|
|
182
|
+
start: F(s.value.startDate).startOf("day").toISOString(),
|
|
183
|
+
end: F(s.value.endDate).endOf("day").toISOString(),
|
|
165
184
|
limit: t,
|
|
166
185
|
skip: (n - 1) * t,
|
|
167
|
-
search:
|
|
168
|
-
}),
|
|
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
|
|
206
|
+
async function $(t) {
|
|
188
207
|
var n, a;
|
|
189
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,16 +215,16 @@ const te = /* @__PURE__ */ T({
|
|
|
196
215
|
return;
|
|
197
216
|
}
|
|
198
217
|
try {
|
|
199
|
-
const
|
|
200
|
-
(a = r.value) == null || a.replaceData(t,
|
|
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
|
}
|
|
@@ -213,34 +232,34 @@ const te = /* @__PURE__ */ T({
|
|
|
213
232
|
var n;
|
|
214
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."
|
|
220
239
|
});
|
|
221
240
|
return;
|
|
222
241
|
}
|
|
223
|
-
|
|
242
|
+
k(
|
|
224
243
|
v,
|
|
225
244
|
"Refund Transaction",
|
|
226
245
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
227
246
|
async () => {
|
|
228
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
|
-
(a = r.value) == null || a.replaceData(t,
|
|
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
|
}
|
|
@@ -250,45 +269,45 @@ const te = /* @__PURE__ */ T({
|
|
|
250
269
|
var n;
|
|
251
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."
|
|
257
276
|
});
|
|
258
277
|
return;
|
|
259
278
|
}
|
|
260
|
-
|
|
279
|
+
k(
|
|
261
280
|
v,
|
|
262
281
|
"Notify Transaction",
|
|
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
289
|
} catch (a) {
|
|
271
|
-
|
|
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
|
|
299
|
+
async function R(t) {
|
|
281
300
|
var a;
|
|
282
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 n =
|
|
310
|
+
const n = X([
|
|
292
311
|
{
|
|
293
312
|
type: "span",
|
|
294
313
|
queryKey: "transaction.id",
|
|
@@ -297,15 +316,15 @@ const te = /* @__PURE__ */ T({
|
|
|
297
316
|
], e.transactionAt);
|
|
298
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
324
|
var n, a;
|
|
306
325
|
let e = "";
|
|
307
|
-
return ((n =
|
|
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
|
{
|
|
@@ -314,7 +333,8 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
314
333
|
},
|
|
315
334
|
{
|
|
316
335
|
header: () => "Bill",
|
|
317
|
-
accessorKey: "seqNumber"
|
|
336
|
+
accessorKey: "seqNumber",
|
|
337
|
+
cell: ({ cell: t, row: e }) => e.original.seqNumberBinded ? _(le, { row: e, data: t.getValue() }) : e.original.seqNumber
|
|
318
338
|
},
|
|
319
339
|
{
|
|
320
340
|
header: () => "Gateway",
|
|
@@ -322,7 +342,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
322
342
|
meta: {
|
|
323
343
|
textAlign: "center"
|
|
324
344
|
},
|
|
325
|
-
cell: ({ cell: t, row: e }) => e.original.method ?
|
|
345
|
+
cell: ({ cell: t, row: e }) => e.original.method ? _(re, { row: e, data: t.getValue() }) : ""
|
|
326
346
|
},
|
|
327
347
|
{
|
|
328
348
|
header: () => "Method",
|
|
@@ -330,7 +350,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
330
350
|
meta: {
|
|
331
351
|
textAlign: "center"
|
|
332
352
|
},
|
|
333
|
-
cell: ({ cell: t, row: e }) => e.original.method ?
|
|
353
|
+
cell: ({ cell: t, row: e }) => e.original.method ? _(se, { row: e, data: t.getValue() }) : ""
|
|
334
354
|
},
|
|
335
355
|
{
|
|
336
356
|
header: () => "Gateway ID",
|
|
@@ -347,7 +367,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
347
367
|
{
|
|
348
368
|
header: () => "Status",
|
|
349
369
|
accessorKey: "status",
|
|
350
|
-
cell: ({ cell: t, row: e }) =>
|
|
370
|
+
cell: ({ cell: t, row: e }) => _(ae, { row: e, data: t.getValue() })
|
|
351
371
|
},
|
|
352
372
|
{
|
|
353
373
|
header: () => "Source",
|
|
@@ -366,7 +386,7 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
366
386
|
accessorKey: "amount",
|
|
367
387
|
cell: ({ cell: t, row: e }) => {
|
|
368
388
|
var n, a;
|
|
369
|
-
return ((n =
|
|
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;
|
|
370
390
|
}
|
|
371
391
|
},
|
|
372
392
|
{
|
|
@@ -376,25 +396,25 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
376
396
|
var n;
|
|
377
397
|
const e = (n = r.value) == null ? void 0 : n.pageData().at(t.index);
|
|
378
398
|
if (!e) {
|
|
379
|
-
|
|
399
|
+
i.open({
|
|
380
400
|
type: "error",
|
|
381
401
|
title: "Something went wrong",
|
|
382
402
|
message: "Fail to find transactions from the displayed transactions."
|
|
383
403
|
});
|
|
384
404
|
return;
|
|
385
405
|
}
|
|
386
|
-
return
|
|
406
|
+
return _(ie, {
|
|
387
407
|
transaction: e,
|
|
388
408
|
onAction: (a) => {
|
|
389
409
|
switch (a) {
|
|
390
410
|
case "notify":
|
|
391
411
|
return M(t.index);
|
|
392
412
|
case "query":
|
|
393
|
-
return
|
|
413
|
+
return $(t.index);
|
|
394
414
|
case "refund":
|
|
395
415
|
return K(t.index);
|
|
396
416
|
case "history":
|
|
397
|
-
return
|
|
417
|
+
return R(t.index);
|
|
398
418
|
}
|
|
399
419
|
}
|
|
400
420
|
});
|
|
@@ -402,48 +422,48 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
402
422
|
}
|
|
403
423
|
];
|
|
404
424
|
return (t, e) => {
|
|
405
|
-
const n =
|
|
406
|
-
return
|
|
425
|
+
const n = d("FmSearch");
|
|
426
|
+
return m(), T(Q, {
|
|
407
427
|
title: "Transactions",
|
|
408
428
|
loading: !1
|
|
409
429
|
}, {
|
|
410
|
-
default:
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
"model-value":
|
|
415
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) => N(
|
|
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),
|
|
416
436
|
class: "mr-8",
|
|
417
437
|
label: "Search",
|
|
418
438
|
placeholder: "Search Transactions ..."
|
|
419
439
|
}, null, 8, ["model-value"])
|
|
420
440
|
]),
|
|
421
|
-
|
|
422
|
-
|
|
441
|
+
g("div", me, [
|
|
442
|
+
y(j, {
|
|
423
443
|
button: {
|
|
424
444
|
appendIcon: "file_download",
|
|
425
445
|
variant: "primary",
|
|
426
446
|
label: "Export"
|
|
427
447
|
},
|
|
428
448
|
handler: async () => {
|
|
429
|
-
await
|
|
430
|
-
start:
|
|
431
|
-
end:
|
|
449
|
+
await f(w).downloadTransactionReport({
|
|
450
|
+
start: f(s).startDate,
|
|
451
|
+
end: f(s).endDate
|
|
432
452
|
});
|
|
433
453
|
}
|
|
434
454
|
}, null, 8, ["handler"])
|
|
435
455
|
])
|
|
436
456
|
]),
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
modelValue:
|
|
457
|
+
g("div", pe, [
|
|
458
|
+
y(W, {
|
|
459
|
+
modelValue: f(s),
|
|
440
460
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => N(s) ? s.value = a : null)
|
|
441
461
|
}, null, 8, ["modelValue"])
|
|
442
462
|
]),
|
|
443
|
-
|
|
463
|
+
y(Z, {
|
|
444
464
|
ref_key: "controller",
|
|
445
465
|
ref: r,
|
|
446
|
-
"column-defs":
|
|
466
|
+
"column-defs": V,
|
|
447
467
|
"rows-defs": (a) => a,
|
|
448
468
|
paginate: c
|
|
449
469
|
}, null, 8, ["rows-defs"])
|
|
@@ -454,5 +474,5 @@ ID: ${t.row.original.transactionId}`), h(Z, { data: t.getValue(), extra: e });
|
|
|
454
474
|
}
|
|
455
475
|
});
|
|
456
476
|
export {
|
|
457
|
-
|
|
477
|
+
qe as default
|
|
458
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?: {
|