@feedmepos/mf-payment 1.5.83-dev → 1.5.86-dev

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.
Files changed (41) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BuA5le7k.js → Actions.vue_vue_type_script_setup_true_lang-DPL1FQ0w.js} +1 -1
  2. package/dist/{Chargeback-Cvw7puPc.js → Chargeback-DLomR6kq.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Z0HBMZe9.js → DocumentViewer.vue_vue_type_script_setup_true_lang-PzlmfuxB.js} +1 -1
  4. package/dist/{OnboardForm-CfXpCXNP.js → OnboardForm-B8MWcDpY.js} +5 -5
  5. package/dist/{OnboardForm-CwEbNwbk.js → OnboardForm-CA2KRT-T.js} +5 -5
  6. package/dist/{OnboardSubmission-BDUmmZxi.js → OnboardSubmission-B9zUJptp.js} +5 -5
  7. package/dist/{OnboardSubmission-BWrbfjYw.js → OnboardSubmission-Ckz2mXQM.js} +2 -2
  8. package/dist/{PayoutAccount-B3LZg_Vo.js → PayoutAccount-BbJu4kCT.js} +5 -5
  9. package/dist/{PayoutAccount-DsEvMC8o.js → PayoutAccount-MDXEX7Th.js} +5 -5
  10. package/dist/{PayoutAccountSetting-Ds2T9w9a.js → PayoutAccountSetting-BsdJZy14.js} +6 -6
  11. package/dist/{Restaurant-D4TH0GN2.js → Restaurant-BK2rGiG3.js} +4 -4
  12. package/dist/{RestaurantSetting-DMj5_4KI.js → RestaurantSetting-CPkQa84x.js} +3 -3
  13. package/dist/{Settlement-ChiMTDFe.js → Settlement-DN-ekJpR.js} +4 -4
  14. package/dist/{Settlement-BriVs7yc.js → Settlement-DPnh67F5.js} +50 -40
  15. package/dist/{SettlementTransactions-JDoTepUq.js → SettlementTransactions-CFYPs-Sq.js} +4 -4
  16. package/dist/{SettlementTransactions-Cb3vVQBD.js → SettlementTransactions-Hm5WNl4C.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-C0UxbJ1-.js → Status.vue_vue_type_script_setup_true_lang-CoBJ_zAq.js} +1 -1
  18. package/dist/{Terminal-UiefGCWM.js → Terminal-VNireoeV.js} +5 -5
  19. package/dist/{TerminalSetting-DjrdUwQl.js → TerminalSetting-BIoMNc91.js} +4 -4
  20. package/dist/{Transaction-DdsRqL1Y.js → Transaction-CQk_2uP_.js} +10 -10
  21. package/dist/{Transaction-DSX4_3jx.js → Transaction-Ce3iHoTb.js} +6 -6
  22. package/dist/{TransactionOld-D5kcAyC-.js → TransactionOld-D1XIlL3D.js} +7 -7
  23. package/dist/api/settlement/index.d.ts +4 -0
  24. package/dist/{app-BvSUydSO.js → app-Dx3gd4xN.js} +2291 -1820
  25. package/dist/app.js +1 -1
  26. package/dist/{assets-DuKyfCJ3.js → assets-aA5fBa2q.js} +1 -1
  27. package/dist/{grafana-CclnHvAt.js → grafana-DoTVAyHa.js} +1 -1
  28. package/dist/{index-D4DswXsl.js → index-BSnBNUUm.js} +46 -35
  29. package/dist/{index-CifiaKmu.js → index-Ba3zQjUN.js} +1 -1
  30. package/dist/{index-DY3F0uPq.js → index-Bz9vctSG.js} +1 -1
  31. package/dist/{index-fa5FwEIO.js → index-D-EGTeWt.js} +2 -2
  32. package/dist/{index-B7YxJ8yc.js → index-DIy3LgyK.js} +1 -1
  33. package/dist/{index-C6a-bg3p.js → index-DyJJua-G.js} +1 -1
  34. package/dist/{index-zG-1IYz-.js → index-igz1L_A7.js} +1 -1
  35. package/dist/{index-3vSe7oxw.js → index-n-c7UdM0.js} +1 -1
  36. package/dist/{index-ByVuTOD6.js → index-w2SlkBHa.js} +1 -1
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-D5c1x4CC.js → index.vue_vue_type_script_setup_true_lang-qSFHg6rF.js} +1 -1
  38. package/dist/package.json +2 -2
  39. package/dist/{payout-account-B24fgdEA.js → payout-account-D8fb-n_N.js} +3 -3
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +2 -2
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as a, i as e, r as i } from "./app-BvSUydSO.js";
1
+ import { b as a, i as e, r as i } from "./app-Dx3gd4xN.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  import "vue";
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { p as Q } from "./index-CifiaKmu.js";
1
+ import { p as Q } from "./index-Ba3zQjUN.js";
2
2
  import { d as w } from "./dinero-CIVmXLL-.js";
3
3
  import { h as V } from "./moment-h96o7c8I.js";
4
4
  import { defineComponent as c, resolveComponent as R, openBlock as l, createBlock as L, normalizeClass as T, withCtx as z, createElementVNode as p, toDisplayString as r } from "vue";
@@ -1,4 +1,4 @@
1
- import { e as c } from "./index-CifiaKmu.js";
1
+ import { e as c } from "./index-Ba3zQjUN.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as n } from "./moment-h96o7c8I.js";
4
4
  const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (o, r, t) => ({
@@ -1,36 +1,36 @@
1
- import { g as r, c as i, b as m, d as l, l as c, f as d, h as y } from "./index-CifiaKmu.js";
2
- import { h as o } from "./moment-h96o7c8I.js";
1
+ import { g as o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-Ba3zQjUN.js";
2
+ import { h as a } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
- function* p(t, a) {
5
- const e = t[Symbol.iterator](), s = e.next();
6
- if (!s.done) {
7
- yield s.value;
4
+ function* p(t, r) {
5
+ const e = t[Symbol.iterator](), i = e.next();
6
+ if (!i.done) {
7
+ yield i.value;
8
8
  for (const n of e)
9
- yield a, yield n;
9
+ yield r, yield n;
10
10
  }
11
11
  }
12
- const S = {
12
+ const g = {
13
13
  async updateRemark(t) {
14
- return r(
15
- await m().put("/settlements/remark", t)
14
+ return o(
15
+ await s().put("/settlements/remark", t)
16
16
  );
17
17
  },
18
18
  async readByDate(t) {
19
- return r(
20
- await m().get("/settlements", {
19
+ return o(
20
+ await s().get("/settlements", {
21
21
  params: t
22
22
  })
23
23
  );
24
24
  },
25
25
  async downloadBankInstructionFile(t) {
26
- const a = "7161151059";
26
+ const r = "7161151059";
27
27
  if (t.length === 0)
28
28
  throw Error("no settlement for export");
29
29
  const e = t.map((n) => ({
30
30
  productCode: "P2A",
31
- settlementDate: o().format("DDMMYYYY"),
31
+ settlementDate: a().format("DDMMYYYY"),
32
32
  myRefNo: "",
33
- companyAccNo: a,
33
+ companyAccNo: r,
34
34
  amount: f(n.totalPayout).toUnit().toString(),
35
35
  currency: t[0].totalPayout.currency,
36
36
  proxyType: "",
@@ -43,7 +43,7 @@ const S = {
43
43
  pf_payment: "",
44
44
  notifyMethod: "",
45
45
  emailAddress: ""
46
- })), s = new Blob(
46
+ })), i = new Blob(
47
47
  Array.from(
48
48
  p(
49
49
  e.map(
@@ -57,13 +57,13 @@ const S = {
57
57
  type: "text/plain;charset=utf-8"
58
58
  }
59
59
  );
60
- return y(s, "duitnow_bulk_transfer.txt");
60
+ return y(i, "duitnow_bulk_transfer.txt");
61
61
  },
62
- async downloadSummaryReport(t, a) {
62
+ async downloadSummaryReport(t, r) {
63
63
  return c(
64
64
  t.map((e) => d(e)),
65
65
  {
66
- filename: `summary-report-${a.start}-${a.end}.xlsx`,
66
+ filename: `summary-report-${r.start}-${r.end}.xlsx`,
67
67
  exclude: [
68
68
  "beneficiaryBank.swiftCode",
69
69
  "beneficiaryBank.holderName",
@@ -86,7 +86,7 @@ const S = {
86
86
  "store.id": "store"
87
87
  },
88
88
  transformers: {
89
- createdAt: (e) => o(e).format("YYYY-MM-DD"),
89
+ createdAt: (e) => a(e).format("YYYY-MM-DD"),
90
90
  "totalAmount.amount": (e) => e / 100,
91
91
  "totalFee.amount": (e) => e / 100,
92
92
  "totalPayout.amount": (e) => e / 100
@@ -96,10 +96,21 @@ const S = {
96
96
  },
97
97
  async downloadSettlementReport(t) {
98
98
  return l(
99
- await m().get("/settlements/audit/v2", {
99
+ await s().get("/settlements/audit/v2", {
100
100
  params: {
101
- start: o(t.start).startOf("day").toISOString(),
102
- end: o(t.end).endOf("day").toISOString()
101
+ start: a(t.start).startOf("day").toISOString(),
102
+ end: a(t.end).endOf("day").toISOString()
103
+ }
104
+ }),
105
+ `settlement-report-${t.start}-${t.end}.xlsx`
106
+ );
107
+ },
108
+ async downloadSettlementReportV3(t) {
109
+ return l(
110
+ await s().get("/settlements/audit/v3", {
111
+ params: {
112
+ start: a(t.start).startOf("day").toISOString(),
113
+ end: a(t.end).endOf("day").toISOString()
103
114
  }
104
115
  }),
105
116
  `settlement-report-${t.start}-${t.end}.xlsx`
@@ -107,10 +118,10 @@ const S = {
107
118
  },
108
119
  async downloadBusinessSettlementReport(t) {
109
120
  return l(
110
- await i().get("/settlements/report", {
121
+ await m().get("/settlements/report", {
111
122
  params: {
112
- start: o(t.start).startOf("day").toISOString(),
113
- end: o(t.end).endOf("day").toISOString(),
123
+ start: a(t.start).startOf("day").toISOString(),
124
+ end: a(t.end).endOf("day").toISOString(),
114
125
  event: t.event,
115
126
  id: t.id
116
127
  }
@@ -119,30 +130,30 @@ const S = {
119
130
  );
120
131
  },
121
132
  async readById(t) {
122
- return r(
123
- await m().get(`/settlements/${t}`)
133
+ return o(
134
+ await s().get(`/settlements/${t}`)
124
135
  );
125
136
  },
126
137
  async readBusinessSettlementById(t) {
127
- return r(
128
- await i().get(`/settlements/${t}`)
138
+ return o(
139
+ await m().get(`/settlements/${t}`)
129
140
  );
130
141
  },
131
142
  async readBusinessSettlements(t) {
132
- return r(
133
- await i().get("/settlements", {
143
+ return o(
144
+ await m().get("/settlements", {
134
145
  params: t
135
146
  })
136
147
  );
137
148
  },
138
149
  async readBusinessRMSSettlements(t) {
139
- return r(
140
- await i().get("/settlements/rms", {
150
+ return o(
151
+ await m().get("/settlements/rms", {
141
152
  params: t
142
153
  })
143
154
  );
144
155
  }
145
156
  };
146
157
  export {
147
- S as s
158
+ g as s
148
159
  };
@@ -1,4 +1,4 @@
1
- import { c as H, a as Iv, g as Av } from "./app-BvSUydSO.js";
1
+ import { c as H, a as Iv, g as Av } from "./app-Dx3gd4xN.js";
2
2
  import { useCoreStore as Tu } from "@feedmepos/mf-common";
3
3
  import { ref as pv } from "vue";
4
4
  var eh = {}, Hd = {}, F = {}, Vm = {}, p_ = {}, S_ = {}, hc = {};
@@ -1,4 +1,4 @@
1
- import { g as n, b as e, a as o, d as m, l, c as i, r as f } from "./index-CifiaKmu.js";
1
+ import { g as n, b as e, a as o, d as m, l, c as i, r as f } from "./index-Ba3zQjUN.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -1,6 +1,6 @@
1
- import { g as n, b as a, o as u, a as m } from "./index-CifiaKmu.js";
1
+ import { g as n, b as a, o as u, a as m } from "./index-Ba3zQjUN.js";
2
2
  import { h as b } from "./moment-h96o7c8I.js";
3
- import { d } from "./index-zG-1IYz-.js";
3
+ import { d } from "./index-igz1L_A7.js";
4
4
  const w = {
5
5
  async read(s) {
6
6
  return m(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-CifiaKmu.js";
1
+ import { b as r, g as e } from "./index-Ba3zQjUN.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, c as u, a as e } from "./index-CifiaKmu.js";
1
+ import { g as n, b as s, c as u, a as e } from "./index-Ba3zQjUN.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { b as r, c as n } from "./index-CifiaKmu.js";
1
+ import { b as r, c as n } from "./index-Ba3zQjUN.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const a = (await n().post("/document/presign", {
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-CifiaKmu.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-Ba3zQjUN.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { g as y } from "./app-BvSUydSO.js";
3
+ import { g as y } from "./app-Dx3gd4xN.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, ref as r, resolveComponent as f, openBlock as g, createBlock as S, withCtx as z, createElementVNode as s, normalizeStyle as j, createElementBlock as B, Fragment as N, renderList as E, createVNode as c, computed as _, watch as I, onMounted as O, unref as C, toDisplayString as D, createCommentVNode as R, nextTick as G, normalizeClass as H } from "vue";
2
- import { u as J } from "./index-CifiaKmu.js";
2
+ import { u as J } from "./index-Ba3zQjUN.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const K = ["id"], L = /* @__PURE__ */ U({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.83-dev",
3
+ "version": "1.5.86-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "@casl/ability": "^3.2.0",
38
38
  "@feedmepos/core": "^2.6.0",
39
- "@feedmepos/hrm-permission": "1.0.6-dev",
39
+ "@feedmepos/hrm-permission": "1.0.6",
40
40
  "@feedmepos/mf-common": "^1.26.8",
41
41
  "@feedmepos/mf-financing": "0.0.24-dev",
42
42
  "@feedmepos/payment-entity": "0.1.80",
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-CifiaKmu.js";
2
- import { g as it, c as at, _ as ut } from "./app-BvSUydSO.js";
1
+ import { p as E, B as st } from "./index-Ba3zQjUN.js";
2
+ import { g as it, c as at, _ as ut } from "./app-Dx3gd4xN.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-zG-1IYz-.js";
4
+ import { d as H } from "./index-igz1L_A7.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {