@feedmepos/mf-payment 1.0.0 → 1.0.1-beta.1
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/README.md +11 -1
- package/dist/{AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js → AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js} +8 -9
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
- package/dist/PDFViewer-xrBtzrlR.js +22426 -0
- package/dist/{PayoutAccount-Dc1CYQ0W.js → PayoutAccount-CyVXI1Sx.js} +93 -83
- package/dist/{PayoutAccount-DZaKHWcy.js → PayoutAccount-DGUnImHC.js} +259 -258
- package/dist/{PayoutAccountSetting-BzmNuLFj.js → PayoutAccountSetting-BbtOFbsd.js} +161 -183
- package/dist/Restaurant-ewsvVw3P.js +262 -0
- package/dist/RestaurantSetting-BboKM1iG.js +389 -0
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
- package/dist/{Settlement-Bx3zAkIw.js → Settlement-DsJlFpCC.js} +41 -43
- package/dist/Settlement-Hr7jN3EL.js +145 -0
- package/dist/{SettlementTransactions-D_SVuKyR.js → SettlementTransactions-BncoGGQ3.js} +10 -10
- package/dist/{SettlementTransactions-AaYyTH96.js → SettlementTransactions-Bz9ZVYfq.js} +41 -41
- package/dist/{Terminal-68OQnhM3.js → Terminal-D-U0BVTe.js} +117 -103
- package/dist/TerminalSetting-JD3sbXOB.js +387 -0
- package/dist/TerminalTransaction-B5iY_F-3.js +261 -0
- package/dist/TerminalTransaction-DHmD5x8e.js +485 -0
- package/dist/{Transaction-a1VfiCP_.js → Transaction-BedQtv8p.js} +125 -127
- package/dist/Transaction-DA_TB9zD.js +238 -0
- package/dist/api/restaurant/index.d.ts +6 -0
- package/dist/{app-C9FRsUfb.js → app-CpyZU23J.js} +315 -285
- package/dist/app.js +1 -1
- package/dist/{assets-Bji7O2YD.js → assets-8c19wXSV.js} +22 -21
- package/dist/components/AdminLayout.vue.d.ts +8 -13
- package/dist/components/AutoCopyCell.vue.d.ts +3 -4
- package/dist/components/DateRangePicker.vue.d.ts +13 -0
- package/dist/components/Layout.vue.d.ts +8 -13
- package/dist/components/PDFViewer.vue.d.ts +1 -1
- package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
- package/dist/components/PagingTable/index.vue.d.ts +48 -0
- package/dist/components/RouteCell.vue.d.ts +5 -6
- package/dist/components/SelectAll.vue.d.ts +57 -0
- package/dist/helpers/idToDate.d.ts +1 -1
- package/dist/{index-Bt_OgDYn.js → index-1fXAFo2E.js} +32176 -32166
- package/dist/index-BIXuzGa9.js +19 -0
- package/dist/{index-DBfZnaV1.js → index-Cb1zVhcH.js} +1 -1
- package/dist/{index-DSuZG0l6.js → index-DEpszFWF.js} +1 -1
- package/dist/{index-DjDGwRX8.js → index-DdJrUqkm.js} +1 -1
- package/dist/{index-CLYePgWW.js → index-DeU3Qyca.js} +1 -1
- package/dist/{index-_0TroOJr.js → index-DoAIw4wM.js} +1 -1
- package/dist/index-DsLFmVsY.js +28 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js → index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js} +64 -61
- package/dist/package.json +2 -2
- package/dist/{payout-account-BWcq7OJy.js → payout-account-BbheLTUt.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/iframe.d.ts +1 -1
- package/dist/stores/payoutAccount.d.ts +1 -1
- package/dist/{transaction-DqrhM5jB.js → transaction-W49zE8RL.js} +26 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
- package/dist/views/admin/restaurant/Restaurant.vue.d.ts +2 -0
- package/dist/views/admin/restaurant/RestaurantSetting.vue.d.ts +12 -0
- package/dist/views/admin/restaurant/cell/IsActive.vue.d.ts +7 -0
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +803 -0
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +7 -0
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
- package/package.json +2 -2
- package/dist/PDFViewer-CjH_C1uT.js +0 -21792
- package/dist/Settlement-mwnO-iYH.js +0 -150
- package/dist/TerminalSetting-DEFim0xg.js +0 -379
- package/dist/TerminalTransaction-CQjNdffr.js +0 -426
- package/dist/TerminalTransaction-ClihmWOJ.js +0 -250
- package/dist/Transaction-68L7JzIk.js +0 -242
@@ -1,242 +0,0 @@
|
|
1
|
-
import { defineComponent as _, resolveComponent as T, openBlock as f, createBlock as N, normalizeClass as k, withCtx as R, createElementVNode as y, toDisplayString as K, createElementBlock as O, unref as o, ref as A, h as x, onMounted as V, watch as E, createVNode as p, isRef as F } from "vue";
|
2
|
-
import { t as I, a as C } from "./transaction-DqrhM5jB.js";
|
3
|
-
import { e as S, u as P } from "./index-Bt_OgDYn.js";
|
4
|
-
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
5
|
-
import "./dinero-CIVmXLL-.js";
|
6
|
-
import { h as b } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as L, a as B } from "./assets-Bji7O2YD.js";
|
8
|
-
import { useCoreStore as M } from "@feedmepos/mf-common";
|
9
|
-
import { _ as U } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
10
|
-
import { u as G } from "./index-DjDGwRX8.js";
|
11
|
-
import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
-
import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
13
|
-
const J = /* @__PURE__ */ _({
|
14
|
-
__name: "Status",
|
15
|
-
props: {
|
16
|
-
row: {},
|
17
|
-
data: {}
|
18
|
-
},
|
19
|
-
setup(s) {
|
20
|
-
const n = s;
|
21
|
-
function a() {
|
22
|
-
return n.data === S.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === S.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : n.data === S.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
23
|
-
}
|
24
|
-
return (l, c) => {
|
25
|
-
const d = T("FmBadge");
|
26
|
-
return f(), N(d, {
|
27
|
-
inline: "",
|
28
|
-
class: k(a())
|
29
|
-
}, {
|
30
|
-
default: R(() => [
|
31
|
-
y("div", null, K(l.data), 1)
|
32
|
-
]),
|
33
|
-
_: 1
|
34
|
-
}, 8, ["class"]);
|
35
|
-
};
|
36
|
-
}
|
37
|
-
}), j = ["src"], z = /* @__PURE__ */ _({
|
38
|
-
__name: "Gateway",
|
39
|
-
props: {
|
40
|
-
row: {},
|
41
|
-
data: {}
|
42
|
-
},
|
43
|
-
setup(s) {
|
44
|
-
return (n, a) => (f(), O("img", {
|
45
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
46
|
-
src: o(L)(n.row.original.gateway)
|
47
|
-
}, null, 8, j));
|
48
|
-
}
|
49
|
-
}), Q = ["src"], H = /* @__PURE__ */ _({
|
50
|
-
__name: "Method",
|
51
|
-
props: {
|
52
|
-
row: {},
|
53
|
-
data: {}
|
54
|
-
},
|
55
|
-
setup(s) {
|
56
|
-
return (n, a) => (f(), O("img", {
|
57
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
58
|
-
src: o(B)(n.row.original.method.issuer)
|
59
|
-
}, null, 8, Q));
|
60
|
-
}
|
61
|
-
}), W = /* @__PURE__ */ _({
|
62
|
-
__name: "TransactionTable",
|
63
|
-
props: {
|
64
|
-
data: {
|
65
|
-
type: Array,
|
66
|
-
required: !0
|
67
|
-
},
|
68
|
-
loading: {
|
69
|
-
type: Boolean,
|
70
|
-
required: !0
|
71
|
-
}
|
72
|
-
},
|
73
|
-
emits: ["row-click"],
|
74
|
-
setup(s, { emit: n }) {
|
75
|
-
const a = s, l = n, c = A(""), d = [
|
76
|
-
{
|
77
|
-
header: () => "Transaction ID",
|
78
|
-
accessorKey: "id"
|
79
|
-
},
|
80
|
-
{
|
81
|
-
header: () => "Pay ID",
|
82
|
-
accessorKey: "payId"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
header: () => "Gateway",
|
86
|
-
accessorKey: "gateway",
|
87
|
-
meta: {
|
88
|
-
textAlign: "center"
|
89
|
-
},
|
90
|
-
cell: ({ cell: t, row: e }) => e.original.method ? x(z, { row: e, data: t.getValue() }) : ""
|
91
|
-
},
|
92
|
-
{
|
93
|
-
header: () => "Method",
|
94
|
-
accessorKey: "method",
|
95
|
-
meta: {
|
96
|
-
textAlign: "center"
|
97
|
-
},
|
98
|
-
cell: ({ cell: t, row: e }) => e.original.method ? x(H, { row: e, data: t.getValue() }) : ""
|
99
|
-
},
|
100
|
-
{
|
101
|
-
header: () => "Type",
|
102
|
-
accessorKey: "type",
|
103
|
-
meta: {
|
104
|
-
textAlign: "center"
|
105
|
-
},
|
106
|
-
cell: ({ row: t }) => {
|
107
|
-
if (!t.original.method)
|
108
|
-
return "";
|
109
|
-
const e = t.original.method.variant;
|
110
|
-
return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
|
111
|
-
}
|
112
|
-
},
|
113
|
-
{
|
114
|
-
header: () => "Status",
|
115
|
-
accessorKey: "status",
|
116
|
-
cell: ({ cell: t, row: e }) => x(J, { row: e, data: t.getValue() })
|
117
|
-
},
|
118
|
-
{
|
119
|
-
header: () => "Transaction At",
|
120
|
-
accessorKey: "transactionAt",
|
121
|
-
meta: {
|
122
|
-
width: "180px"
|
123
|
-
}
|
124
|
-
},
|
125
|
-
{
|
126
|
-
header: () => "Sales Amount",
|
127
|
-
accessorKey: "amount"
|
128
|
-
},
|
129
|
-
{
|
130
|
-
header: () => "Fee",
|
131
|
-
accessorKey: "fee"
|
132
|
-
},
|
133
|
-
{
|
134
|
-
header: () => "Settlement Amount",
|
135
|
-
accessorKey: "payout"
|
136
|
-
}
|
137
|
-
];
|
138
|
-
return (t, e) => {
|
139
|
-
const g = T("FmTable");
|
140
|
-
return f(), N(g, {
|
141
|
-
modelValue: c.value,
|
142
|
-
"onUpdate:modelValue": e[0] || (e[0] = (i) => c.value = i),
|
143
|
-
"column-defs": d,
|
144
|
-
"row-data": a.data,
|
145
|
-
loading: a.loading,
|
146
|
-
onRowClick: e[1] || (e[1] = (i) => l("row-click", a.data.at(i.index)))
|
147
|
-
}, null, 8, ["modelValue", "row-data", "loading"]);
|
148
|
-
};
|
149
|
-
}
|
150
|
-
}), X = { class: "flex justify-between mb-6 items-center" }, Z = { class: "flex space-x-8" }, ee = { class: "flex space-x-4" }, pe = /* @__PURE__ */ _({
|
151
|
-
__name: "Transaction",
|
152
|
-
setup(s) {
|
153
|
-
const { dateRange: n, searchKey: a } = G({
|
154
|
-
searchKey: "",
|
155
|
-
dateRange: {
|
156
|
-
startDate: b().startOf("day").toISOString(),
|
157
|
-
endDate: b().endOf("day").toISOString()
|
158
|
-
}
|
159
|
-
}), { isLoading: l, startAsyncCall: c } = P(!0);
|
160
|
-
$();
|
161
|
-
const { currentRestaurant: d } = M(), t = A([]), e = A([]);
|
162
|
-
async function g() {
|
163
|
-
await c(async () => {
|
164
|
-
const { startDate: h, endDate: r } = n.value, u = await I.readRestaurantTransactions({
|
165
|
-
start: h,
|
166
|
-
end: r
|
167
|
-
});
|
168
|
-
if (t.value = C(u), e.value = t.value, a.value > "") {
|
169
|
-
var v = new RegExp(a.value, "i");
|
170
|
-
e.value = t.value.filter((m) => {
|
171
|
-
const D = JSON.stringify(m);
|
172
|
-
return v.test(D);
|
173
|
-
});
|
174
|
-
}
|
175
|
-
});
|
176
|
-
}
|
177
|
-
function i() {
|
178
|
-
g();
|
179
|
-
}
|
180
|
-
V(i), E(d, i);
|
181
|
-
let w;
|
182
|
-
return E(a, async () => {
|
183
|
-
w && clearTimeout(w), w = setTimeout(() => {
|
184
|
-
var h = new RegExp(a.value, "i");
|
185
|
-
e.value = t.value.filter((r) => {
|
186
|
-
const u = JSON.stringify(r);
|
187
|
-
return h.test(u);
|
188
|
-
});
|
189
|
-
}, 700);
|
190
|
-
}), (h, r) => {
|
191
|
-
const u = T("FmSearch"), v = T("FmDateRangePicker");
|
192
|
-
return f(), N(U, {
|
193
|
-
title: "Online Transactions",
|
194
|
-
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
195
|
-
loading: o(l)
|
196
|
-
}, {
|
197
|
-
default: R(() => [
|
198
|
-
y("div", X, [
|
199
|
-
y("div", Z, [
|
200
|
-
p(q),
|
201
|
-
p(u, {
|
202
|
-
"model-value": o(a),
|
203
|
-
"onUpdate:modelValue": r[0] || (r[0] = (m) => F(a) ? a.value = m : null),
|
204
|
-
label: "Search",
|
205
|
-
placeholder: "Search Transactions ..."
|
206
|
-
}, null, 8, ["model-value"]),
|
207
|
-
p(v, {
|
208
|
-
modelValue: o(n),
|
209
|
-
"onUpdate:modelValue": [
|
210
|
-
r[1] || (r[1] = (m) => F(n) ? n.value = m : null),
|
211
|
-
g
|
212
|
-
],
|
213
|
-
compare: "",
|
214
|
-
"show-predefined-range": ""
|
215
|
-
}, null, 8, ["modelValue"])
|
216
|
-
]),
|
217
|
-
y("div", ee, [
|
218
|
-
p(Y, {
|
219
|
-
button: {
|
220
|
-
appendIcon: "file_download",
|
221
|
-
variant: "primary",
|
222
|
-
label: "Export"
|
223
|
-
},
|
224
|
-
handler: async () => {
|
225
|
-
await o(I).downloadRestaurantTransactionReport(t.value);
|
226
|
-
}
|
227
|
-
}, null, 8, ["handler"])
|
228
|
-
])
|
229
|
-
]),
|
230
|
-
p(W, {
|
231
|
-
loading: o(l),
|
232
|
-
data: e.value
|
233
|
-
}, null, 8, ["loading", "data"])
|
234
|
-
]),
|
235
|
-
_: 1
|
236
|
-
}, 8, ["loading"]);
|
237
|
-
};
|
238
|
-
}
|
239
|
-
});
|
240
|
-
export {
|
241
|
-
pe as default
|
242
|
-
};
|