@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,16 +1,16 @@
|
|
1
|
-
import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as
|
2
|
-
import { g as P, a as U, t as g, b as B, c as N } from "./assets-
|
3
|
-
import { h as
|
4
|
-
import { u as G } from "./index-
|
1
|
+
import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as R, withCtx as w, createElementVNode as _, toDisplayString as V, createElementBlock as S, unref as d, createVNode as f, Fragment as Y, renderList as C, ref as O, watch as v, isRef as I, h as y } from "vue";
|
2
|
+
import { g as P, a as U, t as g, b as B, c as N } from "./assets-BZmrImt4.js";
|
3
|
+
import { h as T } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as G } from "./index-C1Hgyi3j.js";
|
5
5
|
import { _ as L } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
6
6
|
import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
7
7
|
import { useSnackbar as Q, useDialog as z } from "@feedmepos/ui-library";
|
8
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
9
9
|
import { u as x } from "./error-K1CakhA9.js";
|
10
10
|
import { _ as H } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
11
|
-
import { g as J } from "./grafana-
|
12
|
-
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-
|
13
|
-
import { e as D } from "./index-
|
11
|
+
import { g as J } from "./grafana-DRnPxAqM.js";
|
12
|
+
import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-FgXpWvbs.js";
|
13
|
+
import { e as D } from "./index-DZMn5Qjp.js";
|
14
14
|
import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
15
15
|
const Z = /* @__PURE__ */ b({
|
16
16
|
__name: "Status",
|
@@ -23,14 +23,14 @@ const Z = /* @__PURE__ */ b({
|
|
23
23
|
function o() {
|
24
24
|
return a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
25
25
|
}
|
26
|
-
return (
|
26
|
+
return (i, s) => {
|
27
27
|
const p = h("FmBadge");
|
28
28
|
return m(), F(p, {
|
29
29
|
inline: "",
|
30
|
-
class:
|
30
|
+
class: R(o())
|
31
31
|
}, {
|
32
|
-
default:
|
33
|
-
_("div", null, V(
|
32
|
+
default: w(() => [
|
33
|
+
_("div", null, V(i.data), 1)
|
34
34
|
]),
|
35
35
|
_: 1
|
36
36
|
}, 8, ["class"]);
|
@@ -43,7 +43,7 @@ const Z = /* @__PURE__ */ b({
|
|
43
43
|
data: {}
|
44
44
|
},
|
45
45
|
setup(u) {
|
46
|
-
return (a, o) => (m(),
|
46
|
+
return (a, o) => (m(), S("img", {
|
47
47
|
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
48
48
|
src: d(P)(a.row.original.gateway)
|
49
49
|
}, null, 8, ee));
|
@@ -55,7 +55,7 @@ const Z = /* @__PURE__ */ b({
|
|
55
55
|
data: {}
|
56
56
|
},
|
57
57
|
setup(u) {
|
58
|
-
return (a, o) => (m(),
|
58
|
+
return (a, o) => (m(), S("img", {
|
59
59
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
60
60
|
src: d(U)(a.row.original.method.issuer, a.row.original.method.variant)
|
61
61
|
}, null, 8, ae));
|
@@ -93,25 +93,25 @@ const Z = /* @__PURE__ */ b({
|
|
93
93
|
action: "history"
|
94
94
|
}
|
95
95
|
];
|
96
|
-
return (o,
|
97
|
-
const s = h("FmIcon"), p = h("FmMenuItem"),
|
98
|
-
return m(),
|
99
|
-
onClick:
|
100
|
-
|
96
|
+
return (o, i) => {
|
97
|
+
const s = h("FmIcon"), p = h("FmMenuItem"), A = h("FmMenu");
|
98
|
+
return m(), S("div", {
|
99
|
+
onClick: i[0] || (i[0] = (c) => {
|
100
|
+
c.stopPropagation();
|
101
101
|
})
|
102
102
|
}, [
|
103
|
-
f(
|
104
|
-
"menu-button":
|
103
|
+
f(A, null, {
|
104
|
+
"menu-button": w(() => [
|
105
105
|
f(s, { name: "settings" })
|
106
106
|
]),
|
107
|
-
default:
|
108
|
-
(m(!0),
|
107
|
+
default: w(() => [
|
108
|
+
(m(!0), S(Y, null, C(a.filter((c) => !!c), (c) => (m(), F(p, {
|
109
109
|
selectable: !0,
|
110
|
-
key:
|
111
|
-
sublabel:
|
112
|
-
label:
|
113
|
-
icon:
|
114
|
-
onclick: () => o.onAction(
|
110
|
+
key: c.label,
|
111
|
+
sublabel: c.sublabel,
|
112
|
+
label: c.label,
|
113
|
+
icon: c.icon,
|
114
|
+
onclick: () => o.onAction(c.action)
|
115
115
|
}, null, 8, ["sublabel", "label", "icon", "onclick"]))), 128))
|
116
116
|
]),
|
117
117
|
_: 1
|
@@ -119,24 +119,24 @@ const Z = /* @__PURE__ */ b({
|
|
119
119
|
]);
|
120
120
|
};
|
121
121
|
}
|
122
|
-
}), oe = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" },
|
122
|
+
}), oe = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" }, ce = { class: "flex space-x-4 self-center" }, ie = { class: "mb-6" }, Ae = /* @__PURE__ */ b({
|
123
123
|
__name: "Transaction",
|
124
124
|
setup(u) {
|
125
|
-
const a = O(), { dateRange: o, searchKey:
|
125
|
+
const a = O(), { dateRange: o, searchKey: i } = G({
|
126
126
|
searchKey: "",
|
127
127
|
dateRange: {
|
128
|
-
startDate:
|
129
|
-
endDate:
|
128
|
+
startDate: T().startOf("day").format("YYYY-MM-DD"),
|
129
|
+
endDate: T().endOf("day").format("YYYY-MM-DD")
|
130
130
|
}
|
131
|
-
}), s = Q(), p = z(),
|
131
|
+
}), s = Q(), p = z(), A = async (t, e) => {
|
132
132
|
let r = parseInt(e);
|
133
133
|
Number.isNaN(r) && (r = 1);
|
134
134
|
const n = await g.readTransactions({
|
135
|
-
start:
|
136
|
-
end:
|
135
|
+
start: T(o.value.startDate).startOf("day").toISOString(),
|
136
|
+
end: T(o.value.endDate).endOf("day").toISOString(),
|
137
137
|
limit: t,
|
138
138
|
skip: (r - 1) * t,
|
139
|
-
search:
|
139
|
+
search: i.value
|
140
140
|
}), l = n.length == t;
|
141
141
|
return {
|
142
142
|
data: B(n),
|
@@ -149,9 +149,9 @@ const Z = /* @__PURE__ */ b({
|
|
149
149
|
var t;
|
150
150
|
(t = a.value) == null || t.reset();
|
151
151
|
});
|
152
|
-
let
|
153
|
-
v(
|
154
|
-
|
152
|
+
let c;
|
153
|
+
v(i, async () => {
|
154
|
+
c && clearTimeout(c), c = setTimeout(() => {
|
155
155
|
var t;
|
156
156
|
(t = a.value) == null || t.reset();
|
157
157
|
}, 700);
|
@@ -269,7 +269,7 @@ const Z = /* @__PURE__ */ b({
|
|
269
269
|
], e.transactionAt);
|
270
270
|
window.open(r, "_blank");
|
271
271
|
}
|
272
|
-
const
|
272
|
+
const $ = [
|
273
273
|
{
|
274
274
|
header: () => "Transaction ID",
|
275
275
|
accessorKey: "id",
|
@@ -321,6 +321,11 @@ const Z = /* @__PURE__ */ b({
|
|
321
321
|
accessorKey: "source",
|
322
322
|
cell: ({ cell: t, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
|
323
323
|
},
|
324
|
+
{
|
325
|
+
header: () => "Source",
|
326
|
+
accessorKey: "source",
|
327
|
+
cell: ({ cell: t, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
|
328
|
+
},
|
324
329
|
{
|
325
330
|
header: () => "Transaction At",
|
326
331
|
accessorKey: "transactionAt",
|
@@ -370,18 +375,18 @@ const Z = /* @__PURE__ */ b({
|
|
370
375
|
title: "Transactions",
|
371
376
|
loading: !1
|
372
377
|
}, {
|
373
|
-
default:
|
378
|
+
default: w(() => [
|
374
379
|
_("div", oe, [
|
375
380
|
_("div", se, [
|
376
381
|
f(r, {
|
377
|
-
"model-value": d(
|
378
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => I(
|
382
|
+
"model-value": d(i),
|
383
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => I(i) ? i.value = n : null),
|
379
384
|
class: "mr-8",
|
380
385
|
label: "Search",
|
381
386
|
placeholder: "Search Transactions ..."
|
382
387
|
}, null, 8, ["model-value"])
|
383
388
|
]),
|
384
|
-
_("div",
|
389
|
+
_("div", ce, [
|
385
390
|
f(j, {
|
386
391
|
button: {
|
387
392
|
appendIcon: "file_download",
|
@@ -397,7 +402,7 @@ const Z = /* @__PURE__ */ b({
|
|
397
402
|
}, null, 8, ["handler"])
|
398
403
|
])
|
399
404
|
]),
|
400
|
-
_("div",
|
405
|
+
_("div", ie, [
|
401
406
|
f(H, {
|
402
407
|
modelValue: d(o),
|
403
408
|
"onUpdate:modelValue": e[1] || (e[1] = (n) => I(o) ? o.value = n : null)
|
@@ -406,9 +411,9 @@ const Z = /* @__PURE__ */ b({
|
|
406
411
|
f(W, {
|
407
412
|
ref_key: "controller",
|
408
413
|
ref: a,
|
409
|
-
"column-defs":
|
414
|
+
"column-defs": $,
|
410
415
|
"rows-defs": (n) => n,
|
411
|
-
paginate:
|
416
|
+
paginate: A
|
412
417
|
}, null, 8, ["rows-defs"])
|
413
418
|
]),
|
414
419
|
_: 1
|
@@ -417,5 +422,5 @@ const Z = /* @__PURE__ */ b({
|
|
417
422
|
}
|
418
423
|
});
|
419
424
|
export {
|
420
|
-
|
425
|
+
Ae as default
|
421
426
|
};
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as T, ref as h, onMounted as Y, watch as f, resolveComponent as V, openBlock as C, createBlock as M, unref as t, withCtx as O, createElementVNode as u, createVNode as i, isRef as y } from "vue";
|
2
|
-
import { t as g, b as S } from "./assets-
|
3
|
-
import { u as $ } from "./index-
|
4
|
-
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-
|
2
|
+
import { t as g, b as S } from "./assets-BZmrImt4.js";
|
3
|
+
import { u as $ } from "./index-DZMn5Qjp.js";
|
4
|
+
import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-UjV7RID1.js";
|
5
5
|
import { h as x } from "./moment-h96o7c8I.js";
|
6
6
|
import { useCoreStore as k, useI18n as E } from "@feedmepos/mf-common";
|
7
7
|
import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as P } from "./index-
|
8
|
+
import { u as P } from "./index-C1Hgyi3j.js";
|
9
9
|
import { _ as A } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
10
|
import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js";
|
11
11
|
import { _ as F } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
@@ -73,7 +73,7 @@ const I = { class: "flex justify-between mb-6 items-center" }, J = { class: "fle
|
|
73
73
|
label: t(o)("transactions.button.export")
|
74
74
|
},
|
75
75
|
handler: async () => {
|
76
|
-
await t(g).downloadPortalTransactionReport(t(n), s.value);
|
76
|
+
await t(g).downloadPortalTransactionReport(t(n), s.value, !0);
|
77
77
|
}
|
78
78
|
}, null, 8, ["button", "handler"])
|
79
79
|
])
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as m, resolveComponent as d, openBlock as l, createBlock as f, normalizeClass as v, withCtx as y, createElementVNode as x, toDisplayString as P, createElementBlock as w, unref as E, createVNode as
|
1
|
+
import { defineComponent as m, resolveComponent as d, openBlock as l, createBlock as f, normalizeClass as v, withCtx as y, createElementVNode as x, toDisplayString as P, createElementBlock as w, unref as E, createVNode as q, Fragment as R, renderList as V, ref as D, h as p } from "vue";
|
2
2
|
import { useSnackbar as U, useDialog as B } from "@feedmepos/ui-library";
|
3
|
-
import { g as $, a as L, t as b, c as N } from "./assets-
|
4
|
-
import { e as h } from "./index-
|
5
|
-
import { g as G } from "./grafana-
|
3
|
+
import { g as $, a as L, t as b, c as N } from "./assets-BZmrImt4.js";
|
4
|
+
import { e as h } from "./index-DZMn5Qjp.js";
|
5
|
+
import { g as G } from "./grafana-DRnPxAqM.js";
|
6
6
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
7
7
|
import { u as T } from "./error-K1CakhA9.js";
|
8
8
|
import { useCoreStore as O, useI18n as Y } from "@feedmepos/mf-common";
|
@@ -107,9 +107,9 @@ const j = /* @__PURE__ */ m({
|
|
107
107
|
a.stopPropagation();
|
108
108
|
})
|
109
109
|
}, [
|
110
|
-
|
110
|
+
q(g, null, {
|
111
111
|
"menu-button": y(() => [
|
112
|
-
|
112
|
+
q(s, { name: "settings" })
|
113
113
|
]),
|
114
114
|
default: y(() => [
|
115
115
|
(l(!0), w(R, null, V(n.filter((a) => !!a), (a) => (l(), f(u, {
|
@@ -140,7 +140,7 @@ const j = /* @__PURE__ */ m({
|
|
140
140
|
},
|
141
141
|
emits: ["row-click"],
|
142
142
|
setup(o, { emit: n }) {
|
143
|
-
var
|
143
|
+
var I;
|
144
144
|
const r = o, i = n, s = U(), u = B(), { sessionUser: g } = O(), { t: a } = Y();
|
145
145
|
async function K(t) {
|
146
146
|
try {
|
@@ -259,6 +259,10 @@ const j = /* @__PURE__ */ m({
|
|
259
259
|
accessorKey: "status",
|
260
260
|
cell: ({ cell: t, row: e }) => p(j, { row: e, data: t.getValue() })
|
261
261
|
},
|
262
|
+
{
|
263
|
+
header: () => a("transactions.table.restaurant"),
|
264
|
+
accessorKey: "restaurantId"
|
265
|
+
},
|
262
266
|
{
|
263
267
|
header: () => a("transactions.table.source"),
|
264
268
|
accessorKey: "source",
|
@@ -277,7 +281,7 @@ const j = /* @__PURE__ */ m({
|
|
277
281
|
accessorKey: "amount"
|
278
282
|
}
|
279
283
|
];
|
280
|
-
return (
|
284
|
+
return (I = g.value) != null && I.isInternal && F.push({
|
281
285
|
header: () => a("transactions.table.actions"),
|
282
286
|
accessorKey: "actions",
|
283
287
|
cell: ({ row: t }) => p(W, {
|
@@ -8,7 +8,7 @@ export declare const settlementApi: {
|
|
8
8
|
start: string;
|
9
9
|
end: string;
|
10
10
|
}): Promise<SettlementDtoOutput[]>;
|
11
|
-
downloadBankInstructionFile(
|
11
|
+
downloadBankInstructionFile(data: SettlementDtoOutput[]): Promise<void>;
|
12
12
|
downloadSummaryReport(data: SettlementDtoOutput[], date: {
|
13
13
|
start: string;
|
14
14
|
end: string;
|
@@ -17,4 +17,8 @@ export declare const temrinalApi: {
|
|
17
17
|
delete(id: string): Promise<any>;
|
18
18
|
getBusinessTerminals(): Promise<FdoPortalTerminal[]>;
|
19
19
|
getRestaurantTerminals(restaurantId: string): Promise<FdoPortalTerminal[]>;
|
20
|
+
kioskModeRequest(id: string, payload: {
|
21
|
+
enable: boolean;
|
22
|
+
password?: string;
|
23
|
+
}): Promise<string>;
|
20
24
|
};
|
@@ -31,7 +31,7 @@ export declare const transactionApi: {
|
|
31
31
|
downloadPortalTransactionReport(dateRange: {
|
32
32
|
startDate: string;
|
33
33
|
endDate: string;
|
34
|
-
}, data: PortalPaymentTransaction[]): Promise<void>;
|
34
|
+
}, data: PortalPaymentTransaction[], isOld?: boolean): Promise<void>;
|
35
35
|
downloadTransactionReport(date: {
|
36
36
|
start: string;
|
37
37
|
end: string;
|