@feedmepos/mf-payment 1.2.11 → 1.2.13
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-XC4V0tsX.js +40 -0
- package/dist/{PayoutAccount-BPD8f21N.js → PayoutAccount-BallFJB0.js} +5 -5
- package/dist/{PayoutAccount-DLhT0cgm.js → PayoutAccount-d7sLsB5J.js} +6 -6
- package/dist/{PayoutAccountSetting-Cc2XkDvW.js → PayoutAccountSetting-wKE68NqB.js} +3 -3
- package/dist/{Restaurant-QmZ5m6aX.js → Restaurant-CA3nbrzh.js} +5 -5
- package/dist/{RestaurantSetting-D0GFUJAg.js → RestaurantSetting-CJdlyxX7.js} +3 -3
- package/dist/{Settlement-MJFzi4Zt.js → Settlement-BEXf60UK.js} +4 -4
- package/dist/{Settlement-BIk63DvT.js → Settlement-Cnbk9m6D.js} +4 -4
- package/dist/SettlementTransactions-D-lWN15V.js +362 -0
- package/dist/SettlementTransactions-Pto6c_3v.js +323 -0
- package/dist/{Terminal-DYkp1mv0.js → Terminal-B3S_wOTA.js} +5 -5
- package/dist/{TerminalSetting-DmPRtCsa.js → TerminalSetting-tSDETEOb.js} +3 -3
- package/dist/{Transaction-CimYTaB8.js → Transaction-BY4EF2Z2.js} +125 -94
- package/dist/{Transaction-Bh_Psoae.js → Transaction-DsYgbjyl.js} +7 -7
- package/dist/{TransactionOld-CiWIwxJ7.js → TransactionOld-BY_4OAOA.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-2FzzyKdR.js → TransactionTable.vue_vue_type_script_setup_true_lang-C02jC4yj.js} +115 -93
- package/dist/{app-ByopJolk.js → app-BiKLWpiD.js} +347 -347
- package/dist/app.js +1 -1
- package/dist/{assets-DfdrUzgm.js → assets-C4cUIo0F.js} +3 -2
- package/dist/components/AutoCopyCell.vue.d.ts +1 -0
- package/dist/{grafana-ey8F5lgL.js → grafana-DRHro6WQ.js} +1 -1
- package/dist/{index-GqLxFyy5.js → index-0_vl4Euu.js} +1 -1
- package/dist/{index-tX_6kqCz.js → index-4QkP1zBY.js} +1 -1
- package/dist/{index-9HYkBEVP.js → index-BTIQHrH_.js} +1 -1
- package/dist/{index-D1HPnn1H.js → index-BWaS2Ice.js} +982 -982
- package/dist/{index-CxUSH_LL.js → index-Bohmvrj5.js} +1 -1
- package/dist/{index-DLoPHbRf.js → index-DJlXGssK.js} +1 -1
- package/dist/{index-C9mXyA-9.js → index-DeoktQzV.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-xEGnd1Sr.js → index.vue_vue_type_script_setup_true_lang-wZFI0CDi.js} +1 -1
- package/dist/model/transaction.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-B7N8ePXF.js → payout-account-CtfOQFPT.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +1 -1
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +1 -1
- package/dist/views/settlement/cell/Gateway.vue.d.ts +1 -1
- package/dist/views/settlement/cell/Method.vue.d.ts +1 -1
- package/dist/views/transaction/cell/Gateway.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js +0 -39
- package/dist/SettlementTransactions-Diz_eig2.js +0 -336
- package/dist/SettlementTransactions-MBqrZMZx.js +0 -297
@@ -0,0 +1,323 @@
|
|
1
|
+
import { defineComponent as x, resolveComponent as f, openBlock as F, createBlock as T, normalizeClass as z, withCtx as r, createElementVNode as n, toDisplayString as l, unref as a, ref as b, onMounted as j, watch as M, createVNode as o, createTextVNode as u, h as C } from "vue";
|
2
|
+
import { e as E, u as G } from "./index-BWaS2Ice.js";
|
3
|
+
import "@feedmepos/ui-library";
|
4
|
+
import { d as k } from "./dinero-CIVmXLL-.js";
|
5
|
+
import { g as H, a as q, t as J, b as Q } from "./assets-C4cUIo0F.js";
|
6
|
+
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
7
|
+
import { useRouter as X } from "vue-router";
|
8
|
+
import { s as Z } from "./index-0_vl4Euu.js";
|
9
|
+
import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
|
10
|
+
import { h as ae } from "./moment-h96o7c8I.js";
|
11
|
+
const ne = /* @__PURE__ */ x({
|
12
|
+
__name: "Status",
|
13
|
+
props: {
|
14
|
+
row: {},
|
15
|
+
data: {}
|
16
|
+
},
|
17
|
+
setup(_) {
|
18
|
+
const e = _;
|
19
|
+
function y() {
|
20
|
+
return e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
|
+
}
|
22
|
+
return (d, $) => {
|
23
|
+
const N = f("FmBadge");
|
24
|
+
return F(), T(N, {
|
25
|
+
inline: "",
|
26
|
+
class: z(y())
|
27
|
+
}, {
|
28
|
+
default: r(() => [
|
29
|
+
n("div", null, l(d.data), 1)
|
30
|
+
]),
|
31
|
+
_: 1
|
32
|
+
}, 8, ["class"]);
|
33
|
+
};
|
34
|
+
}
|
35
|
+
}), le = ["src"], oe = /* @__PURE__ */ x({
|
36
|
+
__name: "Gateway",
|
37
|
+
props: {
|
38
|
+
row: {},
|
39
|
+
data: {}
|
40
|
+
},
|
41
|
+
setup(_) {
|
42
|
+
return (e, y) => {
|
43
|
+
const d = f("FmTooltip");
|
44
|
+
return F(), T(d, {
|
45
|
+
variant: "plain",
|
46
|
+
placement: "top",
|
47
|
+
content: e.row.original.gateway,
|
48
|
+
"hide-arrow": !0
|
49
|
+
}, {
|
50
|
+
default: r(() => [
|
51
|
+
n("img", {
|
52
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
53
|
+
src: a(H)(e.row.original.gateway)
|
54
|
+
}, null, 8, le)
|
55
|
+
]),
|
56
|
+
_: 1
|
57
|
+
}, 8, ["content"]);
|
58
|
+
};
|
59
|
+
}
|
60
|
+
}), se = ["src"], re = /* @__PURE__ */ x({
|
61
|
+
__name: "Method",
|
62
|
+
props: {
|
63
|
+
row: {},
|
64
|
+
data: {}
|
65
|
+
},
|
66
|
+
setup(_) {
|
67
|
+
return (e, y) => {
|
68
|
+
const d = f("FmTooltip");
|
69
|
+
return F(), T(d, {
|
70
|
+
variant: "plain",
|
71
|
+
placement: "top",
|
72
|
+
content: e.row.original.method.issuer,
|
73
|
+
"hide-arrow": !0
|
74
|
+
}, {
|
75
|
+
default: r(() => [
|
76
|
+
n("img", {
|
77
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
78
|
+
src: a(q)(e.row.original.method.issuer, e.row.original.method.variant)
|
79
|
+
}, null, 8, se)
|
80
|
+
]),
|
81
|
+
_: 1
|
82
|
+
}, 8, ["content"]);
|
83
|
+
};
|
84
|
+
}
|
85
|
+
}), ie = { class: "flex mb-6" }, me = { class: "my-6 w-[240px]" }, be = /* @__PURE__ */ x({
|
86
|
+
__name: "SettlementTransactions",
|
87
|
+
props: {
|
88
|
+
settlementId: {
|
89
|
+
type: String,
|
90
|
+
required: !0
|
91
|
+
}
|
92
|
+
},
|
93
|
+
setup(_) {
|
94
|
+
const { t: e } = ee(), y = _, { isLoading: d, startAsyncCall: $ } = G(!0), { currentRestaurant: N } = te(), O = X(), m = b(), w = b([]), A = b([]);
|
95
|
+
async function D(s = !1) {
|
96
|
+
$(async () => {
|
97
|
+
s || (m.value = await Z.readRestaurantSettlementById(y.settlementId));
|
98
|
+
const t = await J.readRestaurantTransactionsBySettlementId(y.settlementId);
|
99
|
+
w.value = Q(t), A.value = w.value;
|
100
|
+
});
|
101
|
+
}
|
102
|
+
function B() {
|
103
|
+
D();
|
104
|
+
}
|
105
|
+
j(B), M(N, B);
|
106
|
+
const K = b(""), Y = [
|
107
|
+
{
|
108
|
+
header: () => e("payment.settlements.dialog.feedme.id"),
|
109
|
+
accessorKey: "id"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
header: () => e("payment.settlements.dialog.feedme.pay_id"),
|
113
|
+
accessorKey: "payId"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
header: () => e("payment.settlements.dialog.feedme.gateway"),
|
117
|
+
accessorKey: "gateway",
|
118
|
+
meta: {
|
119
|
+
textAlign: "center"
|
120
|
+
},
|
121
|
+
cell: ({ cell: s, row: t }) => t.original.method ? C(oe, { row: t, data: s.getValue() }) : ""
|
122
|
+
},
|
123
|
+
{
|
124
|
+
header: () => e("payment.settlements.dialog.feedme.method"),
|
125
|
+
accessorKey: "method",
|
126
|
+
meta: {
|
127
|
+
textAlign: "center"
|
128
|
+
},
|
129
|
+
cell: ({ cell: s, row: t }) => t.original.method ? C(re, { row: t, data: s.getValue() }) : ""
|
130
|
+
},
|
131
|
+
{
|
132
|
+
header: () => e("payment.settlements.dialog.feedme.payFor"),
|
133
|
+
accessorKey: "payFor"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
header: () => e("payment.settlements.dialog.feedme.type"),
|
137
|
+
accessorKey: "type",
|
138
|
+
meta: {
|
139
|
+
textAlign: "center"
|
140
|
+
},
|
141
|
+
cell: ({ row: s }) => {
|
142
|
+
if (!s.original.method)
|
143
|
+
return "";
|
144
|
+
const t = s.original.method.variant;
|
145
|
+
return t.includes("_ONLINE") ? "ONLINE" : t.includes("_OFFLINE") ? "OFFLINE" : t;
|
146
|
+
}
|
147
|
+
},
|
148
|
+
{
|
149
|
+
header: () => e("payment.settlements.dialog.feedme.status"),
|
150
|
+
accessorKey: "status",
|
151
|
+
cell: ({ cell: s, row: t }) => C(ne, { row: t, data: s.getValue() })
|
152
|
+
},
|
153
|
+
{
|
154
|
+
header: () => e("payment.settlements.dialog.feedme.transaction_at"),
|
155
|
+
accessorKey: "transactionAt",
|
156
|
+
meta: {
|
157
|
+
width: "180px"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
{
|
161
|
+
header: () => e("payment.settlements.dialog.feedme.sales_amount"),
|
162
|
+
accessorKey: "amount"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
header: () => e("payment.settlements.dialog.feedme.fee"),
|
166
|
+
accessorKey: "fee"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
header: () => e("payment.settlements.dialog.feedme.settlement_amount"),
|
170
|
+
accessorKey: "payout"
|
171
|
+
}
|
172
|
+
], h = b("");
|
173
|
+
let S;
|
174
|
+
return M(h, async () => {
|
175
|
+
S && clearTimeout(S), S = setTimeout(() => {
|
176
|
+
var s = new RegExp(h.value, "i");
|
177
|
+
A.value = w.value.filter((t) => {
|
178
|
+
const v = JSON.stringify(t);
|
179
|
+
return s.test(v);
|
180
|
+
});
|
181
|
+
}, 700);
|
182
|
+
}), (s, t) => {
|
183
|
+
var V, R;
|
184
|
+
const v = f("FmCardHeader"), g = f("FmCardSection"), I = f("FmCard"), P = f("FmSearch"), U = f("FmTable");
|
185
|
+
return F(), T(W, {
|
186
|
+
title: `${a(e)("payment.settlements.dialog.title")} (${(V = m.value) == null ? void 0 : V._id})`,
|
187
|
+
description: `${a(e)("payment.settlements.dialog.date")}: ${a(ae)((R = m.value) == null ? void 0 : R.createdAt).format("YYYY-MM-DD")}`,
|
188
|
+
loading: a(d),
|
189
|
+
onBack: a(O).back
|
190
|
+
}, {
|
191
|
+
default: r(() => [
|
192
|
+
n("div", ie, [
|
193
|
+
o(I, {
|
194
|
+
horizontal: "",
|
195
|
+
class: "flex-1 p-6",
|
196
|
+
variant: "elevated"
|
197
|
+
}, {
|
198
|
+
default: r(() => [
|
199
|
+
o(g, { class: "flex flex-col gap-16 justify-between" }, {
|
200
|
+
default: r(() => [
|
201
|
+
o(v, {
|
202
|
+
class: "p-0",
|
203
|
+
title: a(e)("payment.settlements.dialog.info.transaction.title"),
|
204
|
+
subtitle: ""
|
205
|
+
}, null, 8, ["title"]),
|
206
|
+
o(g, { class: "p-0" }, {
|
207
|
+
default: r(() => {
|
208
|
+
var i, c, p, L;
|
209
|
+
return [
|
210
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.for")), 1),
|
211
|
+
u(": " + l((c = (i = m.value) == null ? void 0 : i.store) == null ? void 0 : c.event) + " ", 1),
|
212
|
+
t[2] || (t[2] = n("br", null, null, -1)),
|
213
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.reference")), 1),
|
214
|
+
u(": " + l((L = (p = m.value) == null ? void 0 : p.store) == null ? void 0 : L.id), 1),
|
215
|
+
t[3] || (t[3] = n("br", null, null, -1)),
|
216
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.count")), 1),
|
217
|
+
u(": " + l(w.value.length), 1)
|
218
|
+
];
|
219
|
+
}),
|
220
|
+
_: 1
|
221
|
+
})
|
222
|
+
]),
|
223
|
+
_: 1
|
224
|
+
})
|
225
|
+
]),
|
226
|
+
_: 1
|
227
|
+
}),
|
228
|
+
o(I, {
|
229
|
+
horizontal: "",
|
230
|
+
class: "flex-1 p-6 mx-6",
|
231
|
+
variant: "elevated"
|
232
|
+
}, {
|
233
|
+
default: r(() => [
|
234
|
+
o(g, { class: "flex flex-col gap-16 justify-between" }, {
|
235
|
+
default: r(() => [
|
236
|
+
o(v, {
|
237
|
+
class: "p-0",
|
238
|
+
title: a(e)("payment.settlements.dialog.info.bank.title"),
|
239
|
+
subtitle: ""
|
240
|
+
}, null, 8, ["title"]),
|
241
|
+
o(g, { class: "p-0" }, {
|
242
|
+
default: r(() => {
|
243
|
+
var i, c, p;
|
244
|
+
return [
|
245
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.bank.for")), 1),
|
246
|
+
u(": " + l((i = m.value) == null ? void 0 : i.beneficiaryBank.name), 1),
|
247
|
+
t[4] || (t[4] = n("br", null, null, -1)),
|
248
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.bank.name")), 1),
|
249
|
+
u(": " + l((c = m.value) == null ? void 0 : c.beneficiaryBank.holderName), 1),
|
250
|
+
t[5] || (t[5] = n("br", null, null, -1)),
|
251
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.bank.number")), 1),
|
252
|
+
u(": " + l((p = m.value) == null ? void 0 : p.beneficiaryBank.accountNumber), 1)
|
253
|
+
];
|
254
|
+
}),
|
255
|
+
_: 1
|
256
|
+
})
|
257
|
+
]),
|
258
|
+
_: 1
|
259
|
+
})
|
260
|
+
]),
|
261
|
+
_: 1
|
262
|
+
}),
|
263
|
+
o(I, {
|
264
|
+
horizontal: "",
|
265
|
+
class: "flex-1 p-6",
|
266
|
+
variant: "elevated"
|
267
|
+
}, {
|
268
|
+
default: r(() => [
|
269
|
+
o(g, { class: "flex flex-col gap-16 justify-between" }, {
|
270
|
+
default: r(() => [
|
271
|
+
o(v, {
|
272
|
+
class: "p-0",
|
273
|
+
title: a(e)("payment.settlements.dialog.info.payout.title"),
|
274
|
+
subtitle: ""
|
275
|
+
}, null, 8, ["title"]),
|
276
|
+
o(g, { class: "p-0" }, {
|
277
|
+
default: r(() => {
|
278
|
+
var i, c, p;
|
279
|
+
return [
|
280
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.payout.amount")), 1),
|
281
|
+
u(": " + l(a(k)((i = m.value) == null ? void 0 : i.totalAmount).toFormat("$0.00")), 1),
|
282
|
+
t[6] || (t[6] = n("br", null, null, -1)),
|
283
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.payout.fee")), 1),
|
284
|
+
u(": " + l(a(k)((c = m.value) == null ? void 0 : c.totalFee).toFormat("$0.00")), 1),
|
285
|
+
t[7] || (t[7] = n("br", null, null, -1)),
|
286
|
+
n("b", null, l(a(e)("payment.settlements.dialog.info.payout.payout")), 1),
|
287
|
+
u(": " + l(a(k)((p = m.value) == null ? void 0 : p.totalPayout).toFormat("$0.00")), 1)
|
288
|
+
];
|
289
|
+
}),
|
290
|
+
_: 1
|
291
|
+
})
|
292
|
+
]),
|
293
|
+
_: 1
|
294
|
+
})
|
295
|
+
]),
|
296
|
+
_: 1
|
297
|
+
})
|
298
|
+
]),
|
299
|
+
n("div", me, [
|
300
|
+
o(P, {
|
301
|
+
modelValue: h.value,
|
302
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => h.value = i),
|
303
|
+
placeholder: a(e)("payment.settlements.dialog.search")
|
304
|
+
}, null, 8, ["modelValue", "placeholder"])
|
305
|
+
]),
|
306
|
+
o(U, {
|
307
|
+
modelValue: K.value,
|
308
|
+
"onUpdate:modelValue": t[1] || (t[1] = (i) => K.value = i),
|
309
|
+
"shrink-at": !1,
|
310
|
+
"search-value": h.value,
|
311
|
+
"row-data": A.value,
|
312
|
+
"column-defs": Y,
|
313
|
+
loading: a(d)
|
314
|
+
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
315
|
+
]),
|
316
|
+
_: 1
|
317
|
+
}, 8, ["title", "description", "loading", "onBack"]);
|
318
|
+
};
|
319
|
+
}
|
320
|
+
});
|
321
|
+
export {
|
322
|
+
be as default
|
323
|
+
};
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as me, Fragment as ie, computed as se, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as le, createVNode as k, resolveComponent as _, normalizeClass as pe, withCtx as q, createBlock as D, createCommentVNode as V, 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-BWaS2Ice.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-DJlXGssK.js";
|
5
|
+
import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-wZFI0CDi.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-BTIQHrH_.js";
|
9
9
|
import { c as ue } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { useCoreStore as ce } from "@feedmepos/mf-common";
|
11
|
-
import { g as Se } from "./grafana-
|
11
|
+
import { g as Se } from "./grafana-DRHro6WQ.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";
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as S, openBlock as f, createElementBlock as V, Fragment as D, createElementVNode as F, createTextVNode as M, toDisplayString as R, toRef as K, ref as w, watch as P, onMounted as G, computed as q, resolveComponent as y, unref as k, createVNode as v, createBlock as T, withCtx as B, createCommentVNode as x, isRef as L, resolveDynamicComponent as h, normalizeProps as j, mergeProps as A } from "vue";
|
2
|
-
import { u as Y, e as _ } from "./index-
|
2
|
+
import { u as Y, e as _ } from "./index-BWaS2Ice.js";
|
3
3
|
import { useRouter as Q } from "vue-router";
|
4
|
-
import { t as N } from "./index-
|
4
|
+
import { t as N } from "./index-BTIQHrH_.js";
|
5
5
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as E } from "./index-
|
6
|
+
import { u as E } from "./index-DJlXGssK.js";
|
7
7
|
import { useSnackbar as z } from "@feedmepos/ui-library";
|
8
8
|
import { u as X } from "./error-K1CakhA9.js";
|
9
9
|
import { z as Z, a as ee } from "./validator-D5jtpt9A.js";
|