@feedmepos/mf-payment 1.0.0-beta.4 → 1.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as p, f as s } from "./app-z59f3ZZg.js";
1
+ import { h as p, f as s } from "./app-9P8d2JCE.js";
2
2
  export {
3
3
  p as FmApp,
4
4
  s as routers
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,4 +1,4 @@
1
- import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-z59f3ZZg.js";
1
+ import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-9P8d2JCE.js";
2
2
  import { d as at, f as ut, _ as Y, m as ct } from "./index-CWaKb7bG.js";
3
3
  /**
4
4
  * @license
@@ -1,7 +1,7 @@
1
1
  import { g as a, b as n, r as o, l as i, i as c } from "./index-CWaKb7bG.js";
2
- import { h as s } from "./moment-h96o7c8I.js";
3
- import { d as r } from "./dinero-CIVmXLL-.js";
4
- const p = {
2
+ import { h as r } from "./moment-h96o7c8I.js";
3
+ import { d as s } from "./dinero-CIVmXLL-.js";
4
+ const f = {
5
5
  async readBySettlementId(t) {
6
6
  return a(
7
7
  await n().get(
@@ -13,8 +13,8 @@ const p = {
13
13
  return a(
14
14
  await n().get("/transactions", {
15
15
  params: {
16
- start: s(t.start).startOf("day").toISOString(),
17
- end: s(t.end).endOf("day").toISOString()
16
+ start: r(t.start).startOf("day").toISOString(),
17
+ end: r(t.end).endOf("day").toISOString()
18
18
  }
19
19
  })
20
20
  );
@@ -42,7 +42,10 @@ const p = {
42
42
  async readRestaurantTransactions(t) {
43
43
  return a(
44
44
  await o().get("/transactions", {
45
- params: t
45
+ params: {
46
+ start: r(t.start).startOf("day").toISOString(),
47
+ end: r(t.end).endOf("day").toISOString()
48
+ }
46
49
  })
47
50
  );
48
51
  },
@@ -70,25 +73,25 @@ const p = {
70
73
  );
71
74
  }
72
75
  };
73
- function m(t) {
76
+ function d(t) {
74
77
  return {
75
78
  id: t._id,
76
79
  payId: t.payId,
77
80
  method: t.method,
78
81
  gateway: t.gateway,
79
82
  status: t.status,
80
- transactionAt: s(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
83
+ transactionAt: r(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
81
84
  fdoAmount: t.amount,
82
- amount: r(t.amount).toFormat("$0.00"),
83
- fee: r(t.fee).toFormat("$0.00"),
84
- payout: r(t.payout).toFormat("$0.00")
85
+ amount: s(t.amount).toFormat("$0.00"),
86
+ fee: s(t.fee).toFormat("$0.00"),
87
+ payout: s(t.payout).toFormat("$0.00")
85
88
  };
86
89
  }
87
- function f(t) {
88
- return t.map(m);
90
+ function p(t) {
91
+ return t.map(d);
89
92
  }
90
93
  export {
91
- f as a,
92
- m as b,
93
- p as t
94
+ p as a,
95
+ d as b,
96
+ f as t
94
97
  };