@feedmepos/mf-payment 1.0.0-beta.9 → 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/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/{PayoutAccount-_d3TfUSc.js → PayoutAccount-CyVXI1Sx.js} +5 -5
- package/dist/{PayoutAccount-DgN3EHTj.js → PayoutAccount-DGUnImHC.js} +4 -4
- package/dist/{PayoutAccountSetting-CmgVLhdp.js → PayoutAccountSetting-BbtOFbsd.js} +161 -183
- package/dist/Restaurant-ewsvVw3P.js +262 -0
- package/dist/RestaurantSetting-BboKM1iG.js +389 -0
- package/dist/{Settlement-B1-WmCwC.js → Settlement-DsJlFpCC.js} +4 -4
- package/dist/{Settlement-BSOQRlp1.js → Settlement-Hr7jN3EL.js} +4 -4
- package/dist/{SettlementTransactions-Cqd2raea.js → SettlementTransactions-BncoGGQ3.js} +10 -10
- package/dist/{SettlementTransactions-JTwD_Vuq.js → SettlementTransactions-Bz9ZVYfq.js} +41 -41
- package/dist/{Terminal-De69bTKY.js → Terminal-D-U0BVTe.js} +121 -108
- package/dist/{TerminalSetting-DlRHaEZh.js → TerminalSetting-JD3sbXOB.js} +3 -3
- package/dist/{TerminalTransaction-CZCsCpEp.js → TerminalTransaction-B5iY_F-3.js} +18 -18
- package/dist/{TerminalTransaction-C1egvX6I.js → TerminalTransaction-DHmD5x8e.js} +12 -12
- package/dist/{Transaction-B3ZWKg6Q.js → Transaction-BedQtv8p.js} +64 -64
- package/dist/{Transaction-B_0nUmpf.js → Transaction-DA_TB9zD.js} +11 -11
- package/dist/api/restaurant/index.d.ts +6 -0
- package/dist/{app-B-XC_fSK.js → app-CpyZU23J.js} +164 -147
- package/dist/app.js +1 -1
- package/dist/{assets-BCAivOTo.js → assets-8c19wXSV.js} +22 -21
- package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
- package/dist/components/PagingTable/index.vue.d.ts +48 -0
- package/dist/{index-4meiCsRz.js → index-1fXAFo2E.js} +31211 -31211
- package/dist/index-BIXuzGa9.js +19 -0
- package/dist/{index-BFYq3eq8.js → index-Cb1zVhcH.js} +1 -1
- package/dist/{index-CbsnpMWl.js → index-DEpszFWF.js} +1 -1
- package/dist/{index-BwFHcZlm.js → index-DdJrUqkm.js} +1 -1
- package/dist/{index-CBa6eapm.js → index-DeU3Qyca.js} +1 -1
- package/dist/{index-CETCXB6X.js → index-DoAIw4wM.js} +1 -1
- package/dist/index-DsLFmVsY.js +28 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKOlikHb.js → index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js} +64 -61
- package/dist/package.json +2 -2
- package/dist/{payout-account-CKhGpN_d.js → payout-account-BbheLTUt.js} +2 -2
- package/dist/{transaction-COjHU7aN.js → transaction-W49zE8RL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- 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/package.json +2 -2
@@ -1,16 +1,16 @@
|
|
1
|
-
import { defineComponent as g, resolveComponent as _, openBlock as y, createBlock as
|
2
|
-
import { t as
|
3
|
-
import { e as
|
1
|
+
import { defineComponent as g, resolveComponent as _, openBlock as y, createBlock as D, normalizeClass as Y, withCtx as x, createElementVNode as v, toDisplayString as $, createElementBlock as A, unref as d, createVNode as f, Fragment as L, renderList as B, ref as E, h as T, onMounted as U, watch as I, isRef as M } from "vue";
|
2
|
+
import { t as b, a as G, b as k } from "./transaction-W49zE8RL.js";
|
3
|
+
import { e as N, u as J } from "./index-1fXAFo2E.js";
|
4
4
|
import { useSnackbar as Q, useDialog as j } from "@feedmepos/ui-library";
|
5
5
|
import "./dinero-CIVmXLL-.js";
|
6
6
|
import { h as R } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as z, a as H } from "./assets-
|
8
|
-
import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-
|
9
|
-
import { u as X } from "./index-
|
7
|
+
import { g as z, a as H } from "./assets-8c19wXSV.js";
|
8
|
+
import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
9
|
+
import { u as X } from "./index-DdJrUqkm.js";
|
10
10
|
import { _ as Z } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
11
11
|
import { _ as ee } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
12
|
import { w as q } from "./Modal-DB8M9o1T.js";
|
13
|
-
import { u as
|
13
|
+
import { u as S } from "./error-K1CakhA9.js";
|
14
14
|
import { _ as te } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
15
15
|
const ae = /* @__PURE__ */ g({
|
16
16
|
__name: "Status",
|
@@ -19,18 +19,18 @@ const ae = /* @__PURE__ */ g({
|
|
19
19
|
data: {}
|
20
20
|
},
|
21
21
|
setup(m) {
|
22
|
-
const
|
22
|
+
const a = m;
|
23
23
|
function o() {
|
24
|
-
return
|
24
|
+
return a.data === N.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === N.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === N.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
25
25
|
}
|
26
26
|
return (u, p) => {
|
27
27
|
const s = _("FmBadge");
|
28
|
-
return y(),
|
28
|
+
return y(), D(s, {
|
29
29
|
inline: "",
|
30
30
|
class: Y(o())
|
31
31
|
}, {
|
32
|
-
default:
|
33
|
-
|
32
|
+
default: x(() => [
|
33
|
+
v("div", null, $(u.data), 1)
|
34
34
|
]),
|
35
35
|
_: 1
|
36
36
|
}, 8, ["class"]);
|
@@ -43,9 +43,9 @@ const ae = /* @__PURE__ */ g({
|
|
43
43
|
data: {}
|
44
44
|
},
|
45
45
|
setup(m) {
|
46
|
-
return (
|
47
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
48
|
-
src: d(z)(
|
46
|
+
return (a, o) => (y(), A("img", {
|
47
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
48
|
+
src: d(z)(a.row.original.gateway)
|
49
49
|
}, null, 8, ne));
|
50
50
|
}
|
51
51
|
}), re = ["src"], se = /* @__PURE__ */ g({
|
@@ -55,9 +55,9 @@ const ae = /* @__PURE__ */ g({
|
|
55
55
|
data: {}
|
56
56
|
},
|
57
57
|
setup(m) {
|
58
|
-
return (
|
58
|
+
return (a, o) => (y(), A("img", {
|
59
59
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
60
|
-
src: d(H)(
|
60
|
+
src: d(H)(a.row.original.method.issuer)
|
61
61
|
}, null, 8, re));
|
62
62
|
}
|
63
63
|
}), ie = /* @__PURE__ */ g({
|
@@ -66,7 +66,7 @@ const ae = /* @__PURE__ */ g({
|
|
66
66
|
onAction: { type: Function }
|
67
67
|
},
|
68
68
|
setup(m) {
|
69
|
-
const
|
69
|
+
const a = [
|
70
70
|
{
|
71
71
|
label: "Query",
|
72
72
|
sublabel: "Perform transaction status inquriy",
|
@@ -88,17 +88,17 @@ const ae = /* @__PURE__ */ g({
|
|
88
88
|
];
|
89
89
|
return (o, u) => {
|
90
90
|
const p = _("FmIcon"), s = _("FmMenuItem"), r = _("FmMenu");
|
91
|
-
return y(),
|
91
|
+
return y(), A("div", {
|
92
92
|
onClick: u[0] || (u[0] = (e) => {
|
93
93
|
e.stopPropagation();
|
94
94
|
})
|
95
95
|
}, [
|
96
96
|
f(r, null, {
|
97
|
-
"menu-button":
|
97
|
+
"menu-button": x(() => [
|
98
98
|
f(p, { name: "settings" })
|
99
99
|
]),
|
100
|
-
default:
|
101
|
-
(y(),
|
100
|
+
default: x(() => [
|
101
|
+
(y(), A(L, null, B(a, (e) => f(s, {
|
102
102
|
selectable: !0,
|
103
103
|
key: e.label,
|
104
104
|
sublabel: e.sublabel,
|
@@ -125,8 +125,8 @@ const ae = /* @__PURE__ */ g({
|
|
125
125
|
}
|
126
126
|
},
|
127
127
|
emits: ["query", "refund", "notify"],
|
128
|
-
setup(m, { emit:
|
129
|
-
const o = m, u =
|
128
|
+
setup(m, { emit: a }) {
|
129
|
+
const o = m, u = a, p = E(""), s = [
|
130
130
|
{
|
131
131
|
header: () => "Transaction ID",
|
132
132
|
accessorKey: "id",
|
@@ -199,9 +199,9 @@ const ae = /* @__PURE__ */ g({
|
|
199
199
|
];
|
200
200
|
return (r, e) => {
|
201
201
|
const l = _("FmTable");
|
202
|
-
return y(),
|
202
|
+
return y(), D(l, {
|
203
203
|
modelValue: p.value,
|
204
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
204
|
+
"onUpdate:modelValue": e[0] || (e[0] = (w) => p.value = w),
|
205
205
|
"column-defs": s,
|
206
206
|
"row-data": o.data,
|
207
207
|
loading: o.loading
|
@@ -211,20 +211,20 @@ const ae = /* @__PURE__ */ g({
|
|
211
211
|
}), le = { class: "flex justify-between mb-6 items-center" }, ue = { class: "flex space-x-4" }, de = { class: "flex space-x-4 self-center" }, me = { class: "mb-6" }, Ne = /* @__PURE__ */ g({
|
212
212
|
__name: "Transaction",
|
213
213
|
setup(m) {
|
214
|
-
const { dateRange:
|
214
|
+
const { dateRange: a, searchKey: o } = X({
|
215
215
|
searchKey: "",
|
216
216
|
dateRange: {
|
217
217
|
startDate: R().startOf("day").format("YYYY-MM-DD"),
|
218
218
|
endDate: R().endOf("day").format("YYYY-MM-DD")
|
219
219
|
}
|
220
|
-
}), { isLoading: u, startAsyncCall: p } = J(!0), s = Q(), r = j(), e =
|
221
|
-
async function
|
220
|
+
}), { isLoading: u, startAsyncCall: p } = J(!0), s = Q(), r = j(), e = E([]), l = E([]);
|
221
|
+
async function w() {
|
222
222
|
await p(async () => {
|
223
|
-
const { startDate: i, endDate: t } =
|
223
|
+
const { startDate: i, endDate: t } = a.value, n = await b.readTransactions({
|
224
224
|
start: i,
|
225
225
|
end: t
|
226
226
|
});
|
227
|
-
if (e.value = G(
|
227
|
+
if (e.value = G(n), l.value = e.value, o.value > "") {
|
228
228
|
var c = new RegExp(o.value, "i");
|
229
229
|
l.value = e.value.filter((h) => {
|
230
230
|
const C = JSON.stringify(h);
|
@@ -234,24 +234,24 @@ const ae = /* @__PURE__ */ g({
|
|
234
234
|
});
|
235
235
|
}
|
236
236
|
function K() {
|
237
|
-
|
237
|
+
w();
|
238
238
|
}
|
239
|
-
U(K);
|
239
|
+
U(K), I(a, w);
|
240
240
|
let F;
|
241
|
-
|
241
|
+
I(o, async () => {
|
242
242
|
F && clearTimeout(F), F = setTimeout(() => {
|
243
243
|
var i = new RegExp(o.value, "i");
|
244
244
|
l.value = e.value.filter((t) => {
|
245
|
-
const
|
246
|
-
return i.test(
|
245
|
+
const n = JSON.stringify(t);
|
246
|
+
return i.test(n);
|
247
247
|
});
|
248
248
|
}, 700);
|
249
|
-
}),
|
249
|
+
}), I(e, async () => {
|
250
250
|
let i = e.value;
|
251
251
|
if (o.value) {
|
252
252
|
var t = new RegExp(o.value, "i");
|
253
|
-
i = e.value.filter((
|
254
|
-
const c = JSON.stringify(
|
253
|
+
i = e.value.filter((n) => {
|
254
|
+
const c = JSON.stringify(n);
|
255
255
|
return t.test(c);
|
256
256
|
});
|
257
257
|
}
|
@@ -268,16 +268,16 @@ const ae = /* @__PURE__ */ g({
|
|
268
268
|
return;
|
269
269
|
}
|
270
270
|
try {
|
271
|
-
const
|
272
|
-
e.value[c] = k(
|
271
|
+
const n = await b.refetchTransaction({ transactionId: t.id }), c = e.value.findIndex((h) => h.id === n._id);
|
272
|
+
e.value[c] = k(n), s.open({
|
273
273
|
type: "success",
|
274
274
|
title: "Transaction queried and updated successfully."
|
275
275
|
});
|
276
|
-
} catch (
|
276
|
+
} catch (n) {
|
277
277
|
s.open({
|
278
278
|
type: "error",
|
279
279
|
title: "Fail to query transaction.",
|
280
|
-
message:
|
280
|
+
message: S(n)
|
281
281
|
});
|
282
282
|
}
|
283
283
|
}
|
@@ -297,20 +297,20 @@ const ae = /* @__PURE__ */ g({
|
|
297
297
|
"Are you sure to refund transaction? This action cannot be revert!",
|
298
298
|
async () => {
|
299
299
|
try {
|
300
|
-
const
|
300
|
+
const n = await b.refundTransaction({
|
301
301
|
transactionId: t.id,
|
302
302
|
reason: "portal transaction refund",
|
303
303
|
amount: t.fdoAmount
|
304
|
-
}), c = e.value.findIndex((h) => h.id ===
|
305
|
-
e.value[c] = k(
|
304
|
+
}), c = e.value.findIndex((h) => h.id === n._id);
|
305
|
+
e.value[c] = k(n), s.open({
|
306
306
|
type: "success",
|
307
307
|
title: "Transaction refund request initiated."
|
308
308
|
});
|
309
|
-
} catch (
|
309
|
+
} catch (n) {
|
310
310
|
s.open({
|
311
311
|
type: "error",
|
312
312
|
title: "Fail to request refund transaction.",
|
313
|
-
message:
|
313
|
+
message: S(n)
|
314
314
|
});
|
315
315
|
}
|
316
316
|
}
|
@@ -332,30 +332,30 @@ const ae = /* @__PURE__ */ g({
|
|
332
332
|
"Are you sure to perform notify transaction?",
|
333
333
|
async () => {
|
334
334
|
try {
|
335
|
-
await
|
335
|
+
await b.renotifyTransaction(t.id), s.open({
|
336
336
|
type: "success",
|
337
337
|
title: "Transaction notify successfully."
|
338
338
|
});
|
339
|
-
} catch (
|
339
|
+
} catch (n) {
|
340
340
|
s.open({
|
341
341
|
type: "error",
|
342
342
|
title: "Fail to notify transaction.",
|
343
|
-
message:
|
343
|
+
message: S(n)
|
344
344
|
});
|
345
345
|
}
|
346
346
|
}
|
347
347
|
);
|
348
348
|
}
|
349
349
|
return (i, t) => {
|
350
|
-
const
|
351
|
-
return y(),
|
350
|
+
const n = _("FmSearch");
|
351
|
+
return y(), D(Z, {
|
352
352
|
title: "Online Transactions",
|
353
353
|
loading: d(u)
|
354
354
|
}, {
|
355
|
-
default:
|
356
|
-
|
357
|
-
|
358
|
-
f(
|
355
|
+
default: x(() => [
|
356
|
+
v("div", le, [
|
357
|
+
v("div", ue, [
|
358
|
+
f(n, {
|
359
359
|
"model-value": d(o),
|
360
360
|
"onUpdate:modelValue": t[0] || (t[0] = (c) => M(o) ? o.value = c : null),
|
361
361
|
class: "mr-8",
|
@@ -363,7 +363,7 @@ const ae = /* @__PURE__ */ g({
|
|
363
363
|
placeholder: "Search Transactions ..."
|
364
364
|
}, null, 8, ["model-value"])
|
365
365
|
]),
|
366
|
-
|
366
|
+
v("div", de, [
|
367
367
|
f(ee, {
|
368
368
|
button: {
|
369
369
|
appendIcon: "file_download",
|
@@ -371,18 +371,18 @@ const ae = /* @__PURE__ */ g({
|
|
371
371
|
label: "Export"
|
372
372
|
},
|
373
373
|
handler: async () => {
|
374
|
-
await d(
|
375
|
-
start: d(
|
376
|
-
end: d(
|
374
|
+
await d(b).downloadTransactionReport({
|
375
|
+
start: d(a).startDate,
|
376
|
+
end: d(a).endDate
|
377
377
|
});
|
378
378
|
}
|
379
379
|
}, null, 8, ["handler"])
|
380
380
|
])
|
381
381
|
]),
|
382
|
-
|
382
|
+
v("div", me, [
|
383
383
|
f(te, {
|
384
|
-
modelValue: d(
|
385
|
-
"onUpdate:modelValue": t[1] || (t[1] = (c) => M(
|
384
|
+
modelValue: d(a),
|
385
|
+
"onUpdate:modelValue": t[1] || (t[1] = (c) => M(a) ? a.value = c : null)
|
386
386
|
}, null, 8, ["modelValue"])
|
387
387
|
]),
|
388
388
|
f(ce, {
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { defineComponent as f, resolveComponent as N, openBlock as g, createBlock as S, normalizeClass as O, withCtx as D, createElementVNode as _, toDisplayString as V, createElementBlock as I, unref as o, ref as A, h as v, onMounted as C, watch as w, createVNode as p, isRef as E } from "vue";
|
2
|
-
import { t as b,
|
3
|
-
import { e as x, u as Y } from "./index-
|
2
|
+
import { t as b, a as M } from "./transaction-W49zE8RL.js";
|
3
|
+
import { e as x, u as Y } from "./index-1fXAFo2E.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
5
|
import "./dinero-CIVmXLL-.js";
|
6
6
|
import { h as F } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as $, a as k } from "./assets-
|
7
|
+
import { g as $, a as k } from "./assets-8c19wXSV.js";
|
8
8
|
import { useCoreStore as L } from "@feedmepos/mf-common";
|
9
9
|
import { _ as P } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
10
|
-
import { u as B } from "./index-
|
10
|
+
import { u as B } from "./index-DdJrUqkm.js";
|
11
11
|
import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
12
|
import { _ as G } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
13
|
-
import { _ as
|
14
|
-
const
|
13
|
+
import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
14
|
+
const q = /* @__PURE__ */ f({
|
15
15
|
__name: "Status",
|
16
16
|
props: {
|
17
17
|
row: {},
|
@@ -35,7 +35,7 @@ const J = /* @__PURE__ */ f({
|
|
35
35
|
}, 8, ["class"]);
|
36
36
|
};
|
37
37
|
}
|
38
|
-
}),
|
38
|
+
}), J = ["src"], z = /* @__PURE__ */ f({
|
39
39
|
__name: "Gateway",
|
40
40
|
props: {
|
41
41
|
row: {},
|
@@ -43,9 +43,9 @@ const J = /* @__PURE__ */ f({
|
|
43
43
|
},
|
44
44
|
setup(s) {
|
45
45
|
return (a, t) => (g(), I("img", {
|
46
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
46
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
47
47
|
src: o($)(a.row.original.gateway)
|
48
|
-
}, null, 8,
|
48
|
+
}, null, 8, J));
|
49
49
|
}
|
50
50
|
}), Q = ["src"], H = /* @__PURE__ */ f({
|
51
51
|
__name: "Method",
|
@@ -114,7 +114,7 @@ const J = /* @__PURE__ */ f({
|
|
114
114
|
{
|
115
115
|
header: () => "Status",
|
116
116
|
accessorKey: "status",
|
117
|
-
cell: ({ cell: n, row: e }) => v(
|
117
|
+
cell: ({ cell: n, row: e }) => v(q, { row: e, data: n.getValue() })
|
118
118
|
},
|
119
119
|
{
|
120
120
|
header: () => "Transaction At",
|
@@ -218,7 +218,7 @@ const J = /* @__PURE__ */ f({
|
|
218
218
|
])
|
219
219
|
]),
|
220
220
|
_("div", ae, [
|
221
|
-
p(
|
221
|
+
p(j, {
|
222
222
|
modelValue: o(a),
|
223
223
|
"onUpdate:modelValue": r[1] || (r[1] = (m) => E(a) ? a.value = m : null)
|
224
224
|
}, null, 8, ["modelValue"])
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import { FdoRestaurant } from "@feedmepos/core/entity";
|
2
|
+
import type { PaginatedResponse, PaginationRequest } from "../pagination";
|
3
|
+
export declare const restaurantApi: {
|
4
|
+
readRestaurantById(id: string): Promise<FdoRestaurant>;
|
5
|
+
readRestaurantWithPagination(pagination: PaginationRequest): Promise<PaginatedResponse<FdoRestaurant>>;
|
6
|
+
};
|