@feedmepos/mf-payment 1.0.17 → 1.0.18-beta.1
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/{PayoutAccount-B4_FlpNy.js → PayoutAccount-DCq9zJ7I.js} +4 -3
- package/dist/{PayoutAccount-C1F4nzhY.js → PayoutAccount-Dlrre2MV.js} +83 -115
- package/dist/PayoutAccountSetting-D6Scsqvm.js +426 -0
- package/dist/{Restaurant-TCSbQjCj.js → Restaurant-AoDzEhKi.js} +4 -4
- package/dist/{RestaurantSetting-D_dNcxQd.js → RestaurantSetting-CAQfJwaq.js} +137 -115
- package/dist/{Settlement-BQe2JW-Q.js → Settlement-anAN-1YR.js} +3 -3
- package/dist/Settlement-kfM1jLO-.js +444 -0
- package/dist/{SettlementTransactions-DD6wLd4W.js → SettlementTransactions-IhEM3Qtp.js} +4 -4
- package/dist/{SettlementTransactions-9sVg8_eQ.js → SettlementTransactions-dVE594dr.js} +4 -4
- package/dist/Terminal-C0Irg7I_.js +435 -0
- package/dist/{TerminalSetting-CNjiW8AS.js → TerminalSetting-mMj1OSGc.js} +43 -41
- package/dist/{TerminalTransaction-BHdUR8kU.js → TerminalTransaction-2Oe5b_rm.js} +205 -194
- package/dist/TerminalTransaction-Coth2MwA.js +269 -0
- package/dist/Transaction-BbbVDMIm.js +247 -0
- package/dist/{Transaction-Sq0Vy8K5.js → Transaction-ChE2VgSa.js} +6 -6
- package/dist/{TransactionOld-DgFEZ8lO.js → TransactionOld-T8CKBB6U.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js → TransactionTable.vue_vue_type_script_setup_true_lang-CoPiWynn.js} +2 -2
- package/dist/api/index.d.ts +1 -1
- package/dist/api/settlement/index.d.ts +5 -1
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -2
- package/dist/{app-DSs9frsP.js → app-B36bwKcX.js} +145 -145
- package/dist/app.js +1 -1
- package/dist/{assets-isbnAWcO.js → assets-fxpnHIZr.js} +1 -1
- package/dist/grafana-BFQCDk-V.js +54 -0
- package/dist/index-9a-RyWYf.js +52 -0
- package/dist/{index-M-Xwbigf.js → index-C2q2ptf8.js} +1 -1
- package/dist/{index-CRJ6lKaL.js → index-CC8HNMje.js} +2 -2
- package/dist/{index-zuIHTzhv.js → index-CEJAjyRa.js} +1 -1
- package/dist/{index-CMfikq5P.js → index-Cj90pU-C.js} +27 -20
- package/dist/{index-_cvebzIU.js → index-DueuWuxx.js} +1 -1
- package/dist/{index-C-YBzOUs.js → index-ZMBnoQxd.js} +31 -23
- package/dist/{index.vue_vue_type_script_setup_true_lang-atP7HnX3.js → index.vue_vue_type_script_setup_true_lang-PfAufXp3.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DcBR5HoD.js → payout-account-D-LZ6-Lb.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{transaction-3qMvkl2b.js → transaction-5dZS6JFA.js} +21 -12
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
- package/package.json +2 -2
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js +0 -110
- package/dist/PayoutAccountSetting-BEw1XNuX.js +0 -758
- package/dist/Settlement-DTA0SdZc.js +0 -145
- package/dist/Terminal-Dd2OGvH_.js +0 -404
- package/dist/TerminalTransaction-BDye71lK.js +0 -819
- package/dist/Transaction-EmgoD2xm.js +0 -145
- package/dist/grafana-Bf4L47IF.js +0 -49
- package/dist/index-B7mrn8cQ.js +0 -47
- package/dist/index-DuemQbuN.js +0 -28
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,145 +0,0 @@
|
|
1
|
-
import { defineComponent as Y, ref as E, onMounted as b, watch as T, resolveComponent as y, openBlock as w, createBlock as D, withCtx as x, createElementVNode as _, createVNode as n, unref as o, isRef as m } from "vue";
|
2
|
-
import { t as V, a as F } from "./transaction-3qMvkl2b.js";
|
3
|
-
import { _ as d, u as I } from "./index-CRJ6lKaL.js";
|
4
|
-
import { _ as M } from "./TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js";
|
5
|
-
import { h as g } from "./moment-h96o7c8I.js";
|
6
|
-
import { useCoreStore as O } from "@feedmepos/mf-common";
|
7
|
-
import { _ as P } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
|
-
import { u as $ } from "./index-_cvebzIU.js";
|
9
|
-
import { _ as k } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
10
|
-
import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
11
|
-
import { _ as B } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
12
|
-
import { _ as J } from "./PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js";
|
13
|
-
const K = { class: "flex justify-between mb-6 items-center" }, j = { class: "flex space-x-8 items-start" }, q = { class: "flex space-x-4 self-center" }, G = { class: "flex space-x-12 mb-6" }, re = /* @__PURE__ */ Y({
|
14
|
-
__name: "Transaction",
|
15
|
-
setup(Q) {
|
16
|
-
const { dateRange: r, searchKey: l, accountId: s, status: t } = $({
|
17
|
-
accountId: "",
|
18
|
-
searchKey: "",
|
19
|
-
status: [d.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
20
|
-
dateRange: {
|
21
|
-
startDate: g().startOf("day").format("YYYY-MM-DD"),
|
22
|
-
endDate: g().endOf("day").format("YYYY-MM-DD")
|
23
|
-
}
|
24
|
-
}), { isLoading: C, startAsyncCall: h } = I(!0), { currentBusiness: R } = O(), u = E([]), c = E([]);
|
25
|
-
async function S() {
|
26
|
-
s.value && await h(async () => {
|
27
|
-
const { startDate: f, endDate: e } = r.value, i = await V.readAccountTransactions({
|
28
|
-
status: t.value,
|
29
|
-
accountId: s.value,
|
30
|
-
start: f,
|
31
|
-
end: e
|
32
|
-
});
|
33
|
-
if (u.value = F(i), c.value = u.value, l.value > "") {
|
34
|
-
var v = new RegExp(l.value, "i");
|
35
|
-
c.value = u.value.filter((a) => {
|
36
|
-
const U = JSON.stringify(a);
|
37
|
-
return v.test(U);
|
38
|
-
});
|
39
|
-
}
|
40
|
-
});
|
41
|
-
}
|
42
|
-
function A() {
|
43
|
-
S();
|
44
|
-
}
|
45
|
-
b(A), T(R, A), T([s, r, t], S);
|
46
|
-
let p;
|
47
|
-
T(l, async () => {
|
48
|
-
p && clearTimeout(p), p = setTimeout(() => {
|
49
|
-
var f = new RegExp(l.value, "i");
|
50
|
-
c.value = u.value.filter((e) => {
|
51
|
-
const i = JSON.stringify(e);
|
52
|
-
return f.test(i);
|
53
|
-
});
|
54
|
-
}, 700);
|
55
|
-
});
|
56
|
-
const N = [
|
57
|
-
{
|
58
|
-
label: "Success",
|
59
|
-
value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
|
60
|
-
},
|
61
|
-
{
|
62
|
-
label: "Refunded",
|
63
|
-
value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
|
64
|
-
},
|
65
|
-
{
|
66
|
-
label: "Process",
|
67
|
-
value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
|
68
|
-
},
|
69
|
-
{
|
70
|
-
label: "Failed",
|
71
|
-
value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
|
72
|
-
}
|
73
|
-
];
|
74
|
-
return (f, e) => {
|
75
|
-
const i = y("FmSearch"), v = y("FmSelect");
|
76
|
-
return w(), D(P, {
|
77
|
-
title: "Online Transactions",
|
78
|
-
description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
|
79
|
-
loading: !1
|
80
|
-
}, {
|
81
|
-
default: x(() => [
|
82
|
-
_("div", K, [
|
83
|
-
_("div", j, [
|
84
|
-
n(i, {
|
85
|
-
"model-value": o(l),
|
86
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) => m(l) ? l.value = a : null),
|
87
|
-
class: "mr-8",
|
88
|
-
label: "Search",
|
89
|
-
placeholder: "Search Transactions ..."
|
90
|
-
}, null, 8, ["model-value"]),
|
91
|
-
n(v, {
|
92
|
-
modelValue: o(t),
|
93
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => m(t) ? t.value = a : null),
|
94
|
-
class: "mr-6 w-[300px]",
|
95
|
-
label: "Status",
|
96
|
-
"label-mark": "required",
|
97
|
-
multiselect: "",
|
98
|
-
items: N
|
99
|
-
}, {
|
100
|
-
"prepend-menu": x(() => [
|
101
|
-
n(L, {
|
102
|
-
modelValue: o(t),
|
103
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => m(t) ? t.value = a : null),
|
104
|
-
items: N
|
105
|
-
}, null, 8, ["modelValue"])
|
106
|
-
]),
|
107
|
-
_: 1
|
108
|
-
}, 8, ["modelValue"])
|
109
|
-
]),
|
110
|
-
_("div", q, [
|
111
|
-
n(k, {
|
112
|
-
button: {
|
113
|
-
appendIcon: "file_download",
|
114
|
-
variant: "primary",
|
115
|
-
label: "Export"
|
116
|
-
},
|
117
|
-
handler: async () => {
|
118
|
-
await o(V).downloadPortalTransactionReport(u.value);
|
119
|
-
}
|
120
|
-
}, null, 8, ["handler"])
|
121
|
-
])
|
122
|
-
]),
|
123
|
-
_("div", G, [
|
124
|
-
n(J, {
|
125
|
-
modelValue: o(s),
|
126
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) => m(s) ? s.value = a : null)
|
127
|
-
}, null, 8, ["modelValue"]),
|
128
|
-
n(B, {
|
129
|
-
modelValue: o(r),
|
130
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) => m(r) ? r.value = a : null)
|
131
|
-
}, null, 8, ["modelValue"])
|
132
|
-
]),
|
133
|
-
n(M, {
|
134
|
-
loading: o(C),
|
135
|
-
data: c.value
|
136
|
-
}, null, 8, ["loading", "data"])
|
137
|
-
]),
|
138
|
-
_: 1
|
139
|
-
});
|
140
|
-
};
|
141
|
-
}
|
142
|
-
});
|
143
|
-
export {
|
144
|
-
re as default
|
145
|
-
};
|
package/dist/grafana-Bf4L47IF.js
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
import { e as p } from "./index-CRJ6lKaL.js";
|
2
|
-
import { useCoreStore as m } from "@feedmepos/mf-common";
|
3
|
-
import { h as i } from "./moment-h96o7c8I.js";
|
4
|
-
const y = "https://grafana.feedme.farm/explore?schemaVersion=1", f = (o, r, s) => ({
|
5
|
-
apq: {
|
6
|
-
datasource: "P214B5B846CF3925F",
|
7
|
-
queries: [
|
8
|
-
{
|
9
|
-
refId: "A",
|
10
|
-
datasource: {
|
11
|
-
type: "tempo",
|
12
|
-
uid: "P214B5B846CF3925F"
|
13
|
-
},
|
14
|
-
queryType: "traceql",
|
15
|
-
limit: 100,
|
16
|
-
tableType: "spans",
|
17
|
-
query: o,
|
18
|
-
spss: 1,
|
19
|
-
step: ""
|
20
|
-
}
|
21
|
-
],
|
22
|
-
range: {
|
23
|
-
from: r,
|
24
|
-
to: s
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}), b = (o, r) => {
|
28
|
-
const t = {
|
29
|
-
"resource.service.name": "payment-backend",
|
30
|
-
"resource.cluster": "production",
|
31
|
-
"resource.namespace": "apps-" + (m().currentCountry.value ?? p.F_COUNTRY.enum.MY).toLowerCase()
|
32
|
-
};
|
33
|
-
o.forEach((e) => {
|
34
|
-
t[`${e.type}.${e.queryKey}`] = e.queryValue;
|
35
|
-
});
|
36
|
-
const c = `{
|
37
|
-
${Object.keys(t).map((e) => `${e}="${t[e]}"`).join("&&")}
|
38
|
-
}`;
|
39
|
-
let n = "now", a = "now-1d";
|
40
|
-
if (r) {
|
41
|
-
const e = +i(r).toDate();
|
42
|
-
a = `${e}`, n = `${e + 24 * 60 * 60 * 1e3}`;
|
43
|
-
}
|
44
|
-
const u = f(c, a, n);
|
45
|
-
return y + `&panes=${encodeURIComponent(JSON.stringify(u))}&orgId=1`;
|
46
|
-
};
|
47
|
-
export {
|
48
|
-
b as g
|
49
|
-
};
|
package/dist/index-B7mrn8cQ.js
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
import { a as s, b as e, g as t, c as r } from "./index-CRJ6lKaL.js";
|
2
|
-
const m = {
|
3
|
-
async create(a) {
|
4
|
-
return s(
|
5
|
-
await e().post("/payments/terminals", a)
|
6
|
-
);
|
7
|
-
},
|
8
|
-
async read(a) {
|
9
|
-
return s(
|
10
|
-
await e().get("/payments/terminals", {
|
11
|
-
params: { ...a }
|
12
|
-
})
|
13
|
-
);
|
14
|
-
},
|
15
|
-
async readById(a) {
|
16
|
-
return t(await e().get(`/payments/terminals/${a}`));
|
17
|
-
},
|
18
|
-
async updateById(a, n) {
|
19
|
-
return t(
|
20
|
-
await e().put(`/payments/terminals/${a}`, n)
|
21
|
-
);
|
22
|
-
},
|
23
|
-
async getBindCode(a) {
|
24
|
-
const { code: n } = t(
|
25
|
-
await e().get(`/payments/terminals/${a}/code`)
|
26
|
-
);
|
27
|
-
return n;
|
28
|
-
},
|
29
|
-
async unbind(a) {
|
30
|
-
return t(
|
31
|
-
await e().delete(`/payments/terminals/${a}/unbind`)
|
32
|
-
);
|
33
|
-
},
|
34
|
-
/**
|
35
|
-
* Relying on the payout account so need pass in the restaurant id from the payout account
|
36
|
-
*/
|
37
|
-
async getTerminals(a) {
|
38
|
-
return t(
|
39
|
-
await e().get(
|
40
|
-
`restaurants/${a}/terminals?deviceType=${r.FdoTerminalDeviceType.Enum.TERMINAL}`
|
41
|
-
)
|
42
|
-
);
|
43
|
-
}
|
44
|
-
};
|
45
|
-
export {
|
46
|
-
m as t
|
47
|
-
};
|
package/dist/index-DuemQbuN.js
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
import { g as e, b as n } from "./index-CRJ6lKaL.js";
|
2
|
-
const r = {
|
3
|
-
async get(a) {
|
4
|
-
return e(
|
5
|
-
await n().get(
|
6
|
-
`restaurants/${a}/payment-gateway`
|
7
|
-
)
|
8
|
-
);
|
9
|
-
},
|
10
|
-
async upsert(a, t) {
|
11
|
-
return e(
|
12
|
-
await n().post(
|
13
|
-
`restaurants/${a}/payment-gateway`,
|
14
|
-
{ data: t }
|
15
|
-
)
|
16
|
-
);
|
17
|
-
},
|
18
|
-
async delete(a, t) {
|
19
|
-
return e(
|
20
|
-
await n().delete(
|
21
|
-
`restaurants/${a}/payment-gateway/${t}`
|
22
|
-
)
|
23
|
-
);
|
24
|
-
}
|
25
|
-
};
|
26
|
-
export {
|
27
|
-
r as p
|
28
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { type Row } from '@feedmepos/ui-library';
|
2
|
-
type __VLS_Props = {
|
3
|
-
row: Row<any>;
|
4
|
-
data: unknown;
|
5
|
-
};
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
|
-
export default _default;
|
@@ -1,81 +0,0 @@
|
|
1
|
-
import { type PropType } from 'vue';
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
3
|
-
payoutAccount: {
|
4
|
-
type: PropType<{
|
5
|
-
enable?: boolean | null | undefined;
|
6
|
-
ref?: any;
|
7
|
-
status: "NEW" | "PENDING" | "APPROVED";
|
8
|
-
_id: string;
|
9
|
-
store: {
|
10
|
-
bank?: {
|
11
|
-
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
|
12
|
-
accountNumber?: string | null | undefined;
|
13
|
-
holderName?: string | null | undefined;
|
14
|
-
name: string;
|
15
|
-
} | null | undefined;
|
16
|
-
ssm?: string | null | undefined;
|
17
|
-
bankStatement?: string | null | undefined;
|
18
|
-
exteriorPhoto?: string | null | undefined;
|
19
|
-
keyPerson?: {
|
20
|
-
name: string;
|
21
|
-
phone: string;
|
22
|
-
email: string;
|
23
|
-
} | null | undefined;
|
24
|
-
id: string;
|
25
|
-
event: "ORDERING" | "MARKETING";
|
26
|
-
};
|
27
|
-
notifyUrl: string;
|
28
|
-
methods: {
|
29
|
-
rate?: {
|
30
|
-
amount: number;
|
31
|
-
precision: number;
|
32
|
-
} | null | undefined;
|
33
|
-
tPlus?: number | null | undefined;
|
34
|
-
issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
|
35
|
-
variant: string;
|
36
|
-
}[];
|
37
|
-
businessId: string;
|
38
|
-
}>;
|
39
|
-
required: true;
|
40
|
-
};
|
41
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
42
|
-
payoutAccount: {
|
43
|
-
type: PropType<{
|
44
|
-
enable?: boolean | null | undefined;
|
45
|
-
ref?: any;
|
46
|
-
status: "NEW" | "PENDING" | "APPROVED";
|
47
|
-
_id: string;
|
48
|
-
store: {
|
49
|
-
bank?: {
|
50
|
-
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
|
51
|
-
accountNumber?: string | null | undefined;
|
52
|
-
holderName?: string | null | undefined;
|
53
|
-
name: string;
|
54
|
-
} | null | undefined;
|
55
|
-
ssm?: string | null | undefined;
|
56
|
-
bankStatement?: string | null | undefined;
|
57
|
-
exteriorPhoto?: string | null | undefined;
|
58
|
-
keyPerson?: {
|
59
|
-
name: string;
|
60
|
-
phone: string;
|
61
|
-
email: string;
|
62
|
-
} | null | undefined;
|
63
|
-
id: string;
|
64
|
-
event: "ORDERING" | "MARKETING";
|
65
|
-
};
|
66
|
-
notifyUrl: string;
|
67
|
-
methods: {
|
68
|
-
rate?: {
|
69
|
-
amount: number;
|
70
|
-
precision: number;
|
71
|
-
} | null | undefined;
|
72
|
-
tPlus?: number | null | undefined;
|
73
|
-
issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
|
74
|
-
variant: string;
|
75
|
-
}[];
|
76
|
-
businessId: string;
|
77
|
-
}>;
|
78
|
-
required: true;
|
79
|
-
};
|
80
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
81
|
-
export default _default;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
type __VLS_Props = {
|
2
|
-
createdAt: string;
|
3
|
-
transactionAt: string;
|
4
|
-
refundedAt: string;
|
5
|
-
};
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
7
|
-
export default _default;
|