@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0
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-BTmMOzwx.js +39 -0
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/PayoutAccount-DZaKHWcy.js +612 -0
- package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
- package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-Bx3zAkIw.js +195 -0
- package/dist/Settlement-mwnO-iYH.js +150 -0
- package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-AaYyTH96.js} +99 -105
- package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-D_SVuKyR.js} +117 -130
- package/dist/Terminal-68OQnhM3.js +372 -0
- package/dist/TerminalSetting-DEFim0xg.js +379 -0
- package/dist/TerminalTransaction-CQjNdffr.js +426 -0
- package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
- package/dist/Transaction-68L7JzIk.js +242 -0
- package/dist/Transaction-a1VfiCP_.js +405 -0
- package/dist/api/index.d.ts +14 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/settlement/index.d.ts +12 -13
- package/dist/api/terminal/index.d.ts +13 -1
- package/dist/api/terminal-transaction/index.d.ts +12 -1
- package/dist/api/transaction/index.d.ts +7 -2
- package/dist/app-C9FRsUfb.js +6343 -0
- package/dist/app.js +3 -198
- package/dist/assets-Bji7O2YD.js +45 -0
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/components/CursorTable/index.vue.d.ts +24 -5
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/components/RouteCell.vue.d.ts +8 -0
- package/dist/helpers/assets.d.ts +2 -0
- package/dist/index-Bt_OgDYn.js +56107 -0
- package/dist/index-CLYePgWW.js +47 -0
- package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
- package/dist/index-DSuZG0l6.js +52 -0
- package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
- package/dist/index-_0TroOJr.js +127 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +4 -4
- package/dist/payout-account-BWcq7OJy.js +1805 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-DqrhM5jB.js +87 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -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/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +4 -4
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
- package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
- package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
- package/dist/Transaction-CYo-uLQi.js +0 -241
- package/dist/Transaction-Cjw9WwX8.js +0 -242
- package/dist/api/auth/index.d.ts +0 -7
- package/dist/assets-BuLGUMIx.js +0 -472
- package/dist/index-Coz5aeIO.js +0 -61
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
- package/dist/mascot-side-3VXskf9y.js +0 -4
- package/dist/payout-account-iAM7HPtG.js +0 -3317
- package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,68 +1,62 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { e as E, u as
|
1
|
+
import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
|
2
|
+
import { e as E, u as j } from "./index-Bt_OgDYn.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
|
-
import { d as
|
5
|
-
import { g as
|
6
|
-
import { t as
|
7
|
-
import { _ as
|
8
|
-
import { useRouter as
|
9
|
-
import { s as
|
10
|
-
import { useCoreStore as
|
11
|
-
const
|
4
|
+
import { d as h } from "./dinero-CIVmXLL-.js";
|
5
|
+
import { g as Y, a as H } from "./assets-Bji7O2YD.js";
|
6
|
+
import { t as q, a as J } from "./transaction-DqrhM5jB.js";
|
7
|
+
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
+
import { useRouter as W } from "vue-router";
|
9
|
+
import { s as X } from "./index-_0TroOJr.js";
|
10
|
+
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
11
|
+
const ee = /* @__PURE__ */ T({
|
12
12
|
__name: "Status",
|
13
13
|
props: {
|
14
14
|
row: {},
|
15
15
|
data: {}
|
16
16
|
},
|
17
|
-
setup(
|
18
|
-
const o =
|
19
|
-
function
|
17
|
+
setup(y) {
|
18
|
+
const o = y;
|
19
|
+
function p() {
|
20
20
|
return o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
21
|
}
|
22
|
-
return (
|
23
|
-
const
|
24
|
-
return
|
22
|
+
return (S, B) => {
|
23
|
+
const w = g("FmBadge");
|
24
|
+
return F(), P(w, {
|
25
25
|
inline: "",
|
26
|
-
class:
|
26
|
+
class: z(p())
|
27
27
|
}, {
|
28
|
-
default:
|
29
|
-
t("div", null, u(
|
28
|
+
default: l(() => [
|
29
|
+
t("div", null, u(S.data), 1)
|
30
30
|
]),
|
31
31
|
_: 1
|
32
32
|
}, 8, ["class"]);
|
33
33
|
};
|
34
34
|
}
|
35
|
-
}),
|
35
|
+
}), te = ["src"], ae = /* @__PURE__ */ T({
|
36
36
|
__name: "Gateway",
|
37
37
|
props: {
|
38
38
|
row: {},
|
39
39
|
data: {}
|
40
40
|
},
|
41
|
-
setup(
|
42
|
-
return (o,
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
47
|
-
}, null, 8, ["src"]);
|
48
|
-
};
|
41
|
+
setup(y) {
|
42
|
+
return (o, p) => (F(), L("img", {
|
43
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
44
|
+
src: c(Y)(o.row.original.gateway)
|
45
|
+
}, null, 8, te));
|
49
46
|
}
|
50
|
-
}),
|
47
|
+
}), ne = ["src"], re = /* @__PURE__ */ T({
|
51
48
|
__name: "Method",
|
52
49
|
props: {
|
53
50
|
row: {},
|
54
51
|
data: {}
|
55
52
|
},
|
56
|
-
setup(
|
57
|
-
return (o,
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
62
|
-
}, null, 8, ["src"]);
|
63
|
-
};
|
53
|
+
setup(y) {
|
54
|
+
return (o, p) => (F(), L("img", {
|
55
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
56
|
+
src: c(H)(o.row.original.method.issuer)
|
57
|
+
}, null, 8, ne));
|
64
58
|
}
|
65
|
-
}),
|
59
|
+
}), le = { class: "flex mb-6" }, oe = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
|
66
60
|
__name: "SettlementTransactions",
|
67
61
|
props: {
|
68
62
|
settlementId: {
|
@@ -70,20 +64,20 @@ const Z = /* @__PURE__ */ F({
|
|
70
64
|
required: !0
|
71
65
|
}
|
72
66
|
},
|
73
|
-
setup(
|
74
|
-
const o =
|
67
|
+
setup(y) {
|
68
|
+
const o = y, { isLoading: p, startAsyncCall: S } = j(!0), { currentRestaurant: B } = Z(), w = W(), s = _(), x = _([]), N = _([]);
|
75
69
|
async function O(n = !1) {
|
76
|
-
|
77
|
-
n || (s.value = await
|
78
|
-
const e = await
|
79
|
-
x.value =
|
70
|
+
S(async () => {
|
71
|
+
n || (s.value = await X.readRestaurantSettlementById(o.settlementId));
|
72
|
+
const e = await q.readRestaurantTransactionsBySettlementId(o.settlementId);
|
73
|
+
x.value = J(e), N.value = x.value;
|
80
74
|
});
|
81
75
|
}
|
82
76
|
function k() {
|
83
77
|
O();
|
84
78
|
}
|
85
|
-
|
86
|
-
const
|
79
|
+
G(k), $(B, k);
|
80
|
+
const V = _(""), D = [
|
87
81
|
{
|
88
82
|
header: () => "Transaction ID",
|
89
83
|
accessorKey: "id"
|
@@ -98,7 +92,7 @@ const Z = /* @__PURE__ */ F({
|
|
98
92
|
meta: {
|
99
93
|
textAlign: "center"
|
100
94
|
},
|
101
|
-
cell: ({ cell: n, row: e }) => e.original.method ? C(
|
95
|
+
cell: ({ cell: n, row: e }) => e.original.method ? C(ae, { row: e, data: n.getValue() }) : ""
|
102
96
|
},
|
103
97
|
{
|
104
98
|
header: () => "Method",
|
@@ -106,7 +100,7 @@ const Z = /* @__PURE__ */ F({
|
|
106
100
|
meta: {
|
107
101
|
textAlign: "center"
|
108
102
|
},
|
109
|
-
cell: ({ cell: n, row: e }) => e.original.method ? C(
|
103
|
+
cell: ({ cell: n, row: e }) => e.original.method ? C(re, { row: e, data: n.getValue() }) : ""
|
110
104
|
},
|
111
105
|
{
|
112
106
|
header: () => "Type",
|
@@ -124,7 +118,7 @@ const Z = /* @__PURE__ */ F({
|
|
124
118
|
{
|
125
119
|
header: () => "Status",
|
126
120
|
accessorKey: "status",
|
127
|
-
cell: ({ cell: n, row: e }) => C(
|
121
|
+
cell: ({ cell: n, row: e }) => C(ee, { row: e, data: n.getValue() })
|
128
122
|
},
|
129
123
|
{
|
130
124
|
header: () => "Transaction At",
|
@@ -146,47 +140,47 @@ const Z = /* @__PURE__ */ F({
|
|
146
140
|
accessorKey: "payout"
|
147
141
|
}
|
148
142
|
], v = _("");
|
149
|
-
let
|
150
|
-
return
|
151
|
-
|
143
|
+
let A;
|
144
|
+
return $(v, async () => {
|
145
|
+
A && clearTimeout(A), A = setTimeout(() => {
|
152
146
|
var n = new RegExp(v.value, "i");
|
153
|
-
|
154
|
-
const
|
155
|
-
return n.test(
|
147
|
+
N.value = x.value.filter((e) => {
|
148
|
+
const b = JSON.stringify(e);
|
149
|
+
return n.test(b);
|
156
150
|
});
|
157
151
|
}, 700);
|
158
152
|
}), (n, e) => {
|
159
|
-
var
|
160
|
-
const
|
161
|
-
return
|
162
|
-
title: `Settlement Transactions (${(
|
163
|
-
loading: c(
|
164
|
-
onBack: c(
|
153
|
+
var K;
|
154
|
+
const b = g("FmCardHeader"), f = g("FmCardSection"), I = g("FmCard"), M = g("FmSearch"), U = g("FmTable");
|
155
|
+
return F(), P(Q, {
|
156
|
+
title: `Settlement Transactions (${(K = s.value) == null ? void 0 : K._id})`,
|
157
|
+
loading: c(p),
|
158
|
+
onBack: c(w).back
|
165
159
|
}, {
|
166
|
-
default:
|
167
|
-
t("div",
|
168
|
-
a(
|
160
|
+
default: l(() => [
|
161
|
+
t("div", le, [
|
162
|
+
a(I, {
|
169
163
|
horizontal: "",
|
170
164
|
class: "flex-1 p-6",
|
171
165
|
variant: "elevated"
|
172
166
|
}, {
|
173
|
-
default:
|
174
|
-
a(
|
175
|
-
default:
|
176
|
-
a(
|
167
|
+
default: l(() => [
|
168
|
+
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
169
|
+
default: l(() => [
|
170
|
+
a(b, {
|
177
171
|
class: "p-0",
|
178
172
|
title: "Transaction Info",
|
179
173
|
subtitle: ""
|
180
174
|
}),
|
181
|
-
a(
|
182
|
-
default:
|
183
|
-
var
|
175
|
+
a(f, { class: "p-0" }, {
|
176
|
+
default: l(() => {
|
177
|
+
var r, d, m, R;
|
184
178
|
return [
|
185
179
|
e[2] || (e[2] = t("b", null, "For", -1)),
|
186
|
-
i(": " + u((
|
180
|
+
i(": " + u((d = (r = s.value) == null ? void 0 : r.store) == null ? void 0 : d.event) + " ", 1),
|
187
181
|
e[3] || (e[3] = t("br", null, null, -1)),
|
188
182
|
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
189
|
-
i(": " + u((
|
183
|
+
i(": " + u((R = (m = s.value) == null ? void 0 : m.store) == null ? void 0 : R.id), 1),
|
190
184
|
e[5] || (e[5] = t("br", null, null, -1)),
|
191
185
|
e[6] || (e[6] = t("b", null, "Transaction", -1)),
|
192
186
|
i(": " + u(x.value.length), 1)
|
@@ -200,31 +194,31 @@ const Z = /* @__PURE__ */ F({
|
|
200
194
|
]),
|
201
195
|
_: 1
|
202
196
|
}),
|
203
|
-
a(
|
197
|
+
a(I, {
|
204
198
|
horizontal: "",
|
205
199
|
class: "flex-1 p-6 mx-6",
|
206
200
|
variant: "elevated"
|
207
201
|
}, {
|
208
|
-
default:
|
209
|
-
a(
|
210
|
-
default:
|
211
|
-
a(
|
202
|
+
default: l(() => [
|
203
|
+
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
204
|
+
default: l(() => [
|
205
|
+
a(b, {
|
212
206
|
class: "p-0",
|
213
207
|
title: "Bank Info",
|
214
208
|
subtitle: ""
|
215
209
|
}),
|
216
|
-
a(
|
217
|
-
default:
|
218
|
-
var
|
210
|
+
a(f, { class: "p-0" }, {
|
211
|
+
default: l(() => {
|
212
|
+
var r, d, m;
|
219
213
|
return [
|
220
214
|
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
221
|
-
i(": " + u((
|
215
|
+
i(": " + u((r = s.value) == null ? void 0 : r.beneficiaryBank.name), 1),
|
222
216
|
e[8] || (e[8] = t("br", null, null, -1)),
|
223
217
|
e[9] || (e[9] = t("b", null, "Name", -1)),
|
224
|
-
i(": " + u((
|
218
|
+
i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
|
225
219
|
e[10] || (e[10] = t("br", null, null, -1)),
|
226
220
|
e[11] || (e[11] = t("b", null, "Number", -1)),
|
227
|
-
i(": " + u((
|
221
|
+
i(": " + u((m = s.value) == null ? void 0 : m.beneficiaryBank.accountNumber), 1)
|
228
222
|
];
|
229
223
|
}),
|
230
224
|
_: 1
|
@@ -235,31 +229,31 @@ const Z = /* @__PURE__ */ F({
|
|
235
229
|
]),
|
236
230
|
_: 1
|
237
231
|
}),
|
238
|
-
a(
|
232
|
+
a(I, {
|
239
233
|
horizontal: "",
|
240
234
|
class: "flex-1 p-6",
|
241
235
|
variant: "elevated"
|
242
236
|
}, {
|
243
|
-
default:
|
244
|
-
a(
|
245
|
-
default:
|
246
|
-
a(
|
237
|
+
default: l(() => [
|
238
|
+
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
239
|
+
default: l(() => [
|
240
|
+
a(b, {
|
247
241
|
class: "p-0",
|
248
242
|
title: "Payout Info",
|
249
243
|
subtitle: ""
|
250
244
|
}),
|
251
|
-
a(
|
252
|
-
default:
|
253
|
-
var
|
245
|
+
a(f, { class: "p-0" }, {
|
246
|
+
default: l(() => {
|
247
|
+
var r, d, m;
|
254
248
|
return [
|
255
249
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
256
|
-
i(": " + u(c(
|
250
|
+
i(": " + u(c(h)((r = s.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
|
257
251
|
e[13] || (e[13] = t("br", null, null, -1)),
|
258
252
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
259
|
-
i(": " + u(c(
|
253
|
+
i(": " + u(c(h)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
|
260
254
|
e[15] || (e[15] = t("br", null, null, -1)),
|
261
255
|
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
262
|
-
i(": " + u(c(
|
256
|
+
i(": " + u(c(h)((m = s.value) == null ? void 0 : m.totalPayout).toFormat("$0.00")), 1)
|
263
257
|
];
|
264
258
|
}),
|
265
259
|
_: 1
|
@@ -271,20 +265,20 @@ const Z = /* @__PURE__ */ F({
|
|
271
265
|
_: 1
|
272
266
|
})
|
273
267
|
]),
|
274
|
-
t("div",
|
275
|
-
a(
|
268
|
+
t("div", oe, [
|
269
|
+
a(M, {
|
276
270
|
modelValue: v.value,
|
277
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
271
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => v.value = r),
|
278
272
|
placeholder: "Search Transactions ..."
|
279
273
|
}, null, 8, ["modelValue"])
|
280
274
|
]),
|
281
|
-
a(
|
282
|
-
modelValue:
|
283
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
275
|
+
a(U, {
|
276
|
+
modelValue: V.value,
|
277
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => V.value = r),
|
284
278
|
"search-value": v.value,
|
285
|
-
"row-data":
|
286
|
-
"column-defs":
|
287
|
-
loading: c(
|
279
|
+
"row-data": N.value,
|
280
|
+
"column-defs": D,
|
281
|
+
loading: c(p)
|
288
282
|
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
289
283
|
]),
|
290
284
|
_: 1
|
@@ -293,5 +287,5 @@ const Z = /* @__PURE__ */ F({
|
|
293
287
|
}
|
294
288
|
});
|
295
289
|
export {
|
296
|
-
|
290
|
+
ve as default
|
297
291
|
};
|