@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
  6. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
  7. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
  8. package/dist/Settlement-Dr6Rmkid.js +142 -0
  9. package/dist/Settlement-JkH7-Wd_.js +146 -0
  10. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
  11. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
  12. package/dist/Terminal-DQqtUzV2.js +318 -0
  13. package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
  14. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
  15. package/dist/Transaction-BKBh8jOT.js +249 -0
  16. package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
  17. package/dist/api/index.d.ts +7 -0
  18. package/dist/api/settlement/index.d.ts +7 -13
  19. package/dist/api/terminal/index.d.ts +8 -1
  20. package/dist/api/transaction/index.d.ts +6 -2
  21. package/dist/app.js +46 -40
  22. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  23. package/dist/components/AsyncButton.vue.d.ts +21 -0
  24. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  25. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  26. package/dist/index-CxYMbN69.js +37 -0
  27. package/dist/index-DflgpHga.js +55560 -0
  28. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  29. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  30. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  31. package/dist/package.json +3 -3
  32. package/dist/{payout-account-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
  33. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/validator-D5jtpt9A.js +2877 -0
  36. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  37. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  38. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  39. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  40. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  41. package/package.json +3 -3
  42. package/dist/Settlement-BVGACeme.js +0 -136
  43. package/dist/Settlement-Ce48KHrc.js +0 -132
  44. package/dist/Terminal-ByKV2Rof.js +0 -204
  45. package/dist/Transaction-C-X11abA.js +0 -242
  46. package/dist/index-DCPNrUDq.js +0 -40075
  47. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -1,7 +1,7 @@
1
- import { a, b as n, r as s } from "./index-DCPNrUDq.js";
2
- import { d as e } from "./dinero-CIVmXLL-.js";
3
- import { h as r } from "./moment-h96o7c8I.js";
4
- const u = {
1
+ import { a, b as n, r, l as o, i } from "./index-DflgpHga.js";
2
+ import { d as s } from "./dinero-CIVmXLL-.js";
3
+ import { h as c } from "./moment-h96o7c8I.js";
4
+ const y = {
5
5
  async readBySettlementId(t) {
6
6
  return a(
7
7
  await n().get(
@@ -29,36 +29,49 @@ const u = {
29
29
  },
30
30
  async readRestaurantTransactions(t) {
31
31
  return a(
32
- await s().get("/transactions", {
32
+ await r().get("/transactions", {
33
33
  params: t
34
34
  })
35
35
  );
36
36
  },
37
37
  async readRestaurantTransactionsBySettlementId(t) {
38
38
  return a(
39
- await s().get(
39
+ await r().get(
40
40
  `/transactions/settlements/${t}`
41
41
  )
42
42
  );
43
+ },
44
+ async downloadRestaurantTransactionReport(t) {
45
+ return o(t, {
46
+ method: (e) => (e == null ? void 0 : e.issuer) ?? ""
47
+ });
48
+ },
49
+ async downloadTransactionReport(t) {
50
+ return i(
51
+ await n().get("/transactions/report", {
52
+ params: t
53
+ }),
54
+ `transaction-report-${t.start}-${t.end}.xlsx`
55
+ );
43
56
  }
44
57
  };
45
- function o(t) {
58
+ function m(t) {
46
59
  return {
47
60
  id: t._id,
48
61
  payId: t.payId,
49
62
  method: t.method,
50
63
  gateway: t.gateway,
51
64
  status: t.status,
52
- transactionAt: r(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
53
- amount: e(t.amount).toFormat("$0.00"),
54
- fee: e(t.fee).toFormat("$0.00"),
55
- payout: e(t.payout).toFormat("$0.00")
65
+ transactionAt: c(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
66
+ amount: s(t.amount).toFormat("$0.00"),
67
+ fee: s(t.fee).toFormat("$0.00"),
68
+ payout: s(t.payout).toFormat("$0.00")
56
69
  };
57
70
  }
58
- function d(t) {
59
- return t.map(o);
71
+ function w(t) {
72
+ return t.map(m);
60
73
  }
61
74
  export {
62
- d as a,
63
- u as t
75
+ w as a,
76
+ y as t
64
77
  };