@feedmepos/mf-payment 0.0.0-beta.22 → 0.0.0-beta.24
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +28 -0
- package/dist/{PayoutAccount-C3OOz1oi.js → PayoutAccount-BjGdteR8.js} +5 -5
- package/dist/{PayoutAccount-BGSq2B6o.js → PayoutAccount-CdKAjUed.js} +3 -3
- package/dist/{PayoutAccountSetting-WxLdT6mv.js → PayoutAccountSetting-DsqjVlIu.js} +5 -5
- package/dist/{Settlement-CKxNAHAH.js → Settlement-CY0-gXn5.js} +25 -23
- package/dist/{Settlement-DQcrZNvo.js → Settlement-DTE8p3LA.js} +27 -25
- package/dist/{SettlementTransactions-CUG4ePP_.js → SettlementTransactions-BJlBWR1G.js} +4 -4
- package/dist/{SettlementTransactions-V5fjLv7H.js → SettlementTransactions-C4tIk6nO.js} +4 -4
- package/dist/Terminal-C4gOl3zs.js +339 -0
- package/dist/{TerminalSetting-BuAaL5qK.js → TerminalSetting-DC9NBozT.js} +3 -3
- package/dist/{TerminalTransaction-D4c0ivQg.js → TerminalTransaction-BUT01dUv.js} +33 -31
- package/dist/{TerminalTransaction-DbjVvH2P.js → TerminalTransaction-CCdbfxx0.js} +33 -31
- package/dist/{Transaction-h2YrauW3.js → Transaction-60yViCMI.js} +53 -53
- package/dist/{Transaction-MrC2wj9k.js → Transaction-CoCZaBfu.js} +4 -4
- package/dist/api/index.d.ts +1 -0
- package/dist/app.js +13 -13
- package/dist/{assets-Cj6QBVPU.js → assets-BmFExmpA.js} +1 -1
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/{index-DA_XRfnd.js → index-Bvb4T6xz.js} +1 -1
- package/dist/{index-DN6pSWL_.js → index-CDgQhs3k.js} +1 -1
- package/dist/index-DeF94ACV.js +34 -0
- package/dist/{index-C58XD8h3.js → index-Df0izARr.js} +1 -1
- package/dist/{index-DYnNx4du.js → index-Jtghafz6.js} +1 -1
- package/dist/{index-De4-LJjg.js → index-_qikPh5K.js} +766 -766
- package/dist/{index.vue_vue_type_script_setup_true_lang-J6BwjC-p.js → index.vue_vue_type_script_setup_true_lang-CfU6stly.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-BBG-e-NS.js → payout-account-CRgYpkAs.js} +147 -147
- package/dist/{transaction-BmxtNt6_.js → transaction-B5QUg556.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Terminal-C_G_AuJZ.js +0 -318
- package/dist/index-CvMai9eW.js +0 -26
@@ -1,12 +1,13 @@
|
|
1
|
-
import { defineComponent as p, resolveComponent as
|
2
|
-
import { t as E, a as
|
3
|
-
import { e as v, u as
|
1
|
+
import { defineComponent as p, resolveComponent as T, openBlock as _, createBlock as A, normalizeClass as O, withCtx as I, createElementVNode as y, toDisplayString as R, createElementBlock as b, unref as r, ref as S, h as g, onMounted as V, watch as K, createVNode as h, isRef as N } from "vue";
|
2
|
+
import { t as E, a as k } from "./transaction-B5QUg556.js";
|
3
|
+
import { e as v, u as C } from "./index-_qikPh5K.js";
|
4
4
|
import "@feedmepos/ui-library";
|
5
5
|
import "./dinero-CIVmXLL-.js";
|
6
6
|
import { h as F } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as P, a as
|
8
|
-
import {
|
9
|
-
import
|
7
|
+
import { g as P, a as $ } from "./assets-BmFExmpA.js";
|
8
|
+
import { _ as L } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
|
9
|
+
import "@feedmepos/mf-common";
|
10
|
+
import { u as B } from "./index-Bvb4T6xz.js";
|
10
11
|
import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
11
12
|
import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
13
|
const G = /* @__PURE__ */ p({
|
@@ -17,17 +18,17 @@ const G = /* @__PURE__ */ p({
|
|
17
18
|
},
|
18
19
|
setup(i) {
|
19
20
|
const a = i;
|
20
|
-
function
|
21
|
+
function n() {
|
21
22
|
return a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === v.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
22
23
|
}
|
23
24
|
return (c, d) => {
|
24
|
-
const o =
|
25
|
+
const o = T("FmBadge");
|
25
26
|
return _(), A(o, {
|
26
27
|
inline: "",
|
27
|
-
class: O(
|
28
|
+
class: O(n())
|
28
29
|
}, {
|
29
30
|
default: I(() => [
|
30
|
-
|
31
|
+
y("div", null, R(c.data), 1)
|
31
32
|
]),
|
32
33
|
_: 1
|
33
34
|
}, 8, ["class"]);
|
@@ -40,7 +41,7 @@ const G = /* @__PURE__ */ p({
|
|
40
41
|
data: {}
|
41
42
|
},
|
42
43
|
setup(i) {
|
43
|
-
return (a,
|
44
|
+
return (a, n) => (_(), b("img", {
|
44
45
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
45
46
|
src: r(P)(a.row.original.gateway)
|
46
47
|
}, null, 8, Y));
|
@@ -52,9 +53,9 @@ const G = /* @__PURE__ */ p({
|
|
52
53
|
data: {}
|
53
54
|
},
|
54
55
|
setup(i) {
|
55
|
-
return (a,
|
56
|
+
return (a, n) => (_(), b("img", {
|
56
57
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
57
|
-
src: r(
|
58
|
+
src: r($)(a.row.original.method.issuer)
|
58
59
|
}, null, 8, J));
|
59
60
|
}
|
60
61
|
}), z = /* @__PURE__ */ p({
|
@@ -71,10 +72,11 @@ const G = /* @__PURE__ */ p({
|
|
71
72
|
},
|
72
73
|
emits: ["row-click"],
|
73
74
|
setup(i, { emit: a }) {
|
74
|
-
const
|
75
|
+
const n = i, c = a, d = S(""), o = [
|
75
76
|
{
|
76
77
|
header: () => "Transaction ID",
|
77
|
-
accessorKey: "id"
|
78
|
+
accessorKey: "id",
|
79
|
+
cell: ({ cell: t }) => g(L, { data: t.getValue() })
|
78
80
|
},
|
79
81
|
{
|
80
82
|
header: () => "Pay ID",
|
@@ -86,7 +88,7 @@ const G = /* @__PURE__ */ p({
|
|
86
88
|
meta: {
|
87
89
|
textAlign: "center"
|
88
90
|
},
|
89
|
-
cell: ({ cell:
|
91
|
+
cell: ({ cell: t, row: e }) => e.original.method ? g(q, { row: e, data: t.getValue() }) : ""
|
90
92
|
},
|
91
93
|
{
|
92
94
|
header: () => "Method",
|
@@ -94,7 +96,7 @@ const G = /* @__PURE__ */ p({
|
|
94
96
|
meta: {
|
95
97
|
textAlign: "center"
|
96
98
|
},
|
97
|
-
cell: ({ cell:
|
99
|
+
cell: ({ cell: t, row: e }) => e.original.method ? g(j, { row: e, data: t.getValue() }) : ""
|
98
100
|
},
|
99
101
|
{
|
100
102
|
header: () => "Type",
|
@@ -102,17 +104,17 @@ const G = /* @__PURE__ */ p({
|
|
102
104
|
meta: {
|
103
105
|
textAlign: "center"
|
104
106
|
},
|
105
|
-
cell: ({ row:
|
106
|
-
if (!
|
107
|
+
cell: ({ row: t }) => {
|
108
|
+
if (!t.original.method)
|
107
109
|
return "";
|
108
|
-
const e =
|
110
|
+
const e = t.original.method.variant;
|
109
111
|
return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
|
110
112
|
}
|
111
113
|
},
|
112
114
|
{
|
113
115
|
header: () => "Status",
|
114
116
|
accessorKey: "status",
|
115
|
-
cell: ({ cell:
|
117
|
+
cell: ({ cell: t, row: e }) => g(G, { row: e, data: t.getValue() })
|
116
118
|
},
|
117
119
|
{
|
118
120
|
header: () => "Transaction At",
|
@@ -134,75 +136,73 @@ const G = /* @__PURE__ */ p({
|
|
134
136
|
accessorKey: "payout"
|
135
137
|
}
|
136
138
|
];
|
137
|
-
return (
|
138
|
-
const
|
139
|
-
return _(), A(
|
139
|
+
return (t, e) => {
|
140
|
+
const w = T("FmTable");
|
141
|
+
return _(), A(w, {
|
140
142
|
modelValue: d.value,
|
141
143
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => d.value = l),
|
142
144
|
"column-defs": o,
|
143
|
-
"row-data":
|
144
|
-
loading:
|
145
|
-
onRowClick: e[1] || (e[1] = (l) => c("row-click",
|
145
|
+
"row-data": n.data,
|
146
|
+
loading: n.loading,
|
147
|
+
onRowClick: e[1] || (e[1] = (l) => c("row-click", n.data.at(l.index)))
|
146
148
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
147
149
|
};
|
148
150
|
}
|
149
|
-
}), Q = { class: "flex justify-between mb-6 items-center" }, H = { class: "flex space-x-4" }, W = { class: "flex space-x-4" },
|
151
|
+
}), Q = { class: "flex justify-between mb-6 items-center" }, H = { class: "flex space-x-4" }, W = { class: "flex space-x-4" }, de = /* @__PURE__ */ p({
|
150
152
|
__name: "Transaction",
|
151
153
|
setup(i) {
|
152
|
-
const { dateRange: a, searchKey:
|
154
|
+
const { dateRange: a, searchKey: n } = B({
|
153
155
|
searchKey: "",
|
154
156
|
dateRange: {
|
155
157
|
startDate: F().startOf("day").toISOString(),
|
156
158
|
endDate: F().endOf("day").toISOString()
|
157
159
|
}
|
158
|
-
}), { isLoading: c, startAsyncCall: d } =
|
159
|
-
$();
|
160
|
-
const o = S([]), n = S([]);
|
160
|
+
}), { isLoading: c, startAsyncCall: d } = C(!0), o = S([]), t = S([]);
|
161
161
|
async function e() {
|
162
162
|
await d(async () => {
|
163
163
|
const { startDate: f, endDate: s } = a.value, u = await E.readTransactions({
|
164
164
|
start: f,
|
165
165
|
end: s
|
166
166
|
});
|
167
|
-
if (o.value =
|
168
|
-
var
|
169
|
-
|
167
|
+
if (o.value = k(u), t.value = o.value, n.value > "") {
|
168
|
+
var x = new RegExp(n.value, "i");
|
169
|
+
t.value = o.value.filter((m) => {
|
170
170
|
const D = JSON.stringify(m);
|
171
|
-
return
|
171
|
+
return x.test(D);
|
172
172
|
});
|
173
173
|
}
|
174
174
|
});
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function w() {
|
177
177
|
e();
|
178
178
|
}
|
179
|
-
|
179
|
+
V(w);
|
180
180
|
let l;
|
181
|
-
return
|
181
|
+
return K(n, async () => {
|
182
182
|
l && clearTimeout(l), l = setTimeout(() => {
|
183
|
-
var f = new RegExp(
|
184
|
-
|
183
|
+
var f = new RegExp(n.value, "i");
|
184
|
+
t.value = o.value.filter((s) => {
|
185
185
|
const u = JSON.stringify(s);
|
186
186
|
return f.test(u);
|
187
187
|
});
|
188
188
|
}, 700);
|
189
189
|
}), (f, s) => {
|
190
|
-
const u =
|
190
|
+
const u = T("FmSearch"), x = T("FmDateRangePicker");
|
191
191
|
return _(), A(M, {
|
192
192
|
title: "Transactions",
|
193
193
|
loading: r(c)
|
194
194
|
}, {
|
195
195
|
default: I(() => [
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
"model-value": r(
|
200
|
-
"onUpdate:modelValue": s[0] || (s[0] = (m) => N(
|
196
|
+
y("div", Q, [
|
197
|
+
y("div", H, [
|
198
|
+
h(u, {
|
199
|
+
"model-value": r(n),
|
200
|
+
"onUpdate:modelValue": s[0] || (s[0] = (m) => N(n) ? n.value = m : null),
|
201
201
|
class: "mr-8",
|
202
202
|
label: "Search",
|
203
203
|
placeholder: "Search Transactions ..."
|
204
204
|
}, null, 8, ["model-value"]),
|
205
|
-
|
205
|
+
h(x, {
|
206
206
|
modelValue: r(a),
|
207
207
|
"onUpdate:modelValue": [
|
208
208
|
s[1] || (s[1] = (m) => N(a) ? a.value = m : null),
|
@@ -212,8 +212,8 @@ const G = /* @__PURE__ */ p({
|
|
212
212
|
"show-predefined-range": ""
|
213
213
|
}, null, 8, ["modelValue"])
|
214
214
|
]),
|
215
|
-
|
216
|
-
|
215
|
+
y("div", W, [
|
216
|
+
h(U, {
|
217
217
|
button: {
|
218
218
|
appendIcon: "file_download",
|
219
219
|
variant: "primary",
|
@@ -228,9 +228,9 @@ const G = /* @__PURE__ */ p({
|
|
228
228
|
}, null, 8, ["handler"])
|
229
229
|
])
|
230
230
|
]),
|
231
|
-
|
231
|
+
h(z, {
|
232
232
|
loading: r(c),
|
233
|
-
data:
|
233
|
+
data: t.value
|
234
234
|
}, null, 8, ["loading", "data"])
|
235
235
|
]),
|
236
236
|
_: 1
|
@@ -239,5 +239,5 @@ const G = /* @__PURE__ */ p({
|
|
239
239
|
}
|
240
240
|
});
|
241
241
|
export {
|
242
|
-
|
242
|
+
de as default
|
243
243
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as _, resolveComponent as T, openBlock as f, createBlock as N, normalizeClass as k, withCtx as R, createElementVNode as y, toDisplayString as K, createElementBlock as D, unref as o, ref as A, h as x, onMounted as V, watch as E, createVNode as p, isRef as F } from "vue";
|
2
|
-
import { t as I, a as C } from "./transaction-
|
3
|
-
import { e as S, u as P } from "./index-
|
2
|
+
import { t as I, a as C } from "./transaction-B5QUg556.js";
|
3
|
+
import { e as S, u as P } from "./index-_qikPh5K.js";
|
4
4
|
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
5
5
|
import "./dinero-CIVmXLL-.js";
|
6
6
|
import { h as b } from "./moment-h96o7c8I.js";
|
7
|
-
import { g as L, a as B } from "./assets-
|
7
|
+
import { g as L, a as B } from "./assets-BmFExmpA.js";
|
8
8
|
import { useCoreStore as M } from "@feedmepos/mf-common";
|
9
9
|
import { _ as U } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
10
|
-
import { u as G } from "./index-
|
10
|
+
import { u as G } from "./index-Bvb4T6xz.js";
|
11
11
|
import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
12
|
import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
13
13
|
const J = /* @__PURE__ */ _({
|
package/dist/api/index.d.ts
CHANGED
@@ -37,6 +37,7 @@ type TransformFunctions<T> = {
|
|
37
37
|
export declare function localWorkbookAndDownload<T extends Object>(data: T[], options?: {
|
38
38
|
transformers?: TransformFunctions<T>;
|
39
39
|
exclude?: (keyof T)[];
|
40
|
+
rename?: Partial<Record<keyof T, string>>;
|
40
41
|
filename?: string;
|
41
42
|
}): void;
|
42
43
|
export declare function getWorkbookAndDownload(response: AxiosResponse<WorkBook>, filename: string): void;
|
package/dist/app.js
CHANGED
@@ -9,13 +9,13 @@ const f = [
|
|
9
9
|
meta: {
|
10
10
|
sidebarDisplay: "Payout Accounts"
|
11
11
|
},
|
12
|
-
component: () => import("./PayoutAccount-
|
12
|
+
component: () => import("./PayoutAccount-BjGdteR8.js")
|
13
13
|
},
|
14
14
|
{
|
15
15
|
path: "/admin/payout-accounts/:accountId",
|
16
16
|
name: "mf-payment-admin.payout-account-settings",
|
17
17
|
props: !0,
|
18
|
-
component: () => import("./PayoutAccountSetting-
|
18
|
+
component: () => import("./PayoutAccountSetting-DsqjVlIu.js")
|
19
19
|
},
|
20
20
|
{
|
21
21
|
path: "/admin/transaction",
|
@@ -23,7 +23,7 @@ const f = [
|
|
23
23
|
meta: {
|
24
24
|
sidebarDisplay: "Transactions"
|
25
25
|
},
|
26
|
-
component: () => import("./Transaction-
|
26
|
+
component: () => import("./Transaction-60yViCMI.js")
|
27
27
|
},
|
28
28
|
{
|
29
29
|
path: "/admin/settlement",
|
@@ -31,13 +31,13 @@ const f = [
|
|
31
31
|
meta: {
|
32
32
|
sidebarDisplay: "Settlements"
|
33
33
|
},
|
34
|
-
component: () => import("./Settlement-
|
34
|
+
component: () => import("./Settlement-DTE8p3LA.js")
|
35
35
|
},
|
36
36
|
{
|
37
37
|
path: "/admin/settlement/:settlementId",
|
38
38
|
name: "mf-payment-admin.settlement-transaction",
|
39
39
|
props: !0,
|
40
|
-
component: () => import("./SettlementTransactions-
|
40
|
+
component: () => import("./SettlementTransactions-C4tIk6nO.js")
|
41
41
|
},
|
42
42
|
{
|
43
43
|
path: "/admin/terminal",
|
@@ -45,13 +45,13 @@ const f = [
|
|
45
45
|
meta: {
|
46
46
|
sidebarDisplay: "Terminals"
|
47
47
|
},
|
48
|
-
component: () => import("./Terminal-
|
48
|
+
component: () => import("./Terminal-C4gOl3zs.js")
|
49
49
|
},
|
50
50
|
{
|
51
51
|
path: "/admin/terminal/:terminalId",
|
52
52
|
name: "mf-payment-admin.terminal-setting",
|
53
53
|
props: !0,
|
54
|
-
component: () => import("./TerminalSetting-
|
54
|
+
component: () => import("./TerminalSetting-DC9NBozT.js")
|
55
55
|
},
|
56
56
|
{
|
57
57
|
path: "/admin/terminal-transaction",
|
@@ -59,7 +59,7 @@ const f = [
|
|
59
59
|
meta: {
|
60
60
|
sidebarDisplay: "Terminal Transactions"
|
61
61
|
},
|
62
|
-
component: () => import("./TerminalTransaction-
|
62
|
+
component: () => import("./TerminalTransaction-CCdbfxx0.js")
|
63
63
|
}
|
64
64
|
], y = [
|
65
65
|
{
|
@@ -69,7 +69,7 @@ const f = [
|
|
69
69
|
{
|
70
70
|
path: "/payout-account",
|
71
71
|
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-CdKAjUed.js"),
|
73
73
|
meta: {
|
74
74
|
sidebarDisplay: "Payout Accounts"
|
75
75
|
}
|
@@ -77,7 +77,7 @@ const f = [
|
|
77
77
|
{
|
78
78
|
path: "/transaction",
|
79
79
|
name: "mf-payment-transaction",
|
80
|
-
component: () => import("./Transaction-
|
80
|
+
component: () => import("./Transaction-CoCZaBfu.js"),
|
81
81
|
meta: {
|
82
82
|
sidebarDisplay: "Transactions"
|
83
83
|
}
|
@@ -85,7 +85,7 @@ const f = [
|
|
85
85
|
{
|
86
86
|
path: "/settlement",
|
87
87
|
name: "mf-payment-settlement",
|
88
|
-
component: () => import("./Settlement-
|
88
|
+
component: () => import("./Settlement-CY0-gXn5.js"),
|
89
89
|
meta: {
|
90
90
|
sidebarDisplay: "Settlements"
|
91
91
|
}
|
@@ -94,7 +94,7 @@ const f = [
|
|
94
94
|
path: "/settlement/:settlementId",
|
95
95
|
name: "mf-payment-settlement-transaction",
|
96
96
|
props: !0,
|
97
|
-
component: () => import("./SettlementTransactions-
|
97
|
+
component: () => import("./SettlementTransactions-BJlBWR1G.js")
|
98
98
|
},
|
99
99
|
{
|
100
100
|
path: "/terminal-tranasction",
|
@@ -102,7 +102,7 @@ const f = [
|
|
102
102
|
meta: {
|
103
103
|
sidebarDisplay: "Terminal Transactions"
|
104
104
|
},
|
105
|
-
component: () => import("./TerminalTransaction-
|
105
|
+
component: () => import("./TerminalTransaction-BUT01dUv.js")
|
106
106
|
}
|
107
107
|
], A = P("iframe", () => {
|
108
108
|
const o = {
|