@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.2
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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BpMu58oE.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-z-gdodfR.js} +361 -360
- package/dist/PayoutAccountSetting-jZJu4WWL.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-DfBX5uPS.js} +56 -54
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js +33 -0
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-KPtRoif-.js} +3 -3
- package/dist/{Settlement-Fh86ozFD.js → Settlement-DbMQAA0_.js} +9 -8
- package/dist/Settlement-smC2PDKA.js +445 -0
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-Bs8Il-GO.js} +14 -14
- package/dist/SettlementTransactions-Cw9DnODr.js +291 -0
- package/dist/{Terminal-BUBkiYYw.js → Terminal-HLOGtr0x.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-DraCszpQ.js} +27 -27
- package/dist/Transaction-B8cHQbbP.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-_CB4VTT9.js} +123 -105
- package/dist/TransactionOld-BhzUSu5h.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-DWRPKvx2.js} +1115 -780
- package/dist/app.d.ts +278 -0
- package/dist/app.js +4 -3
- package/dist/{assets-BySnqkmr.js → assets-BImh8bhR.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-CPOGSE20.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-8eCaI4jI.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-CNZFZxie.js} +8163 -8081
- package/dist/{index-DXV5GQaF.js → index-D5DlMaeB.js} +1 -1
- package/dist/index-DtT3I2PI.js +45 -0
- package/dist/index-DuSw-EaU.js +66 -0
- package/dist/{index-CvJ2nft4.js → index-eznEOmAe.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +9 -8
- package/dist/{payout-account-DPdwKVTr.js → payout-account-CjDkY3wf.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- 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/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +9 -8
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js +0 -33
- package/dist/Settlement-SeGVEdZj.js +0 -444
- package/dist/SettlementTransactions-CHRsIcoh.js +0 -291
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionOld-Pj412ujb.js +0 -99
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -1,291 +0,0 @@
|
|
1
|
-
import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as z, watch as $, createVNode as a, createTextVNode as i, h } from "vue";
|
2
|
-
import { e as C, u as G } from "./index-iiG_kivD.js";
|
3
|
-
import "@feedmepos/ui-library";
|
4
|
-
import { d as E } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as Y, a as H } from "./assets-BySnqkmr.js";
|
6
|
-
import { t as q, a as J } from "./transaction-CzLoSCVe.js";
|
7
|
-
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { useRouter as W } from "vue-router";
|
9
|
-
import { s as X } from "./index-DXV5GQaF.js";
|
10
|
-
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
11
|
-
const ee = /* @__PURE__ */ T({
|
12
|
-
__name: "Status",
|
13
|
-
props: {
|
14
|
-
row: {},
|
15
|
-
data: {}
|
16
|
-
},
|
17
|
-
setup(y) {
|
18
|
-
const r = y;
|
19
|
-
function p() {
|
20
|
-
return r.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : r.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
|
-
}
|
22
|
-
return (w, B) => {
|
23
|
-
const S = g("FmBadge");
|
24
|
-
return F(), P(S, {
|
25
|
-
inline: "",
|
26
|
-
class: j(p())
|
27
|
-
}, {
|
28
|
-
default: l(() => [
|
29
|
-
t("div", null, u(w.data), 1)
|
30
|
-
]),
|
31
|
-
_: 1
|
32
|
-
}, 8, ["class"]);
|
33
|
-
};
|
34
|
-
}
|
35
|
-
}), te = ["src"], ae = /* @__PURE__ */ T({
|
36
|
-
__name: "Gateway",
|
37
|
-
props: {
|
38
|
-
row: {},
|
39
|
-
data: {}
|
40
|
-
},
|
41
|
-
setup(y) {
|
42
|
-
return (r, p) => (F(), L("img", {
|
43
|
-
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
44
|
-
src: c(Y)(r.row.original.gateway)
|
45
|
-
}, null, 8, te));
|
46
|
-
}
|
47
|
-
}), ne = ["src"], oe = /* @__PURE__ */ T({
|
48
|
-
__name: "Method",
|
49
|
-
props: {
|
50
|
-
row: {},
|
51
|
-
data: {}
|
52
|
-
},
|
53
|
-
setup(y) {
|
54
|
-
return (r, p) => (F(), L("img", {
|
55
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
56
|
-
src: c(H)(r.row.original.method.issuer, r.row.original.method.variant)
|
57
|
-
}, null, 8, ne));
|
58
|
-
}
|
59
|
-
}), re = { class: "flex mb-6" }, le = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
|
60
|
-
__name: "SettlementTransactions",
|
61
|
-
props: {
|
62
|
-
settlementId: {
|
63
|
-
type: String,
|
64
|
-
required: !0
|
65
|
-
}
|
66
|
-
},
|
67
|
-
setup(y) {
|
68
|
-
const r = y, { isLoading: p, startAsyncCall: w } = G(!0), { currentRestaurant: B } = Z(), S = W(), s = _(), x = _([]), N = _([]);
|
69
|
-
async function O(n = !1) {
|
70
|
-
w(async () => {
|
71
|
-
n || (s.value = await X.readRestaurantSettlementById(r.settlementId));
|
72
|
-
const e = await q.readRestaurantTransactionsBySettlementId(r.settlementId);
|
73
|
-
x.value = J(e), N.value = x.value;
|
74
|
-
});
|
75
|
-
}
|
76
|
-
function k() {
|
77
|
-
O();
|
78
|
-
}
|
79
|
-
z(k), $(B, k);
|
80
|
-
const V = _(""), D = [
|
81
|
-
{
|
82
|
-
header: () => "Transaction ID",
|
83
|
-
accessorKey: "id"
|
84
|
-
},
|
85
|
-
{
|
86
|
-
header: () => "Pay ID",
|
87
|
-
accessorKey: "payId"
|
88
|
-
},
|
89
|
-
{
|
90
|
-
header: () => "Gateway",
|
91
|
-
accessorKey: "gateway",
|
92
|
-
meta: {
|
93
|
-
textAlign: "center"
|
94
|
-
},
|
95
|
-
cell: ({ cell: n, row: e }) => e.original.method ? h(ae, { row: e, data: n.getValue() }) : ""
|
96
|
-
},
|
97
|
-
{
|
98
|
-
header: () => "Method",
|
99
|
-
accessorKey: "method",
|
100
|
-
meta: {
|
101
|
-
textAlign: "center"
|
102
|
-
},
|
103
|
-
cell: ({ cell: n, row: e }) => e.original.method ? h(oe, { row: e, data: n.getValue() }) : ""
|
104
|
-
},
|
105
|
-
{
|
106
|
-
header: () => "Type",
|
107
|
-
accessorKey: "type",
|
108
|
-
meta: {
|
109
|
-
textAlign: "center"
|
110
|
-
},
|
111
|
-
cell: ({ row: n }) => {
|
112
|
-
if (!n.original.method)
|
113
|
-
return "";
|
114
|
-
const e = n.original.method.variant;
|
115
|
-
return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
|
116
|
-
}
|
117
|
-
},
|
118
|
-
{
|
119
|
-
header: () => "Status",
|
120
|
-
accessorKey: "status",
|
121
|
-
cell: ({ cell: n, row: e }) => h(ee, { row: e, data: n.getValue() })
|
122
|
-
},
|
123
|
-
{
|
124
|
-
header: () => "Transaction At",
|
125
|
-
accessorKey: "transactionAt",
|
126
|
-
meta: {
|
127
|
-
width: "180px"
|
128
|
-
}
|
129
|
-
},
|
130
|
-
{
|
131
|
-
header: () => "Sales Amount",
|
132
|
-
accessorKey: "amount"
|
133
|
-
},
|
134
|
-
{
|
135
|
-
header: () => "Fee",
|
136
|
-
accessorKey: "fee"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
header: () => "Settlement Amount",
|
140
|
-
accessorKey: "payout"
|
141
|
-
}
|
142
|
-
], v = _("");
|
143
|
-
let A;
|
144
|
-
return $(v, async () => {
|
145
|
-
A && clearTimeout(A), A = setTimeout(() => {
|
146
|
-
var n = new RegExp(v.value, "i");
|
147
|
-
N.value = x.value.filter((e) => {
|
148
|
-
const b = JSON.stringify(e);
|
149
|
-
return n.test(b);
|
150
|
-
});
|
151
|
-
}, 700);
|
152
|
-
}), (n, e) => {
|
153
|
-
var K;
|
154
|
-
const b = g("FmCardHeader"), f = g("FmCardSection"), I = g("FmCard"), M = g("FmSearch"), U = g("FmTable");
|
155
|
-
return F(), P(Q, {
|
156
|
-
title: `Settlement Transactions (${(K = s.value) == null ? void 0 : K._id})`,
|
157
|
-
loading: c(p),
|
158
|
-
onBack: c(S).back
|
159
|
-
}, {
|
160
|
-
default: l(() => [
|
161
|
-
t("div", re, [
|
162
|
-
a(I, {
|
163
|
-
horizontal: "",
|
164
|
-
class: "flex-1 p-6",
|
165
|
-
variant: "elevated"
|
166
|
-
}, {
|
167
|
-
default: l(() => [
|
168
|
-
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
169
|
-
default: l(() => [
|
170
|
-
a(b, {
|
171
|
-
class: "p-0",
|
172
|
-
title: "Transaction Info",
|
173
|
-
subtitle: ""
|
174
|
-
}),
|
175
|
-
a(f, { class: "p-0" }, {
|
176
|
-
default: l(() => {
|
177
|
-
var o, d, m, R;
|
178
|
-
return [
|
179
|
-
e[2] || (e[2] = t("b", null, "For", -1)),
|
180
|
-
i(": " + u((d = (o = s.value) == null ? void 0 : o.store) == null ? void 0 : d.event) + " ", 1),
|
181
|
-
e[3] || (e[3] = t("br", null, null, -1)),
|
182
|
-
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
183
|
-
i(": " + u((R = (m = s.value) == null ? void 0 : m.store) == null ? void 0 : R.id), 1),
|
184
|
-
e[5] || (e[5] = t("br", null, null, -1)),
|
185
|
-
e[6] || (e[6] = t("b", null, "Transaction", -1)),
|
186
|
-
i(": " + u(x.value.length), 1)
|
187
|
-
];
|
188
|
-
}),
|
189
|
-
_: 1
|
190
|
-
})
|
191
|
-
]),
|
192
|
-
_: 1
|
193
|
-
})
|
194
|
-
]),
|
195
|
-
_: 1
|
196
|
-
}),
|
197
|
-
a(I, {
|
198
|
-
horizontal: "",
|
199
|
-
class: "flex-1 p-6 mx-6",
|
200
|
-
variant: "elevated"
|
201
|
-
}, {
|
202
|
-
default: l(() => [
|
203
|
-
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
204
|
-
default: l(() => [
|
205
|
-
a(b, {
|
206
|
-
class: "p-0",
|
207
|
-
title: "Bank Info",
|
208
|
-
subtitle: ""
|
209
|
-
}),
|
210
|
-
a(f, { class: "p-0" }, {
|
211
|
-
default: l(() => {
|
212
|
-
var o, d, m;
|
213
|
-
return [
|
214
|
-
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
215
|
-
i(": " + u((o = s.value) == null ? void 0 : o.beneficiaryBank.name), 1),
|
216
|
-
e[8] || (e[8] = t("br", null, null, -1)),
|
217
|
-
e[9] || (e[9] = t("b", null, "Name", -1)),
|
218
|
-
i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
|
219
|
-
e[10] || (e[10] = t("br", null, null, -1)),
|
220
|
-
e[11] || (e[11] = t("b", null, "Number", -1)),
|
221
|
-
i(": " + u((m = s.value) == null ? void 0 : m.beneficiaryBank.accountNumber), 1)
|
222
|
-
];
|
223
|
-
}),
|
224
|
-
_: 1
|
225
|
-
})
|
226
|
-
]),
|
227
|
-
_: 1
|
228
|
-
})
|
229
|
-
]),
|
230
|
-
_: 1
|
231
|
-
}),
|
232
|
-
a(I, {
|
233
|
-
horizontal: "",
|
234
|
-
class: "flex-1 p-6",
|
235
|
-
variant: "elevated"
|
236
|
-
}, {
|
237
|
-
default: l(() => [
|
238
|
-
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
239
|
-
default: l(() => [
|
240
|
-
a(b, {
|
241
|
-
class: "p-0",
|
242
|
-
title: "Payout Info",
|
243
|
-
subtitle: ""
|
244
|
-
}),
|
245
|
-
a(f, { class: "p-0" }, {
|
246
|
-
default: l(() => {
|
247
|
-
var o, d, m;
|
248
|
-
return [
|
249
|
-
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
250
|
-
i(": " + u(c(E)((o = s.value) == null ? void 0 : o.totalAmount).toFormat("$0.00")), 1),
|
251
|
-
e[13] || (e[13] = t("br", null, null, -1)),
|
252
|
-
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
253
|
-
i(": " + u(c(E)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
|
254
|
-
e[15] || (e[15] = t("br", null, null, -1)),
|
255
|
-
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
256
|
-
i(": " + u(c(E)((m = s.value) == null ? void 0 : m.totalPayout).toFormat("$0.00")), 1)
|
257
|
-
];
|
258
|
-
}),
|
259
|
-
_: 1
|
260
|
-
})
|
261
|
-
]),
|
262
|
-
_: 1
|
263
|
-
})
|
264
|
-
]),
|
265
|
-
_: 1
|
266
|
-
})
|
267
|
-
]),
|
268
|
-
t("div", le, [
|
269
|
-
a(M, {
|
270
|
-
modelValue: v.value,
|
271
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => v.value = o),
|
272
|
-
placeholder: "Search Transactions ..."
|
273
|
-
}, null, 8, ["modelValue"])
|
274
|
-
]),
|
275
|
-
a(U, {
|
276
|
-
modelValue: V.value,
|
277
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => V.value = o),
|
278
|
-
"search-value": v.value,
|
279
|
-
"row-data": N.value,
|
280
|
-
"column-defs": D,
|
281
|
-
loading: c(p)
|
282
|
-
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
283
|
-
]),
|
284
|
-
_: 1
|
285
|
-
}, 8, ["title", "loading", "onBack"]);
|
286
|
-
};
|
287
|
-
}
|
288
|
-
});
|
289
|
-
export {
|
290
|
-
ve as default
|
291
|
-
};
|