@feedmepos/mf-payment 0.0.0-beta.11 → 0.0.0-beta.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-uqw305f2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-h58IN5jz.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-Bqw7WbtT.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-De_DYXFh.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-D_lILlqx.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CiFh9jYU.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +68 -62
  20. package/dist/{assets-DZoIWoOi.js → assets-nIQ0r4oP.js} +49 -49
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-D_lGAP8q.js → payout-account-C4iFFgWi.js} +262 -262
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-DWJ4TWTQ.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. 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
  };