@feedmepos/mf-payment 1.5.30-dev → 1.5.31-dev
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/{Actions.vue_vue_type_script_setup_true_lang-DLw0ITPH.js → Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js} +1 -1
- package/dist/{Chargeback-Bu9myaUA.js → Chargeback-BkVFinyh.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-VTOtgJqq.js → DocumentViewer.vue_vue_type_script_setup_true_lang-3pmwclcO.js} +1 -1
- package/dist/{OnboardForm-CHS-Wn8q.js → OnboardForm-DZ06-081.js} +5 -5
- package/dist/{OnboardForm-r4gfwRzj.js → OnboardForm-z0g_ff33.js} +5 -5
- package/dist/{OnboardSubmission-DrhAUv7t.js → OnboardSubmission-B24Jb79p.js} +2 -2
- package/dist/{OnboardSubmission-Cs9HaAOd.js → OnboardSubmission-O5wr2kLB.js} +5 -5
- package/dist/{PayoutAccount-Cw8mr3AT.js → PayoutAccount-BTV73BZ8.js} +4 -4
- package/dist/{PayoutAccount-yapBZD1_.js → PayoutAccount-k20BQKug.js} +5 -5
- package/dist/{PayoutAccountSetting-l63lJr70.js → PayoutAccountSetting-BJljfdwp.js} +4 -4
- package/dist/{Restaurant-DT1CBXoU.js → Restaurant-DN2_DdKR.js} +4 -4
- package/dist/{RestaurantSetting-BZLLNlRl.js → RestaurantSetting-f0T5REdJ.js} +3 -3
- package/dist/{Settlement-Dv0jEXTB.js → Settlement-DJ6ETp2U.js} +3 -3
- package/dist/{Settlement-D6Qq9kGF.js → Settlement-SoOQIN8y.js} +3 -3
- package/dist/{SettlementTransactions-JFsFu_Ht.js → SettlementTransactions-DF2ybUos.js} +4 -4
- package/dist/{SettlementTransactions-BCk6M7qB.js → SettlementTransactions-cYUYH2RJ.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Bc_fNAZo.js → Status.vue_vue_type_script_setup_true_lang-B41rO8q8.js} +1 -1
- package/dist/{Terminal-CDMAnVwE.js → Terminal-DuGHgfMp.js} +5 -5
- package/dist/{TerminalSetting-DK9AiBdT.js → TerminalSetting-iXqUzSSo.js} +3 -3
- package/dist/{Transaction-N5r7T7V9.js → Transaction-CWFcreph.js} +5 -5
- package/dist/{Transaction-vwCDt0Pw.js → Transaction-i64HFmDS.js} +115 -111
- package/dist/{TransactionOld-BHppAR5F.js → TransactionOld-DttRuS3v.js} +6 -6
- package/dist/{app-CA6LqLXm.js → app-Cn89JW5_.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-BX4ZyCcr.js → assets-gWQvONT9.js} +1 -1
- package/dist/{grafana-CoN-qHoW.js → grafana-VY3mqepx.js} +1 -1
- package/dist/{index-BF7EP59L.js → index-BGIv1us6.js} +1 -1
- package/dist/{index-Bh-678tK.js → index-BRhAeH7J.js} +1 -1
- package/dist/{index-CZgeE6DH.js → index-BcmesiC4.js} +1 -1
- package/dist/{index-CIfxqNP6.js → index-CscYwjzM.js} +1 -1
- package/dist/{index-DLjeORZk.js → index-DGqWjywh.js} +1 -1
- package/dist/{index-pYSEWi8A.js → index-DhYZ6Ghe.js} +2 -2
- package/dist/{index-CbznfaxU.js → index-Dq4IAN2N.js} +1 -1
- package/dist/{index-Rhg526GN.js → index-Q0ELb0wB.js} +1 -1
- package/dist/{index-Dt8OKmo1.js → index-T2CVm7-_.js} +7342 -7157
- package/dist/{index.vue_vue_type_script_setup_true_lang-DUmgGiHt.js → index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-Bv0sunto.js → payout-account-CS-sI0CL.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +26 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +8 -8
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +8 -8
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +26 -26
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -48
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -48
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +26 -26
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +26 -26
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -48
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +20 -20
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +20 -20
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +52 -52
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +44 -44
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +22 -22
- package/package.json +2 -2
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
3
|
-
import { h as
|
|
4
|
-
import { useI18n as L, useCoreStore as
|
|
1
|
+
import { defineComponent as w, ref as x, watch as U, onMounted as z, resolveComponent as g, unref as n, openBlock as F, createBlock as Y, createElementBlock as q, createVNode as p, withCtx as k, createElementVNode as A, Fragment as j, renderList as J, createTextVNode as Q, toDisplayString as H, isRef as N, h as I } from "vue";
|
|
2
|
+
import { t as R } from "./index-BRhAeH7J.js";
|
|
3
|
+
import { h as O } from "./moment-h96o7c8I.js";
|
|
4
|
+
import { useI18n as L, useCoreStore as G } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
6
|
-
import { t as X, b as Z, _ as ee } from "./assets-
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
6
|
+
import { t as X, b as Z, _ as ee } from "./assets-gWQvONT9.js";
|
|
7
|
+
import { u as te } from "./index-Q0ELb0wB.js";
|
|
8
|
+
import { _ as ae } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
9
|
import { _ as ne } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
10
10
|
import { _ as se } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js";
|
|
11
|
-
import { p as re } from "./index-
|
|
12
|
-
import { t as oe } from "./index-
|
|
13
|
-
import { u as le, p as
|
|
11
|
+
import { p as re } from "./index-Dq4IAN2N.js";
|
|
12
|
+
import { t as oe } from "./index-DGqWjywh.js";
|
|
13
|
+
import { u as le, p as E } from "./index-T2CVm7-_.js";
|
|
14
14
|
import { useSnackbar as ie, useDialog as ce } from "@feedmepos/ui-library";
|
|
15
|
-
import { _ as ue, a as me, b as de } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { g as pe } from "./grafana-
|
|
17
|
-
import { w as
|
|
18
|
-
import { u as
|
|
19
|
-
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as ue, a as me, b as de } from "./Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js";
|
|
16
|
+
import { g as pe } from "./grafana-VY3mqepx.js";
|
|
17
|
+
import { w as B } from "./Modal-DB8M9o1T.js";
|
|
18
|
+
import { u as K } from "./error-K1CakhA9.js";
|
|
19
|
+
import { _ as ye } from "./index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js";
|
|
20
20
|
const fe = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "inline-flex"
|
|
23
|
-
}, _e = { class: "relative" }, ve = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, be = /* @__PURE__ */
|
|
23
|
+
}, _e = { class: "relative" }, ve = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, be = /* @__PURE__ */ w({
|
|
24
24
|
__name: "SourceSelector",
|
|
25
25
|
props: {
|
|
26
26
|
id: {},
|
|
@@ -31,11 +31,11 @@ const fe = {
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:id", "update:by"],
|
|
33
33
|
setup(V, { emit: y }) {
|
|
34
|
-
const h = V, m = y, { t: s } = L(), { currentBusiness: b, readRestaurants: f } =
|
|
35
|
-
let
|
|
36
|
-
U(
|
|
37
|
-
|
|
38
|
-
var l = new RegExp(
|
|
34
|
+
const h = V, m = y, { t: s } = L(), { currentBusiness: b, readRestaurants: f } = G(), { isLoading: _, startAsyncCall: d } = le(!0), v = x([]), u = x(), T = x(""), S = x([]);
|
|
35
|
+
let C;
|
|
36
|
+
U(T, async () => {
|
|
37
|
+
C && clearTimeout(C), C = setTimeout(() => {
|
|
38
|
+
var l = new RegExp(T.value, "i");
|
|
39
39
|
S.value = v.value.filter((i) => {
|
|
40
40
|
const o = JSON.stringify(i);
|
|
41
41
|
return l.test(o);
|
|
@@ -45,34 +45,34 @@ const fe = {
|
|
|
45
45
|
var l, i;
|
|
46
46
|
m("update:id", (l = u.value) == null ? void 0 : l.value), m("update:by", (i = u.value) == null ? void 0 : i.by);
|
|
47
47
|
});
|
|
48
|
-
async function
|
|
48
|
+
async function M() {
|
|
49
49
|
return d(async () => {
|
|
50
50
|
let l = await re.readBusinessPayoutAccounts();
|
|
51
51
|
if (l.length !== 0)
|
|
52
52
|
return l;
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
async function
|
|
55
|
+
async function $() {
|
|
56
56
|
return d(async () => {
|
|
57
57
|
let l = await oe.getBusinessTerminals();
|
|
58
58
|
if (l.length !== 0)
|
|
59
59
|
return l;
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
async function
|
|
62
|
+
async function P() {
|
|
63
63
|
_.value = !0;
|
|
64
64
|
const l = [];
|
|
65
65
|
if (!h.excludePayoutAccount) {
|
|
66
|
-
const i = await
|
|
66
|
+
const i = await M();
|
|
67
67
|
l.push(
|
|
68
68
|
...(i || []).map((o) => {
|
|
69
|
-
var
|
|
69
|
+
var t, e;
|
|
70
70
|
return {
|
|
71
71
|
by: "PAYOUT_ACCOUNT",
|
|
72
72
|
value: o._id,
|
|
73
73
|
prefix: s("payment.components.payout_account"),
|
|
74
74
|
type: "Payout Account - " + o.store.event,
|
|
75
|
-
label: ((e = (
|
|
75
|
+
label: ((e = (t = o.ref) == null ? void 0 : t.profile) == null ? void 0 : e.name) ?? o.ref.name
|
|
76
76
|
};
|
|
77
77
|
})
|
|
78
78
|
);
|
|
@@ -90,7 +90,7 @@ const fe = {
|
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
if (!h.excludeDevice) {
|
|
93
|
-
const i = await
|
|
93
|
+
const i = await $();
|
|
94
94
|
l.push(
|
|
95
95
|
...(i || []).map((o) => ({
|
|
96
96
|
by: "DEVICE",
|
|
@@ -103,39 +103,39 @@ const fe = {
|
|
|
103
103
|
}
|
|
104
104
|
v.value = l, S.value = v.value, _.value = !1;
|
|
105
105
|
}
|
|
106
|
-
return
|
|
107
|
-
const o =
|
|
108
|
-
return n(_) ? (F(),
|
|
106
|
+
return z(P), U(b, P), (l, i) => {
|
|
107
|
+
const o = g("FmCircularProgress"), t = g("FmChip"), e = g("FmSearch"), r = g("FmMenuItem"), c = g("FmMenu");
|
|
108
|
+
return n(_) ? (F(), Y(o, {
|
|
109
109
|
key: 0,
|
|
110
110
|
size: "md"
|
|
111
|
-
})) : (F(),
|
|
111
|
+
})) : (F(), q("div", fe, [
|
|
112
112
|
p(c, { "close-on-click": !0 }, {
|
|
113
|
-
"menu-button":
|
|
114
|
-
var
|
|
113
|
+
"menu-button": k(() => {
|
|
114
|
+
var a;
|
|
115
115
|
return [
|
|
116
|
-
p(
|
|
116
|
+
p(t, {
|
|
117
117
|
icon: "account_box",
|
|
118
|
-
label: ((
|
|
118
|
+
label: ((a = u.value) == null ? void 0 : a.label) ?? n(s)("payment.components.select"),
|
|
119
119
|
removable: !!u.value,
|
|
120
|
-
onChipClosed: i[0] || (i[0] = (
|
|
120
|
+
onChipClosed: i[0] || (i[0] = (D) => u.value = void 0)
|
|
121
121
|
}, null, 8, ["label", "removable"])
|
|
122
122
|
];
|
|
123
123
|
}),
|
|
124
|
-
default:
|
|
124
|
+
default: k(() => [
|
|
125
125
|
A("div", _e, [
|
|
126
126
|
A("div", ve, [
|
|
127
127
|
p(e, {
|
|
128
|
-
"model-value":
|
|
129
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
128
|
+
"model-value": T.value,
|
|
129
|
+
"onUpdate:modelValue": i[1] || (i[1] = (a) => T.value = a),
|
|
130
130
|
placeholder: n(s)("payment.components.select")
|
|
131
131
|
}, null, 8, ["model-value", "placeholder"])
|
|
132
132
|
]),
|
|
133
133
|
A("div", null, [
|
|
134
|
-
(F(!0),
|
|
135
|
-
key:
|
|
136
|
-
label:
|
|
137
|
-
sublabel:
|
|
138
|
-
onClick: () => u.value =
|
|
134
|
+
(F(!0), q(j, null, J(S.value, (a) => (F(), Y(r, {
|
|
135
|
+
key: a.value,
|
|
136
|
+
label: a.label,
|
|
137
|
+
sublabel: a.type,
|
|
138
|
+
onClick: () => u.value = a
|
|
139
139
|
}, null, 8, ["label", "sublabel", "onClick"]))), 128))
|
|
140
140
|
])
|
|
141
141
|
])
|
|
@@ -145,7 +145,7 @@ const fe = {
|
|
|
145
145
|
]));
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
148
|
+
}), Te = { class: "flex items-center gap-1" }, ge = /* @__PURE__ */ w({
|
|
149
149
|
__name: "BillSeqNumber",
|
|
150
150
|
props: {
|
|
151
151
|
row: {},
|
|
@@ -153,8 +153,8 @@ const fe = {
|
|
|
153
153
|
},
|
|
154
154
|
setup(V) {
|
|
155
155
|
return (y, h) => {
|
|
156
|
-
const m =
|
|
157
|
-
return F(),
|
|
156
|
+
const m = g("FmIcon");
|
|
157
|
+
return F(), q("span", Te, [
|
|
158
158
|
Q(H(V.row.original.seqNumber) + " ", 1),
|
|
159
159
|
p(m, {
|
|
160
160
|
size: "md",
|
|
@@ -164,55 +164,59 @@ const fe = {
|
|
|
164
164
|
]);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
|
-
}), he = { class: "flex justify-between mb-6 items-center" }, Ae = { class: "flex space-x-8 items-start" }, Se = { class: "flex space-x-4 self-center" }, Ne = { class: "flex space-x-12 mb-6" }, Le = /* @__PURE__ */
|
|
167
|
+
}), he = { class: "flex justify-between mb-6 items-center" }, Ae = { class: "flex space-x-8 items-start" }, Se = { class: "flex space-x-4 self-center" }, Ne = { class: "flex space-x-12 mb-6" }, Le = /* @__PURE__ */ w({
|
|
168
168
|
__name: "Transaction",
|
|
169
169
|
setup(V) {
|
|
170
170
|
var i, o;
|
|
171
|
-
const y = ie(), h = ce(), { sessionUser: m } =
|
|
171
|
+
const y = ie(), h = ce(), { sessionUser: m } = G(), { t: s } = L(), b = x(), { dateRange: f, searchKey: _, status: d, id: v, by: u } = te({
|
|
172
172
|
by: "",
|
|
173
173
|
id: "",
|
|
174
174
|
searchKey: "",
|
|
175
|
-
status: [
|
|
175
|
+
status: [E.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
|
|
176
176
|
dateRange: {
|
|
177
|
-
startDate:
|
|
178
|
-
endDate:
|
|
177
|
+
startDate: O().startOf("day").format("YYYY-MM-DD"),
|
|
178
|
+
endDate: O().endOf("day").format("YYYY-MM-DD")
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
|
-
let
|
|
181
|
+
let T;
|
|
182
182
|
U(_, async () => {
|
|
183
|
-
|
|
183
|
+
T && clearTimeout(T), T = setTimeout(
|
|
184
184
|
() => {
|
|
185
|
-
var
|
|
186
|
-
return (
|
|
185
|
+
var t;
|
|
186
|
+
return (t = b.value) == null ? void 0 : t.reset();
|
|
187
187
|
},
|
|
188
188
|
700
|
|
189
189
|
);
|
|
190
190
|
}), U([f, d, v, u], () => {
|
|
191
|
-
var
|
|
192
|
-
(
|
|
191
|
+
var t;
|
|
192
|
+
(t = b.value) == null || t.reset();
|
|
193
193
|
});
|
|
194
194
|
const S = [
|
|
195
195
|
{
|
|
196
196
|
label: "Success",
|
|
197
|
-
value:
|
|
197
|
+
value: E.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
label: "Refunded",
|
|
201
|
-
value:
|
|
201
|
+
value: E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
label: "Process",
|
|
205
|
-
value:
|
|
205
|
+
value: E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
label: "Pending Settlement",
|
|
209
|
+
value: E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING_SETTLEMENT
|
|
206
210
|
},
|
|
207
211
|
{
|
|
208
212
|
label: "Failed",
|
|
209
|
-
value:
|
|
213
|
+
value: E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
|
|
210
214
|
}
|
|
211
215
|
];
|
|
212
|
-
async function
|
|
216
|
+
async function C(t, e) {
|
|
213
217
|
var r;
|
|
214
218
|
try {
|
|
215
|
-
const c = await
|
|
219
|
+
const c = await R.refetchTransaction({ transactionId: t.id });
|
|
216
220
|
(r = b.value) == null || r.replaceData(e, c), y.open({
|
|
217
221
|
type: "success",
|
|
218
222
|
title: "Transaction queried and updated successfully."
|
|
@@ -221,22 +225,22 @@ const fe = {
|
|
|
221
225
|
y.open({
|
|
222
226
|
type: "error",
|
|
223
227
|
title: "Fail to query transaction.",
|
|
224
|
-
message:
|
|
228
|
+
message: K(c)
|
|
225
229
|
});
|
|
226
230
|
}
|
|
227
231
|
}
|
|
228
|
-
async function
|
|
229
|
-
|
|
232
|
+
async function M(t, e) {
|
|
233
|
+
B(
|
|
230
234
|
h,
|
|
231
235
|
"Refund Transaction",
|
|
232
236
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
233
237
|
async () => {
|
|
234
238
|
var r;
|
|
235
239
|
try {
|
|
236
|
-
const c = await
|
|
237
|
-
transactionId:
|
|
240
|
+
const c = await R.refundTransaction({
|
|
241
|
+
transactionId: t.id,
|
|
238
242
|
reason: "portal transaction refund",
|
|
239
|
-
amount:
|
|
243
|
+
amount: t.fdoAmount
|
|
240
244
|
});
|
|
241
245
|
(r = b.value) == null || r.replaceData(e, c), y.open({
|
|
242
246
|
type: "success",
|
|
@@ -246,20 +250,20 @@ const fe = {
|
|
|
246
250
|
y.open({
|
|
247
251
|
type: "error",
|
|
248
252
|
title: "Fail to request refund transaction.",
|
|
249
|
-
message:
|
|
253
|
+
message: K(c)
|
|
250
254
|
});
|
|
251
255
|
}
|
|
252
256
|
}
|
|
253
257
|
);
|
|
254
258
|
}
|
|
255
|
-
async function
|
|
256
|
-
|
|
259
|
+
async function $(t, e) {
|
|
260
|
+
B(
|
|
257
261
|
h,
|
|
258
262
|
"Notify Transaction",
|
|
259
263
|
"Are you sure to perform notify transaction?",
|
|
260
264
|
async () => {
|
|
261
265
|
try {
|
|
262
|
-
await
|
|
266
|
+
await R.renotifyTransaction(t.id), y.open({
|
|
263
267
|
type: "success",
|
|
264
268
|
title: "Transaction notify successfully."
|
|
265
269
|
});
|
|
@@ -267,20 +271,20 @@ const fe = {
|
|
|
267
271
|
y.open({
|
|
268
272
|
type: "error",
|
|
269
273
|
title: "Fail to notify transaction.",
|
|
270
|
-
message:
|
|
274
|
+
message: K(r)
|
|
271
275
|
});
|
|
272
276
|
}
|
|
273
277
|
}
|
|
274
278
|
);
|
|
275
279
|
}
|
|
276
|
-
async function
|
|
280
|
+
async function P(t, e) {
|
|
277
281
|
const r = pe([
|
|
278
282
|
{
|
|
279
283
|
type: "span",
|
|
280
284
|
queryKey: "transaction.id",
|
|
281
|
-
queryValue:
|
|
285
|
+
queryValue: t.id
|
|
282
286
|
}
|
|
283
|
-
],
|
|
287
|
+
], t.transactionAt);
|
|
284
288
|
window.open(r, "_blank");
|
|
285
289
|
}
|
|
286
290
|
x("");
|
|
@@ -288,7 +292,7 @@ const fe = {
|
|
|
288
292
|
{
|
|
289
293
|
header: () => s("payment.transactions.table.id"),
|
|
290
294
|
accessorKey: "id",
|
|
291
|
-
cell: ({ cell:
|
|
295
|
+
cell: ({ cell: t, row: e }) => {
|
|
292
296
|
var r, c;
|
|
293
297
|
return ((r = m.value) != null && r.role.isStaff || (c = m.value) != null && c.role.isAdmin) && e.original.transactionId ? e.original.id + `
|
|
294
298
|
ID: ` + e.original.transactionId : e.original.id;
|
|
@@ -305,7 +309,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
305
309
|
{
|
|
306
310
|
header: () => s("payment.transactions.table.bill_seq"),
|
|
307
311
|
accessorKey: "seqNumber",
|
|
308
|
-
cell: ({ cell:
|
|
312
|
+
cell: ({ cell: t, row: e }) => e.original.seqNumberBinded ? I(ge, { row: e, data: t.getValue() }) : e.original.seqNumber
|
|
309
313
|
},
|
|
310
314
|
{
|
|
311
315
|
header: () => s("payment.transactions.table.gateway"),
|
|
@@ -313,7 +317,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
313
317
|
meta: {
|
|
314
318
|
textAlign: "center"
|
|
315
319
|
},
|
|
316
|
-
cell: ({ cell:
|
|
320
|
+
cell: ({ cell: t, row: e }) => e.original.gateway ? I(ue, { row: e, data: t.getValue() }) : ""
|
|
317
321
|
},
|
|
318
322
|
{
|
|
319
323
|
header: () => s("payment.transactions.table.method"),
|
|
@@ -321,7 +325,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
321
325
|
meta: {
|
|
322
326
|
textAlign: "center"
|
|
323
327
|
},
|
|
324
|
-
cell: ({ cell:
|
|
328
|
+
cell: ({ cell: t, row: e }) => e.original.method ? I(me, { row: e, data: t.getValue() }) : ""
|
|
325
329
|
},
|
|
326
330
|
{
|
|
327
331
|
header: () => s("payment.transactions.table.type"),
|
|
@@ -333,7 +337,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
333
337
|
{
|
|
334
338
|
header: () => s("payment.transactions.table.status"),
|
|
335
339
|
accessorKey: "status",
|
|
336
|
-
cell: ({ cell:
|
|
340
|
+
cell: ({ cell: t }) => I(ee, { data: t.getValue() })
|
|
337
341
|
},
|
|
338
342
|
{
|
|
339
343
|
header: () => s("payment.transactions.table.restaurant"),
|
|
@@ -342,7 +346,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
342
346
|
{
|
|
343
347
|
header: () => s("payment.transactions.table.source"),
|
|
344
348
|
accessorKey: "source",
|
|
345
|
-
cell: ({ cell:
|
|
349
|
+
cell: ({ cell: t, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
|
|
346
350
|
},
|
|
347
351
|
{
|
|
348
352
|
header: () => s("payment.transactions.table.transaction_at"),
|
|
@@ -350,12 +354,12 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
350
354
|
meta: {
|
|
351
355
|
width: "180px"
|
|
352
356
|
},
|
|
353
|
-
cell: ({ cell:
|
|
357
|
+
cell: ({ cell: t, row: e }) => e.original.status === "REFUNDED" ? e.original.refundedAt : e.original.transactionAt
|
|
354
358
|
},
|
|
355
359
|
{
|
|
356
360
|
header: () => s("payment.transactions.table.sales_amount"),
|
|
357
361
|
accessorKey: "amount",
|
|
358
|
-
cell: ({ cell:
|
|
362
|
+
cell: ({ cell: t, row: e }) => {
|
|
359
363
|
var r, c;
|
|
360
364
|
return ((r = m.value) != null && r.role.isStaff || (c = m.value) != null && c.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
361
365
|
}
|
|
@@ -364,55 +368,55 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
364
368
|
return ((i = m.value) != null && i.role.isStaff || (o = m.value) != null && o.role.isAdmin) && l.push({
|
|
365
369
|
header: () => s("payment.transactions.table.actions"),
|
|
366
370
|
accessorKey: "actions",
|
|
367
|
-
cell: ({ row:
|
|
368
|
-
transaction:
|
|
371
|
+
cell: ({ row: t }) => I(de, {
|
|
372
|
+
transaction: t.original,
|
|
369
373
|
onAction: (e) => {
|
|
370
374
|
var r;
|
|
371
375
|
switch (e) {
|
|
372
376
|
case "notify":
|
|
373
|
-
return
|
|
377
|
+
return $(t.original, t.index);
|
|
374
378
|
case "query":
|
|
375
|
-
return
|
|
379
|
+
return C(t.original, t.index);
|
|
376
380
|
case "refund":
|
|
377
381
|
return (r = m.value) != null && r.role.isStaff ? y.open({
|
|
378
382
|
type: "error",
|
|
379
383
|
title: "You are not allowed to refund transaction."
|
|
380
|
-
}) :
|
|
384
|
+
}) : M(t.original, t.index);
|
|
381
385
|
case "history":
|
|
382
|
-
return
|
|
386
|
+
return P(t.original, t.index);
|
|
383
387
|
}
|
|
384
388
|
}
|
|
385
389
|
})
|
|
386
|
-
}), (
|
|
387
|
-
const r =
|
|
388
|
-
return F(),
|
|
390
|
+
}), (t, e) => {
|
|
391
|
+
const r = g("FmSearch"), c = g("FmSelect");
|
|
392
|
+
return F(), Y(W, {
|
|
389
393
|
title: n(s)("payment.transactions.title"),
|
|
390
394
|
description: n(s)("payment.transactions.description"),
|
|
391
395
|
loading: !1
|
|
392
396
|
}, {
|
|
393
|
-
default:
|
|
397
|
+
default: k(() => [
|
|
394
398
|
A("div", he, [
|
|
395
399
|
A("div", Ae, [
|
|
396
400
|
p(r, {
|
|
397
401
|
"model-value": n(_),
|
|
398
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
402
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => N(_) ? _.value = a : null),
|
|
399
403
|
class: "mr-8",
|
|
400
404
|
label: n(s)("payment.transactions.search.title"),
|
|
401
405
|
placeholder: n(s)("payment.transactions.search.placeholder")
|
|
402
406
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
403
407
|
p(c, {
|
|
404
408
|
modelValue: n(d),
|
|
405
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
409
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => N(d) ? d.value = a : null),
|
|
406
410
|
class: "mr-6 w-[300px]",
|
|
407
411
|
label: n(s)("payment.transactions.status"),
|
|
408
412
|
"label-mark": "required",
|
|
409
413
|
multiselect: "",
|
|
410
414
|
items: S
|
|
411
415
|
}, {
|
|
412
|
-
"prepend-menu":
|
|
416
|
+
"prepend-menu": k(() => [
|
|
413
417
|
p(ne, {
|
|
414
418
|
modelValue: n(d),
|
|
415
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
419
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => N(d) ? d.value = a : null),
|
|
416
420
|
items: S
|
|
417
421
|
}, null, 8, ["modelValue"])
|
|
418
422
|
]),
|
|
@@ -420,16 +424,16 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
420
424
|
}, 8, ["modelValue", "label"])
|
|
421
425
|
]),
|
|
422
426
|
A("div", Se, [
|
|
423
|
-
p(
|
|
427
|
+
p(ae, {
|
|
424
428
|
button: {
|
|
425
429
|
appendIcon: "file_download",
|
|
426
430
|
variant: "primary",
|
|
427
431
|
label: n(s)("payment.transactions.button.export")
|
|
428
432
|
},
|
|
429
433
|
handler: async () => {
|
|
430
|
-
var
|
|
431
|
-
const
|
|
432
|
-
|
|
434
|
+
var D;
|
|
435
|
+
const a = await ((D = b.value) == null ? void 0 : D.allData());
|
|
436
|
+
a != null && await n(R).downloadPortalTransactionReport(n(f), n(X)(a));
|
|
433
437
|
}
|
|
434
438
|
}, null, 8, ["button", "handler"])
|
|
435
439
|
])
|
|
@@ -437,13 +441,13 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
437
441
|
A("div", Ne, [
|
|
438
442
|
p(be, {
|
|
439
443
|
id: n(v),
|
|
440
|
-
"onUpdate:id": e[3] || (e[3] = (
|
|
444
|
+
"onUpdate:id": e[3] || (e[3] = (a) => N(v) ? v.value = a : null),
|
|
441
445
|
by: n(u),
|
|
442
|
-
"onUpdate:by": e[4] || (e[4] = (
|
|
446
|
+
"onUpdate:by": e[4] || (e[4] = (a) => N(u) ? u.value = a : null)
|
|
443
447
|
}, null, 8, ["id", "by"]),
|
|
444
448
|
p(se, {
|
|
445
449
|
modelValue: n(f),
|
|
446
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
|
450
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => N(f) ? f.value = a : null)
|
|
447
451
|
}, null, 8, ["modelValue"])
|
|
448
452
|
]),
|
|
449
453
|
p(ye, {
|
|
@@ -451,9 +455,9 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
451
455
|
ref: b,
|
|
452
456
|
"column-defs": l,
|
|
453
457
|
"rows-defs": n(Z),
|
|
454
|
-
paginate: (
|
|
455
|
-
limit:
|
|
456
|
-
cursor:
|
|
458
|
+
paginate: (a, D) => n(R).readTransactionsV2({
|
|
459
|
+
limit: a,
|
|
460
|
+
cursor: D,
|
|
457
461
|
status: n(d),
|
|
458
462
|
by: n(u),
|
|
459
463
|
id: n(v),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
|
|
2
|
-
import { t as v } from "./index-
|
|
3
|
-
import { u as U } from "./index-
|
|
2
|
+
import { t as v } from "./index-BRhAeH7J.js";
|
|
3
|
+
import { u as U } from "./index-T2CVm7-_.js";
|
|
4
4
|
import { useSnackbar as L, useDialog as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as B, b as $, t as J } from "./assets-
|
|
6
|
-
import { _ as j, a as G, b as Q } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { g as z } from "./grafana-
|
|
5
|
+
import { _ as B, b as $, t as J } from "./assets-gWQvONT9.js";
|
|
6
|
+
import { _ as j, a as G, b as Q } from "./Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js";
|
|
7
|
+
import { g as z } from "./grafana-VY3mqepx.js";
|
|
8
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
9
9
|
import { u as V } from "./error-K1CakhA9.js";
|
|
10
10
|
import { useCoreStore as N, useI18n as E } from "@feedmepos/mf-common";
|
|
11
11
|
import { h as I } from "./moment-h96o7c8I.js";
|
|
12
12
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
13
|
-
import { u as W } from "./index-
|
|
13
|
+
import { u as W } from "./index-Q0ELb0wB.js";
|
|
14
14
|
import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
15
15
|
import { _ as Z } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js";
|
|
16
16
|
import { _ as aa } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js";
|