@feedmepos/mf-payment 1.0.28 → 1.1.0-beta.2
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/{PDFViewer-xrBtzrlR.js → PDFViewer-BQfgFexr.js} +2 -1
- package/dist/{PayoutAccount-QybE7meK.js → PayoutAccount-BpMu58oE.js} +5 -5
- package/dist/{PayoutAccount-C53rv89t.js → PayoutAccount-z-gdodfR.js} +361 -360
- package/dist/PayoutAccountSetting-jZJu4WWL.js +723 -0
- package/dist/{Restaurant-B1ed_oVp.js → Restaurant-DfBX5uPS.js} +56 -54
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js +33 -0
- package/dist/{RestaurantSetting-CKG5jn2J.js → RestaurantSetting-KPtRoif-.js} +3 -3
- package/dist/{Settlement-Fh86ozFD.js → Settlement-DbMQAA0_.js} +9 -8
- package/dist/Settlement-smC2PDKA.js +445 -0
- package/dist/{SettlementTransactions-BSF2Jw-L.js → SettlementTransactions-Bs8Il-GO.js} +14 -14
- package/dist/SettlementTransactions-Cw9DnODr.js +291 -0
- package/dist/{Terminal-BUBkiYYw.js → Terminal-HLOGtr0x.js} +323 -342
- package/dist/{TerminalSetting-CfCa-6pK.js → TerminalSetting-DraCszpQ.js} +27 -27
- package/dist/Transaction-B8cHQbbP.js +250 -0
- package/dist/{Transaction-DWzZ31qR.js → Transaction-_CB4VTT9.js} +123 -105
- package/dist/TransactionOld-BhzUSu5h.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-UcnQKwQ5.js +304 -0
- package/dist/api/payout/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +6 -10
- package/dist/api/transaction/index.d.ts +12 -11
- package/dist/{app-DC4HbItX.js → app-DWRPKvx2.js} +1115 -780
- package/dist/app.d.ts +278 -0
- package/dist/app.js +4 -3
- package/dist/{assets-BySnqkmr.js → assets-BImh8bhR.js} +208 -56
- package/dist/components/SourceSelector.vue.d.ts +12 -0
- package/dist/{grafana-b2ht7XmY.js → grafana-CPOGSE20.js} +2 -2
- package/dist/{index-d3nubgyT.js → index-8eCaI4jI.js} +1 -1
- package/dist/{index-iiG_kivD.js → index-CNZFZxie.js} +8163 -8081
- package/dist/{index-DXV5GQaF.js → index-D5DlMaeB.js} +1 -1
- package/dist/index-DtT3I2PI.js +45 -0
- package/dist/index-DuSw-EaU.js +66 -0
- package/dist/{index-CvJ2nft4.js → index-eznEOmAe.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Du3twb8U.js → index.vue_vue_type_script_setup_true_lang-DNXWZt8k.js} +8 -7
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +13 -5
- package/dist/package.json +9 -8
- package/dist/{payout-account-DPdwKVTr.js → payout-account-CjDkY3wf.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +133 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +8 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +10 -23
- package/dist/views/admin/{terminal-transaction/TerminalTransaction.vue.d.ts → payout-account/tabs/gateway/MacauPassGateway.vue.d.ts} +1 -1
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/Terminal.vue.d.ts +4 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +2 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
- package/dist/views/{admin/terminal-transaction → transaction}/cell/Actions.vue.d.ts +3 -3
- package/package.json +9 -8
- package/dist/PayoutAccountSetting-Zhkm_GN8.js +0 -426
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js +0 -33
- package/dist/Settlement-SeGVEdZj.js +0 -444
- package/dist/SettlementTransactions-CHRsIcoh.js +0 -291
- package/dist/TerminalTransaction-DIM7WO_C.js +0 -589
- package/dist/TerminalTransaction-DQZnx7dy.js +0 -333
- package/dist/Transaction-DRYwBnHK.js +0 -247
- package/dist/TransactionOld-Pj412ujb.js +0 -99
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-B3FGhKjA.js +0 -159
- package/dist/components/PayoutAccountSelector.vue.d.ts +0 -23
- package/dist/index-BJpE0YhF.js +0 -52
- package/dist/index-BqzuW2qa.js +0 -40
- package/dist/index-Dwv1hbHU.js +0 -77
- package/dist/transaction-CzLoSCVe.js +0 -136
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +0 -50
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +0 -52
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +0 -2
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Method.vue.d.ts +0 -7
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +0 -7
@@ -0,0 +1,291 @@
|
|
1
|
+
import { defineComponent as w, resolveComponent as g, openBlock as T, createBlock as L, normalizeClass as z, withCtx as i, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as R, createVNode as o, createTextVNode as d, h as I } from "vue";
|
2
|
+
import { e as C, u as Y } from "./index-CNZFZxie.js";
|
3
|
+
import "@feedmepos/ui-library";
|
4
|
+
import { d as E } from "./dinero-CIVmXLL-.js";
|
5
|
+
import { g as H, a as q, t as J, b as Q } from "./assets-BImh8bhR.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-D5DlMaeB.js";
|
9
|
+
import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
|
10
|
+
const ae = /* @__PURE__ */ w({
|
11
|
+
__name: "Status",
|
12
|
+
props: {
|
13
|
+
row: {},
|
14
|
+
data: {}
|
15
|
+
},
|
16
|
+
setup(_) {
|
17
|
+
const e = _;
|
18
|
+
function f() {
|
19
|
+
return e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
20
|
+
}
|
21
|
+
return (h, k) => {
|
22
|
+
const F = g("FmBadge");
|
23
|
+
return T(), L(F, {
|
24
|
+
inline: "",
|
25
|
+
class: z(f())
|
26
|
+
}, {
|
27
|
+
default: i(() => [
|
28
|
+
l("div", null, n(h.data), 1)
|
29
|
+
]),
|
30
|
+
_: 1
|
31
|
+
}, 8, ["class"]);
|
32
|
+
};
|
33
|
+
}
|
34
|
+
}), ne = ["src"], le = /* @__PURE__ */ w({
|
35
|
+
__name: "Gateway",
|
36
|
+
props: {
|
37
|
+
row: {},
|
38
|
+
data: {}
|
39
|
+
},
|
40
|
+
setup(_) {
|
41
|
+
return (e, f) => (T(), O("img", {
|
42
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
43
|
+
src: a(H)(e.row.original.gateway)
|
44
|
+
}, null, 8, ne));
|
45
|
+
}
|
46
|
+
}), oe = ["src"], se = /* @__PURE__ */ w({
|
47
|
+
__name: "Method",
|
48
|
+
props: {
|
49
|
+
row: {},
|
50
|
+
data: {}
|
51
|
+
},
|
52
|
+
setup(_) {
|
53
|
+
return (e, f) => (T(), O("img", {
|
54
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
55
|
+
src: a(q)(e.row.original.method.issuer, e.row.original.method.variant)
|
56
|
+
}, null, 8, oe));
|
57
|
+
}
|
58
|
+
}), re = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, be = /* @__PURE__ */ w({
|
59
|
+
__name: "SettlementTransactions",
|
60
|
+
props: {
|
61
|
+
settlementId: {
|
62
|
+
type: String,
|
63
|
+
required: !0
|
64
|
+
}
|
65
|
+
},
|
66
|
+
setup(_) {
|
67
|
+
const { t: e } = ee(), f = _, { isLoading: h, startAsyncCall: k } = Y(!0), { currentRestaurant: F } = te(), M = X(), u = v(), x = v([]), N = v([]);
|
68
|
+
async function P(s = !1) {
|
69
|
+
k(async () => {
|
70
|
+
s || (u.value = await Z.readRestaurantSettlementById(f.settlementId));
|
71
|
+
const t = await J.readRestaurantTransactionsBySettlementId(f.settlementId);
|
72
|
+
x.value = Q(t), N.value = x.value;
|
73
|
+
});
|
74
|
+
}
|
75
|
+
function B() {
|
76
|
+
P();
|
77
|
+
}
|
78
|
+
G(B), R(F, B);
|
79
|
+
const V = v(""), U = [
|
80
|
+
{
|
81
|
+
header: () => e("settlements.dialog.feedme.id"),
|
82
|
+
accessorKey: "id"
|
83
|
+
},
|
84
|
+
{
|
85
|
+
header: () => e("settlements.dialog.feedme.pay_id"),
|
86
|
+
accessorKey: "payId"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
header: () => e("settlements.dialog.feedme.gateway"),
|
90
|
+
accessorKey: "gateway",
|
91
|
+
meta: {
|
92
|
+
textAlign: "center"
|
93
|
+
},
|
94
|
+
cell: ({ cell: s, row: t }) => t.original.method ? I(le, { row: t, data: s.getValue() }) : ""
|
95
|
+
},
|
96
|
+
{
|
97
|
+
header: () => e("settlements.dialog.feedme.method"),
|
98
|
+
accessorKey: "method",
|
99
|
+
meta: {
|
100
|
+
textAlign: "center"
|
101
|
+
},
|
102
|
+
cell: ({ cell: s, row: t }) => t.original.method ? I(se, { row: t, data: s.getValue() }) : ""
|
103
|
+
},
|
104
|
+
{
|
105
|
+
header: () => e("settlements.dialog.feedme.type"),
|
106
|
+
accessorKey: "type",
|
107
|
+
meta: {
|
108
|
+
textAlign: "center"
|
109
|
+
},
|
110
|
+
cell: ({ row: s }) => {
|
111
|
+
if (!s.original.method)
|
112
|
+
return "";
|
113
|
+
const t = s.original.method.variant;
|
114
|
+
return t.includes("_ONLINE") ? "ONLINE" : t.includes("_OFFLINE") ? "OFFLINE" : t;
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
header: () => e("settlements.dialog.feedme.status"),
|
119
|
+
accessorKey: "status",
|
120
|
+
cell: ({ cell: s, row: t }) => I(ae, { row: t, data: s.getValue() })
|
121
|
+
},
|
122
|
+
{
|
123
|
+
header: () => e("settlements.dialog.feedme.transaction_at"),
|
124
|
+
accessorKey: "transactionAt",
|
125
|
+
meta: {
|
126
|
+
width: "180px"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
{
|
130
|
+
header: () => e("settlements.dialog.feedme.sales_amount"),
|
131
|
+
accessorKey: "amount"
|
132
|
+
},
|
133
|
+
{
|
134
|
+
header: () => e("settlements.dialog.feedme.fee"),
|
135
|
+
accessorKey: "fee"
|
136
|
+
},
|
137
|
+
{
|
138
|
+
header: () => e("settlements.dialog.feedme.settlement_amount"),
|
139
|
+
accessorKey: "payout"
|
140
|
+
}
|
141
|
+
], y = v("");
|
142
|
+
let S;
|
143
|
+
return R(y, async () => {
|
144
|
+
S && clearTimeout(S), S = setTimeout(() => {
|
145
|
+
var s = new RegExp(y.value, "i");
|
146
|
+
N.value = x.value.filter((t) => {
|
147
|
+
const b = JSON.stringify(t);
|
148
|
+
return s.test(b);
|
149
|
+
});
|
150
|
+
}, 700);
|
151
|
+
}), (s, t) => {
|
152
|
+
var K;
|
153
|
+
const b = g("FmCardHeader"), p = g("FmCardSection"), A = g("FmCard"), D = g("FmSearch"), j = g("FmTable");
|
154
|
+
return T(), L(W, {
|
155
|
+
title: `${a(e)("settlements.dialog.title")} (${(K = u.value) == null ? void 0 : K._id})`,
|
156
|
+
loading: a(h),
|
157
|
+
onBack: a(M).back
|
158
|
+
}, {
|
159
|
+
default: i(() => [
|
160
|
+
l("div", re, [
|
161
|
+
o(A, {
|
162
|
+
horizontal: "",
|
163
|
+
class: "flex-1 p-6",
|
164
|
+
variant: "elevated"
|
165
|
+
}, {
|
166
|
+
default: i(() => [
|
167
|
+
o(p, { class: "flex flex-col gap-16 justify-between" }, {
|
168
|
+
default: i(() => [
|
169
|
+
o(b, {
|
170
|
+
class: "p-0",
|
171
|
+
title: a(e)("settlements.dialog.info.transaction.title"),
|
172
|
+
subtitle: ""
|
173
|
+
}, null, 8, ["title"]),
|
174
|
+
o(p, { class: "p-0" }, {
|
175
|
+
default: i(() => {
|
176
|
+
var r, m, c, $;
|
177
|
+
return [
|
178
|
+
l("b", null, n(a(e)("settlements.dialog.info.transaction.for")), 1),
|
179
|
+
d(": " + n((m = (r = u.value) == null ? void 0 : r.store) == null ? void 0 : m.event) + " ", 1),
|
180
|
+
t[2] || (t[2] = l("br", null, null, -1)),
|
181
|
+
l("b", null, n(a(e)("settlements.dialog.info.transaction.reference")), 1),
|
182
|
+
d(": " + n(($ = (c = u.value) == null ? void 0 : c.store) == null ? void 0 : $.id), 1),
|
183
|
+
t[3] || (t[3] = l("br", null, null, -1)),
|
184
|
+
l("b", null, n(a(e)("settlements.dialog.info.transaction.count")), 1),
|
185
|
+
d(": " + n(x.value.length), 1)
|
186
|
+
];
|
187
|
+
}),
|
188
|
+
_: 1
|
189
|
+
})
|
190
|
+
]),
|
191
|
+
_: 1
|
192
|
+
})
|
193
|
+
]),
|
194
|
+
_: 1
|
195
|
+
}),
|
196
|
+
o(A, {
|
197
|
+
horizontal: "",
|
198
|
+
class: "flex-1 p-6 mx-6",
|
199
|
+
variant: "elevated"
|
200
|
+
}, {
|
201
|
+
default: i(() => [
|
202
|
+
o(p, { class: "flex flex-col gap-16 justify-between" }, {
|
203
|
+
default: i(() => [
|
204
|
+
o(b, {
|
205
|
+
class: "p-0",
|
206
|
+
title: a(e)("settlements.dialog.info.bank.title"),
|
207
|
+
subtitle: ""
|
208
|
+
}, null, 8, ["title"]),
|
209
|
+
o(p, { class: "p-0" }, {
|
210
|
+
default: i(() => {
|
211
|
+
var r, m, c;
|
212
|
+
return [
|
213
|
+
l("b", null, n(a(e)("settlements.dialog.info.bank.for")), 1),
|
214
|
+
d(": " + n((r = u.value) == null ? void 0 : r.beneficiaryBank.name), 1),
|
215
|
+
t[4] || (t[4] = l("br", null, null, -1)),
|
216
|
+
l("b", null, n(a(e)("settlements.dialog.info.bank.name")), 1),
|
217
|
+
d(": " + n((m = u.value) == null ? void 0 : m.beneficiaryBank.holderName), 1),
|
218
|
+
t[5] || (t[5] = l("br", null, null, -1)),
|
219
|
+
l("b", null, n(a(e)("settlements.dialog.info.bank.number")), 1),
|
220
|
+
d(": " + n((c = u.value) == null ? void 0 : c.beneficiaryBank.accountNumber), 1)
|
221
|
+
];
|
222
|
+
}),
|
223
|
+
_: 1
|
224
|
+
})
|
225
|
+
]),
|
226
|
+
_: 1
|
227
|
+
})
|
228
|
+
]),
|
229
|
+
_: 1
|
230
|
+
}),
|
231
|
+
o(A, {
|
232
|
+
horizontal: "",
|
233
|
+
class: "flex-1 p-6",
|
234
|
+
variant: "elevated"
|
235
|
+
}, {
|
236
|
+
default: i(() => [
|
237
|
+
o(p, { class: "flex flex-col gap-16 justify-between" }, {
|
238
|
+
default: i(() => [
|
239
|
+
o(b, {
|
240
|
+
class: "p-0",
|
241
|
+
title: a(e)("settlements.dialog.info.payout.title"),
|
242
|
+
subtitle: ""
|
243
|
+
}, null, 8, ["title"]),
|
244
|
+
o(p, { class: "p-0" }, {
|
245
|
+
default: i(() => {
|
246
|
+
var r, m, c;
|
247
|
+
return [
|
248
|
+
l("b", null, n(a(e)("settlements.dialog.info.payout.amount")), 1),
|
249
|
+
d(": " + n(a(E)((r = u.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
|
250
|
+
t[6] || (t[6] = l("br", null, null, -1)),
|
251
|
+
l("b", null, n(a(e)("settlements.dialog.info.payout.fee")), 1),
|
252
|
+
d(": " + n(a(E)((m = u.value) == null ? void 0 : m.totalFee).toFormat("$0.00")), 1),
|
253
|
+
t[7] || (t[7] = l("br", null, null, -1)),
|
254
|
+
l("b", null, n(a(e)("settlements.dialog.info.payout.payout")), 1),
|
255
|
+
d(": " + n(a(E)((c = u.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
|
256
|
+
];
|
257
|
+
}),
|
258
|
+
_: 1
|
259
|
+
})
|
260
|
+
]),
|
261
|
+
_: 1
|
262
|
+
})
|
263
|
+
]),
|
264
|
+
_: 1
|
265
|
+
})
|
266
|
+
]),
|
267
|
+
l("div", ie, [
|
268
|
+
o(D, {
|
269
|
+
modelValue: y.value,
|
270
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => y.value = r),
|
271
|
+
placeholder: a(e)("settlements.dialog.search")
|
272
|
+
}, null, 8, ["modelValue", "placeholder"])
|
273
|
+
]),
|
274
|
+
o(j, {
|
275
|
+
modelValue: V.value,
|
276
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => V.value = r),
|
277
|
+
"shrink-at": !1,
|
278
|
+
"search-value": y.value,
|
279
|
+
"row-data": N.value,
|
280
|
+
"column-defs": U,
|
281
|
+
loading: a(h)
|
282
|
+
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
283
|
+
]),
|
284
|
+
_: 1
|
285
|
+
}, 8, ["title", "loading", "onBack"]);
|
286
|
+
};
|
287
|
+
}
|
288
|
+
});
|
289
|
+
export {
|
290
|
+
be as default
|
291
|
+
};
|