@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/{PayoutAccount-BJJ26W9b.js → PayoutAccount-DZg-xSKt.js} +1 -1
- package/dist/{PayoutAccount-5-rCbHbF.js → PayoutAccount-V74CPAJr.js} +1 -1
- package/dist/{SettlementTransactions-C_4u7wU1.js → SettlementTransactions-C281649y.js} +1 -1
- package/dist/{SettlementTransactions-B17SVmmg.js → SettlementTransactions-CBohm3KC.js} +1 -1
- package/dist/{Transaction-CP0EdPdb.js → Transaction-BEls8K8W.js} +1 -1
- package/dist/{Transaction-Cl5vz12a.js → Transaction-BbGbcDvk.js} +1 -1
- package/dist/{app-z59f3ZZg.js → app-9P8d2JCE.js} +137 -137
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-C4SX3RTt.js → payout-account-DI0q_Sig.js} +1 -1
- package/dist/{transaction-B8q7vuqN.js → transaction-BTf6KnZV.js} +19 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED
@@ -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-
|
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
|
3
|
-
import { d as
|
4
|
-
const
|
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:
|
17
|
-
end:
|
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:
|
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
|
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:
|
83
|
+
transactionAt: r(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
|
81
84
|
fdoAmount: t.amount,
|
82
|
-
amount:
|
83
|
-
fee:
|
84
|
-
payout:
|
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
|
88
|
-
return t.map(
|
90
|
+
function p(t) {
|
91
|
+
return t.map(d);
|
89
92
|
}
|
90
93
|
export {
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
+
p as a,
|
95
|
+
d as b,
|
96
|
+
f as t
|
94
97
|
};
|