@feedmepos/mf-payment 1.1.20-beta.2 → 1.1.20
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.
- package/dist/{PayoutAccount-DtxvkRZg.js → PayoutAccount-B50mbpXa.js} +28 -28
- package/dist/{PayoutAccount-DbVJmcOa.js → PayoutAccount-ChnMSqoz.js} +6 -6
- package/dist/{PayoutAccountSetting-DcbImWD5.js → PayoutAccountSetting-CYflBcUv.js} +3 -3
- package/dist/{Restaurant-DrTIWONb.js → Restaurant-Ddo7QfJv.js} +4 -4
- package/dist/{RestaurantSetting-39Xu_7Bm.js → RestaurantSetting-C_5OjEo4.js} +3 -3
- package/dist/{Settlement-oCVhqcmP.js → Settlement-DDZ6ll4r.js} +3 -3
- package/dist/{Settlement-DuWPx6DN.js → Settlement-DxMP0Iu2.js} +3 -3
- package/dist/{SettlementTransactions-BPEDOI4q.js → SettlementTransactions-4Z1eNypN.js} +3 -3
- package/dist/{SettlementTransactions-B1N9DToN.js → SettlementTransactions-VinJ6fUK.js} +3 -3
- package/dist/{Terminal-CHNjzVtT.js → Terminal-msh6w52E.js} +6 -6
- package/dist/{TerminalSetting-BEP2XCkv.js → TerminalSetting-B56NaLJG.js} +3 -3
- package/dist/{Transaction-Cb15psyP.js → Transaction-BFEc8CE5.js} +147 -147
- package/dist/{Transaction-Bth0jDaE.js → Transaction-CJ6tkVm7.js} +7 -7
- package/dist/{TransactionOld-BPnBP2cu.js → TransactionOld-CQCjIj-y.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js → TransactionTable.vue_vue_type_script_setup_true_lang-Be5X-POy.js} +53 -57
- package/dist/{app-BfnnIbRB.js → app-BMjpPKrE.js} +372 -388
- package/dist/app.js +1 -1
- package/dist/{assets-Bne2NJOR.js → assets-uU5K-t3w.js} +22 -25
- package/dist/{grafana-DpsdWu10.js → grafana-jZIQEb-4.js} +2 -2
- package/dist/{index-C5ARs2NW.js → index-4jxBEYP_.js} +1 -1
- package/dist/{index-BJaJ2nSQ.js → index-C2icSInW.js} +1 -1
- package/dist/{index-sQT526AQ.js → index-CWuISLUP.js} +2 -2
- package/dist/{index-Bm2MGtsS.js → index-CeqaPQxS.js} +2285 -2285
- package/dist/{index-BSl3VmjZ.js → index-Ci5Z345g.js} +1 -1
- package/dist/{index-B1EyQdUg.js → index-Db8vOED3.js} +1 -1
- package/dist/{index-B0zGQtbr.js → index-sQgEmNx9.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js → index.vue_vue_type_script_setup_true_lang-D8jBmVoN.js} +19 -19
- package/dist/model/transaction.d.ts +0 -2
- package/dist/package.json +1 -1
- package/dist/{payout-account-CX7Sx9yz.js → payout-account-CQou3k40.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Forbidden-BvhtA1Ni.js +0 -37
- package/dist/views/Forbidden.vue.d.ts +0 -2
package/dist/app.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { g, b as
|
1
|
+
import { g, b as Q, r as c, h as E, l as k, i as b } from "./index-CeqaPQxS.js";
|
2
2
|
import { h as C } from "./moment-h96o7c8I.js";
|
3
|
-
import { d as
|
4
|
-
import { _ as l } from "./index-
|
3
|
+
import { d as t } from "./dinero-CIVmXLL-.js";
|
4
|
+
import { _ as l } from "./index-C2icSInW.js";
|
5
5
|
const CA = {
|
6
6
|
async readBySettlementId(A) {
|
7
7
|
return g(
|
8
|
-
await
|
8
|
+
await Q().get(
|
9
9
|
`/transactions/settlements/${A}`
|
10
10
|
)
|
11
11
|
);
|
12
12
|
},
|
13
13
|
async readTransactions(A) {
|
14
14
|
return g(
|
15
|
-
await
|
15
|
+
await Q().get("/transactions", {
|
16
16
|
params: {
|
17
17
|
search: A.search,
|
18
18
|
skip: A.skip,
|
@@ -25,24 +25,24 @@ const CA = {
|
|
25
25
|
},
|
26
26
|
async removeTransactionFromSettlement(A) {
|
27
27
|
return g(
|
28
|
-
await
|
28
|
+
await Q().delete(`/settlements/${A}`)
|
29
29
|
);
|
30
30
|
},
|
31
31
|
async refetchTransaction({
|
32
32
|
transactionId: A
|
33
33
|
}) {
|
34
34
|
return g(
|
35
|
-
await
|
35
|
+
await Q().get(`/transactions/query/${A}`)
|
36
36
|
);
|
37
37
|
},
|
38
38
|
async refundTransaction(A) {
|
39
39
|
return g(
|
40
|
-
await
|
40
|
+
await Q().post("/transactions/refund", A)
|
41
41
|
);
|
42
42
|
},
|
43
43
|
async renotifyTransaction(A) {
|
44
44
|
return g(
|
45
|
-
await
|
45
|
+
await Q().post("/payments/re-notify", { transactionId: A })
|
46
46
|
);
|
47
47
|
},
|
48
48
|
async readRestaurantTransactions(A) {
|
@@ -77,7 +77,7 @@ const CA = {
|
|
77
77
|
);
|
78
78
|
},
|
79
79
|
async downloadPortalTransactionReport(A, D, w = !1) {
|
80
|
-
const
|
80
|
+
const q = C(A.startDate), f = C(A.endDate).endOf("day"), d = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
|
81
81
|
return w && d.push(
|
82
82
|
"gatewayTransactionId",
|
83
83
|
"gatewayRefundId",
|
@@ -85,7 +85,7 @@ const CA = {
|
|
85
85
|
"settlementId",
|
86
86
|
"settlementAt"
|
87
87
|
), k(D, {
|
88
|
-
filename: `transaction-report-${
|
88
|
+
filename: `transaction-report-${q.format("YYYY_MM_DD_HH:mm")}-${f.format("YYYY_MM_DD_HH:mm")}.xlsx`,
|
89
89
|
exclude: d,
|
90
90
|
include: ["method.issuer", "fdoAmount.amount", "fdoAmount.currency"],
|
91
91
|
rename: {
|
@@ -103,7 +103,7 @@ const CA = {
|
|
103
103
|
},
|
104
104
|
async downloadTransactionReport(A) {
|
105
105
|
return b(
|
106
|
-
await
|
106
|
+
await Q().get("/transactions/report", {
|
107
107
|
params: {
|
108
108
|
start: C(A.start).startOf("day").toISOString(),
|
109
109
|
end: C(A.end).endOf("day").toISOString()
|
@@ -114,7 +114,6 @@ const CA = {
|
|
114
114
|
}
|
115
115
|
};
|
116
116
|
function P(A) {
|
117
|
-
var Q;
|
118
117
|
let D = "", w = "";
|
119
118
|
switch (!0) {
|
120
119
|
case !!A.terminal:
|
@@ -146,16 +145,14 @@ function P(A) {
|
|
146
145
|
),
|
147
146
|
refundedAt: A.refundedAt ? C(A.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
|
148
147
|
fdoAmount: A.gatewayAmount ?? A.amount,
|
149
|
-
amount:
|
150
|
-
|
151
|
-
|
152
|
-
payout: H(A.payout).toFormat("$0.00"),
|
148
|
+
amount: t(A.gatewayAmount ?? A.amount).toFormat("$0.00"),
|
149
|
+
fee: t(A.fee).toFormat("$0.00"),
|
150
|
+
payout: t(A.payout).toFormat("$0.00"),
|
153
151
|
seqNumber: A == null ? void 0 : A.seqNumber,
|
154
152
|
flags: {
|
155
153
|
notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
|
156
154
|
refund: A.status === "SUCCESS",
|
157
|
-
query: A.payType !== "TERMINAL"
|
158
|
-
isDelivery: ((Q = A.method) == null ? void 0 : Q.issuer) === "FEEDME" && A.method.variant === "DELIVERY"
|
155
|
+
query: A.payType !== "TERMINAL"
|
159
156
|
}
|
160
157
|
};
|
161
158
|
}
|
@@ -176,7 +173,7 @@ const u = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAcHBwcIBwgJCQ
|
|
176
173
|
function BA(A) {
|
177
174
|
return e[A] || e.OTHER;
|
178
175
|
}
|
179
|
-
const
|
176
|
+
const H = {
|
180
177
|
ALIPAY: J,
|
181
178
|
BOOST: o,
|
182
179
|
GRABPAY: a,
|
@@ -215,12 +212,12 @@ const t = {
|
|
215
212
|
};
|
216
213
|
function gA(A, D) {
|
217
214
|
if (A === l.F_PAYMENT_ISSUER.Enum.FEEDME)
|
218
|
-
return
|
215
|
+
return H[A + "." + D] || H[A];
|
219
216
|
const w = A.toUpperCase();
|
220
|
-
for (const
|
221
|
-
if (w.includes(
|
222
|
-
return O[
|
223
|
-
return
|
217
|
+
for (const q of Object.keys(O))
|
218
|
+
if (w.includes(q))
|
219
|
+
return O[q];
|
220
|
+
return H[w] || H.OTHER;
|
224
221
|
}
|
225
222
|
export {
|
226
223
|
gA as a,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { e as c } from "./index-
|
1
|
+
import { e as c } from "./index-CeqaPQxS.js";
|
2
2
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
3
3
|
import { h as n } from "./moment-h96o7c8I.js";
|
4
4
|
const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (t, r, o) => ({
|
@@ -40,7 +40,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (t, r, o) =
|
|
40
40
|
{
|
41
41
|
type: "resource",
|
42
42
|
queryKey: "cluster",
|
43
|
-
queryValue: "
|
43
|
+
queryValue: "production"
|
44
44
|
},
|
45
45
|
{
|
46
46
|
type: "resource",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-
|
1
|
+
import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-CeqaPQxS.js";
|
2
2
|
import { h as o } from "./moment-h96o7c8I.js";
|
3
3
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
4
4
|
function* p(t, n) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as o, k as f, c as i } from "./index-
|
1
|
+
import { j as o, k as f, c as i } from "./index-CeqaPQxS.js";
|
2
2
|
var d = {}, O = {}, u = {};
|
3
3
|
Object.defineProperty(u, "__esModule", { value: !0 });
|
4
4
|
u.F_PAYMENT_TRANSACTION_GROUP = u.F_PAYMENT_TRANSACTION_STATUS = u.F_PAYMENT_GATEWAY_KEY = u.F_PAYMENT_TYPE = u.F_PAYMENT_FOR = void 0;
|