@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.14
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
- package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
- package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
- package/dist/Settlement-Dr6Rmkid.js +142 -0
- package/dist/Settlement-JkH7-Wd_.js +146 -0
- package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
- package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
- package/dist/Terminal-DQqtUzV2.js +318 -0
- package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
- package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
- package/dist/Transaction-BKBh8jOT.js +249 -0
- package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
- package/dist/api/index.d.ts +7 -0
- package/dist/api/settlement/index.d.ts +7 -13
- package/dist/api/terminal/index.d.ts +8 -1
- package/dist/api/transaction/index.d.ts +6 -2
- package/dist/app.js +46 -40
- package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/CursorTable/index.vue.d.ts +16 -5
- package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
- package/dist/index-CxYMbN69.js +37 -0
- package/dist/index-DflgpHga.js +55560 -0
- package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
- package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
- package/dist/package.json +3 -3
- package/dist/{payout-account-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
- package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
- package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
- package/package.json +3 -3
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/Transaction-C-X11abA.js +0 -242
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -1,32 +1,33 @@
|
|
1
|
-
import { defineComponent as w, resolveComponent as
|
2
|
-
import { e as B, u as H } from "./index-
|
1
|
+
import { defineComponent as w, resolveComponent as m, openBlock as A, createBlock as S, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, unref as g, ref as x, onMounted as j, watch as Y, createVNode as n, createTextVNode as i, h as I } from "vue";
|
2
|
+
import { e as B, u as H } from "./index-DflgpHga.js";
|
3
3
|
import { useDialog as q, useSnackbar as J } from "@feedmepos/ui-library";
|
4
4
|
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as Q, a as W } from "./assets-
|
6
|
-
import { t as $, a as X } from "./transaction-
|
7
|
-
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-
|
5
|
+
import { g as Q, a as W } from "./assets-nIQ0r4oP.js";
|
6
|
+
import { t as $, a as X } from "./transaction-B4rEbejx.js";
|
7
|
+
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
8
8
|
import { useRouter as ee } from "vue-router";
|
9
|
-
import { s as te } from "./index-
|
9
|
+
import { s as te } from "./index-DhPhiNvt.js";
|
10
10
|
import { u as ae } from "./error-K1CakhA9.js";
|
11
|
-
|
11
|
+
import { w as ne } from "./Modal-DB8M9o1T.js";
|
12
|
+
const re = /* @__PURE__ */ w({
|
12
13
|
__name: "Status",
|
13
14
|
props: {
|
14
15
|
row: {},
|
15
16
|
data: {}
|
16
17
|
},
|
17
|
-
setup(
|
18
|
-
const
|
19
|
-
function
|
20
|
-
return
|
18
|
+
setup(v) {
|
19
|
+
const r = v;
|
20
|
+
function d() {
|
21
|
+
return r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
22
|
}
|
22
|
-
return (
|
23
|
-
const
|
24
|
-
return A(), S(
|
23
|
+
return (c, b) => {
|
24
|
+
const T = m("FmBadge");
|
25
|
+
return A(), S(T, {
|
25
26
|
inline: "",
|
26
|
-
class: G(
|
27
|
+
class: G(d())
|
27
28
|
}, {
|
28
|
-
default:
|
29
|
-
t("div", null,
|
29
|
+
default: l(() => [
|
30
|
+
t("div", null, u(c.data), 1)
|
30
31
|
]),
|
31
32
|
_: 1
|
32
33
|
}, 8, ["class"]);
|
@@ -38,57 +39,49 @@ const ne = /* @__PURE__ */ w({
|
|
38
39
|
row: {},
|
39
40
|
data: {}
|
40
41
|
},
|
41
|
-
setup(
|
42
|
-
return (
|
43
|
-
const
|
44
|
-
return A(), S(
|
45
|
-
src: g(Q)(
|
42
|
+
setup(v) {
|
43
|
+
return (r, d) => {
|
44
|
+
const c = m("FmThumbnail");
|
45
|
+
return A(), S(c, {
|
46
|
+
src: g(Q)(r.row.original.gateway),
|
46
47
|
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
47
48
|
}, null, 8, ["src"]);
|
48
49
|
};
|
49
50
|
}
|
50
|
-
}),
|
51
|
+
}), le = /* @__PURE__ */ w({
|
51
52
|
__name: "Method",
|
52
53
|
props: {
|
53
54
|
row: {},
|
54
55
|
data: {}
|
55
56
|
},
|
56
|
-
setup(
|
57
|
-
return (
|
58
|
-
const
|
59
|
-
return A(), S(
|
60
|
-
src: g(W)(
|
57
|
+
setup(v) {
|
58
|
+
return (r, d) => {
|
59
|
+
const c = m("FmThumbnail");
|
60
|
+
return A(), S(c, {
|
61
|
+
src: g(W)(r.row.original.method.issuer),
|
61
62
|
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
62
63
|
}, null, 8, ["src"]);
|
63
64
|
};
|
64
65
|
}
|
65
|
-
}),
|
66
|
+
}), se = /* @__PURE__ */ w({
|
66
67
|
__name: "Actions",
|
67
68
|
props: {
|
68
69
|
row: {},
|
69
70
|
data: {}
|
70
71
|
},
|
71
72
|
emits: ["delete"],
|
72
|
-
setup(
|
73
|
-
const
|
74
|
-
return (
|
75
|
-
const
|
76
|
-
return A(), S(
|
73
|
+
setup(v, { emit: r }) {
|
74
|
+
const d = r;
|
75
|
+
return (c, b) => {
|
76
|
+
const T = m("FmButton");
|
77
|
+
return A(), S(T, {
|
77
78
|
variant: "plain",
|
78
79
|
"prepend-icon": "delete",
|
79
|
-
onClick: b[0] || (b[0] = () =>
|
80
|
+
onClick: b[0] || (b[0] = () => d("delete"))
|
80
81
|
});
|
81
82
|
};
|
82
83
|
}
|
83
|
-
}),
|
84
|
-
const v = p.open({
|
85
|
-
title: n,
|
86
|
-
message: u,
|
87
|
-
primaryActions: { text: "Confirm", close: !0 },
|
88
|
-
secondaryActions: { text: "Cancel", close: !0 }
|
89
|
-
});
|
90
|
-
l && v.onPrimary(l);
|
91
|
-
}, ue = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, Te = /* @__PURE__ */ w({
|
84
|
+
}), ue = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, Fe = /* @__PURE__ */ w({
|
92
85
|
__name: "SettlementTransactions",
|
93
86
|
props: {
|
94
87
|
settlementId: {
|
@@ -96,12 +89,12 @@ const ne = /* @__PURE__ */ w({
|
|
96
89
|
required: !0
|
97
90
|
}
|
98
91
|
},
|
99
|
-
setup(
|
100
|
-
const
|
92
|
+
setup(v) {
|
93
|
+
const r = v, { isLoading: d, startAsyncCall: c, startAsyncCallFn: b } = H(!0), T = q(), L = J(), M = ee(), s = x(), N = x([]), h = x([]);
|
101
94
|
async function V(a = !1) {
|
102
|
-
|
103
|
-
a || (
|
104
|
-
const e = await $.readBySettlementId(
|
95
|
+
c(async () => {
|
96
|
+
a || (s.value = await te.readById(r.settlementId));
|
97
|
+
const e = await $.readBySettlementId(r.settlementId);
|
105
98
|
N.value = X(e), h.value = N.value;
|
106
99
|
});
|
107
100
|
}
|
@@ -109,7 +102,7 @@ const ne = /* @__PURE__ */ w({
|
|
109
102
|
V();
|
110
103
|
}
|
111
104
|
j(O);
|
112
|
-
const K =
|
105
|
+
const K = x(""), R = [
|
113
106
|
{
|
114
107
|
header: () => "Transaction ID",
|
115
108
|
accessorKey: "id"
|
@@ -132,7 +125,7 @@ const ne = /* @__PURE__ */ w({
|
|
132
125
|
meta: {
|
133
126
|
textAlign: "center"
|
134
127
|
},
|
135
|
-
cell: ({ cell: a, row: e }) => e.original.method ? I(
|
128
|
+
cell: ({ cell: a, row: e }) => e.original.method ? I(le, { row: e, data: a.getValue() }) : ""
|
136
129
|
},
|
137
130
|
{
|
138
131
|
header: () => "Type",
|
@@ -150,7 +143,7 @@ const ne = /* @__PURE__ */ w({
|
|
150
143
|
{
|
151
144
|
header: () => "Status",
|
152
145
|
accessorKey: "status",
|
153
|
-
cell: ({ cell: a, row: e }) => I(
|
146
|
+
cell: ({ cell: a, row: e }) => I(re, { row: e, data: a.getValue() })
|
154
147
|
},
|
155
148
|
{
|
156
149
|
header: () => "Transaction At",
|
@@ -174,72 +167,72 @@ const ne = /* @__PURE__ */ w({
|
|
174
167
|
{
|
175
168
|
header: () => "Actions",
|
176
169
|
accessorKey: "action",
|
177
|
-
cell: ({ cell: a, row: e }) => I(
|
170
|
+
cell: ({ cell: a, row: e }) => I(se, {
|
178
171
|
row: e,
|
179
172
|
data: a.getValue(),
|
180
|
-
onDelete: () =>
|
181
|
-
|
173
|
+
onDelete: () => ne(
|
174
|
+
T,
|
182
175
|
"Remove transaction",
|
183
176
|
"Are you sure to remove transaction from settlement? This action cannot be revert !",
|
184
177
|
b(async () => {
|
185
178
|
try {
|
186
179
|
await $.removeTransactionFromSettlement(e.original.id), await V();
|
187
|
-
} catch (
|
180
|
+
} catch (y) {
|
188
181
|
L.open({
|
189
182
|
type: "error",
|
190
183
|
title: "Error occurs when removing transaction",
|
191
|
-
message: ae(
|
184
|
+
message: ae(y)
|
192
185
|
});
|
193
186
|
}
|
194
187
|
})
|
195
188
|
)
|
196
189
|
})
|
197
190
|
}
|
198
|
-
],
|
191
|
+
], F = x("");
|
199
192
|
let C;
|
200
|
-
return Y(
|
193
|
+
return Y(F, async () => {
|
201
194
|
C && clearTimeout(C), C = setTimeout(() => {
|
202
|
-
var a = new RegExp(
|
195
|
+
var a = new RegExp(F.value, "i");
|
203
196
|
h.value = N.value.filter((e) => {
|
204
|
-
const
|
205
|
-
return a.test(
|
197
|
+
const y = JSON.stringify(e);
|
198
|
+
return a.test(y);
|
206
199
|
});
|
207
200
|
}, 700);
|
208
201
|
}), (a, e) => {
|
209
|
-
var
|
210
|
-
const
|
202
|
+
var D;
|
203
|
+
const y = m("FmCardHeader"), _ = m("FmCardSection"), E = m("FmCard"), U = m("FmSearch"), z = m("FmTable");
|
211
204
|
return A(), S(Z, {
|
212
|
-
title: `Settlement Transactions (${(
|
213
|
-
loading: g(
|
205
|
+
title: `Settlement Transactions (${(D = s.value) == null ? void 0 : D._id})`,
|
206
|
+
loading: g(d),
|
214
207
|
onBack: g(M).back
|
215
208
|
}, {
|
216
|
-
default:
|
209
|
+
default: l(() => [
|
217
210
|
t("div", ue, [
|
218
|
-
|
211
|
+
n(E, {
|
219
212
|
horizontal: "",
|
220
213
|
class: "flex-1 p-6",
|
221
214
|
variant: "elevated"
|
222
215
|
}, {
|
223
|
-
default:
|
224
|
-
|
225
|
-
default:
|
226
|
-
|
216
|
+
default: l(() => [
|
217
|
+
n(_, { class: "flex flex-col gap-16 justify-between" }, {
|
218
|
+
default: l(() => [
|
219
|
+
n(y, {
|
227
220
|
class: "p-0",
|
228
221
|
title: "Transaction Info",
|
229
222
|
subtitle: ""
|
230
223
|
}),
|
231
|
-
|
232
|
-
default:
|
233
|
-
var
|
224
|
+
n(_, { class: "p-0" }, {
|
225
|
+
default: l(() => {
|
226
|
+
var o, p, f, P;
|
234
227
|
return [
|
235
228
|
e[2] || (e[2] = t("b", null, "For", -1)),
|
236
|
-
|
229
|
+
i(": " + u((p = (o = s.value) == null ? void 0 : o.store) == null ? void 0 : p.event) + " ", 1),
|
237
230
|
e[3] || (e[3] = t("br", null, null, -1)),
|
238
231
|
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
239
|
-
|
232
|
+
i(": " + u((P = (f = s.value) == null ? void 0 : f.store) == null ? void 0 : P.id), 1),
|
240
233
|
e[5] || (e[5] = t("br", null, null, -1)),
|
241
234
|
e[6] || (e[6] = t("b", null, "Transaction", -1)),
|
242
|
-
|
235
|
+
i(": " + u(N.value.length), 1)
|
243
236
|
];
|
244
237
|
}),
|
245
238
|
_: 1
|
@@ -250,31 +243,31 @@ const ne = /* @__PURE__ */ w({
|
|
250
243
|
]),
|
251
244
|
_: 1
|
252
245
|
}),
|
253
|
-
|
246
|
+
n(E, {
|
254
247
|
horizontal: "",
|
255
248
|
class: "flex-1 p-6 mx-6",
|
256
249
|
variant: "elevated"
|
257
250
|
}, {
|
258
|
-
default:
|
259
|
-
|
260
|
-
default:
|
261
|
-
|
251
|
+
default: l(() => [
|
252
|
+
n(_, { class: "flex flex-col gap-16 justify-between" }, {
|
253
|
+
default: l(() => [
|
254
|
+
n(y, {
|
262
255
|
class: "p-0",
|
263
256
|
title: "Bank Info",
|
264
257
|
subtitle: ""
|
265
258
|
}),
|
266
|
-
|
267
|
-
default:
|
268
|
-
var
|
259
|
+
n(_, { class: "p-0" }, {
|
260
|
+
default: l(() => {
|
261
|
+
var o, p, f;
|
269
262
|
return [
|
270
263
|
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
271
|
-
|
264
|
+
i(": " + u((o = s.value) == null ? void 0 : o.beneficiaryBank.name), 1),
|
272
265
|
e[8] || (e[8] = t("br", null, null, -1)),
|
273
266
|
e[9] || (e[9] = t("b", null, "Name", -1)),
|
274
|
-
|
267
|
+
i(": " + u((p = s.value) == null ? void 0 : p.beneficiaryBank.holderName), 1),
|
275
268
|
e[10] || (e[10] = t("br", null, null, -1)),
|
276
269
|
e[11] || (e[11] = t("b", null, "Number", -1)),
|
277
|
-
|
270
|
+
i(": " + u((f = s.value) == null ? void 0 : f.beneficiaryBank.accountNumber), 1)
|
278
271
|
];
|
279
272
|
}),
|
280
273
|
_: 1
|
@@ -285,31 +278,31 @@ const ne = /* @__PURE__ */ w({
|
|
285
278
|
]),
|
286
279
|
_: 1
|
287
280
|
}),
|
288
|
-
|
281
|
+
n(E, {
|
289
282
|
horizontal: "",
|
290
283
|
class: "flex-1 p-6",
|
291
284
|
variant: "elevated"
|
292
285
|
}, {
|
293
|
-
default:
|
294
|
-
|
295
|
-
default:
|
296
|
-
|
286
|
+
default: l(() => [
|
287
|
+
n(_, { class: "flex flex-col gap-16 justify-between" }, {
|
288
|
+
default: l(() => [
|
289
|
+
n(y, {
|
297
290
|
class: "p-0",
|
298
291
|
title: "Payout Info",
|
299
292
|
subtitle: ""
|
300
293
|
}),
|
301
|
-
|
302
|
-
default:
|
303
|
-
var
|
294
|
+
n(_, { class: "p-0" }, {
|
295
|
+
default: l(() => {
|
296
|
+
var o, p, f;
|
304
297
|
return [
|
305
298
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
306
|
-
|
299
|
+
i(": " + u(g(k)((o = s.value) == null ? void 0 : o.totalAmount).toFormat("$0.00")), 1),
|
307
300
|
e[13] || (e[13] = t("br", null, null, -1)),
|
308
301
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
309
|
-
|
302
|
+
i(": " + u(g(k)((p = s.value) == null ? void 0 : p.totalFee).toFormat("$0.00")), 1),
|
310
303
|
e[15] || (e[15] = t("br", null, null, -1)),
|
311
304
|
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
312
|
-
|
305
|
+
i(": " + u(g(k)((f = s.value) == null ? void 0 : f.totalPayout).toFormat("$0.00")), 1)
|
313
306
|
];
|
314
307
|
}),
|
315
308
|
_: 1
|
@@ -322,19 +315,19 @@ const ne = /* @__PURE__ */ w({
|
|
322
315
|
})
|
323
316
|
]),
|
324
317
|
t("div", ie, [
|
325
|
-
|
326
|
-
modelValue:
|
327
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
318
|
+
n(U, {
|
319
|
+
modelValue: F.value,
|
320
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => F.value = o),
|
328
321
|
placeholder: "Search Transactions ..."
|
329
322
|
}, null, 8, ["modelValue"])
|
330
323
|
]),
|
331
|
-
|
324
|
+
n(z, {
|
332
325
|
modelValue: K.value,
|
333
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
334
|
-
"search-value":
|
326
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => K.value = o),
|
327
|
+
"search-value": F.value,
|
335
328
|
"row-data": h.value,
|
336
329
|
"column-defs": R,
|
337
|
-
loading: g(
|
330
|
+
loading: g(d)
|
338
331
|
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
339
332
|
]),
|
340
333
|
_: 1
|
@@ -343,5 +336,5 @@ const ne = /* @__PURE__ */ w({
|
|
343
336
|
}
|
344
337
|
});
|
345
338
|
export {
|
346
|
-
|
339
|
+
Fe as default
|
347
340
|
};
|