@feedmepos/mf-payment 1.4.41 → 1.4.43
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-Dm9-P1P6.js → Actions.vue_vue_type_script_setup_true_lang-Cnd9TJ68.js} +2 -2
- package/dist/{Chargeback-CF_p5AkJ.js → Chargeback-BftBez0p.js} +5 -5
- package/dist/{OnboardForm-ChV0WBPP.js → OnboardForm-BQy8Zcpp.js} +4 -4
- package/dist/{OnboardForm-BBTeyz62.js → OnboardForm-DUMMSnIq.js} +4 -4
- package/dist/{OnboardSubmission-Cm2voJph.js → OnboardSubmission-Bl9QPMAC.js} +3 -3
- package/dist/{OnboardSubmission-zgLxolLn.js → OnboardSubmission-WyNZQDgB.js} +5 -5
- package/dist/{PayoutAccount-BGnDHZu0.js → PayoutAccount-7OrgY3EZ.js} +5 -5
- package/dist/{PayoutAccount-CuaZPXV1.js → PayoutAccount-BvncjJnv.js} +5 -5
- package/dist/{PayoutAccountSetting-9TPlf6cV.js → PayoutAccountSetting-YYswVooL.js} +3 -3
- package/dist/{Restaurant-BFM6IVeo.js → Restaurant-26r7Q01z.js} +4 -4
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CxX3_Xyg.js +63 -0
- package/dist/{RestaurantSetting-CRWzH54g.js → RestaurantSetting-D1APrvzM.js} +199 -178
- package/dist/{Settlement-CK5FGMkl.js → Settlement-C_rIV3fu.js} +20 -29
- package/dist/{Settlement-BVyNw-s_.js → Settlement-Ix55QLVB.js} +3 -3
- package/dist/{SettlementTransactions-q8-O_icK.js → SettlementTransactions-B7NwtUmV.js} +4 -4
- package/dist/{SettlementTransactions-B_OHLhd0.js → SettlementTransactions-Bh8lUwJw.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-B_1HKa0E.js → Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js} +1 -1
- package/dist/{Terminal-BSmGsSH6.js → Terminal-CrM7EzkM.js} +5 -5
- package/dist/{TerminalSetting-B70azG2l.js → TerminalSetting-BiaGvysm.js} +3 -3
- package/dist/{Transaction-BhnPGXP_.js → Transaction-95UATrK6.js} +6 -6
- package/dist/Transaction-DowFSIYy.js +456 -0
- package/dist/{TransactionOld-hQw2jPbw.js → TransactionOld-D8EnKv6-.js} +14 -10
- package/dist/api/payment-gateway/index.d.ts +4 -7
- package/dist/{app-Tmr48m4A.js → app-BE2wXsqm.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-B1D_MgMU.js → assets-CpvC_0O-.js} +1 -1
- package/dist/components/RestaurantSelector.vue.d.ts +1 -1
- package/dist/{grafana-CpZFM_Is.js → grafana-22PXAn1O.js} +1 -1
- package/dist/{index-yD13EQmY.js → index-B0-Kn6Mw.js} +1 -1
- package/dist/{index-BOXe3lBY.js → index-B0uA-O38.js} +1 -1
- package/dist/{index-CIj4gYaQ.js → index-B9kHmV6p.js} +1 -1
- package/dist/{index-Cif5ZVCF.js → index-BLyx8ZQr.js} +1 -1
- package/dist/{index-DkkJFPfC.js → index-Blb5YaYR.js} +1 -1
- package/dist/{index-CvhrHdH5.js → index-CGb-qnBI.js} +2 -2
- package/dist/{index-wMVjSqOV.js → index-Ctn4LFui.js} +1 -1
- package/dist/{index-BCwCx3CJ.js → index-cCTvH31Z.js} +4806 -4722
- package/dist/{index.vue_vue_type_script_setup_true_lang-BzAMhFiq.js → index.vue_vue_type_script_setup_true_lang-NUicoOT2.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CPyM_Ryb.js → payout-account-CKki3n0I.js} +3 -3
- package/dist/{plugins-CABpeaof.js → plugins-DXBLQm5t.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +20 -20
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +24 -30
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +7 -7
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +6 -6
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +40 -40
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +4 -4
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +2 -2
- package/package.json +2 -2
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-Bmt9k4Tu.js +0 -37
- package/dist/Transaction-ycjLL38i.js +0 -449
|
@@ -1,449 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as w, Fragment as B, unref as t, createBlock as I, createCommentVNode as q, withCtx as K, createVNode as _, renderList as Q, createTextVNode as H, toDisplayString as W, createElementVNode as k, isRef as F, h as C } from "vue";
|
|
2
|
-
import { t as x } from "./index-BOXe3lBY.js";
|
|
3
|
-
import { h as L } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { useI18n as G, useCoreStore as j } from "@feedmepos/mf-common";
|
|
5
|
-
import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
6
|
-
import { t as Z, b as ee } from "./assets-B1D_MgMU.js";
|
|
7
|
-
import { u as ae } from "./index-Cif5ZVCF.js";
|
|
8
|
-
import { _ as te } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
|
-
import { _ as ne } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
|
10
|
-
import { _ as re } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
11
|
-
import { p as se } from "./index-CIj4gYaQ.js";
|
|
12
|
-
import { t as oe } from "./index-DkkJFPfC.js";
|
|
13
|
-
import { u as le, p as D } from "./index-BCwCx3CJ.js";
|
|
14
|
-
import { useSnackbar as ie, useDialog as ce } from "@feedmepos/ui-library";
|
|
15
|
-
import { _ as ue, a as me, b as de, c as pe } from "./Actions.vue_vue_type_script_setup_true_lang-Dm9-P1P6.js";
|
|
16
|
-
import { g as ye } from "./grafana-CpZFM_Is.js";
|
|
17
|
-
import { w as z } from "./Modal-DB8M9o1T.js";
|
|
18
|
-
import { u as Y } from "./error-K1CakhA9.js";
|
|
19
|
-
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-BzAMhFiq.js";
|
|
20
|
-
const _e = /* @__PURE__ */ P({
|
|
21
|
-
__name: "SourceSelector",
|
|
22
|
-
props: {
|
|
23
|
-
id: {},
|
|
24
|
-
by: {}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:id", "update:by"],
|
|
27
|
-
setup(O, { emit: p }) {
|
|
28
|
-
const S = p, { t: c } = G(), { currentBusiness: s, readRestaurants: v } = j(), { isLoading: u, startAsyncCall: b } = le(!0), m = E([]), i = E(), f = E(""), g = E([]);
|
|
29
|
-
let N;
|
|
30
|
-
R(f, async () => {
|
|
31
|
-
N && clearTimeout(N), N = setTimeout(() => {
|
|
32
|
-
var d = new RegExp(f.value, "i");
|
|
33
|
-
g.value = m.value.filter((y) => {
|
|
34
|
-
const T = JSON.stringify(y);
|
|
35
|
-
return d.test(T);
|
|
36
|
-
});
|
|
37
|
-
}, 700);
|
|
38
|
-
}), R(i, () => {
|
|
39
|
-
i.value && (S("update:id", i.value.value), S("update:by", i.value.by));
|
|
40
|
-
});
|
|
41
|
-
async function M() {
|
|
42
|
-
return b(async () => {
|
|
43
|
-
let d = await se.readBusinessPayoutAccounts();
|
|
44
|
-
if (d.length !== 0)
|
|
45
|
-
return d;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
async function $() {
|
|
49
|
-
return b(async () => {
|
|
50
|
-
let d = await oe.getBusinessTerminals();
|
|
51
|
-
if (d.length !== 0)
|
|
52
|
-
return d;
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
async function U() {
|
|
56
|
-
u.value = !0;
|
|
57
|
-
const d = await M(), y = await v(), T = await $();
|
|
58
|
-
m.value = [
|
|
59
|
-
...(y || []).map((o) => ({
|
|
60
|
-
by: "RESTAURANT",
|
|
61
|
-
prefix: c("payment.components.restaurant"),
|
|
62
|
-
label: "(RESTAURANT) " + o.profile.name,
|
|
63
|
-
value: o._id
|
|
64
|
-
})),
|
|
65
|
-
...(T || []).map((o) => ({
|
|
66
|
-
by: "DEVICE",
|
|
67
|
-
prefix: c("payment.components.device"),
|
|
68
|
-
label: "(" + o.deviceType + ") " + (o.deviceType === "TERMINAL" ? o.name : o.restaurant.profile.name),
|
|
69
|
-
value: o._id
|
|
70
|
-
})),
|
|
71
|
-
...(d || []).map((o) => {
|
|
72
|
-
var a, e;
|
|
73
|
-
return {
|
|
74
|
-
by: "PAYOUT_ACCOUNT",
|
|
75
|
-
prefix: c("payment.components.payout_account"),
|
|
76
|
-
label: "(" + o.store.event + ") " + (((e = (a = o.ref) == null ? void 0 : a.profile) == null ? void 0 : e.name) ?? o.ref.name),
|
|
77
|
-
value: o._id
|
|
78
|
-
};
|
|
79
|
-
})
|
|
80
|
-
], g.value = m.value, u.value = !1;
|
|
81
|
-
}
|
|
82
|
-
return J(U), R(s, U), (d, y) => {
|
|
83
|
-
const T = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"), r = h("FmMenu");
|
|
84
|
-
return A(), w(B, null, [
|
|
85
|
-
t(u) ? (A(), I(T, {
|
|
86
|
-
key: 0,
|
|
87
|
-
size: "md"
|
|
88
|
-
})) : q("", !0),
|
|
89
|
-
t(u) ? q("", !0) : (A(), I(r, { key: 1 }, {
|
|
90
|
-
"menu-button": K(() => {
|
|
91
|
-
var n;
|
|
92
|
-
return [
|
|
93
|
-
_(o, {
|
|
94
|
-
icon: "account_box",
|
|
95
|
-
label: i.value ? i.value.prefix + " > " + ((n = i.value) == null ? void 0 : n.label) : t(c)("payment.components.select"),
|
|
96
|
-
removable: !!i.value,
|
|
97
|
-
onChipClosed: y[0] || (y[0] = (l) => i.value = void 0)
|
|
98
|
-
}, null, 8, ["label", "removable"])
|
|
99
|
-
];
|
|
100
|
-
}),
|
|
101
|
-
default: K(() => [
|
|
102
|
-
_(a, {
|
|
103
|
-
"model-value": f.value,
|
|
104
|
-
"onUpdate:modelValue": y[1] || (y[1] = (n) => f.value = n),
|
|
105
|
-
placeholder: "Search Restaurants/Devices/Payout Accounts"
|
|
106
|
-
}, null, 8, ["model-value"]),
|
|
107
|
-
g.value.length === 0 ? (A(), I(e, {
|
|
108
|
-
key: 0,
|
|
109
|
-
disabled: !0,
|
|
110
|
-
label: "No result"
|
|
111
|
-
})) : q("", !0),
|
|
112
|
-
(A(!0), w(B, null, Q(g.value, (n) => (A(), I(e, {
|
|
113
|
-
onClick: (l) => i.value = n,
|
|
114
|
-
key: n.value,
|
|
115
|
-
label: n.label,
|
|
116
|
-
selectable: ""
|
|
117
|
-
}, null, 8, ["onClick", "label"]))), 128))
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}))
|
|
121
|
-
], 64);
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}), ve = { class: "flex items-center gap-1" }, be = /* @__PURE__ */ P({
|
|
125
|
-
__name: "BillSeqNumber",
|
|
126
|
-
props: {
|
|
127
|
-
row: {},
|
|
128
|
-
data: {}
|
|
129
|
-
},
|
|
130
|
-
setup(O) {
|
|
131
|
-
return (p, S) => {
|
|
132
|
-
const c = h("FmIcon");
|
|
133
|
-
return A(), w("span", ve, [
|
|
134
|
-
H(W(p.row.original.seqNumber) + " ", 1),
|
|
135
|
-
_(c, {
|
|
136
|
-
size: "md",
|
|
137
|
-
name: "check",
|
|
138
|
-
color: "#16a34a"
|
|
139
|
-
})
|
|
140
|
-
]);
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}), ge = { class: "flex justify-between mb-6 items-center" }, Te = { class: "flex space-x-8 items-start" }, Ae = { class: "flex space-x-4 self-center" }, he = { class: "flex space-x-12 mb-6" }, Oe = /* @__PURE__ */ P({
|
|
144
|
-
__name: "Transaction",
|
|
145
|
-
setup(O) {
|
|
146
|
-
var T, o;
|
|
147
|
-
const p = ie(), S = ce(), { sessionUser: c } = j(), { t: s } = G(), v = E(), { dateRange: u, searchKey: b, status: m, id: i, by: f } = ae({
|
|
148
|
-
by: "",
|
|
149
|
-
id: "",
|
|
150
|
-
searchKey: "",
|
|
151
|
-
status: [D.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
|
152
|
-
dateRange: {
|
|
153
|
-
startDate: L().startOf("day").format("YYYY-MM-DD"),
|
|
154
|
-
endDate: L().endOf("day").format("YYYY-MM-DD")
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
let g;
|
|
158
|
-
R(b, async () => {
|
|
159
|
-
g && clearTimeout(g), g = setTimeout(
|
|
160
|
-
() => {
|
|
161
|
-
var a;
|
|
162
|
-
return (a = v.value) == null ? void 0 : a.reset();
|
|
163
|
-
},
|
|
164
|
-
700
|
|
165
|
-
);
|
|
166
|
-
}), R([u, m, i, f], () => {
|
|
167
|
-
var a;
|
|
168
|
-
(a = v.value) == null || a.reset();
|
|
169
|
-
});
|
|
170
|
-
const N = [
|
|
171
|
-
{
|
|
172
|
-
label: "Success",
|
|
173
|
-
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
label: "Refunded",
|
|
177
|
-
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
label: "Process",
|
|
181
|
-
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
label: "Failed",
|
|
185
|
-
value: D.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
|
|
186
|
-
}
|
|
187
|
-
];
|
|
188
|
-
async function M(a, e) {
|
|
189
|
-
var r;
|
|
190
|
-
try {
|
|
191
|
-
const n = await x.refetchTransaction({ transactionId: a.id });
|
|
192
|
-
(r = v.value) == null || r.replaceData(e, n), p.open({
|
|
193
|
-
type: "success",
|
|
194
|
-
title: "Transaction queried and updated successfully."
|
|
195
|
-
});
|
|
196
|
-
} catch (n) {
|
|
197
|
-
p.open({
|
|
198
|
-
type: "error",
|
|
199
|
-
title: "Fail to query transaction.",
|
|
200
|
-
message: Y(n)
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
async function $(a, e) {
|
|
205
|
-
z(
|
|
206
|
-
S,
|
|
207
|
-
"Refund Transaction",
|
|
208
|
-
"Are you sure to refund transaction? This action cannot be revert!",
|
|
209
|
-
async () => {
|
|
210
|
-
var r;
|
|
211
|
-
try {
|
|
212
|
-
const n = await x.refundTransaction({
|
|
213
|
-
transactionId: a.id,
|
|
214
|
-
reason: "portal transaction refund",
|
|
215
|
-
amount: a.fdoAmount
|
|
216
|
-
});
|
|
217
|
-
(r = v.value) == null || r.replaceData(e, n), p.open({
|
|
218
|
-
type: "success",
|
|
219
|
-
title: "Transaction refund request initiated."
|
|
220
|
-
});
|
|
221
|
-
} catch (n) {
|
|
222
|
-
p.open({
|
|
223
|
-
type: "error",
|
|
224
|
-
title: "Fail to request refund transaction.",
|
|
225
|
-
message: Y(n)
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
async function U(a, e) {
|
|
232
|
-
z(
|
|
233
|
-
S,
|
|
234
|
-
"Notify Transaction",
|
|
235
|
-
"Are you sure to perform notify transaction?",
|
|
236
|
-
async () => {
|
|
237
|
-
try {
|
|
238
|
-
await x.renotifyTransaction(a.id), p.open({
|
|
239
|
-
type: "success",
|
|
240
|
-
title: "Transaction notify successfully."
|
|
241
|
-
});
|
|
242
|
-
} catch (r) {
|
|
243
|
-
p.open({
|
|
244
|
-
type: "error",
|
|
245
|
-
title: "Fail to notify transaction.",
|
|
246
|
-
message: Y(r)
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
async function d(a, e) {
|
|
253
|
-
const r = ye([
|
|
254
|
-
{
|
|
255
|
-
type: "span",
|
|
256
|
-
queryKey: "transaction.id",
|
|
257
|
-
queryValue: a.id
|
|
258
|
-
}
|
|
259
|
-
], a.transactionAt);
|
|
260
|
-
window.open(r, "_blank");
|
|
261
|
-
}
|
|
262
|
-
E("");
|
|
263
|
-
const y = [
|
|
264
|
-
{
|
|
265
|
-
header: () => s("payment.transactions.table.id"),
|
|
266
|
-
accessorKey: "id",
|
|
267
|
-
cell: ({ cell: a, row: e }) => {
|
|
268
|
-
var r, n;
|
|
269
|
-
return ((r = c.value) != null && r.role.isStaff || (n = c.value) != null && n.role.isAdmin) && e.original.transactionId ? e.original.id + `
|
|
270
|
-
ID: ` + e.original.transactionId : e.original.id;
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
header: () => s("payment.transactions.table.pay_id"),
|
|
275
|
-
accessorKey: "payId"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
header: () => s("payment.transactions.table.gateway_id"),
|
|
279
|
-
accessorKey: "gatewayTransactionId"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
header: () => s("payment.transactions.table.bill_seq"),
|
|
283
|
-
accessorKey: "seqNumber",
|
|
284
|
-
cell: ({ cell: a, row: e }) => e.original.seqNumberBinded ? C(be, { row: e, data: a.getValue() }) : e.original.seqNumber
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
header: () => s("payment.transactions.table.gateway"),
|
|
288
|
-
accessorKey: "gateway",
|
|
289
|
-
meta: {
|
|
290
|
-
textAlign: "center"
|
|
291
|
-
},
|
|
292
|
-
cell: ({ cell: a, row: e }) => e.original.gateway ? C(ue, { row: e, data: a.getValue() }) : ""
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
header: () => s("payment.transactions.table.method"),
|
|
296
|
-
accessorKey: "method",
|
|
297
|
-
meta: {
|
|
298
|
-
textAlign: "center"
|
|
299
|
-
},
|
|
300
|
-
cell: ({ cell: a, row: e }) => e.original.method ? C(me, { row: e, data: a.getValue() }) : ""
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
header: () => s("payment.transactions.table.type"),
|
|
304
|
-
accessorKey: "payFor",
|
|
305
|
-
meta: {
|
|
306
|
-
textAlign: "center"
|
|
307
|
-
}
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
header: () => s("payment.transactions.table.status"),
|
|
311
|
-
accessorKey: "status",
|
|
312
|
-
cell: ({ cell: a, row: e }) => C(de, { row: e, data: a.getValue() })
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
header: () => s("payment.transactions.table.restaurant"),
|
|
316
|
-
accessorKey: "restaurantId"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
header: () => s("payment.transactions.table.source"),
|
|
320
|
-
accessorKey: "source",
|
|
321
|
-
cell: ({ cell: a, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
header: () => s("payment.transactions.table.transaction_at"),
|
|
325
|
-
accessorKey: "transactionAt",
|
|
326
|
-
meta: {
|
|
327
|
-
width: "180px"
|
|
328
|
-
},
|
|
329
|
-
cell: ({ cell: a, row: e }) => e.original.status === "REFUNDED" ? e.original.refundedAt : e.original.transactionAt
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
header: () => s("payment.transactions.table.sales_amount"),
|
|
333
|
-
accessorKey: "amount",
|
|
334
|
-
cell: ({ cell: a, row: e }) => {
|
|
335
|
-
var r, n;
|
|
336
|
-
return ((r = c.value) != null && r.role.isStaff || (n = c.value) != null && n.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
];
|
|
340
|
-
return ((T = c.value) != null && T.role.isStaff || (o = c.value) != null && o.role.isAdmin) && y.push({
|
|
341
|
-
header: () => s("payment.transactions.table.actions"),
|
|
342
|
-
accessorKey: "actions",
|
|
343
|
-
cell: ({ row: a }) => C(pe, {
|
|
344
|
-
transaction: a.original,
|
|
345
|
-
onAction: (e) => {
|
|
346
|
-
var r;
|
|
347
|
-
switch (e) {
|
|
348
|
-
case "notify":
|
|
349
|
-
return U(a.original, a.index);
|
|
350
|
-
case "query":
|
|
351
|
-
return M(a.original, a.index);
|
|
352
|
-
case "refund":
|
|
353
|
-
return (r = c.value) != null && r.role.isStaff ? p.open({
|
|
354
|
-
type: "error",
|
|
355
|
-
title: "You are not allowed to refund transaction."
|
|
356
|
-
}) : $(a.original, a.index);
|
|
357
|
-
case "history":
|
|
358
|
-
return d(a.original, a.index);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
})
|
|
362
|
-
}), (a, e) => {
|
|
363
|
-
const r = h("FmSearch"), n = h("FmSelect");
|
|
364
|
-
return A(), I(X, {
|
|
365
|
-
title: t(s)("payment.transactions.title"),
|
|
366
|
-
description: t(s)("payment.transactions.description"),
|
|
367
|
-
loading: !1
|
|
368
|
-
}, {
|
|
369
|
-
default: K(() => [
|
|
370
|
-
k("div", ge, [
|
|
371
|
-
k("div", Te, [
|
|
372
|
-
_(r, {
|
|
373
|
-
"model-value": t(b),
|
|
374
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => F(b) ? b.value = l : null),
|
|
375
|
-
class: "mr-8",
|
|
376
|
-
label: t(s)("payment.transactions.search.title"),
|
|
377
|
-
placeholder: t(s)("payment.transactions.search.placeholder")
|
|
378
|
-
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
379
|
-
_(n, {
|
|
380
|
-
modelValue: t(m),
|
|
381
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) => F(m) ? m.value = l : null),
|
|
382
|
-
class: "mr-6 w-[300px]",
|
|
383
|
-
label: t(s)("payment.transactions.status"),
|
|
384
|
-
"label-mark": "required",
|
|
385
|
-
multiselect: "",
|
|
386
|
-
items: N
|
|
387
|
-
}, {
|
|
388
|
-
"prepend-menu": K(() => [
|
|
389
|
-
_(ne, {
|
|
390
|
-
modelValue: t(m),
|
|
391
|
-
"onUpdate:modelValue": e[1] || (e[1] = (l) => F(m) ? m.value = l : null),
|
|
392
|
-
items: N
|
|
393
|
-
}, null, 8, ["modelValue"])
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}, 8, ["modelValue", "label"])
|
|
397
|
-
]),
|
|
398
|
-
k("div", Ae, [
|
|
399
|
-
_(te, {
|
|
400
|
-
button: {
|
|
401
|
-
appendIcon: "file_download",
|
|
402
|
-
variant: "primary",
|
|
403
|
-
label: t(s)("payment.transactions.button.export")
|
|
404
|
-
},
|
|
405
|
-
handler: async () => {
|
|
406
|
-
var V;
|
|
407
|
-
const l = await ((V = v.value) == null ? void 0 : V.allData());
|
|
408
|
-
l != null && await t(x).downloadPortalTransactionReport(t(u), t(Z)(l));
|
|
409
|
-
}
|
|
410
|
-
}, null, 8, ["button", "handler"])
|
|
411
|
-
])
|
|
412
|
-
]),
|
|
413
|
-
k("div", he, [
|
|
414
|
-
_(_e, {
|
|
415
|
-
id: t(i),
|
|
416
|
-
"onUpdate:id": e[3] || (e[3] = (l) => F(i) ? i.value = l : null),
|
|
417
|
-
by: t(f),
|
|
418
|
-
"onUpdate:by": e[4] || (e[4] = (l) => F(f) ? f.value = l : null)
|
|
419
|
-
}, null, 8, ["id", "by"]),
|
|
420
|
-
_(re, {
|
|
421
|
-
modelValue: t(u),
|
|
422
|
-
"onUpdate:modelValue": e[5] || (e[5] = (l) => F(u) ? u.value = l : null)
|
|
423
|
-
}, null, 8, ["modelValue"])
|
|
424
|
-
]),
|
|
425
|
-
_(fe, {
|
|
426
|
-
ref_key: "controller",
|
|
427
|
-
ref: v,
|
|
428
|
-
"column-defs": y,
|
|
429
|
-
"rows-defs": t(ee),
|
|
430
|
-
paginate: (l, V) => t(x).readTransactionsV2({
|
|
431
|
-
limit: l,
|
|
432
|
-
cursor: V,
|
|
433
|
-
status: t(m),
|
|
434
|
-
by: t(f),
|
|
435
|
-
id: t(i),
|
|
436
|
-
search: t(b),
|
|
437
|
-
start: t(u).startDate,
|
|
438
|
-
end: t(u).endDate
|
|
439
|
-
})
|
|
440
|
-
}, null, 8, ["rows-defs", "paginate"])
|
|
441
|
-
]),
|
|
442
|
-
_: 1
|
|
443
|
-
}, 8, ["title", "description"]);
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
export {
|
|
448
|
-
Oe as default
|
|
449
|
-
};
|