@feedmepos/mf-payment 1.7.0-dev → 1.7.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.
Files changed (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BX2bMjao.js → Actions.vue_vue_type_script_setup_true_lang-CRNNEhdb.js} +1 -1
  2. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CPRdjNud.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DjiSltH9.js} +2 -2
  3. package/dist/{Chargeback-MMmCnSz-.js → Chargeback-CLmIb_z0.js} +5 -5
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DiVfAn4G.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cy-vikjQ.js} +1 -1
  5. package/dist/{OnboardForm-Bz-2E5fr.js → OnboardForm--egFxuAd.js} +5 -5
  6. package/dist/{OnboardForm-DvyEoD0l.js → OnboardForm-DJcR03we.js} +5 -5
  7. package/dist/{OnboardSubmission-DsWvHgAm.js → OnboardSubmission-BaM01HIV.js} +2 -2
  8. package/dist/{OnboardSubmission-mSm_0xxl.js → OnboardSubmission-D5uJWKHh.js} +5 -5
  9. package/dist/{PayoutAccount-BnesOO6f.js → PayoutAccount-CEr0rx4J.js} +5 -5
  10. package/dist/{PayoutAccount-DDxg4ecY.js → PayoutAccount-DYZ2gQGD.js} +5 -5
  11. package/dist/{PayoutAccountSetting-D2zMCl80.js → PayoutAccountSetting-DlF_FPHr.js} +6 -6
  12. package/dist/{Restaurant-DGvP7Csh.js → Restaurant-KGa0xV0K.js} +4 -4
  13. package/dist/{RestaurantSetting-Brne3iti.js → RestaurantSetting-Bg5M-n6p.js} +3 -3
  14. package/dist/{Settlement-CowH0Zk2.js → Settlement-C4q03i6e.js} +87 -86
  15. package/dist/{Settlement-D2TlUSAw.js → Settlement-DAkVWztP.js} +3 -3
  16. package/dist/{SettlementTransactions-CaSEBnSk.js → SettlementTransactions-CsvfmLM_.js} +4 -4
  17. package/dist/{SettlementTransactions-Dls7DVNX.js → SettlementTransactions-XjsIKvXQ.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-BRLsY7E6.js → Status.vue_vue_type_script_setup_true_lang-ExFNksup.js} +1 -1
  19. package/dist/{Terminal-CkGdLWBY.js → Terminal-DkeT7bTc.js} +5 -5
  20. package/dist/{TerminalSetting-Rh5yvzQW.js → TerminalSetting-AnoIOO73.js} +4 -4
  21. package/dist/{Transaction-VqXHPbcx.js → Transaction-BEkrFPHL.js} +9 -9
  22. package/dist/{Transaction-DzxKjZi_.js → Transaction-mo1v6xz1.js} +10 -10
  23. package/dist/{TransactionOld-CHqFMsE8.js → TransactionOld-nzUGTELC.js} +7 -7
  24. package/dist/api/settlement/index.d.ts +6 -0
  25. package/dist/{app-PiirQzeM.js → app-1rw4JLKr.js} +442 -451
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-ByE2qHVM.js → assets-CPEv5xmO.js} +1 -1
  28. package/dist/{grafana-BZFzGv64.js → grafana-fcTmH2tm.js} +1 -1
  29. package/dist/{index-SSlRVsVp.js → index-B0rOAUW-.js} +1 -1
  30. package/dist/{index-Bg4iuklW.js → index-BiKaun0K.js} +1 -1
  31. package/dist/{index-CarXrx98.js → index-CIbvJ5oc.js} +1 -1
  32. package/dist/{index-DZJ_rc-c.js → index-CVs0aN89.js} +50 -37
  33. package/dist/{index-LpnDYp0T.js → index-Ch9pmMdq.js} +1 -1
  34. package/dist/{index-B_WQwGvV.js → index-DTBJopG8.js} +1 -1
  35. package/dist/{index-B5Ht48-A.js → index-DYl43WIP.js} +1 -1
  36. package/dist/{index-fcqPRT7k.js → index-Qmbuelbf.js} +2 -2
  37. package/dist/{index-DASI_ipo.js → index-gbUzsHq5.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-BzI-1UVQ.js → index.vue_vue_type_script_setup_true_lang-Ld8QyF50.js} +1 -1
  39. package/dist/package.json +2 -2
  40. package/dist/{payout-account-B2kRoBqh.js → payout-account-B4W2N8Xm.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/package.json +1 -1
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { y as a, z as e, B as m } from "./app-PiirQzeM.js";
1
+ import { y as a, z as e, B as m } from "./app-1rw4JLKr.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-B5Ht48-A.js";
1
+ import { p as Q } from "./index-DYl43WIP.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-B5Ht48-A.js";
1
+ import { e as c } from "./index-DYl43WIP.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,4 +1,4 @@
1
- import { g as n, b as s, c as u, a as e } from "./index-B5Ht48-A.js";
1
+ import { g as n, b as s, c as u, a as e } from "./index-DYl43WIP.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -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 { v as y } from "./app-PiirQzeM.js";
3
+ import { v as y } from "./app-1rw4JLKr.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { a as s, b as e, g as r } from "./index-B5Ht48-A.js";
1
+ import { a as s, b as e, g as r } from "./index-DYl43WIP.js";
2
2
  const i = {
3
3
  async readRestaurantById(a) {
4
4
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,53 +1,53 @@
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-B5Ht48-A.js";
2
- import { h as a } from "./moment-h96o7c8I.js";
1
+ import { d as l, c as s, g as o, b as i, l as c, f as d, h as y } from "./index-DYl43WIP.js";
2
+ import { h as n } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
- function* p(t, r) {
5
- const e = t[Symbol.iterator](), i = e.next();
6
- if (!i.done) {
7
- yield i.value;
8
- for (const n of e)
9
- yield r, yield n;
4
+ function* p(t, a) {
5
+ const e = t[Symbol.iterator](), m = e.next();
6
+ if (!m.done) {
7
+ yield m.value;
8
+ for (const r of e)
9
+ yield a, yield r;
10
10
  }
11
11
  }
12
12
  const g = {
13
13
  async updateRemark(t) {
14
14
  return o(
15
- await s().put("/settlements/remark", t)
15
+ await i().put("/settlements/remark", t)
16
16
  );
17
17
  },
18
18
  async readByDate(t) {
19
19
  return o(
20
- await s().get("/settlements", {
20
+ await i().get("/settlements", {
21
21
  params: t
22
22
  })
23
23
  );
24
24
  },
25
25
  async downloadBankInstructionFile(t) {
26
- const r = "7161151059";
26
+ const a = "7161151059";
27
27
  if (t.length === 0)
28
28
  throw Error("no settlement for export");
29
- const e = t.map((n) => ({
29
+ const e = t.map((r) => ({
30
30
  productCode: "P2A",
31
- settlementDate: a().format("DDMMYYYY"),
31
+ settlementDate: n().format("DDMMYYYY"),
32
32
  myRefNo: "",
33
- companyAccNo: r,
34
- amount: f(n.totalPayout).toUnit().toString(),
33
+ companyAccNo: a,
34
+ amount: f(r.totalPayout).toUnit().toString(),
35
35
  currency: t[0].totalPayout.currency,
36
36
  proxyType: "",
37
37
  transferType: "DFLT",
38
- beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
39
- beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
38
+ beneficiaryAccountNo: r.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: r.beneficiaryBank.swiftCode,
40
40
  beneficiaryCountryCode: "",
41
41
  duitNowID: "",
42
- recipientReference: n._id,
42
+ recipientReference: r._id,
43
43
  pf_payment: "",
44
44
  notifyMethod: "",
45
45
  emailAddress: ""
46
- })), i = new Blob(
46
+ })), m = new Blob(
47
47
  Array.from(
48
48
  p(
49
49
  e.map(
50
- (n) => Object.values(n).map((u) => u).join("|")
50
+ (r) => Object.values(r).map((u) => u).join("|")
51
51
  ),
52
52
  `
53
53
  `
@@ -57,13 +57,13 @@ const g = {
57
57
  type: "text/plain;charset=utf-8"
58
58
  }
59
59
  );
60
- return y(i, "duitnow_bulk_transfer.txt");
60
+ return y(m, "duitnow_bulk_transfer.txt");
61
61
  },
62
- async downloadSummaryReport(t, r) {
62
+ async downloadSummaryReport(t, a) {
63
63
  return c(
64
64
  t.map((e) => d(e)),
65
65
  {
66
- filename: `summary-report-${r.start}-${r.end}.xlsx`,
66
+ filename: `summary-report-${a.start}-${a.end}.xlsx`,
67
67
  exclude: [
68
68
  "beneficiaryBank.swiftCode",
69
69
  "beneficiaryBank.holderName",
@@ -86,7 +86,7 @@ const g = {
86
86
  "store.id": "store"
87
87
  },
88
88
  transformers: {
89
- createdAt: (e) => a(e).format("YYYY-MM-DD"),
89
+ createdAt: (e) => n(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,10 @@ const g = {
96
96
  },
97
97
  async downloadSettlementReport(t) {
98
98
  return l(
99
- await s().get("/settlements/audit/v2", {
99
+ await i().get("/settlements/audit/v2", {
100
100
  params: {
101
- start: a(t.start).startOf("day").toISOString(),
102
- end: a(t.end).endOf("day").toISOString()
101
+ start: n(t.start).startOf("day").toISOString(),
102
+ end: n(t.end).endOf("day").toISOString()
103
103
  }
104
104
  }),
105
105
  `settlement-report-${t.start}-${t.end}.xlsx`
@@ -107,10 +107,10 @@ const g = {
107
107
  },
108
108
  async downloadSettlementReportV3(t) {
109
109
  return l(
110
- await s().get("/settlements/audit/v3", {
110
+ await i().get("/settlements/audit/v3", {
111
111
  params: {
112
- start: a(t.start).startOf("day").toISOString(),
113
- end: a(t.end).endOf("day").toISOString()
112
+ start: n(t.start).startOf("day").toISOString(),
113
+ end: n(t.end).endOf("day").toISOString()
114
114
  }
115
115
  }),
116
116
  `settlement-report-${t.start}-${t.end}.xlsx`
@@ -118,10 +118,10 @@ const g = {
118
118
  },
119
119
  async downloadBusinessSettlementReport(t) {
120
120
  return l(
121
- await m().get("/settlements/report", {
121
+ await s().get("/settlements/report", {
122
122
  params: {
123
- start: a(t.start).startOf("day").toISOString(),
124
- end: a(t.end).endOf("day").toISOString(),
123
+ start: n(t.start).startOf("day").toISOString(),
124
+ end: n(t.end).endOf("day").toISOString(),
125
125
  event: t.event,
126
126
  id: t.id
127
127
  }
@@ -131,27 +131,40 @@ const g = {
131
131
  },
132
132
  async readById(t) {
133
133
  return o(
134
- await s().get(`/settlements/${t}`)
134
+ await i().get(`/settlements/${t}`)
135
135
  );
136
136
  },
137
137
  async readBusinessSettlementById(t) {
138
138
  return o(
139
- await m().get(`/settlements/${t}`)
139
+ await s().get(`/settlements/${t}`)
140
140
  );
141
141
  },
142
142
  async readBusinessSettlements(t) {
143
143
  return o(
144
- await m().get("/settlements", {
144
+ await s().get("/settlements", {
145
145
  params: t
146
146
  })
147
147
  );
148
148
  },
149
149
  async readBusinessRMSSettlements(t) {
150
150
  return o(
151
- await m().get("/settlements/rms", {
151
+ await s().get("/settlements/rms", {
152
152
  params: t
153
153
  })
154
154
  );
155
+ },
156
+ async downloadBusinessRMSSettlementReport(t) {
157
+ return l(
158
+ await s().get("/settlements/report/rms", {
159
+ params: {
160
+ start: n(t.start).startOf("day").toISOString(),
161
+ end: n(t.end).endOf("day").toISOString(),
162
+ event: t.event,
163
+ id: t.id
164
+ }
165
+ }),
166
+ `rms-settlement-report-${t.start}-${t.end}.xlsx`
167
+ );
155
168
  }
156
169
  };
157
170
  export {
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-B5Ht48-A.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-DYl43WIP.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { b as r, c as p } from "./index-B5Ht48-A.js";
1
+ import { b as r, c as p } from "./index-DYl43WIP.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const o = (await p().post("/document/presign", {
@@ -1,4 +1,4 @@
1
- import { w as V, x as nR, v as rR } from "./app-PiirQzeM.js";
1
+ import { w as V, x as nR, v as rR } from "./app-1rw4JLKr.js";
2
2
  import { useCoreStore as Bu } from "@feedmepos/mf-common";
3
3
  import { ref as iR } from "vue";
4
4
  var gh = {}, il = {}, y = {}, ah = {}, Vm = {}, Hm = {}, Oc = {};
@@ -1,6 +1,6 @@
1
- import { g as o, b as s, o as m, a as d } from "./index-B5Ht48-A.js";
1
+ import { g as o, b as s, o as m, a as d } from "./index-DYl43WIP.js";
2
2
  import { h as c } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-B_WQwGvV.js";
3
+ import { d as b } from "./index-DTBJopG8.js";
4
4
  async function g(t) {
5
5
  if (t.type !== "image/png") return t;
6
6
  const a = await p(t), e = document.createElement("canvas");
@@ -1,4 +1,4 @@
1
- import { g as r, b as n, a as s, d as I, l, c, r as m } from "./index-B5Ht48-A.js";
1
+ import { g as r, b as n, a as s, d as I, l, c, r as m } from "./index-DYl43WIP.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, ref as r, resolveComponent as f, openBlock as g, createBlock as z, withCtx as I, createElementVNode as i, normalizeStyle as E, createElementBlock as M, Fragment as N, renderList as O, createVNode as c, computed as _, watch as L, onMounted as R, unref as D, toDisplayString as B, createCommentVNode as G, nextTick as H, normalizeClass as J } from "vue";
2
- import { u as K } from "./index-B5Ht48-A.js";
2
+ import { u as K } from "./index-DYl43WIP.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const Q = ["id"], U = /* @__PURE__ */ q({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.7.0-dev",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -109,4 +109,4 @@
109
109
  "vite": "^5.2.11",
110
110
  "vue-tsc": "^2.0.11"
111
111
  }
112
- }
112
+ }
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-B5Ht48-A.js";
2
- import { v as it, w as at, _ as ut } from "./app-PiirQzeM.js";
1
+ import { p as E, B as st } from "./index-DYl43WIP.js";
2
+ import { v as it, w as at, _ as ut } from "./app-1rw4JLKr.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-B_WQwGvV.js";
4
+ import { d as H } from "./index-DTBJopG8.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {