@feedmepos/mf-payment 1.5.34-dev → 1.5.34

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 (26) hide show
  1. package/dist/{Chargeback-CQkYS7zA.js → Chargeback-BkVFinyh.js} +1 -1
  2. package/dist/{OnboardForm-wAD3F3VU.js → OnboardForm--wUvq0Bz.js} +1 -1
  3. package/dist/{OnboardForm-C8aDH-Z2.js → OnboardForm-B04cZaFV.js} +1 -1
  4. package/dist/{PayoutAccount-DyLs9JCT.js → PayoutAccount-E5ujCJqw.js} +1 -1
  5. package/dist/{PayoutAccount-Dc_zZpAf.js → PayoutAccount-jlCtwsaD.js} +1 -1
  6. package/dist/{Settlement-CRlYjp36.js → Settlement-DJ6ETp2U.js} +1 -1
  7. package/dist/Settlement-SoOQIN8y.js +490 -0
  8. package/dist/{SettlementTransactions-C4F8UT8k.js → SettlementTransactions-DF2ybUos.js} +2 -2
  9. package/dist/{SettlementTransactions-C0vRk4kI.js → SettlementTransactions-cYUYH2RJ.js} +17 -21
  10. package/dist/{Transaction-yG_6hsqm.js → Transaction-A-sOT2PE.js} +72 -57
  11. package/dist/Transaction-CbZRbUDH.js +482 -0
  12. package/dist/{TransactionOld-r7nV-5_S.js → TransactionOld-DttRuS3v.js} +1 -1
  13. package/dist/api/settlement/index.d.ts +4 -10
  14. package/dist/api/transaction/index.d.ts +1 -1
  15. package/dist/{app-DmsKi6me.js → app-qtpxMy1_.js} +132 -141
  16. package/dist/app.js +1 -1
  17. package/dist/components/SourceSelector.vue.d.ts +0 -2
  18. package/dist/{index-CiCmB-Rg.js → index-BRhAeH7J.js} +7 -13
  19. package/dist/{index-_EfmUlsc.js → index-BcmesiC4.js} +19 -21
  20. package/dist/package.json +1 -1
  21. package/dist/{payout-account-Ce3mmpiT.js → payout-account-Ca3Ayv7S.js} +1 -1
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/package.json +1 -1
  24. package/dist/Settlement-BAeQCoUt.js +0 -610
  25. package/dist/Transaction-D9hFp-bx.js +0 -482
  26. package/dist/components/SettlementSelector.vue.d.ts +0 -12
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as o, r as p } from "./app-DmsKi6me.js";
1
+ import { a as e, i as o, r as p } from "./app-qtpxMy1_.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  export {
4
4
  e as FmApp,
@@ -2,8 +2,6 @@ type __VLS_Props = {
2
2
  id: string;
3
3
  by?: "PAYOUT_ACCOUNT" | "RESTAURANT" | "DEVICE" | string;
4
4
  excludePayoutAccount?: boolean;
5
- excludeOrderingPayoutAccount?: boolean;
6
- excludeMarketingPayoutAccount?: boolean;
7
5
  excludeRestaurant?: boolean;
8
6
  excludeDevice?: boolean;
9
7
  };
@@ -1,4 +1,4 @@
1
- import { g as n, b as e, d as o, h as m, l, f as i, r as f } from "./index-T2CVm7-_.js";
1
+ import { g as n, b as e, d as o, h as m, l, r as i, f } from "./index-T2CVm7-_.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -45,23 +45,17 @@ const w = {
45
45
  },
46
46
  async bindPayId(t) {
47
47
  return n(
48
- await e().patch(
49
- `/transactions/${t.transactionId}/payId`,
50
- { payId: t.payId }
51
- )
48
+ await e().patch(`/transactions/${t.transactionId}/payId`, { payId: t.payId })
52
49
  );
53
50
  },
54
51
  async setGatewayId(t) {
55
52
  return n(
56
- await e().patch(
57
- `/transactions/${t.transactionId}/gatewayTransactionId`,
58
- { gatewayTransactionId: t.gatewayTransactionId }
59
- )
53
+ await e().patch(`/transactions/${t.transactionId}/gatewayTransactionId`, { gatewayTransactionId: t.gatewayTransactionId })
60
54
  );
61
55
  },
62
56
  async readRestaurantTransactions(t) {
63
57
  return n(
64
- await f().get("/transactions", {
58
+ await i().get("/transactions", {
65
59
  params: {
66
60
  v2: !0,
67
61
  start: a(t.start).startOf("day").toISOString(),
@@ -72,7 +66,7 @@ const w = {
72
66
  },
73
67
  async readTransactionsV2(t) {
74
68
  return o(
75
- await i().get("/transactions", {
69
+ await f().get("/transactions", {
76
70
  params: {
77
71
  status: t.status,
78
72
  id: t.id,
@@ -86,10 +80,10 @@ const w = {
86
80
  })
87
81
  );
88
82
  },
89
- async readBusinessTransactionsBySettlementId(t) {
83
+ async readRestaurantTransactionsBySettlementId(t) {
90
84
  return n(
91
85
  await i().get(
92
- `/settlements/transactions/${t}`
86
+ `/transactions/settlements/${t}`
93
87
  )
94
88
  );
95
89
  },
@@ -1,12 +1,12 @@
1
- import { g as r, f as i, b as m, h as l, l as c, i as d, j as y } from "./index-T2CVm7-_.js";
1
+ import { g as r, r as i, b as m, h as l, l as c, i as d, j as y } from "./index-T2CVm7-_.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
- function* p(t, a) {
4
+ function* p(t, n) {
5
5
  const e = t[Symbol.iterator](), s = e.next();
6
6
  if (!s.done) {
7
7
  yield s.value;
8
- for (const n of e)
9
- yield a, yield n;
8
+ for (const a of e)
9
+ yield n, yield a;
10
10
  }
11
11
  }
12
12
  const S = {
@@ -23,23 +23,23 @@ const S = {
23
23
  );
24
24
  },
25
25
  async downloadBankInstructionFile(t) {
26
- const a = "7161151059";
26
+ const n = "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((a) => ({
30
30
  productCode: "P2A",
31
31
  settlementDate: o().format("DDMMYYYY"),
32
32
  myRefNo: "",
33
- companyAccNo: a,
34
- amount: f(n.totalPayout).toUnit().toString(),
33
+ companyAccNo: n,
34
+ amount: f(a.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: a.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
40
40
  beneficiaryCountryCode: "",
41
41
  duitNowID: "",
42
- recipientReference: n._id,
42
+ recipientReference: a._id,
43
43
  pf_payment: "",
44
44
  notifyMethod: "",
45
45
  emailAddress: ""
@@ -47,7 +47,7 @@ const S = {
47
47
  Array.from(
48
48
  p(
49
49
  e.map(
50
- (n) => Object.values(n).map((u) => u).join("|")
50
+ (a) => Object.values(a).map((u) => u).join("|")
51
51
  ),
52
52
  `
53
53
  `
@@ -59,11 +59,11 @@ const S = {
59
59
  );
60
60
  return y(s, "duitnow_bulk_transfer.txt");
61
61
  },
62
- async downloadSummaryReport(t, a) {
62
+ async downloadSummaryReport(t, n) {
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-${n.start}-${n.end}.xlsx`,
67
67
  exclude: [
68
68
  "beneficiaryBank.swiftCode",
69
69
  "beneficiaryBank.holderName",
@@ -105,14 +105,12 @@ const S = {
105
105
  `settlement-report-${t.start}-${t.end}.xlsx`
106
106
  );
107
107
  },
108
- async downloadBusinessSettlementReport(t) {
108
+ async downloadRestaurantSettlementReport(t) {
109
109
  return l(
110
110
  await i().get("/settlements/report", {
111
111
  params: {
112
112
  start: o(t.start).startOf("day").toISOString(),
113
- end: o(t.end).endOf("day").toISOString(),
114
- event: t.event,
115
- id: t.id
113
+ end: o(t.end).endOf("day").toISOString()
116
114
  }
117
115
  }),
118
116
  `settlement-report-${t.start}-${t.end}.xlsx`
@@ -123,19 +121,19 @@ const S = {
123
121
  await m().get(`/settlements/${t}`)
124
122
  );
125
123
  },
126
- async readBusinessSettlementById(t) {
124
+ async readRestaurantSettlementById(t) {
127
125
  return r(
128
126
  await i().get(`/settlements/${t}`)
129
127
  );
130
128
  },
131
- async readBusinessSettlements(t) {
129
+ async readRestaurantSettlements(t) {
132
130
  return r(
133
131
  await i().get("/settlements", {
134
132
  params: t
135
133
  })
136
134
  );
137
135
  },
138
- async readBusinessRMSSettlements(t) {
136
+ async readRestaurantRMSSettlements(t) {
139
137
  return r(
140
138
  await i().get("/settlements/rms", {
141
139
  params: t
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.34-dev",
3
+ "version": "1.5.34",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
1
  import { a as st, c as it, p as E, B as at } from "./index-T2CVm7-_.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
3
  import { d as H } from "./index-BGIv1us6.js";
4
- import { _ as ot } from "./app-DmsKi6me.js";
4
+ import { _ as ot } from "./app-qtpxMy1_.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {