@feedmepos/mf-payment 1.5.34 → 1.5.35-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 (27) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js → Actions.vue_vue_type_script_setup_true_lang-otzczqU5.js} +14 -14
  2. package/dist/{Chargeback-BkVFinyh.js → Chargeback-CQkYS7zA.js} +1 -1
  3. package/dist/{OnboardForm--wUvq0Bz.js → OnboardForm-By03Chhh.js} +1 -1
  4. package/dist/{OnboardForm-B04cZaFV.js → OnboardForm-CqZYRciP.js} +1 -1
  5. package/dist/{PayoutAccount-E5ujCJqw.js → PayoutAccount-D8ZiVHXg.js} +1 -1
  6. package/dist/{PayoutAccount-jlCtwsaD.js → PayoutAccount-DbJB5Y6K.js} +1 -1
  7. package/dist/Settlement-BAeQCoUt.js +610 -0
  8. package/dist/{Settlement-DJ6ETp2U.js → Settlement-CRlYjp36.js} +1 -1
  9. package/dist/{SettlementTransactions-cYUYH2RJ.js → SettlementTransactions-C0vRk4kI.js} +21 -17
  10. package/dist/{SettlementTransactions-DF2ybUos.js → SettlementTransactions-C4F8UT8k.js} +2 -2
  11. package/dist/Transaction-CkmY_1p2.js +482 -0
  12. package/dist/{Transaction-A-sOT2PE.js → Transaction-pfFFXNUZ.js} +93 -108
  13. package/dist/{TransactionOld-DttRuS3v.js → TransactionOld-CaLBhbhp.js} +2 -2
  14. package/dist/api/settlement/index.d.ts +10 -4
  15. package/dist/api/transaction/index.d.ts +1 -1
  16. package/dist/{app-qtpxMy1_.js → app-CjT9c5hY.js} +141 -132
  17. package/dist/app.js +1 -1
  18. package/dist/components/SettlementSelector.vue.d.ts +12 -0
  19. package/dist/components/SourceSelector.vue.d.ts +2 -0
  20. package/dist/{index-BRhAeH7J.js → index-CiCmB-Rg.js} +13 -7
  21. package/dist/{index-BcmesiC4.js → index-_EfmUlsc.js} +21 -19
  22. package/dist/package.json +1 -1
  23. package/dist/{payout-account-Ca3Ayv7S.js → payout-account-BvYk9wz-.js} +1 -1
  24. package/dist/tsconfig.app.tsbuildinfo +1 -1
  25. package/package.json +1 -1
  26. package/dist/Settlement-SoOQIN8y.js +0 -490
  27. package/dist/Transaction-CbZRbUDH.js +0 -482
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as o, r as p } from "./app-qtpxMy1_.js";
1
+ import { a as e, i as o, r as p } from "./app-CjT9c5hY.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  export {
4
4
  e as FmApp,
@@ -0,0 +1,12 @@
1
+ type __VLS_Props = {
2
+ id: string;
3
+ by?: "PAYOUT_ACCOUNT" | "RESTAURANT" | string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:id": (...args: any[]) => void;
7
+ "update:by": (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ "onUpdate:id"?: ((...args: any[]) => any) | undefined;
10
+ "onUpdate:by"?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -2,6 +2,8 @@ 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;
5
7
  excludeRestaurant?: boolean;
6
8
  excludeDevice?: boolean;
7
9
  };
@@ -1,4 +1,4 @@
1
- import { g as n, b as e, d as o, h as m, l, r as i, f } from "./index-T2CVm7-_.js";
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";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -45,17 +45,23 @@ const w = {
45
45
  },
46
46
  async bindPayId(t) {
47
47
  return n(
48
- await e().patch(`/transactions/${t.transactionId}/payId`, { payId: t.payId })
48
+ await e().patch(
49
+ `/transactions/${t.transactionId}/payId`,
50
+ { payId: t.payId }
51
+ )
49
52
  );
50
53
  },
51
54
  async setGatewayId(t) {
52
55
  return n(
53
- await e().patch(`/transactions/${t.transactionId}/gatewayTransactionId`, { gatewayTransactionId: t.gatewayTransactionId })
56
+ await e().patch(
57
+ `/transactions/${t.transactionId}/gatewayTransactionId`,
58
+ { gatewayTransactionId: t.gatewayTransactionId }
59
+ )
54
60
  );
55
61
  },
56
62
  async readRestaurantTransactions(t) {
57
63
  return n(
58
- await i().get("/transactions", {
64
+ await f().get("/transactions", {
59
65
  params: {
60
66
  v2: !0,
61
67
  start: a(t.start).startOf("day").toISOString(),
@@ -66,7 +72,7 @@ const w = {
66
72
  },
67
73
  async readTransactionsV2(t) {
68
74
  return o(
69
- await f().get("/transactions", {
75
+ await i().get("/transactions", {
70
76
  params: {
71
77
  status: t.status,
72
78
  id: t.id,
@@ -80,10 +86,10 @@ const w = {
80
86
  })
81
87
  );
82
88
  },
83
- async readRestaurantTransactionsBySettlementId(t) {
89
+ async readBusinessTransactionsBySettlementId(t) {
84
90
  return n(
85
91
  await i().get(
86
- `/transactions/settlements/${t}`
92
+ `/settlements/transactions/${t}`
87
93
  )
88
94
  );
89
95
  },
@@ -1,12 +1,12 @@
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";
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";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
- function* p(t, n) {
4
+ function* p(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 a of e)
9
- yield n, yield a;
8
+ for (const n of e)
9
+ yield a, yield n;
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 n = "7161151059";
26
+ const a = "7161151059";
27
27
  if (t.length === 0)
28
28
  throw Error("no settlement for export");
29
- const e = t.map((a) => ({
29
+ const e = t.map((n) => ({
30
30
  productCode: "P2A",
31
31
  settlementDate: o().format("DDMMYYYY"),
32
32
  myRefNo: "",
33
- companyAccNo: n,
34
- amount: f(a.totalPayout).toUnit().toString(),
33
+ companyAccNo: a,
34
+ amount: f(n.totalPayout).toUnit().toString(),
35
35
  currency: t[0].totalPayout.currency,
36
36
  proxyType: "",
37
37
  transferType: "DFLT",
38
- beneficiaryAccountNo: a.beneficiaryBank.accountNumber.toString().trim(),
39
- beneficiarySwiftCode: a.beneficiaryBank.swiftCode,
38
+ beneficiaryAccountNo: n.beneficiaryBank.accountNumber.toString().trim(),
39
+ beneficiarySwiftCode: n.beneficiaryBank.swiftCode,
40
40
  beneficiaryCountryCode: "",
41
41
  duitNowID: "",
42
- recipientReference: a._id,
42
+ recipientReference: n._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
- (a) => Object.values(a).map((u) => u).join("|")
50
+ (n) => Object.values(n).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, n) {
62
+ async downloadSummaryReport(t, a) {
63
63
  return c(
64
64
  t.map((e) => d(e)),
65
65
  {
66
- filename: `summary-report-${n.start}-${n.end}.xlsx`,
66
+ filename: `summary-report-${a.start}-${a.end}.xlsx`,
67
67
  exclude: [
68
68
  "beneficiaryBank.swiftCode",
69
69
  "beneficiaryBank.holderName",
@@ -105,12 +105,14 @@ const S = {
105
105
  `settlement-report-${t.start}-${t.end}.xlsx`
106
106
  );
107
107
  },
108
- async downloadRestaurantSettlementReport(t) {
108
+ async downloadBusinessSettlementReport(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()
113
+ end: o(t.end).endOf("day").toISOString(),
114
+ event: t.event,
115
+ id: t.id
114
116
  }
115
117
  }),
116
118
  `settlement-report-${t.start}-${t.end}.xlsx`
@@ -121,19 +123,19 @@ const S = {
121
123
  await m().get(`/settlements/${t}`)
122
124
  );
123
125
  },
124
- async readRestaurantSettlementById(t) {
126
+ async readBusinessSettlementById(t) {
125
127
  return r(
126
128
  await i().get(`/settlements/${t}`)
127
129
  );
128
130
  },
129
- async readRestaurantSettlements(t) {
131
+ async readBusinessSettlements(t) {
130
132
  return r(
131
133
  await i().get("/settlements", {
132
134
  params: t
133
135
  })
134
136
  );
135
137
  },
136
- async readRestaurantRMSSettlements(t) {
138
+ async readBusinessRMSSettlements(t) {
137
139
  return r(
138
140
  await i().get("/settlements/rms", {
139
141
  params: t
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.34",
3
+ "version": "1.5.35-dev",
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-qtpxMy1_.js";
4
+ import { _ as ot } from "./app-CjT9c5hY.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {