@feedmepos/mf-payment 1.1.7 → 1.1.8
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-C362ShA8.js → PayoutAccount-BAXvKwol.js} +5 -5
- package/dist/{PayoutAccount-CAdClj2Y.js → PayoutAccount-C9TC-nLW.js} +3 -3
- package/dist/{PayoutAccountSetting-Cbl5b1Jr.js → PayoutAccountSetting-CsY4Dr_E.js} +3 -3
- package/dist/{Restaurant-ClDu-bSv.js → Restaurant-C9GmwxpU.js} +4 -4
- package/dist/{RestaurantSetting-D5h5RoHf.js → RestaurantSetting-DaSalR0b.js} +3 -3
- package/dist/Settlement-BvUs3MyQ.js +454 -0
- package/dist/Settlement-C7oFzVbb.js +219 -0
- package/dist/{SettlementTransactions-Cpaq8K6x.js → SettlementTransactions-BRo_oigl.js} +75 -69
- package/dist/{SettlementTransactions-DIvLOEw6.js → SettlementTransactions-qSgW0VCV.js} +80 -78
- package/dist/{Terminal-Cmed6xrj.js → Terminal-DXGKrm3G.js} +5 -5
- package/dist/TerminalSetting-bLxGkMlN.js +497 -0
- package/dist/{Transaction-BQn5rvxe.js → Transaction-B7ICajHR.js} +6 -6
- package/dist/{Transaction-8m9pEyyX.js → Transaction-BI2ZRsxe.js} +52 -47
- package/dist/{TransactionOld-CX-Odthg.js → TransactionOld-GLsvtHyF.js} +5 -5
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js → TransactionTable.vue_vue_type_script_setup_true_lang-UjV7RID1.js} +12 -8
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/api/terminal/index.d.ts +4 -0
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-QYQdqlqy.js → app-DVnyclnX.js} +327 -321
- package/dist/app.d.ts +6 -0
- package/dist/app.js +1 -1
- package/dist/{assets-Da-9jPqG.js → assets-BZmrImt4.js} +49 -52
- package/dist/{grafana-BDr-LF8O.js → grafana-DRnPxAqM.js} +1 -1
- package/dist/{index-0Dl-qVTd.js → index-BMF26WT4.js} +29 -29
- package/dist/{index-DFq7xhNQ.js → index-C1Hgyi3j.js} +1 -1
- package/dist/{index-Dg0Vf3qd.js → index-CD59SyVI.js} +1 -1
- package/dist/{index-DTH2dIPG.js → index-DZMn5Qjp.js} +796 -796
- package/dist/{index-Dq07OgOJ.js → index-a-Vqap7Z.js} +9 -1
- package/dist/{index-DbBsTEVS.js → index-gSE1T266.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js → index.vue_vue_type_script_setup_true_lang-FgXpWvbs.js} +1 -1
- package/dist/model/transaction.d.ts +3 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account--IA1DbB5.js → payout-account-B76ODsn2.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
- package/package.json +1 -1
- package/dist/Settlement-B06tIr4_.js +0 -445
- package/dist/Settlement-C2BVxmir.js +0 -219
- package/dist/TerminalSetting-BrTRbBF7.js +0 -389
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as
|
2
|
-
import { e as E, u as
|
3
|
-
import { useDialog as
|
1
|
+
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as B, normalizeClass as G, withCtx as s, createElementVNode as t, toDisplayString as i, createElementBlock as L, unref as m, ref as x, onMounted as H, watch as q, createVNode as n, createTextVNode as u, h as N } from "vue";
|
2
|
+
import { e as E, u as J } from "./index-DZMn5Qjp.js";
|
3
|
+
import { useDialog as Q, useSnackbar as W } from "@feedmepos/ui-library";
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as
|
6
|
-
import { _ as
|
7
|
-
import { useRouter as
|
8
|
-
import { s as
|
9
|
-
import { u as
|
10
|
-
import { w as
|
11
|
-
|
5
|
+
import { g as X, a as Z, t as P, b as ee } from "./assets-BZmrImt4.js";
|
6
|
+
import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
|
+
import { useRouter as ae } from "vue-router";
|
8
|
+
import { s as ne } from "./index-BMF26WT4.js";
|
9
|
+
import { u as oe } from "./error-K1CakhA9.js";
|
10
|
+
import { w as re } from "./Modal-DB8M9o1T.js";
|
11
|
+
import { h as le } from "./moment-h96o7c8I.js";
|
12
|
+
const se = /* @__PURE__ */ w({
|
12
13
|
__name: "Status",
|
13
14
|
props: {
|
14
15
|
row: {},
|
@@ -16,47 +17,47 @@ const re = /* @__PURE__ */ w({
|
|
16
17
|
},
|
17
18
|
setup(y) {
|
18
19
|
const o = y;
|
19
|
-
function
|
20
|
+
function d() {
|
20
21
|
return o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
22
|
}
|
22
23
|
return (A, _) => {
|
23
24
|
const b = g("FmBadge");
|
24
25
|
return F(), B(b, {
|
25
26
|
inline: "",
|
26
|
-
class: G(
|
27
|
+
class: G(d())
|
27
28
|
}, {
|
28
|
-
default:
|
29
|
-
t("div", null,
|
29
|
+
default: s(() => [
|
30
|
+
t("div", null, i(A.data), 1)
|
30
31
|
]),
|
31
32
|
_: 1
|
32
33
|
}, 8, ["class"]);
|
33
34
|
};
|
34
35
|
}
|
35
|
-
}),
|
36
|
+
}), ie = ["src"], ue = /* @__PURE__ */ w({
|
36
37
|
__name: "Gateway",
|
37
38
|
props: {
|
38
39
|
row: {},
|
39
40
|
data: {}
|
40
41
|
},
|
41
42
|
setup(y) {
|
42
|
-
return (o,
|
43
|
+
return (o, d) => (F(), L("img", {
|
43
44
|
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
44
|
-
src:
|
45
|
-
}, null, 8,
|
45
|
+
src: m(X)(o.row.original.gateway)
|
46
|
+
}, null, 8, ie));
|
46
47
|
}
|
47
|
-
}),
|
48
|
+
}), me = ["src"], de = /* @__PURE__ */ w({
|
48
49
|
__name: "Method",
|
49
50
|
props: {
|
50
51
|
row: {},
|
51
52
|
data: {}
|
52
53
|
},
|
53
54
|
setup(y) {
|
54
|
-
return (o,
|
55
|
+
return (o, d) => (F(), L("img", {
|
55
56
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
56
|
-
src:
|
57
|
-
}, null, 8,
|
57
|
+
src: m(Z)(o.row.original.method.issuer, o.row.original.method.variant)
|
58
|
+
}, null, 8, me));
|
58
59
|
}
|
59
|
-
}),
|
60
|
+
}), ce = /* @__PURE__ */ w({
|
60
61
|
__name: "Actions",
|
61
62
|
props: {
|
62
63
|
row: {},
|
@@ -64,17 +65,17 @@ const re = /* @__PURE__ */ w({
|
|
64
65
|
},
|
65
66
|
emits: ["delete"],
|
66
67
|
setup(y, { emit: o }) {
|
67
|
-
const
|
68
|
+
const d = o;
|
68
69
|
return (A, _) => {
|
69
70
|
const b = g("FmButton");
|
70
71
|
return F(), B(b, {
|
71
72
|
variant: "plain",
|
72
73
|
"prepend-icon": "delete",
|
73
|
-
onClick: _[0] || (_[0] = () =>
|
74
|
+
onClick: _[0] || (_[0] = () => d("delete"))
|
74
75
|
});
|
75
76
|
};
|
76
77
|
}
|
77
|
-
}),
|
78
|
+
}), pe = { class: "flex mb-6" }, fe = { class: "my-6 w-[240px]" }, Ne = /* @__PURE__ */ w({
|
78
79
|
__name: "SettlementTransactions",
|
79
80
|
props: {
|
80
81
|
settlementId: {
|
@@ -83,19 +84,19 @@ const re = /* @__PURE__ */ w({
|
|
83
84
|
}
|
84
85
|
},
|
85
86
|
setup(y) {
|
86
|
-
const o = y, { isLoading:
|
87
|
+
const o = y, { isLoading: d, startAsyncCall: A, startAsyncCallFn: _ } = J(!0), b = Q(), O = W(), R = ae(), l = x(), S = x([]), h = x([]);
|
87
88
|
async function V(a = !1) {
|
88
89
|
A(async () => {
|
89
|
-
a || (
|
90
|
+
a || (l.value = await ne.readById(o.settlementId));
|
90
91
|
const e = await P.readBySettlementId(o.settlementId);
|
91
|
-
S.value =
|
92
|
+
S.value = ee(e), h.value = S.value;
|
92
93
|
});
|
93
94
|
}
|
94
|
-
function
|
95
|
+
function Y() {
|
95
96
|
V();
|
96
97
|
}
|
97
|
-
Y
|
98
|
-
const
|
98
|
+
H(Y);
|
99
|
+
const D = x(""), U = [
|
99
100
|
{
|
100
101
|
header: () => "Transaction ID",
|
101
102
|
accessorKey: "id"
|
@@ -110,7 +111,7 @@ const re = /* @__PURE__ */ w({
|
|
110
111
|
meta: {
|
111
112
|
textAlign: "center"
|
112
113
|
},
|
113
|
-
cell: ({ cell: a, row: e }) => e.original.method ? N(
|
114
|
+
cell: ({ cell: a, row: e }) => e.original.method ? N(ue, { row: e, data: a.getValue() }) : ""
|
114
115
|
},
|
115
116
|
{
|
116
117
|
header: () => "Method",
|
@@ -118,7 +119,7 @@ const re = /* @__PURE__ */ w({
|
|
118
119
|
meta: {
|
119
120
|
textAlign: "center"
|
120
121
|
},
|
121
|
-
cell: ({ cell: a, row: e }) => e.original.method ? N(
|
122
|
+
cell: ({ cell: a, row: e }) => e.original.method ? N(de, { row: e, data: a.getValue() }) : ""
|
122
123
|
},
|
123
124
|
{
|
124
125
|
header: () => "Type",
|
@@ -136,7 +137,7 @@ const re = /* @__PURE__ */ w({
|
|
136
137
|
{
|
137
138
|
header: () => "Status",
|
138
139
|
accessorKey: "status",
|
139
|
-
cell: ({ cell: a, row: e }) => N(
|
140
|
+
cell: ({ cell: a, row: e }) => N(se, { row: e, data: a.getValue() })
|
140
141
|
},
|
141
142
|
{
|
142
143
|
header: () => "Transaction At",
|
@@ -160,10 +161,10 @@ const re = /* @__PURE__ */ w({
|
|
160
161
|
{
|
161
162
|
header: () => "Actions",
|
162
163
|
accessorKey: "action",
|
163
|
-
cell: ({ cell: a, row: e }) => N(
|
164
|
+
cell: ({ cell: a, row: e }) => N(ce, {
|
164
165
|
row: e,
|
165
166
|
data: a.getValue(),
|
166
|
-
onDelete: () =>
|
167
|
+
onDelete: () => re(
|
167
168
|
b,
|
168
169
|
"Remove transaction",
|
169
170
|
"Are you sure to remove transaction from settlement? This action cannot be revert !",
|
@@ -171,10 +172,10 @@ const re = /* @__PURE__ */ w({
|
|
171
172
|
try {
|
172
173
|
await P.removeTransactionFromSettlement(e.original.id), await V();
|
173
174
|
} catch (f) {
|
174
|
-
|
175
|
+
O.open({
|
175
176
|
type: "error",
|
176
177
|
title: "Error occurs when removing transaction",
|
177
|
-
message:
|
178
|
+
message: oe(f)
|
178
179
|
});
|
179
180
|
}
|
180
181
|
})
|
@@ -182,50 +183,51 @@ const re = /* @__PURE__ */ w({
|
|
182
183
|
})
|
183
184
|
}
|
184
185
|
], T = x("");
|
185
|
-
let
|
186
|
-
return
|
187
|
-
|
186
|
+
let I;
|
187
|
+
return q(T, async () => {
|
188
|
+
I && clearTimeout(I), I = setTimeout(() => {
|
188
189
|
var a = new RegExp(T.value, "i");
|
189
|
-
|
190
|
+
h.value = S.value.filter((e) => {
|
190
191
|
const f = JSON.stringify(e);
|
191
192
|
return a.test(f);
|
192
193
|
});
|
193
194
|
}, 700);
|
194
195
|
}), (a, e) => {
|
195
|
-
var $;
|
196
|
+
var K, $;
|
196
197
|
const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), j = g("FmSearch"), z = g("FmTable");
|
197
|
-
return F(), B(
|
198
|
-
title: `Settlement Transactions (${(
|
199
|
-
|
200
|
-
|
198
|
+
return F(), B(te, {
|
199
|
+
title: `Settlement Transactions (${(K = l.value) == null ? void 0 : K._id})`,
|
200
|
+
description: `Date: ${m(le)(($ = l.value) == null ? void 0 : $.createdAt).format("YYYY-MM-DD")}`,
|
201
|
+
loading: m(d),
|
202
|
+
onBack: m(R).back
|
201
203
|
}, {
|
202
|
-
default:
|
203
|
-
t("div",
|
204
|
+
default: s(() => [
|
205
|
+
t("div", pe, [
|
204
206
|
n(C, {
|
205
207
|
horizontal: "",
|
206
208
|
class: "flex-1 p-6",
|
207
209
|
variant: "elevated"
|
208
210
|
}, {
|
209
|
-
default:
|
211
|
+
default: s(() => [
|
210
212
|
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
211
|
-
default:
|
213
|
+
default: s(() => [
|
212
214
|
n(f, {
|
213
215
|
class: "p-0",
|
214
216
|
title: "Transaction Info",
|
215
217
|
subtitle: ""
|
216
218
|
}),
|
217
219
|
n(v, { class: "p-0" }, {
|
218
|
-
default:
|
219
|
-
var r,
|
220
|
+
default: s(() => {
|
221
|
+
var r, c, p, M;
|
220
222
|
return [
|
221
223
|
e[2] || (e[2] = t("b", null, "For", -1)),
|
222
|
-
|
224
|
+
u(": " + i((c = (r = l.value) == null ? void 0 : r.store) == null ? void 0 : c.event) + " ", 1),
|
223
225
|
e[3] || (e[3] = t("br", null, null, -1)),
|
224
226
|
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
225
|
-
|
227
|
+
u(": " + i((M = (p = l.value) == null ? void 0 : p.store) == null ? void 0 : M.id), 1),
|
226
228
|
e[5] || (e[5] = t("br", null, null, -1)),
|
227
229
|
e[6] || (e[6] = t("b", null, "Transaction", -1)),
|
228
|
-
|
230
|
+
u(": " + i(S.value.length), 1)
|
229
231
|
];
|
230
232
|
}),
|
231
233
|
_: 1
|
@@ -241,26 +243,26 @@ const re = /* @__PURE__ */ w({
|
|
241
243
|
class: "flex-1 p-6 mx-6",
|
242
244
|
variant: "elevated"
|
243
245
|
}, {
|
244
|
-
default:
|
246
|
+
default: s(() => [
|
245
247
|
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
246
|
-
default:
|
248
|
+
default: s(() => [
|
247
249
|
n(f, {
|
248
250
|
class: "p-0",
|
249
251
|
title: "Bank Info",
|
250
252
|
subtitle: ""
|
251
253
|
}),
|
252
254
|
n(v, { class: "p-0" }, {
|
253
|
-
default:
|
254
|
-
var r,
|
255
|
+
default: s(() => {
|
256
|
+
var r, c, p;
|
255
257
|
return [
|
256
258
|
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
257
|
-
|
259
|
+
u(": " + i((r = l.value) == null ? void 0 : r.beneficiaryBank.name), 1),
|
258
260
|
e[8] || (e[8] = t("br", null, null, -1)),
|
259
261
|
e[9] || (e[9] = t("b", null, "Name", -1)),
|
260
|
-
|
262
|
+
u(": " + i((c = l.value) == null ? void 0 : c.beneficiaryBank.holderName), 1),
|
261
263
|
e[10] || (e[10] = t("br", null, null, -1)),
|
262
264
|
e[11] || (e[11] = t("b", null, "Number", -1)),
|
263
|
-
|
265
|
+
u(": " + i((p = l.value) == null ? void 0 : p.beneficiaryBank.accountNumber), 1)
|
264
266
|
];
|
265
267
|
}),
|
266
268
|
_: 1
|
@@ -276,26 +278,26 @@ const re = /* @__PURE__ */ w({
|
|
276
278
|
class: "flex-1 p-6",
|
277
279
|
variant: "elevated"
|
278
280
|
}, {
|
279
|
-
default:
|
281
|
+
default: s(() => [
|
280
282
|
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
281
|
-
default:
|
283
|
+
default: s(() => [
|
282
284
|
n(f, {
|
283
285
|
class: "p-0",
|
284
286
|
title: "Payout Info",
|
285
287
|
subtitle: ""
|
286
288
|
}),
|
287
289
|
n(v, { class: "p-0" }, {
|
288
|
-
default:
|
289
|
-
var r,
|
290
|
+
default: s(() => {
|
291
|
+
var r, c, p;
|
290
292
|
return [
|
291
293
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
292
|
-
|
294
|
+
u(": " + i(m(k)((r = l.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
|
293
295
|
e[13] || (e[13] = t("br", null, null, -1)),
|
294
296
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
295
|
-
|
297
|
+
u(": " + i(m(k)((c = l.value) == null ? void 0 : c.totalFee).toFormat("$0.00")), 1),
|
296
298
|
e[15] || (e[15] = t("br", null, null, -1)),
|
297
299
|
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
298
|
-
|
300
|
+
u(": " + i(m(k)((p = l.value) == null ? void 0 : p.totalPayout).toFormat("$0.00")), 1)
|
299
301
|
];
|
300
302
|
}),
|
301
303
|
_: 1
|
@@ -307,7 +309,7 @@ const re = /* @__PURE__ */ w({
|
|
307
309
|
_: 1
|
308
310
|
})
|
309
311
|
]),
|
310
|
-
t("div",
|
312
|
+
t("div", fe, [
|
311
313
|
n(j, {
|
312
314
|
modelValue: T.value,
|
313
315
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => T.value = r),
|
@@ -315,20 +317,20 @@ const re = /* @__PURE__ */ w({
|
|
315
317
|
}, null, 8, ["modelValue"])
|
316
318
|
]),
|
317
319
|
n(z, {
|
318
|
-
modelValue:
|
319
|
-
"onUpdate:modelValue": e[1] || (e[1] = (r) =>
|
320
|
+
modelValue: D.value,
|
321
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => D.value = r),
|
320
322
|
"shrink-at": !1,
|
321
323
|
"search-value": T.value,
|
322
|
-
"row-data":
|
324
|
+
"row-data": h.value,
|
323
325
|
"column-defs": U,
|
324
|
-
loading:
|
326
|
+
loading: m(d)
|
325
327
|
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
326
328
|
]),
|
327
329
|
_: 1
|
328
|
-
}, 8, ["title", "loading", "onBack"]);
|
330
|
+
}, 8, ["title", "description", "loading", "onBack"]);
|
329
331
|
};
|
330
332
|
}
|
331
333
|
});
|
332
334
|
export {
|
333
|
-
|
335
|
+
Ne as default
|
334
336
|
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
|
2
|
-
import { e as Ce } from "./index-
|
2
|
+
import { e as Ce } from "./index-DZMn5Qjp.js";
|
3
3
|
import { h as ye } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as we } from "./index-
|
5
|
-
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as we } from "./index-C1Hgyi3j.js";
|
5
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-FgXpWvbs.js";
|
6
6
|
import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
|
8
|
-
import { t as Q } from "./index-
|
8
|
+
import { t as Q } from "./index-a-Vqap7Z.js";
|
9
9
|
import { c as le } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { useCoreStore as ue } from "@feedmepos/mf-common";
|
11
|
-
import { g as Se } from "./grafana-
|
11
|
+
import { g as Se } from "./grafana-DRnPxAqM.js";
|
12
12
|
import { u as Y } from "./error-K1CakhA9.js";
|
13
13
|
import { z as re, a as ne } from "./validator-D5jtpt9A.js";
|
14
14
|
import { w as ae } from "./Modal-DB8M9o1T.js";
|