@feedmepos/mf-payment 1.1.19 → 1.1.20-beta.2
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/Forbidden-BvhtA1Ni.js +37 -0
- package/dist/{PayoutAccount-BrMo_bdc.js → PayoutAccount-DbVJmcOa.js} +6 -6
- package/dist/{PayoutAccount-ClQ35qju.js → PayoutAccount-DtxvkRZg.js} +28 -28
- package/dist/{PayoutAccountSetting-DBMWIQ6u.js → PayoutAccountSetting-DcbImWD5.js} +3 -3
- package/dist/{Restaurant-DudOcIKg.js → Restaurant-DrTIWONb.js} +4 -4
- package/dist/{RestaurantSetting-BJo_ixHt.js → RestaurantSetting-39Xu_7Bm.js} +3 -3
- package/dist/{Settlement-CAKn73UQ.js → Settlement-DuWPx6DN.js} +3 -3
- package/dist/{Settlement-CJdBUfbZ.js → Settlement-oCVhqcmP.js} +3 -3
- package/dist/{SettlementTransactions-BCzKxoIi.js → SettlementTransactions-B1N9DToN.js} +3 -3
- package/dist/{SettlementTransactions-pgo_qyD-.js → SettlementTransactions-BPEDOI4q.js} +3 -3
- package/dist/{Terminal-BGLOmnl_.js → Terminal-CHNjzVtT.js} +6 -6
- package/dist/{TerminalSetting-CiyAJdLj.js → TerminalSetting-BEP2XCkv.js} +28 -22
- package/dist/{Transaction-DwxmCKcG.js → Transaction-Bth0jDaE.js} +7 -7
- package/dist/{Transaction-qyJAJekb.js → Transaction-Cb15psyP.js} +147 -147
- package/dist/{TransactionOld-LES765mv.js → TransactionOld-BPnBP2cu.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BEHZCoq6.js → TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js} +57 -53
- package/dist/{app-YY9yj-vq.js → app-BfnnIbRB.js} +393 -377
- package/dist/app.js +1 -1
- package/dist/{assets-Bka69roC.js → assets-Bne2NJOR.js} +25 -22
- package/dist/{grafana-CZhYcWzi.js → grafana-DpsdWu10.js} +2 -2
- package/dist/{index-DSsEAgyG.js → index-B0zGQtbr.js} +1 -1
- package/dist/{index-CtbszYV4.js → index-B1EyQdUg.js} +1 -1
- package/dist/{index-F2ifB2oW.js → index-BJaJ2nSQ.js} +1 -1
- package/dist/{index-DIG1I3Ka.js → index-BSl3VmjZ.js} +1 -1
- package/dist/{index-CGg0eJIr.js → index-Bm2MGtsS.js} +1430 -1430
- package/dist/{index-BkOR4M1w.js → index-C5ARs2NW.js} +1 -1
- package/dist/{index-ZXI0wUjr.js → index-sQT526AQ.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-DMZricqL.js → index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js} +19 -19
- package/dist/model/transaction.d.ts +2 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-9HPKjwEG.js → payout-account-CX7Sx9yz.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/Forbidden.vue.d.ts +2 -0
- package/package.json +1 -1
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-Bm2MGtsS.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 H } from "./dinero-CIVmXLL-.js";
|
4
|
+
import { _ as l } from "./index-BJaJ2nSQ.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,6 +114,7 @@ const CA = {
|
|
114
114
|
}
|
115
115
|
};
|
116
116
|
function P(A) {
|
117
|
+
var Q;
|
117
118
|
let D = "", w = "";
|
118
119
|
switch (!0) {
|
119
120
|
case !!A.terminal:
|
@@ -145,14 +146,16 @@ function P(A) {
|
|
145
146
|
),
|
146
147
|
refundedAt: A.refundedAt ? C(A.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
|
147
148
|
fdoAmount: A.gatewayAmount ?? A.amount,
|
148
|
-
amount:
|
149
|
-
|
150
|
-
|
149
|
+
amount: H(A.amount).toFormat("$0.00"),
|
150
|
+
gatewayAmount: H(A.gatewayAmount ?? {}).toFormat("$0.00"),
|
151
|
+
fee: H(A.fee).toFormat("$0.00"),
|
152
|
+
payout: H(A.payout).toFormat("$0.00"),
|
151
153
|
seqNumber: A == null ? void 0 : A.seqNumber,
|
152
154
|
flags: {
|
153
155
|
notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
|
154
156
|
refund: A.status === "SUCCESS",
|
155
|
-
query: A.payType !== "TERMINAL"
|
157
|
+
query: A.payType !== "TERMINAL",
|
158
|
+
isDelivery: ((Q = A.method) == null ? void 0 : Q.issuer) === "FEEDME" && A.method.variant === "DELIVERY"
|
156
159
|
}
|
157
160
|
};
|
158
161
|
}
|
@@ -173,7 +176,7 @@ const u = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAcHBwcIBwgJCQ
|
|
173
176
|
function BA(A) {
|
174
177
|
return e[A] || e.OTHER;
|
175
178
|
}
|
176
|
-
const
|
179
|
+
const t = {
|
177
180
|
ALIPAY: J,
|
178
181
|
BOOST: o,
|
179
182
|
GRABPAY: a,
|
@@ -212,12 +215,12 @@ const H = {
|
|
212
215
|
};
|
213
216
|
function gA(A, D) {
|
214
217
|
if (A === l.F_PAYMENT_ISSUER.Enum.FEEDME)
|
215
|
-
return
|
218
|
+
return t[A + "." + D] || t[A];
|
216
219
|
const w = A.toUpperCase();
|
217
|
-
for (const
|
218
|
-
if (w.includes(
|
219
|
-
return O[
|
220
|
-
return
|
220
|
+
for (const Q of Object.keys(O))
|
221
|
+
if (w.includes(Q))
|
222
|
+
return O[Q];
|
223
|
+
return t[w] || t.OTHER;
|
221
224
|
}
|
222
225
|
export {
|
223
226
|
gA as a,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { e as c } from "./index-
|
1
|
+
import { e as c } from "./index-Bm2MGtsS.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: "dev"
|
44
44
|
},
|
45
45
|
{
|
46
46
|
type: "resource",
|
@@ -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-Bm2MGtsS.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;
|