@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0-beta.1
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-BHRhEZ9h.js +613 -0
- package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-Bj5zvmoj.js} +38 -35
- package/dist/PayoutAccountSetting-kUQLeAcb.js +780 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-Crdfq22j.js +149 -0
- package/dist/Settlement-JHOJNkhd.js +194 -0
- package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-BxuLXUR-.js} +99 -105
- package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-daWMAmtz.js} +117 -130
- package/dist/Terminal-gxGnjFGc.js +372 -0
- package/dist/TerminalSetting--ZAJJ_Hf.js +379 -0
- package/dist/TerminalTransaction---9nk_4q.js +249 -0
- package/dist/TerminalTransaction-B77YK3hF.js +425 -0
- package/dist/Transaction-8LlOLPeZ.js +404 -0
- package/dist/Transaction-DRQ_uZ30.js +241 -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-DjzULXn3.js +6356 -0
- package/dist/app.js +3 -198
- package/dist/assets-NrCec-W0.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-Bmka-1lQ.js → index-7KNaibcq.js} +1 -1
- package/dist/index-BWUtjGg7.js +47 -0
- package/dist/{index-CF56zGyu.js → index-BwcJZFsi.js} +1 -1
- package/dist/index-CWaKb7bG.js +56107 -0
- package/dist/index-CojhNtuG.js +127 -0
- package/dist/index-DbJpbpSs.js +52 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js +167 -0
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +5 -5
- package/dist/payout-account-CBT1rfSS.js +1805 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-CQiT7Y_s.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 +5 -5
- 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,242 +0,0 @@
|
|
1
|
-
import { defineComponent as _, resolveComponent as c, openBlock as f, createBlock as g, normalizeClass as I, withCtx as E, createElementVNode as T, toDisplayString as D, unref as u, ref as A, h as S, onMounted as O, watch as C, createVNode as y, isRef as N } from "vue";
|
2
|
-
import { t as K, a as R } from "./transaction-vRrBf3FN.js";
|
3
|
-
import { e as F, u as V } from "./index-DCPNrUDq.js";
|
4
|
-
import "@feedmepos/ui-library";
|
5
|
-
import "./dinero-CIVmXLL-.js";
|
6
|
-
import { h as b } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as k, a as P } from "./assets-BuLGUMIx.js";
|
8
|
-
import { useCoreStore as B } from "@feedmepos/mf-common";
|
9
|
-
import { u as L } from "./index-Bmka-1lQ.js";
|
10
|
-
import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
|
11
|
-
const U = /* @__PURE__ */ _({
|
12
|
-
__name: "Status",
|
13
|
-
props: {
|
14
|
-
row: {},
|
15
|
-
data: {}
|
16
|
-
},
|
17
|
-
setup(i) {
|
18
|
-
const t = i;
|
19
|
-
function a() {
|
20
|
-
return t.data === F.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : t.data === F.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : t.data === F.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
|
-
}
|
22
|
-
return (r, d) => {
|
23
|
-
const o = c("FmBadge");
|
24
|
-
return f(), g(o, {
|
25
|
-
inline: "",
|
26
|
-
class: I(a())
|
27
|
-
}, {
|
28
|
-
default: E(() => [
|
29
|
-
T("div", null, D(r.data), 1)
|
30
|
-
]),
|
31
|
-
_: 1
|
32
|
-
}, 8, ["class"]);
|
33
|
-
};
|
34
|
-
}
|
35
|
-
}), $ = /* @__PURE__ */ _({
|
36
|
-
__name: "Gateway",
|
37
|
-
props: {
|
38
|
-
row: {},
|
39
|
-
data: {}
|
40
|
-
},
|
41
|
-
setup(i) {
|
42
|
-
return (t, a) => {
|
43
|
-
const r = c("FmThumbnail");
|
44
|
-
return f(), g(r, {
|
45
|
-
src: u(k)(t.row.original.gateway),
|
46
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
47
|
-
}, null, 8, ["src"]);
|
48
|
-
};
|
49
|
-
}
|
50
|
-
}), G = /* @__PURE__ */ _({
|
51
|
-
__name: "Method",
|
52
|
-
props: {
|
53
|
-
row: {},
|
54
|
-
data: {}
|
55
|
-
},
|
56
|
-
setup(i) {
|
57
|
-
return (t, a) => {
|
58
|
-
const r = c("FmThumbnail");
|
59
|
-
return f(), g(r, {
|
60
|
-
src: u(P)(t.row.original.method.issuer),
|
61
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
62
|
-
}, null, 8, ["src"]);
|
63
|
-
};
|
64
|
-
}
|
65
|
-
}), Y = /* @__PURE__ */ _({
|
66
|
-
__name: "TransactionTable",
|
67
|
-
props: {
|
68
|
-
data: {
|
69
|
-
type: Array,
|
70
|
-
required: !0
|
71
|
-
},
|
72
|
-
loading: {
|
73
|
-
type: Boolean,
|
74
|
-
required: !0
|
75
|
-
}
|
76
|
-
},
|
77
|
-
emits: ["row-click"],
|
78
|
-
setup(i, { emit: t }) {
|
79
|
-
const a = i, r = t, d = A(""), o = [
|
80
|
-
{
|
81
|
-
header: () => "Transaction ID",
|
82
|
-
accessorKey: "id"
|
83
|
-
},
|
84
|
-
{
|
85
|
-
header: () => "Pay ID",
|
86
|
-
accessorKey: "payId"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
header: () => "Gateway",
|
90
|
-
accessorKey: "gateway",
|
91
|
-
meta: {
|
92
|
-
textAlign: "center"
|
93
|
-
},
|
94
|
-
cell: ({ cell: n, row: e }) => e.original.method ? S($, { row: e, data: n.getValue() }) : ""
|
95
|
-
},
|
96
|
-
{
|
97
|
-
header: () => "Method",
|
98
|
-
accessorKey: "method",
|
99
|
-
meta: {
|
100
|
-
textAlign: "center"
|
101
|
-
},
|
102
|
-
cell: ({ cell: n, row: e }) => e.original.method ? S(G, { row: e, data: n.getValue() }) : ""
|
103
|
-
},
|
104
|
-
{
|
105
|
-
header: () => "Type",
|
106
|
-
accessorKey: "type",
|
107
|
-
meta: {
|
108
|
-
textAlign: "center"
|
109
|
-
},
|
110
|
-
cell: ({ row: n }) => {
|
111
|
-
if (!n.original.method)
|
112
|
-
return "";
|
113
|
-
const e = n.original.method.variant;
|
114
|
-
return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
|
115
|
-
}
|
116
|
-
},
|
117
|
-
{
|
118
|
-
header: () => "Status",
|
119
|
-
accessorKey: "status",
|
120
|
-
cell: ({ cell: n, row: e }) => S(U, { row: e, data: n.getValue() })
|
121
|
-
},
|
122
|
-
{
|
123
|
-
header: () => "Transaction At",
|
124
|
-
accessorKey: "transactionAt",
|
125
|
-
meta: {
|
126
|
-
width: "180px"
|
127
|
-
}
|
128
|
-
},
|
129
|
-
{
|
130
|
-
header: () => "Sales Amount",
|
131
|
-
accessorKey: "amount"
|
132
|
-
},
|
133
|
-
{
|
134
|
-
header: () => "Fee",
|
135
|
-
accessorKey: "fee"
|
136
|
-
},
|
137
|
-
{
|
138
|
-
header: () => "Settlement Amount",
|
139
|
-
accessorKey: "payout"
|
140
|
-
}
|
141
|
-
];
|
142
|
-
return (n, e) => {
|
143
|
-
const x = c("FmTable");
|
144
|
-
return f(), g(x, {
|
145
|
-
modelValue: d.value,
|
146
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => d.value = l),
|
147
|
-
"column-defs": o,
|
148
|
-
"row-data": a.data,
|
149
|
-
loading: a.loading,
|
150
|
-
onRowClick: e[1] || (e[1] = (l) => r("row-click", a.data.at(l.index)))
|
151
|
-
}, null, 8, ["modelValue", "row-data", "loading"]);
|
152
|
-
};
|
153
|
-
}
|
154
|
-
}), q = { class: "flex justify-between mb-6 items-center" }, J = { class: "flex space-x-4" }, j = { class: "flex space-x-4" }, re = /* @__PURE__ */ _({
|
155
|
-
__name: "Transaction",
|
156
|
-
setup(i) {
|
157
|
-
const { dateRange: t, searchKey: a } = L({
|
158
|
-
searchKey: "",
|
159
|
-
dateRange: {
|
160
|
-
startDate: b().startOf("day").toISOString(),
|
161
|
-
endDate: b().endOf("day").toISOString()
|
162
|
-
}
|
163
|
-
}), { isLoading: r, startAsyncCall: d } = V(!0);
|
164
|
-
B();
|
165
|
-
const o = A([]), n = A([]);
|
166
|
-
async function e() {
|
167
|
-
await d(async () => {
|
168
|
-
const { startDate: h, endDate: s } = t.value, m = await K.readTransactions({
|
169
|
-
start: h,
|
170
|
-
end: s
|
171
|
-
});
|
172
|
-
if (o.value = R(m), n.value = o.value, a.value > "") {
|
173
|
-
var w = new RegExp(a.value, "i");
|
174
|
-
n.value = o.value.filter((v) => {
|
175
|
-
const p = JSON.stringify(v);
|
176
|
-
return w.test(p);
|
177
|
-
});
|
178
|
-
}
|
179
|
-
});
|
180
|
-
}
|
181
|
-
function x() {
|
182
|
-
e();
|
183
|
-
}
|
184
|
-
O(x);
|
185
|
-
let l;
|
186
|
-
return C(a, async () => {
|
187
|
-
l && clearTimeout(l), l = setTimeout(() => {
|
188
|
-
var h = new RegExp(a.value, "i");
|
189
|
-
n.value = o.value.filter((s) => {
|
190
|
-
const m = JSON.stringify(s);
|
191
|
-
return h.test(m);
|
192
|
-
});
|
193
|
-
}, 700);
|
194
|
-
}), (h, s) => {
|
195
|
-
const m = c("FmSearch"), w = c("FmDateRangePicker"), v = c("FmButton");
|
196
|
-
return f(), g(M, {
|
197
|
-
title: "Transactions",
|
198
|
-
loading: u(r)
|
199
|
-
}, {
|
200
|
-
default: E(() => [
|
201
|
-
T("div", q, [
|
202
|
-
T("div", J, [
|
203
|
-
y(m, {
|
204
|
-
"model-value": u(a),
|
205
|
-
"onUpdate:modelValue": s[0] || (s[0] = (p) => N(a) ? a.value = p : null),
|
206
|
-
class: "mr-8",
|
207
|
-
label: "Search",
|
208
|
-
placeholder: "Search Transactions ..."
|
209
|
-
}, null, 8, ["model-value"]),
|
210
|
-
y(w, {
|
211
|
-
modelValue: u(t),
|
212
|
-
"onUpdate:modelValue": [
|
213
|
-
s[1] || (s[1] = (p) => N(t) ? t.value = p : null),
|
214
|
-
e
|
215
|
-
],
|
216
|
-
compare: "",
|
217
|
-
"show-predefined-range": ""
|
218
|
-
}, null, 8, ["modelValue"])
|
219
|
-
]),
|
220
|
-
T("div", j, [
|
221
|
-
y(v, {
|
222
|
-
"append-icon": "file_download",
|
223
|
-
variant: "primary",
|
224
|
-
label: "Export",
|
225
|
-
onClick: () => {
|
226
|
-
}
|
227
|
-
})
|
228
|
-
])
|
229
|
-
]),
|
230
|
-
y(Y, {
|
231
|
-
loading: u(r),
|
232
|
-
data: n.value
|
233
|
-
}, null, 8, ["loading", "data"])
|
234
|
-
]),
|
235
|
-
_: 1
|
236
|
-
}, 8, ["loading"]);
|
237
|
-
};
|
238
|
-
}
|
239
|
-
});
|
240
|
-
export {
|
241
|
-
re as default
|
242
|
-
};
|
package/dist/api/auth/index.d.ts
DELETED