@feedmepos/mf-payment 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PayoutAccount-ZN7IRI6O.js → PayoutAccount-BENwV3lk.js} +5 -5
- package/dist/{PayoutAccount-Dv0dceI3.js → PayoutAccount-ByQB42Gc.js} +194 -192
- package/dist/{PayoutAccountSetting-VMdZensm.js → PayoutAccountSetting-CydTWOWI.js} +3 -3
- package/dist/{Restaurant-CTxTsQFv.js → Restaurant-pJl9p9u9.js} +4 -4
- package/dist/{RestaurantSetting-Bqvnelo8.js → RestaurantSetting-DpMvpUSw.js} +3 -3
- package/dist/{Settlement-BSj78Ba9.js → Settlement-BSngFpfA.js} +15 -18
- package/dist/{Settlement-DSZqTw2I.js → Settlement-CkOvY9EW.js} +3 -3
- package/dist/{SettlementTransactions-BWIwc4ZZ.js → SettlementTransactions-BzY2bT8y.js} +4 -4
- package/dist/{SettlementTransactions-Bj4iSdv_.js → SettlementTransactions-CaeDLXwI.js} +4 -4
- package/dist/{Terminal-BhuneSe8.js → Terminal-wkX0L_1Y.js} +5 -5
- package/dist/{TerminalSetting-BimysF11.js → TerminalSetting-BRV6qlwa.js} +3 -3
- package/dist/TerminalTransaction-B2NnGV-R.js +589 -0
- package/dist/TerminalTransaction-BbrpviyU.js +333 -0
- package/dist/{Transaction-CXw3jt6f.js → Transaction-BPXBn10N.js} +5 -5
- package/dist/{Transaction-BEtxeY9O.js → Transaction-CVRaWZIu.js} +6 -6
- package/dist/{TransactionOld-Xcs-6Z1b.js → TransactionOld-BQwPUyLq.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-D4QcdL5X.js → TransactionTable.vue_vue_type_script_setup_true_lang-CCAelE9m.js} +37 -24
- package/dist/{app-BlscAAsO.js → app-D_5m116p.js} +155 -155
- package/dist/app.js +1 -1
- package/dist/{assets-xyh7W1wK.js → assets-DhDHTnmn.js} +49 -37
- package/dist/{grafana-B-RVxYdP.js → grafana-DZkWD3p-.js} +1 -1
- package/dist/{index-bJOEc7zH.js → index-B1JgcLgz.js} +1 -1
- package/dist/{index-C6f_xBIo.js → index-CeYD2mT5.js} +1 -1
- package/dist/{index-SUutyAWX.js → index-DcAhh2M-.js} +1 -1
- package/dist/{index-xc3L-8Ux.js → index-Dg_KntKU.js} +1 -1
- package/dist/{index-CsXstZjx.js → index-DkrN-Env.js} +11887 -11591
- package/dist/{index-WVDQG4KF.js → index-b9spwt9h.js} +1 -1
- package/dist/{index-DnwqnqjY.js → index-hisS88O8.js} +22 -17
- package/dist/{index.vue_vue_type_script_setup_true_lang-DkCV_ODh.js → index.vue_vue_type_script_setup_true_lang-PXRIoJh6.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DgotuCLx.js → payout-account-DIpqGTDD.js} +2 -2
- package/dist/stores/payoutAccount.d.ts +2 -2
- package/dist/{transaction-Y5r0QrCZ.js → transaction-DWwuMk6T.js} +22 -20
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
- 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/TerminalDialog.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -16
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +18 -16
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +4 -4
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +24 -24
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +7 -0
- package/dist/views/transaction/cell/Method.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/TerminalTransaction-DCRTQ5uG.js +0 -526
- package/dist/TerminalTransaction-DSCWAFeV.js +0 -269
@@ -1,269 +0,0 @@
|
|
1
|
-
import { defineComponent as y, openBlock as p, createElementBlock as w, Fragment as O, unref as c, createCommentVNode as F, createElementVNode as d, resolveComponent as N, createBlock as b, normalizeClass as D, withCtx as h, toDisplayString as V, ref as M, watch as T, createVNode as m, isRef as _, h as I } from "vue";
|
2
|
-
import { c as n } from "./index-CsXstZjx.js";
|
3
|
-
import { h as g } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as k } from "./index-WVDQG4KF.js";
|
5
|
-
import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-DkCV_ODh.js";
|
6
|
-
import "@feedmepos/ui-library";
|
7
|
-
import { g as Y } from "./assets-xyh7W1wK.js";
|
8
|
-
import { E as $, t as C } from "./index-DnwqnqjY.js";
|
9
|
-
import { d as L } from "./dinero-CIVmXLL-.js";
|
10
|
-
import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
11
|
-
import { _ as G } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
12
|
-
import { _ as P } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
13
|
-
import { _ as q } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
14
|
-
import { _ as U } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
15
|
-
import { _ as j } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js";
|
16
|
-
import { useCoreStore as H } from "@feedmepos/mf-common";
|
17
|
-
const W = ["src"], z = ["src"], Q = /* @__PURE__ */ y({
|
18
|
-
__name: "Gateway",
|
19
|
-
props: {
|
20
|
-
row: {},
|
21
|
-
data: {}
|
22
|
-
},
|
23
|
-
setup(f) {
|
24
|
-
return (t, u) => (p(), w(O, null, [
|
25
|
-
t.row.original.ecrGateway ? (p(), w("img", {
|
26
|
-
key: 0,
|
27
|
-
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
28
|
-
src: c($)
|
29
|
-
}, null, 8, W)) : F("", !0),
|
30
|
-
d("img", {
|
31
|
-
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
32
|
-
src: c(Y)(t.row.original.gateway)
|
33
|
-
}, null, 8, z)
|
34
|
-
], 64));
|
35
|
-
}
|
36
|
-
}), J = /* @__PURE__ */ y({
|
37
|
-
__name: "Status",
|
38
|
-
props: {
|
39
|
-
row: {},
|
40
|
-
data: {}
|
41
|
-
},
|
42
|
-
setup(f) {
|
43
|
-
const t = f;
|
44
|
-
function u() {
|
45
|
-
return t.data === n.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : t.data === n.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : t.data === n.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
46
|
-
}
|
47
|
-
return (o, s) => {
|
48
|
-
const l = N("FmBadge");
|
49
|
-
return p(), b(l, {
|
50
|
-
inline: "",
|
51
|
-
class: D(u())
|
52
|
-
}, {
|
53
|
-
default: h(() => [
|
54
|
-
d("div", null, V(o.data.toUpperCase()), 1)
|
55
|
-
]),
|
56
|
-
_: 1
|
57
|
-
}, 8, ["class"]);
|
58
|
-
};
|
59
|
-
}
|
60
|
-
}), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4 self-center" }, ae = { class: "flex space-x-12 mb-6" }, Ie = /* @__PURE__ */ y({
|
61
|
-
__name: "TerminalTransaction",
|
62
|
-
setup(f) {
|
63
|
-
const t = M(), { currentRestaurant: u } = H(), { dateRange: o, status: s, searchKey: l } = k({
|
64
|
-
searchKey: "",
|
65
|
-
status: [n.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
66
|
-
dateRange: {
|
67
|
-
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
68
|
-
endDate: g().endOf("day").format("YYYY-MM-DD")
|
69
|
-
}
|
70
|
-
});
|
71
|
-
T([o, s], () => {
|
72
|
-
var e;
|
73
|
-
return (e = t.value) == null ? void 0 : e.reset();
|
74
|
-
}), T(u, () => {
|
75
|
-
var e;
|
76
|
-
return (e = t.value) == null ? void 0 : e.reset();
|
77
|
-
});
|
78
|
-
let A;
|
79
|
-
T(l, async () => {
|
80
|
-
A && clearTimeout(A), A = setTimeout(
|
81
|
-
() => {
|
82
|
-
var e;
|
83
|
-
return (e = t.value) == null ? void 0 : e.reset();
|
84
|
-
},
|
85
|
-
700
|
86
|
-
);
|
87
|
-
});
|
88
|
-
const x = [
|
89
|
-
{
|
90
|
-
label: "Success",
|
91
|
-
value: n.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
92
|
-
},
|
93
|
-
{
|
94
|
-
label: "Refunded",
|
95
|
-
value: n.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
96
|
-
},
|
97
|
-
{
|
98
|
-
label: "Process",
|
99
|
-
value: n.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
100
|
-
},
|
101
|
-
{
|
102
|
-
label: "Failed",
|
103
|
-
value: n.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
104
|
-
}
|
105
|
-
], R = function(e) {
|
106
|
-
const a = e;
|
107
|
-
let i = "-";
|
108
|
-
return a.details && a.details.amount && (i = L(a.details.amount).toFormat("$0.00")), {
|
109
|
-
id: e._id,
|
110
|
-
transactionId: e.transactionId,
|
111
|
-
orderId: e.orderId,
|
112
|
-
refId: e.refId,
|
113
|
-
terminalId: e.terminalId,
|
114
|
-
transactionAt: g(e.transactionAt).format("YYYY-MM-DD HH:mm:ss"),
|
115
|
-
action: e.action,
|
116
|
-
gateway: e.gateway,
|
117
|
-
ecrGateway: e.ecrGateway,
|
118
|
-
amount: i,
|
119
|
-
seqNumber: e.seqNumber,
|
120
|
-
error: e.error
|
121
|
-
};
|
122
|
-
}, S = [
|
123
|
-
{
|
124
|
-
accessorKey: "transactionId",
|
125
|
-
header: () => "Transaction ID",
|
126
|
-
meta: {
|
127
|
-
textAlign: "left"
|
128
|
-
},
|
129
|
-
cell: ({ cell: e }) => I(G, { data: e.getValue() })
|
130
|
-
},
|
131
|
-
{
|
132
|
-
accessorKey: "orderId",
|
133
|
-
header: () => "Pay ID",
|
134
|
-
meta: {
|
135
|
-
textAlign: "left"
|
136
|
-
}
|
137
|
-
},
|
138
|
-
{
|
139
|
-
header: () => "Bill Seq No",
|
140
|
-
accessorKey: "seqNumber"
|
141
|
-
},
|
142
|
-
{
|
143
|
-
accessorKey: "refId",
|
144
|
-
header: () => "Reference ID",
|
145
|
-
meta: {
|
146
|
-
textAlign: "left"
|
147
|
-
}
|
148
|
-
},
|
149
|
-
{
|
150
|
-
accessorKey: "gateway",
|
151
|
-
header: () => "Gateway",
|
152
|
-
meta: {
|
153
|
-
textAlign: "center",
|
154
|
-
maxWidth: "128px"
|
155
|
-
},
|
156
|
-
cell: ({ cell: e, row: a }) => I(Q, { row: a, data: e.getValue() })
|
157
|
-
},
|
158
|
-
{
|
159
|
-
accessorKey: "action",
|
160
|
-
header: () => "Status",
|
161
|
-
meta: {
|
162
|
-
textAlign: "right",
|
163
|
-
maxWidth: "132px"
|
164
|
-
},
|
165
|
-
cell: ({ cell: e, row: a }) => I(J, { row: a, data: e.getValue() })
|
166
|
-
},
|
167
|
-
{
|
168
|
-
accessorKey: "amount",
|
169
|
-
header: () => "Sales Amount",
|
170
|
-
meta: {
|
171
|
-
textAlign: "center"
|
172
|
-
}
|
173
|
-
},
|
174
|
-
{
|
175
|
-
accessorKey: "terminalId",
|
176
|
-
header: () => "Terminal ID",
|
177
|
-
meta: {
|
178
|
-
textAlign: "left"
|
179
|
-
}
|
180
|
-
},
|
181
|
-
{
|
182
|
-
accessorKey: "transactionAt",
|
183
|
-
header: () => "Transaction At",
|
184
|
-
meta: {
|
185
|
-
textAlign: "left"
|
186
|
-
}
|
187
|
-
}
|
188
|
-
], E = (e, a) => u.value ? C.readRestaurantTransactions({
|
189
|
-
restaurantId: u.value._id,
|
190
|
-
status: s.value,
|
191
|
-
searchKey: l.value,
|
192
|
-
limit: e,
|
193
|
-
cursor: a,
|
194
|
-
start: o.value.startDate,
|
195
|
-
end: o.value.endDate
|
196
|
-
}) : Promise.resolve({ data: [], meta: { cursor: "" } });
|
197
|
-
return (e, a) => {
|
198
|
-
const i = N("FmSearch"), v = N("FmSelect");
|
199
|
-
return p(), b(P, {
|
200
|
-
title: "Terminal Transactions",
|
201
|
-
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
202
|
-
loading: !1
|
203
|
-
}, {
|
204
|
-
default: h(() => [
|
205
|
-
d("div", X, [
|
206
|
-
d("div", Z, [
|
207
|
-
m(j),
|
208
|
-
m(i, {
|
209
|
-
"model-value": c(l),
|
210
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) => _(l) ? l.value = r : null),
|
211
|
-
class: "mr-8",
|
212
|
-
label: "Search",
|
213
|
-
placeholder: "Search Transactions ..."
|
214
|
-
}, null, 8, ["model-value"]),
|
215
|
-
m(v, {
|
216
|
-
modelValue: c(s),
|
217
|
-
"onUpdate:modelValue": a[2] || (a[2] = (r) => _(s) ? s.value = r : null),
|
218
|
-
class: "mr-6 w-[300px]",
|
219
|
-
label: "Status",
|
220
|
-
"label-mark": "required",
|
221
|
-
multiselect: "",
|
222
|
-
items: x
|
223
|
-
}, {
|
224
|
-
"prepend-menu": h(() => [
|
225
|
-
m(q, {
|
226
|
-
modelValue: c(s),
|
227
|
-
"onUpdate:modelValue": a[1] || (a[1] = (r) => _(s) ? s.value = r : null),
|
228
|
-
items: x
|
229
|
-
}, null, 8, ["modelValue"])
|
230
|
-
]),
|
231
|
-
_: 1
|
232
|
-
}, 8, ["modelValue"])
|
233
|
-
]),
|
234
|
-
d("div", ee, [
|
235
|
-
m(B, {
|
236
|
-
button: {
|
237
|
-
appendIcon: "file_download",
|
238
|
-
variant: "primary",
|
239
|
-
label: "Export"
|
240
|
-
},
|
241
|
-
handler: () => {
|
242
|
-
var r;
|
243
|
-
return c(C).downloadTransactions(((r = t.value) == null ? void 0 : r.data()) ?? []);
|
244
|
-
}
|
245
|
-
}, null, 8, ["handler"])
|
246
|
-
])
|
247
|
-
]),
|
248
|
-
d("div", ae, [
|
249
|
-
m(U, {
|
250
|
-
modelValue: c(o),
|
251
|
-
"onUpdate:modelValue": a[3] || (a[3] = (r) => _(o) ? o.value = r : null)
|
252
|
-
}, null, 8, ["modelValue"])
|
253
|
-
]),
|
254
|
-
m(K, {
|
255
|
-
ref_key: "controller",
|
256
|
-
ref: t,
|
257
|
-
"column-defs": S,
|
258
|
-
"rows-defs": R,
|
259
|
-
paginate: E
|
260
|
-
}, null, 512)
|
261
|
-
]),
|
262
|
-
_: 1
|
263
|
-
});
|
264
|
-
};
|
265
|
-
}
|
266
|
-
});
|
267
|
-
export {
|
268
|
-
Ie as default
|
269
|
-
};
|