@feedmepos/mf-payment 1.1.6 → 1.1.7-beta.3
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-CBGLfBag.js → PayoutAccount-CnTCZExr.js} +5 -5
- package/dist/{PayoutAccount-Bl2-Th-5.js → PayoutAccount-Crwu1h-c.js} +3 -3
- package/dist/{PayoutAccountSetting-DiMwWLwY.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
- package/dist/{Restaurant-CdB7D9zA.js → Restaurant-BF1J35Ic.js} +4 -4
- package/dist/{RestaurantSetting-CQyXjYux.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
- package/dist/Settlement-B-TQCdB4.js +219 -0
- package/dist/{Settlement-7WRCiiQ4.js → Settlement-BPrjfDMN.js} +3 -3
- package/dist/{SettlementTransactions-CymvVBh8.js → SettlementTransactions-C13T6n0z.js} +3 -3
- package/dist/{SettlementTransactions-B1dUvxhz.js → SettlementTransactions-CpRADd8a.js} +20 -16
- package/dist/{Terminal-DRKD8BO1.js → Terminal-DgKJ9zSL.js} +6 -6
- package/dist/TerminalSetting-Boh1fu6s.js +489 -0
- package/dist/{Transaction-DQQI8kOT.js → Transaction-BvvhqS95.js} +52 -47
- package/dist/{Transaction-DcQQ_4ku.js → Transaction-CsAF2AXj.js} +6 -6
- package/dist/{TransactionOld-DJJIQo-i.js → TransactionOld-DsC0R1Qe.js} +5 -5
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-C_3J1G8_.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +7 -3
- package/dist/api/settlement/index.d.ts +1 -1
- package/dist/api/terminal/index.d.ts +4 -0
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-B1ZoKtpx.js → app-D6rd6uvO.js} +392 -388
- package/dist/app.d.ts +4 -0
- package/dist/app.js +1 -1
- package/dist/{assets-ZXvnCE72.js → assets-B41ScDuA.js} +80 -73
- package/dist/{grafana-tSaEG-rZ.js → grafana-CdozbaJn.js} +7 -7
- package/dist/{index-D1dXyrdm.js → index-3u2VZ6Ni.js} +29 -26
- package/dist/{index-DlvE9K3G.js → index-BIObbzAP.js} +9 -1
- package/dist/{index-DEEbas1_.js → index-CCBZtmwy.js} +1 -1
- package/dist/{index-kEMG4SWc.js → index-CEU5ybp0.js} +1 -1
- package/dist/{index-CGBOgV3E.js → index-Cnf4HsQx.js} +1 -1
- package/dist/{index-DQcz6kdU.js → index-D1_hIXoR.js} +813 -813
- package/dist/{index.vue_vue_type_script_setup_true_lang-CwHVO04q.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
- package/dist/model/transaction.d.ts +3 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-BtTgqm7Q.js → payout-account-C80nPFWJ.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
- package/package.json +1 -1
- package/dist/Settlement-BA09mDyG.js +0 -218
- package/dist/TerminalSetting-DUVbknAn.js +0 -389
@@ -1,12 +1,12 @@
|
|
1
|
-
import { e as y } from "./index-
|
1
|
+
import { e as y } from "./index-D1_hIXoR.js";
|
2
2
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
3
3
|
import { h as m } from "./moment-h96o7c8I.js";
|
4
|
-
const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (
|
4
|
+
const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (t, e, o) => ({
|
5
5
|
apq: {
|
6
6
|
datasource: "P998741A58ED2B411",
|
7
7
|
range: {
|
8
8
|
from: e,
|
9
|
-
to:
|
9
|
+
to: o
|
10
10
|
},
|
11
11
|
queries: [
|
12
12
|
{
|
@@ -18,11 +18,11 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
|
|
18
18
|
queryType: "search",
|
19
19
|
service: "payment-backend",
|
20
20
|
limit: 1e3,
|
21
|
-
tags:
|
21
|
+
tags: t.map((r) => `${r.queryKey}=${r.queryValue}`).join(" ")
|
22
22
|
}
|
23
23
|
]
|
24
24
|
}
|
25
|
-
}), g = (
|
25
|
+
}), g = (t, e) => {
|
26
26
|
const r = p().currentCountry.value ?? y.F_COUNTRY.enum.MY, a = [
|
27
27
|
// {
|
28
28
|
// type: "resource",
|
@@ -32,7 +32,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
|
|
32
32
|
{
|
33
33
|
type: "resource",
|
34
34
|
queryKey: "cluster",
|
35
|
-
queryValue: "
|
35
|
+
queryValue: "dev"
|
36
36
|
},
|
37
37
|
{
|
38
38
|
type: "resource",
|
@@ -40,7 +40,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", d = (o, e, t) =
|
|
40
40
|
queryValue: "apps-" + r.toLowerCase()
|
41
41
|
}
|
42
42
|
];
|
43
|
-
a.push(...
|
43
|
+
a.push(...t);
|
44
44
|
let s = "now", n = "now-1d";
|
45
45
|
if (e) {
|
46
46
|
const u = +m(e).add(-3, "hours").toDate();
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { g as r, b as i, j as
|
1
|
+
import { g as r, b as i, e as y, j as f, l as p, k as b, i as u, r as m } from "./index-D1_hIXoR.js";
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
3
|
-
import { d as
|
4
|
-
function*
|
3
|
+
import { d as w } from "./dinero-CIVmXLL-.js";
|
4
|
+
function* S(t, a) {
|
5
5
|
const e = t[Symbol.iterator](), s = e.next();
|
6
6
|
if (!s.done) {
|
7
7
|
yield s.value;
|
8
|
-
for (const
|
9
|
-
yield
|
8
|
+
for (const l of e)
|
9
|
+
yield a, yield l;
|
10
10
|
}
|
11
11
|
}
|
12
|
-
const
|
12
|
+
const D = {
|
13
13
|
async updateRemark(t) {
|
14
14
|
return r(
|
15
15
|
await i().put("/settlements/remark", t)
|
@@ -22,29 +22,32 @@ const S = {
|
|
22
22
|
})
|
23
23
|
);
|
24
24
|
},
|
25
|
-
async downloadBankInstructionFile(t) {
|
26
|
-
const
|
25
|
+
async downloadBankInstructionFile(t, a) {
|
26
|
+
const e = "7161151059";
|
27
|
+
let s = "MYR";
|
28
|
+
t === y.F_COUNTRY.enum.SG && (s = "SGD");
|
29
|
+
const l = a.map((n) => ({
|
27
30
|
productCode: "P2A",
|
28
31
|
settlementDate: o().format("DDMMYYYY"),
|
29
32
|
myRefNo: "",
|
30
|
-
companyAccNo:
|
31
|
-
amount:
|
32
|
-
currency:
|
33
|
+
companyAccNo: e,
|
34
|
+
amount: w(n.totalPayout).toUnit().toString(),
|
35
|
+
currency: s,
|
33
36
|
proxyType: "",
|
34
37
|
transferType: "DFLT",
|
35
|
-
beneficiaryAccountNo:
|
36
|
-
beneficiarySwiftCode:
|
38
|
+
beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
|
39
|
+
beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
|
37
40
|
beneficiaryCountryCode: "",
|
38
41
|
duitNowID: "",
|
39
|
-
recipientReference:
|
42
|
+
recipientReference: n._id,
|
40
43
|
pf_payment: "",
|
41
44
|
notifyMethod: "",
|
42
45
|
emailAddress: ""
|
43
|
-
})),
|
46
|
+
})), c = new Blob(
|
44
47
|
Array.from(
|
45
|
-
|
46
|
-
|
47
|
-
(
|
48
|
+
S(
|
49
|
+
l.map(
|
50
|
+
(n) => Object.values(n).map((d) => d).join("|")
|
48
51
|
),
|
49
52
|
`
|
50
53
|
`
|
@@ -54,13 +57,13 @@ const S = {
|
|
54
57
|
type: "text/plain;charset=utf-8"
|
55
58
|
}
|
56
59
|
);
|
57
|
-
return
|
60
|
+
return f(c, "duitnow_bulk_transfer.txt");
|
58
61
|
},
|
59
|
-
async downloadSummaryReport(t,
|
60
|
-
return
|
61
|
-
t.map((e) =>
|
62
|
+
async downloadSummaryReport(t, a) {
|
63
|
+
return p(
|
64
|
+
t.map((e) => b(e)),
|
62
65
|
{
|
63
|
-
filename: `summary-report-${
|
66
|
+
filename: `summary-report-${a.start}-${a.end}.xlsx`,
|
64
67
|
exclude: [
|
65
68
|
"beneficiaryBank.swiftCode",
|
66
69
|
"beneficiaryBank.holderName",
|
@@ -92,7 +95,7 @@ const S = {
|
|
92
95
|
);
|
93
96
|
},
|
94
97
|
async downloadSettlementReport(t) {
|
95
|
-
return
|
98
|
+
return u(
|
96
99
|
await i().get("/settlements/audit/v2", {
|
97
100
|
params: {
|
98
101
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -103,7 +106,7 @@ const S = {
|
|
103
106
|
);
|
104
107
|
},
|
105
108
|
async downloadRestaurantSettlementReport(t) {
|
106
|
-
return
|
109
|
+
return u(
|
107
110
|
await m().get("/settlements/report", {
|
108
111
|
params: {
|
109
112
|
start: o(t.start).startOf("day").toISOString(),
|
@@ -139,5 +142,5 @@ const S = {
|
|
139
142
|
}
|
140
143
|
};
|
141
144
|
export {
|
142
|
-
|
145
|
+
D as s
|
143
146
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { d as s, b as t, g as a, f as r, h as i } from "./index-
|
1
|
+
import { d as s, b as t, g as a, f as r, h as i } from "./index-D1_hIXoR.js";
|
2
2
|
const y = {
|
3
3
|
async create(e) {
|
4
4
|
return s(
|
@@ -45,6 +45,14 @@ const y = {
|
|
45
45
|
`restaurants/${e}/terminals?deviceType=${i.FdoTerminalDeviceType.Enum.TERMINAL}`
|
46
46
|
)
|
47
47
|
);
|
48
|
+
},
|
49
|
+
async kioskModeRequest(e, n) {
|
50
|
+
return a(
|
51
|
+
await t().post(
|
52
|
+
`/payments/terminals/${e}/kiosk`,
|
53
|
+
n
|
54
|
+
)
|
55
|
+
);
|
48
56
|
}
|
49
57
|
};
|
50
58
|
export {
|