@feedmepos/mf-payment 1.0.5-beta.5 → 1.0.5-beta.6
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-By_sPTfM.js → PayoutAccount-CQjHCnuM.js} +3 -3
- package/dist/{PayoutAccount-CBGSaUUu.js → PayoutAccount-DPAk6H2W.js} +5 -5
- package/dist/{PayoutAccountSelector.vue_vue_type_script_setup_true_lang-9Ycv35v3.js → PayoutAccountSelector.vue_vue_type_script_setup_true_lang-DC74j9Vi.js} +2 -2
- package/dist/{PayoutAccountSetting-CYIrTZ11.js → PayoutAccountSetting-DC93ux7y.js} +4 -4
- package/dist/{Restaurant-DXtEoWrL.js → Restaurant-BOQlMZO2.js} +3 -3
- package/dist/{RestaurantSetting-DllGMcix.js → RestaurantSetting-35YKHsSO.js} +4 -4
- package/dist/{Settlement-BIvlPM6B.js → Settlement-DWEPMQ3o.js} +3 -3
- package/dist/{Settlement-BHC8h29k.js → Settlement-Elz59p_K.js} +3 -3
- package/dist/{SettlementTransactions-Bsngm3w4.js → SettlementTransactions-B5OussKX.js} +4 -4
- package/dist/{SettlementTransactions-C4K_W4-7.js → SettlementTransactions-DHANHP6m.js} +4 -4
- package/dist/{Terminal-BoDmOr-_.js → Terminal-CD8oLYhL.js} +4 -4
- package/dist/{TerminalSetting-MN5-9E-6.js → TerminalSetting-BoM06kUb.js} +3 -3
- package/dist/{TerminalTransaction-w3h1OZ2d.js → TerminalTransaction-C_alZGWG.js} +5 -5
- package/dist/TerminalTransaction-najCbUyL.js +819 -0
- package/dist/{Transaction-CZmAmqui.js → Transaction-Czft4tI_.js} +5 -5
- package/dist/{Transaction-DYDLeJhw.js → Transaction-dP-8rE9F.js} +53 -53
- package/dist/{TransactionOld-Dh4CByAD.js → TransactionOld-C0PKiOTY.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-DG4A8jQ9.js → TransactionTable.vue_vue_type_script_setup_true_lang-iGUAYX8v.js} +2 -2
- package/dist/{app-BNRgThIe.js → app-BV4XGl8d.js} +217 -217
- package/dist/app.js +1 -1
- package/dist/{assets-Dt7r6zGM.js → assets-Dd0Vvooa.js} +1 -1
- package/dist/{index-BEynewls.js → index-0K1Fu1f6.js} +1 -1
- package/dist/{index-BtaoF5Wy.js → index-Bp6DWjrZ.js} +1 -1
- package/dist/{index-rFrXoDK-.js → index-C6PWsv4L.js} +1 -1
- package/dist/{index-DxSE41Sa.js → index-CPiBmzrX.js} +1 -1
- package/dist/{index-Cca9oI1g.js → index-Cxd0yEFM.js} +1 -1
- package/dist/{index-BUH1N423.js → index-CyKIRzQJ.js} +1 -1
- package/dist/{index-lf0LGG0V.js → index-DaAxCtAx.js} +1 -1
- package/dist/{index-B3TzK_Rs.js → index-po9qzrK4.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-COwNv5H1.js → index.vue_vue_type_script_setup_true_lang-CrBV1MDh.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DmR8Jvqr.js → payout-account-CoJJfglw.js} +2 -2
- package/dist/{transaction-CO_BuxAf.js → transaction-C68jHoAH.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/TerminalTransaction-C6DdDCNp.js +0 -269
package/package.json
CHANGED
@@ -1,269 +0,0 @@
|
|
1
|
-
import { defineComponent as h, openBlock as _, createElementBlock as w, Fragment as O, unref as r, createCommentVNode as V, createElementVNode as i, resolveComponent as g, createBlock as R, normalizeClass as D, withCtx as N, toDisplayString as F, ref as M, watch as b, createVNode as c, isRef as u, h as T } from "vue";
|
2
|
-
import { c as l } from "./index-BUH1N423.js";
|
3
|
-
import { h as I } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as k } from "./index-DxSE41Sa.js";
|
5
|
-
import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-COwNv5H1.js";
|
6
|
-
import "@feedmepos/ui-library";
|
7
|
-
import { g as Y } from "./assets-Dt7r6zGM.js";
|
8
|
-
import { E as $, t as C } from "./index-lf0LGG0V.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 U } 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 P } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
15
|
-
import { _ as j } from "./PayoutAccountSelector.vue_vue_type_script_setup_true_lang-9Ycv35v3.js";
|
16
|
-
const W = ["src"], z = ["src"], Q = /* @__PURE__ */ h({
|
17
|
-
__name: "Gateway",
|
18
|
-
props: {
|
19
|
-
row: {},
|
20
|
-
data: {}
|
21
|
-
},
|
22
|
-
setup(f) {
|
23
|
-
return (o, n) => (_(), w(O, null, [
|
24
|
-
o.row.original.ecrGateway ? (_(), w("img", {
|
25
|
-
key: 0,
|
26
|
-
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
27
|
-
src: r($)
|
28
|
-
}, null, 8, W)) : V("", !0),
|
29
|
-
i("img", {
|
30
|
-
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
31
|
-
src: r(Y)(o.row.original.gateway)
|
32
|
-
}, null, 8, z)
|
33
|
-
], 64));
|
34
|
-
}
|
35
|
-
}), H = /* @__PURE__ */ h({
|
36
|
-
__name: "Status",
|
37
|
-
props: {
|
38
|
-
row: {},
|
39
|
-
data: {}
|
40
|
-
},
|
41
|
-
setup(f) {
|
42
|
-
const o = f;
|
43
|
-
function n() {
|
44
|
-
return o.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : o.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
45
|
-
}
|
46
|
-
return (s, d) => {
|
47
|
-
const m = g("FmBadge");
|
48
|
-
return _(), R(m, {
|
49
|
-
inline: "",
|
50
|
-
class: D(n())
|
51
|
-
}, {
|
52
|
-
default: N(() => [
|
53
|
-
i("div", null, F(s.data.toUpperCase()), 1)
|
54
|
-
]),
|
55
|
-
_: 1
|
56
|
-
}, 8, ["class"]);
|
57
|
-
};
|
58
|
-
}
|
59
|
-
}), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4 self-center" }, ee = { class: "flex space-x-12 mb-6" }, Ae = /* @__PURE__ */ h({
|
60
|
-
__name: "TerminalTransaction",
|
61
|
-
setup(f) {
|
62
|
-
const o = M(), { dateRange: n, status: s, searchKey: d, accountId: m } = k({
|
63
|
-
accountId: "",
|
64
|
-
searchKey: "",
|
65
|
-
status: [l.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
66
|
-
dateRange: {
|
67
|
-
startDate: I().startOf("day").format("YYYY-MM-DD"),
|
68
|
-
endDate: I().endOf("day").format("YYYY-MM-DD")
|
69
|
-
}
|
70
|
-
});
|
71
|
-
b([m, n, s], () => {
|
72
|
-
var e;
|
73
|
-
return (e = o.value) == null ? void 0 : e.reset();
|
74
|
-
});
|
75
|
-
let A;
|
76
|
-
b(d, async () => {
|
77
|
-
A && clearTimeout(A), A = setTimeout(
|
78
|
-
() => {
|
79
|
-
var e;
|
80
|
-
return (e = o.value) == null ? void 0 : e.reset();
|
81
|
-
},
|
82
|
-
700
|
83
|
-
);
|
84
|
-
});
|
85
|
-
const y = [
|
86
|
-
{
|
87
|
-
label: "Success",
|
88
|
-
value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
89
|
-
},
|
90
|
-
{
|
91
|
-
label: "Refunded",
|
92
|
-
value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
93
|
-
},
|
94
|
-
{
|
95
|
-
label: "Process",
|
96
|
-
value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
97
|
-
},
|
98
|
-
{
|
99
|
-
label: "Failed",
|
100
|
-
value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
101
|
-
}
|
102
|
-
], v = function(e) {
|
103
|
-
const a = e;
|
104
|
-
let p = "-";
|
105
|
-
return a.details && a.details.amount && (p = L(a.details.amount).toFormat("$0.00")), {
|
106
|
-
id: e._id,
|
107
|
-
transactionId: e.transactionId,
|
108
|
-
orderId: e.orderId,
|
109
|
-
refId: e.refId,
|
110
|
-
terminalId: e.terminalId,
|
111
|
-
transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
|
112
|
-
action: e.action,
|
113
|
-
gateway: e.gateway,
|
114
|
-
ecrGateway: e.ecrGateway,
|
115
|
-
amount: p,
|
116
|
-
seqNumber: e.seqNumber
|
117
|
-
};
|
118
|
-
}, E = [
|
119
|
-
{
|
120
|
-
accessorKey: "transactionId",
|
121
|
-
header: () => "Transaction ID",
|
122
|
-
meta: {
|
123
|
-
textAlign: "left"
|
124
|
-
},
|
125
|
-
cell: ({ cell: e }) => T(G, { data: e.getValue() })
|
126
|
-
},
|
127
|
-
{
|
128
|
-
accessorKey: "orderId",
|
129
|
-
header: () => "Pay ID",
|
130
|
-
meta: {
|
131
|
-
textAlign: "left"
|
132
|
-
}
|
133
|
-
},
|
134
|
-
{
|
135
|
-
header: () => "Bill Seq No",
|
136
|
-
accessorKey: "seqNumber"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
accessorKey: "refId",
|
140
|
-
header: () => "Reference ID",
|
141
|
-
meta: {
|
142
|
-
textAlign: "left"
|
143
|
-
}
|
144
|
-
},
|
145
|
-
{
|
146
|
-
accessorKey: "gateway",
|
147
|
-
header: () => "Gateway",
|
148
|
-
meta: {
|
149
|
-
textAlign: "center",
|
150
|
-
maxWidth: "128px"
|
151
|
-
},
|
152
|
-
cell: ({ cell: e, row: a }) => T(Q, { row: a, data: e.getValue() })
|
153
|
-
},
|
154
|
-
{
|
155
|
-
accessorKey: "action",
|
156
|
-
header: () => "Status",
|
157
|
-
meta: {
|
158
|
-
textAlign: "right",
|
159
|
-
maxWidth: "132px"
|
160
|
-
},
|
161
|
-
cell: ({ cell: e, row: a }) => T(H, { row: a, data: e.getValue() })
|
162
|
-
},
|
163
|
-
{
|
164
|
-
accessorKey: "amount",
|
165
|
-
header: () => "Sales Amount",
|
166
|
-
meta: {
|
167
|
-
textAlign: "center"
|
168
|
-
}
|
169
|
-
},
|
170
|
-
{
|
171
|
-
accessorKey: "terminalId",
|
172
|
-
header: () => "Terminal ID",
|
173
|
-
meta: {
|
174
|
-
textAlign: "left"
|
175
|
-
}
|
176
|
-
},
|
177
|
-
{
|
178
|
-
accessorKey: "transactionAt",
|
179
|
-
header: () => "Transaction At",
|
180
|
-
meta: {
|
181
|
-
textAlign: "left"
|
182
|
-
}
|
183
|
-
}
|
184
|
-
];
|
185
|
-
return (e, a) => {
|
186
|
-
const p = g("FmSearch"), x = g("FmSelect");
|
187
|
-
return _(), R(U, {
|
188
|
-
title: "Terminal Transactions",
|
189
|
-
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
190
|
-
loading: !1
|
191
|
-
}, {
|
192
|
-
default: N(() => [
|
193
|
-
i("div", J, [
|
194
|
-
i("div", X, [
|
195
|
-
c(p, {
|
196
|
-
"model-value": r(d),
|
197
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) => u(d) ? d.value = t : null),
|
198
|
-
class: "mr-8",
|
199
|
-
label: "Search",
|
200
|
-
placeholder: "Search Transactions ..."
|
201
|
-
}, null, 8, ["model-value"]),
|
202
|
-
c(x, {
|
203
|
-
modelValue: r(s),
|
204
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) => u(s) ? s.value = t : null),
|
205
|
-
class: "mr-6 w-[300px]",
|
206
|
-
label: "Status",
|
207
|
-
"label-mark": "required",
|
208
|
-
multiselect: "",
|
209
|
-
items: y
|
210
|
-
}, {
|
211
|
-
"prepend-menu": N(() => [
|
212
|
-
c(q, {
|
213
|
-
modelValue: r(s),
|
214
|
-
"onUpdate:modelValue": a[1] || (a[1] = (t) => u(s) ? s.value = t : null),
|
215
|
-
items: y
|
216
|
-
}, null, 8, ["modelValue"])
|
217
|
-
]),
|
218
|
-
_: 1
|
219
|
-
}, 8, ["modelValue"])
|
220
|
-
]),
|
221
|
-
i("div", Z, [
|
222
|
-
c(B, {
|
223
|
-
button: {
|
224
|
-
appendIcon: "file_download",
|
225
|
-
variant: "primary",
|
226
|
-
label: "Export"
|
227
|
-
},
|
228
|
-
handler: () => {
|
229
|
-
var t;
|
230
|
-
return r(C).downloadTransactions(((t = o.value) == null ? void 0 : t.data()) ?? []);
|
231
|
-
}
|
232
|
-
}, null, 8, ["handler"])
|
233
|
-
])
|
234
|
-
]),
|
235
|
-
i("div", ee, [
|
236
|
-
c(j, {
|
237
|
-
modelValue: r(m),
|
238
|
-
"onUpdate:modelValue": a[3] || (a[3] = (t) => u(m) ? m.value = t : null),
|
239
|
-
event: ["ORDERING"]
|
240
|
-
}, null, 8, ["modelValue"]),
|
241
|
-
c(P, {
|
242
|
-
modelValue: r(n),
|
243
|
-
"onUpdate:modelValue": a[4] || (a[4] = (t) => u(n) ? n.value = t : null)
|
244
|
-
}, null, 8, ["modelValue"])
|
245
|
-
]),
|
246
|
-
c(K, {
|
247
|
-
ref_key: "controller",
|
248
|
-
ref: o,
|
249
|
-
"column-defs": E,
|
250
|
-
"rows-defs": v,
|
251
|
-
paginate: (t, S) => r(C).readAccountTransactions({
|
252
|
-
accountId: r(m),
|
253
|
-
status: r(s),
|
254
|
-
searchKey: r(d),
|
255
|
-
limit: t,
|
256
|
-
cursor: S,
|
257
|
-
start: r(n).startDate,
|
258
|
-
end: r(n).endDate
|
259
|
-
})
|
260
|
-
}, null, 8, ["paginate"])
|
261
|
-
]),
|
262
|
-
_: 1
|
263
|
-
});
|
264
|
-
};
|
265
|
-
}
|
266
|
-
});
|
267
|
-
export {
|
268
|
-
Ae as default
|
269
|
-
};
|