@feedmepos/mf-payment 1.5.76-dev → 1.5.77
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-BBWoxxpE.js → Actions.vue_vue_type_script_setup_true_lang-D_PoXVbz.js} +1 -1
- package/dist/{Chargeback-7jLLq3BR.js → Chargeback-CzwL8PJv.js} +7 -7
- package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js → DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js} +1 -1
- package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js +94 -0
- package/dist/Forbidden-1aaq-Ilm.js +38 -0
- package/dist/{OnboardForm-D_FIXmPB.js → OnboardForm-C6LuVVyr.js} +6 -6
- package/dist/{OnboardForm-BN0ILsGU.js → OnboardForm-DZeWRzRD.js} +482 -554
- package/dist/{OnboardSubmission-CjObMzjr.js → OnboardSubmission-C2BYK2p1.js} +27 -27
- package/dist/OnboardSubmission-DvWwQFy6.js +222 -0
- package/dist/{PayoutAccount-BdfuqSaf.js → PayoutAccount-BMQZ5bOZ.js} +5 -5
- package/dist/{PayoutAccount-BpSQ2zQk.js → PayoutAccount-VbRd7cmv.js} +102 -101
- package/dist/PayoutAccountSetting-DzzABgzs.js +1765 -0
- package/dist/{Restaurant-BeasTCBN.js → Restaurant-4cO60aVP.js} +4 -4
- package/dist/{RestaurantSetting-DwRraruD.js → RestaurantSetting-Bvk0dnCI.js} +243 -325
- package/dist/{Settlement-CDQ4mC52.js → Settlement-CklF8pz7.js} +4 -4
- package/dist/{Settlement-CFfl02X_.js → Settlement-Cme1wMB-.js} +5 -5
- package/dist/{SettlementTransactions-Bt_v-aI6.js → SettlementTransactions-3F4EOoyz.js} +4 -4
- package/dist/{SettlementTransactions-BXeYz_iy.js → SettlementTransactions-DD285bSJ.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Cq8LBhUh.js → Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js} +1 -1
- package/dist/{Terminal-Bdra-49r.js → Terminal-CK6ULW6U.js} +6 -6
- package/dist/{TerminalSetting-CzjDu4A_.js → TerminalSetting-CEQG3OV6.js} +712 -887
- package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js → TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js} +1 -1
- package/dist/Transaction-D-Z3zRd7.js +517 -0
- package/dist/{Transaction-BG3RCxYv.js → Transaction-DjzWqLtN.js} +102 -99
- package/dist/TransactionOld-BXjA15Dd.js +314 -0
- package/dist/api/onboard-submission/index.d.ts +1 -3
- package/dist/api/terminal/index.d.ts +0 -1
- package/dist/app-CEy5Ojtg.js +7661 -0
- package/dist/app.d.ts +1 -96
- package/dist/app.js +4 -5
- package/dist/{assets-DhWdwOH7.js → assets-DIbq1BVX.js} +79 -81
- package/dist/{grafana-DJDzzJ9q.js → grafana-B0iQmK6j.js} +1 -1
- package/dist/{index-BbaDzW6B.js → index-B0L21J1j.js} +1 -1
- package/dist/{index-BpwmbLR4.js → index-BHCs_NnD.js} +1 -1
- package/dist/{index-C2X36PPH.js → index-BkQ7t3F6.js} +1 -1
- package/dist/{index-DugLDgA_.js → index-C80a7-Ks.js} +1 -1
- package/dist/{index-DgtoLJuf.js → index-C_Y5Sfc9.js} +1 -1
- package/dist/{index-BL_cPUhX.js → index-CnN_MV2-.js} +9 -24
- package/dist/{index-DqBHy3Py.js → index-CxnWUe_K.js} +3 -3
- package/dist/{index-DbCpzLPM.js → index-D0j1LZAB.js} +9264 -9427
- package/dist/index-XTdSN6CV.js +60 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bl9xUvgx.js → index.vue_vue_type_script_setup_true_lang-BksGFeSf.js} +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DTcwQ5Qj.js → no-data-BRmo6XOO.js} +2 -92
- package/dist/package.json +3 -4
- package/dist/{payout-account-C0AWMnuX.js → payout-account-B7OikYn5.js} +37 -37
- package/dist/softspace-D9cEyOQT.js +4 -0
- package/dist/stores/payoutAccount.d.ts +34 -44
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{validator-DzjyJnvv.js → validator-CTlVogBQ.js} +1 -0
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +34 -44
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +54 -64
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +54 -64
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +34 -44
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +43 -44
- package/dist/views/admin/payout-account/tabs/SettlementEditDialog.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +54 -64
- 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 +2 -2
- 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 +2 -2
- 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 +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
- 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 +4 -4
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
- 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 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +2 -2
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +68 -88
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +84 -84
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +42 -42
- package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
- package/dist/views/transaction/TransactionTable.vue.d.ts +2 -2
- package/package.json +3 -4
- package/dist/OnboardSubmission-hDMAGRnx.js +0 -446
- package/dist/PayoutAccountSetting-Bj3ayBnW.js +0 -1502
- package/dist/Transaction-C3Le6Ig-.js +0 -507
- package/dist/TransactionOld-BXbn3NQy.js +0 -313
- package/dist/app-DEJ_hAvw.js +0 -9156
- package/dist/composable/async-poller/index.d.ts +0 -22
- package/dist/index-MdV54cWO.js +0 -58
- package/dist/index-RripfGVB.js +0 -63
- package/dist/tyro-BovmsorS.js +0 -5
- package/dist/utils/permission.d.ts +0 -1
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +0 -81
- package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +0 -39
- package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +0 -48
- package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +0 -12
- package/dist/views/onboard-submission/tyro-submission-polling.d.ts +0 -27
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
1
|
+
import { defineComponent as T, resolveComponent as h, openBlock as _, createBlock as x, withCtx as D, createElementVNode as b, unref as y, computed as U, createElementBlock as k, createVNode as g, Fragment as Q, renderList as j, createTextVNode as z, toDisplayString as H, ref as J, watch as P, onBeforeUnmount as W, isRef as A, h as p } from "vue";
|
|
2
|
+
import { t as f } from "./index-BHCs_NnD.js";
|
|
3
3
|
import { h as S } from "./moment-h96o7c8I.js";
|
|
4
|
-
import { g as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { useSnackbar as
|
|
4
|
+
import { g as X, a as Z, t as ee, _ as te, b as F } from "./assets-DIbq1BVX.js";
|
|
5
|
+
import { u as ae } from "./index-BkQ7t3F6.js";
|
|
6
|
+
import { _ as ne } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
|
+
import { _ as re } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
|
+
import { useSnackbar as oe, useDialog as se } from "@feedmepos/ui-library";
|
|
9
9
|
import { w as $ } from "./Modal-DB8M9o1T.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { g as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as G } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { useCoreStore as
|
|
17
|
-
import { u as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
10
|
+
import { u as I } from "./error-K1CakhA9.js";
|
|
11
|
+
import { _ as ie } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
|
|
12
|
+
import { g as ce } from "./grafana-B0iQmK6j.js";
|
|
13
|
+
import { _ as le } from "./index.vue_vue_type_script_setup_true_lang-BksGFeSf.js";
|
|
14
|
+
import { _ as ue } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
15
|
+
import { _ as G } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js";
|
|
16
|
+
import { useCoreStore as de } from "@feedmepos/mf-common";
|
|
17
|
+
import { u as me, a as pe } from "./index-BwdnN4a2.js";
|
|
18
|
+
import { s as K } from "./validator-CTlVogBQ.js";
|
|
19
|
+
const fe = ["src"], ye = /* @__PURE__ */ T({
|
|
21
20
|
__name: "Gateway",
|
|
22
21
|
props: {
|
|
23
22
|
row: {},
|
|
@@ -32,17 +31,17 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
32
31
|
content: c.row.original.gateway,
|
|
33
32
|
"hide-arrow": !0
|
|
34
33
|
}, {
|
|
35
|
-
default:
|
|
36
|
-
|
|
34
|
+
default: D(() => [
|
|
35
|
+
b("img", {
|
|
37
36
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
38
|
-
src:
|
|
37
|
+
src: y(X)(c.row.original.gateway)
|
|
39
38
|
}, null, 8, fe)
|
|
40
39
|
]),
|
|
41
40
|
_: 1
|
|
42
41
|
}, 8, ["content"]);
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
|
-
}),
|
|
44
|
+
}), ge = ["src"], he = /* @__PURE__ */ T({
|
|
46
45
|
__name: "Method",
|
|
47
46
|
props: {
|
|
48
47
|
row: {},
|
|
@@ -57,24 +56,24 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
57
56
|
content: c.row.original.method.issuer,
|
|
58
57
|
"hide-arrow": !0
|
|
59
58
|
}, {
|
|
60
|
-
default:
|
|
61
|
-
|
|
59
|
+
default: D(() => [
|
|
60
|
+
b("img", {
|
|
62
61
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
|
63
|
-
src:
|
|
64
|
-
}, null, 8,
|
|
62
|
+
src: y(Z)(c.row.original.method.issuer, c.row.original.method.variant)
|
|
63
|
+
}, null, 8, ge)
|
|
65
64
|
]),
|
|
66
65
|
_: 1
|
|
67
66
|
}, 8, ["content"]);
|
|
68
67
|
};
|
|
69
68
|
}
|
|
70
|
-
}),
|
|
69
|
+
}), _e = /* @__PURE__ */ T({
|
|
71
70
|
__name: "Actions",
|
|
72
71
|
props: {
|
|
73
72
|
onAction: { type: Function },
|
|
74
73
|
transaction: {}
|
|
75
74
|
},
|
|
76
75
|
setup(c) {
|
|
77
|
-
const r =
|
|
76
|
+
const r = U(() => [
|
|
78
77
|
c.transaction.flags.query && {
|
|
79
78
|
label: "Query",
|
|
80
79
|
sublabel: "Perform transaction status inquriy",
|
|
@@ -113,18 +112,18 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
113
112
|
}
|
|
114
113
|
]);
|
|
115
114
|
return (l, s) => {
|
|
116
|
-
const
|
|
115
|
+
const w = h("FmIcon"), o = h("FmMenuItem"), d = h("FmMenu");
|
|
117
116
|
return _(), k("div", {
|
|
118
117
|
onClick: s[0] || (s[0] = (u) => {
|
|
119
118
|
u.stopPropagation();
|
|
120
119
|
})
|
|
121
120
|
}, [
|
|
122
121
|
g(d, null, {
|
|
123
|
-
"menu-button":
|
|
124
|
-
g(
|
|
122
|
+
"menu-button": D(() => [
|
|
123
|
+
g(w, { name: "settings" })
|
|
125
124
|
]),
|
|
126
|
-
default:
|
|
127
|
-
(_(!0), k(
|
|
125
|
+
default: D(() => [
|
|
126
|
+
(_(!0), k(Q, null, j(r.value.filter((u) => !!u), (u) => (_(), x(o, {
|
|
128
127
|
selectable: !0,
|
|
129
128
|
key: u.label,
|
|
130
129
|
sublabel: u.sublabel,
|
|
@@ -138,7 +137,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
138
137
|
]);
|
|
139
138
|
};
|
|
140
139
|
}
|
|
141
|
-
}),
|
|
140
|
+
}), we = { class: "flex items-center gap-1" }, be = /* @__PURE__ */ T({
|
|
142
141
|
__name: "BillSeqNumber",
|
|
143
142
|
props: {
|
|
144
143
|
row: {},
|
|
@@ -147,8 +146,8 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
147
146
|
setup(c) {
|
|
148
147
|
return (r, l) => {
|
|
149
148
|
const s = h("FmIcon");
|
|
150
|
-
return _(), k("span",
|
|
151
|
-
H(
|
|
149
|
+
return _(), k("span", we, [
|
|
150
|
+
z(H(c.row.original.seqNumber) + " ", 1),
|
|
152
151
|
g(s, {
|
|
153
152
|
size: "md",
|
|
154
153
|
name: "check",
|
|
@@ -157,30 +156,30 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
157
156
|
]);
|
|
158
157
|
};
|
|
159
158
|
}
|
|
160
|
-
}),
|
|
159
|
+
}), Ie = { class: "flex justify-between mb-6 items-center" }, De = { class: "flex space-x-4" }, Te = { class: "flex space-x-4 self-center" }, ve = { class: "mb-6" }, Le = /* @__PURE__ */ T({
|
|
161
160
|
__name: "Transaction",
|
|
162
161
|
setup(c) {
|
|
163
|
-
const r =
|
|
162
|
+
const r = J(), { dateRange: l, searchKey: s } = ae({
|
|
164
163
|
searchKey: "",
|
|
165
164
|
dateRange: {
|
|
166
165
|
startDate: S().startOf("day").format("YYYY-MM-DD"),
|
|
167
166
|
endDate: S().endOf("day").format("YYYY-MM-DD")
|
|
168
167
|
}
|
|
169
|
-
}), { sessionUser:
|
|
168
|
+
}), { sessionUser: w } = de(), o = oe(), d = se(), { getBillLink: u } = pe();
|
|
170
169
|
let v;
|
|
171
170
|
const q = () => {
|
|
172
171
|
v && (clearTimeout(v), v = void 0);
|
|
173
172
|
}, {
|
|
174
|
-
promptSuggestion:
|
|
175
|
-
closeSuggestion:
|
|
176
|
-
} =
|
|
173
|
+
promptSuggestion: N,
|
|
174
|
+
closeSuggestion: V
|
|
175
|
+
} = me({
|
|
177
176
|
searchKey: s,
|
|
178
177
|
dateRange: l,
|
|
179
178
|
onBeforeApply: q
|
|
180
|
-
}),
|
|
179
|
+
}), B = async (t, e) => {
|
|
181
180
|
let a = parseInt(e);
|
|
182
181
|
Number.isNaN(a) && (a = 1);
|
|
183
|
-
const n = await
|
|
182
|
+
const n = await f.readTransactions({
|
|
184
183
|
start: S(l.value.startDate).startOf("day").toISOString(),
|
|
185
184
|
end: S(l.value.endDate).endOf("day").toISOString(),
|
|
186
185
|
limit: t,
|
|
@@ -188,7 +187,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
188
187
|
search: s.value
|
|
189
188
|
}), i = n.length == t;
|
|
190
189
|
return {
|
|
191
|
-
data:
|
|
190
|
+
data: ee(n),
|
|
192
191
|
meta: {
|
|
193
192
|
cursor: i ? (a + 1).toString() : ""
|
|
194
193
|
}
|
|
@@ -198,14 +197,14 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
198
197
|
var t;
|
|
199
198
|
(t = r.value) == null || t.reset();
|
|
200
199
|
}), P(s, () => {
|
|
201
|
-
q(),
|
|
200
|
+
q(), N(), v = setTimeout(() => {
|
|
202
201
|
var t;
|
|
203
202
|
(t = r.value) == null || t.reset();
|
|
204
203
|
}, 700);
|
|
205
|
-
}),
|
|
206
|
-
q(),
|
|
204
|
+
}), W(() => {
|
|
205
|
+
q(), V();
|
|
207
206
|
});
|
|
208
|
-
async function
|
|
207
|
+
async function M(t) {
|
|
209
208
|
var a, n;
|
|
210
209
|
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
211
210
|
if (!e) {
|
|
@@ -217,7 +216,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
217
216
|
return;
|
|
218
217
|
}
|
|
219
218
|
try {
|
|
220
|
-
const i = await
|
|
219
|
+
const i = await f.refetchTransaction({
|
|
221
220
|
transactionId: e.id
|
|
222
221
|
});
|
|
223
222
|
(n = r.value) == null || n.replaceData(t, F(i)), o.open({
|
|
@@ -228,11 +227,11 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
228
227
|
o.open({
|
|
229
228
|
type: "error",
|
|
230
229
|
title: "Fail to query transaction.",
|
|
231
|
-
message:
|
|
230
|
+
message: I(i)
|
|
232
231
|
});
|
|
233
232
|
}
|
|
234
233
|
}
|
|
235
|
-
async function
|
|
234
|
+
async function C(t) {
|
|
236
235
|
var a;
|
|
237
236
|
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
238
237
|
if (!e) {
|
|
@@ -250,7 +249,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
250
249
|
async () => {
|
|
251
250
|
var n;
|
|
252
251
|
try {
|
|
253
|
-
const i = await
|
|
252
|
+
const i = await f.refundTransaction({
|
|
254
253
|
transactionId: e.id,
|
|
255
254
|
reason: "portal transaction refund",
|
|
256
255
|
amount: e.fdoAmount
|
|
@@ -263,13 +262,13 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
263
262
|
o.open({
|
|
264
263
|
type: "error",
|
|
265
264
|
title: "Fail to request refund transaction.",
|
|
266
|
-
message:
|
|
265
|
+
message: I(i)
|
|
267
266
|
});
|
|
268
267
|
}
|
|
269
268
|
}
|
|
270
269
|
);
|
|
271
270
|
}
|
|
272
|
-
async function
|
|
271
|
+
async function R(t) {
|
|
273
272
|
var a;
|
|
274
273
|
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
275
274
|
if (!e) {
|
|
@@ -286,7 +285,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
286
285
|
"Are you sure to perform notify transaction?",
|
|
287
286
|
async () => {
|
|
288
287
|
try {
|
|
289
|
-
await
|
|
288
|
+
await f.renotifyTransaction(e.id), o.open({
|
|
290
289
|
type: "success",
|
|
291
290
|
title: "Transaction notify successfully."
|
|
292
291
|
});
|
|
@@ -294,13 +293,13 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
294
293
|
o.open({
|
|
295
294
|
type: "error",
|
|
296
295
|
title: "Fail to notify transaction.",
|
|
297
|
-
message:
|
|
296
|
+
message: I(n)
|
|
298
297
|
});
|
|
299
298
|
}
|
|
300
299
|
}
|
|
301
300
|
);
|
|
302
301
|
}
|
|
303
|
-
async function
|
|
302
|
+
async function E(t) {
|
|
304
303
|
var n;
|
|
305
304
|
const e = (n = r.value) == null ? void 0 : n.pageData().at(t);
|
|
306
305
|
if (!e) {
|
|
@@ -311,7 +310,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
311
310
|
});
|
|
312
311
|
return;
|
|
313
312
|
}
|
|
314
|
-
const a =
|
|
313
|
+
const a = ce(
|
|
315
314
|
[
|
|
316
315
|
{
|
|
317
316
|
type: "span",
|
|
@@ -323,7 +322,7 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
323
322
|
);
|
|
324
323
|
window.open(a, "_blank");
|
|
325
324
|
}
|
|
326
|
-
async function
|
|
325
|
+
async function Y(t) {
|
|
327
326
|
var a;
|
|
328
327
|
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
329
328
|
if (!e) {
|
|
@@ -342,12 +341,12 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
342
341
|
contentComponentProps: {
|
|
343
342
|
label: "Pay ID",
|
|
344
343
|
placeholder: "Enter Pay ID",
|
|
345
|
-
schema:
|
|
344
|
+
schema: K().trim().min(1, "Pay ID is required")
|
|
346
345
|
}
|
|
347
346
|
}).onPrimary(async (n) => {
|
|
348
347
|
var i;
|
|
349
348
|
try {
|
|
350
|
-
const m = await
|
|
349
|
+
const m = await f.bindPayId({
|
|
351
350
|
transactionId: e.id,
|
|
352
351
|
payId: n
|
|
353
352
|
});
|
|
@@ -359,12 +358,12 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
359
358
|
o.open({
|
|
360
359
|
type: "error",
|
|
361
360
|
title: "Failed to set Pay ID.",
|
|
362
|
-
message:
|
|
361
|
+
message: I(m)
|
|
363
362
|
});
|
|
364
363
|
}
|
|
365
364
|
});
|
|
366
365
|
}
|
|
367
|
-
async function
|
|
366
|
+
async function L(t) {
|
|
368
367
|
var a;
|
|
369
368
|
const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
|
|
370
369
|
if (!e) {
|
|
@@ -383,12 +382,12 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
383
382
|
contentComponentProps: {
|
|
384
383
|
label: "Gateway Transaction ID",
|
|
385
384
|
placeholder: "Enter Gateway Transaction ID",
|
|
386
|
-
schema:
|
|
385
|
+
schema: K().trim().min(1, "Gateway Transaction ID is required")
|
|
387
386
|
}
|
|
388
387
|
}).onPrimary(async (n) => {
|
|
389
388
|
var i;
|
|
390
389
|
try {
|
|
391
|
-
const m = await
|
|
390
|
+
const m = await f.setGatewayId({
|
|
392
391
|
transactionId: e.id,
|
|
393
392
|
gatewayTransactionId: n
|
|
394
393
|
});
|
|
@@ -400,19 +399,20 @@ const fe = ["src"], ge = /* @__PURE__ */ D({
|
|
|
400
399
|
o.open({
|
|
401
400
|
type: "error",
|
|
402
401
|
title: "Failed to set Gateway ID.",
|
|
403
|
-
message:
|
|
402
|
+
message: I(m)
|
|
404
403
|
});
|
|
405
404
|
}
|
|
406
405
|
});
|
|
407
406
|
}
|
|
408
|
-
const
|
|
407
|
+
const O = [
|
|
409
408
|
{
|
|
410
409
|
header: () => "Transaction ID",
|
|
411
410
|
accessorKey: "id",
|
|
412
411
|
cell: ({ cell: t }) => {
|
|
412
|
+
var a, n;
|
|
413
413
|
let e = "";
|
|
414
|
-
return
|
|
415
|
-
ID: ${t.row.original.transactionId}`), p(
|
|
414
|
+
return ((a = w.value) != null && a.role.isStaff || (n = w.value) != null && n.role.isAdmin) && t.row.original.transactionId && (e = `
|
|
415
|
+
ID: ${t.row.original.transactionId}`), p(ue, { data: t.getValue(), extra: e });
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
418
|
{
|
|
@@ -433,7 +433,7 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
433
433
|
{
|
|
434
434
|
header: () => "Bill",
|
|
435
435
|
accessorKey: "seqNumber",
|
|
436
|
-
cell: ({ cell: t, row: e }) => e.original.seqNumberBinded ? p(
|
|
436
|
+
cell: ({ cell: t, row: e }) => e.original.seqNumberBinded ? p(be, { row: e, data: t.getValue() }) : e.original.seqNumber
|
|
437
437
|
},
|
|
438
438
|
{
|
|
439
439
|
header: () => "Gateway",
|
|
@@ -441,7 +441,7 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
441
441
|
meta: {
|
|
442
442
|
textAlign: "center"
|
|
443
443
|
},
|
|
444
|
-
cell: ({ cell: t, row: e }) => e.original.method ? p(
|
|
444
|
+
cell: ({ cell: t, row: e }) => e.original.method ? p(ye, { row: e, data: t.getValue() }) : ""
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
447
|
header: () => "Method",
|
|
@@ -449,7 +449,7 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
449
449
|
meta: {
|
|
450
450
|
textAlign: "center"
|
|
451
451
|
},
|
|
452
|
-
cell: ({ cell: t, row: e }) => e.original.method ? p(
|
|
452
|
+
cell: ({ cell: t, row: e }) => e.original.method ? p(he, { row: e, data: t.getValue() }) : ""
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
header: () => "Gateway ID",
|
|
@@ -466,7 +466,7 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
466
466
|
{
|
|
467
467
|
header: () => "Status",
|
|
468
468
|
accessorKey: "status",
|
|
469
|
-
cell: ({ cell: t }) => p(
|
|
469
|
+
cell: ({ cell: t }) => p(te, { data: t.getValue() })
|
|
470
470
|
},
|
|
471
471
|
{
|
|
472
472
|
header: () => "Restaurant",
|
|
@@ -487,7 +487,10 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
487
487
|
{
|
|
488
488
|
header: () => "Sales Amount",
|
|
489
489
|
accessorKey: "amount",
|
|
490
|
-
cell: ({ cell: t, row: e }) =>
|
|
490
|
+
cell: ({ cell: t, row: e }) => {
|
|
491
|
+
var a, n;
|
|
492
|
+
return ((a = w.value) != null && a.role.isStaff || (n = w.value) != null && n.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
493
|
+
}
|
|
491
494
|
},
|
|
492
495
|
{
|
|
493
496
|
header: () => "Actions",
|
|
@@ -503,22 +506,22 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
503
506
|
});
|
|
504
507
|
return;
|
|
505
508
|
}
|
|
506
|
-
return p(
|
|
509
|
+
return p(_e, {
|
|
507
510
|
transaction: e,
|
|
508
511
|
onAction: (n) => {
|
|
509
512
|
switch (n) {
|
|
510
513
|
case "notify":
|
|
511
|
-
return
|
|
514
|
+
return R(t.index);
|
|
512
515
|
case "query":
|
|
513
|
-
return
|
|
516
|
+
return M(t.index);
|
|
514
517
|
case "refund":
|
|
515
|
-
return
|
|
518
|
+
return C(t.index);
|
|
516
519
|
case "history":
|
|
517
|
-
return
|
|
520
|
+
return E(t.index);
|
|
518
521
|
case "setPayId":
|
|
519
|
-
return
|
|
522
|
+
return Y(t.index);
|
|
520
523
|
case "setGatewayId":
|
|
521
|
-
return
|
|
524
|
+
return L(t.index);
|
|
522
525
|
}
|
|
523
526
|
}
|
|
524
527
|
});
|
|
@@ -527,49 +530,49 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
527
530
|
];
|
|
528
531
|
return (t, e) => {
|
|
529
532
|
const a = h("FmSearch");
|
|
530
|
-
return _(), x(
|
|
533
|
+
return _(), x(ne, {
|
|
531
534
|
title: "Transactions",
|
|
532
535
|
loading: !1
|
|
533
536
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
|
|
536
|
-
|
|
537
|
+
default: D(() => [
|
|
538
|
+
b("div", Ie, [
|
|
539
|
+
b("div", De, [
|
|
537
540
|
g(a, {
|
|
538
|
-
"model-value":
|
|
541
|
+
"model-value": y(s),
|
|
539
542
|
"onUpdate:modelValue": e[0] || (e[0] = (n) => A(s) ? s.value = n : null),
|
|
540
543
|
class: "mr-8",
|
|
541
544
|
label: "Search",
|
|
542
545
|
placeholder: "Search Transactions ..."
|
|
543
546
|
}, null, 8, ["model-value"])
|
|
544
547
|
]),
|
|
545
|
-
|
|
546
|
-
g(
|
|
548
|
+
b("div", Te, [
|
|
549
|
+
g(re, {
|
|
547
550
|
button: {
|
|
548
551
|
appendIcon: "file_download",
|
|
549
552
|
variant: "primary",
|
|
550
553
|
label: "Export"
|
|
551
554
|
},
|
|
552
555
|
handler: async () => {
|
|
553
|
-
await f
|
|
554
|
-
start:
|
|
555
|
-
end:
|
|
556
|
+
await y(f).downloadTransactionReport({
|
|
557
|
+
start: y(l).startDate,
|
|
558
|
+
end: y(l).endDate
|
|
556
559
|
});
|
|
557
560
|
}
|
|
558
561
|
}, null, 8, ["handler"])
|
|
559
562
|
])
|
|
560
563
|
]),
|
|
561
|
-
|
|
562
|
-
g(
|
|
563
|
-
modelValue:
|
|
564
|
+
b("div", ve, [
|
|
565
|
+
g(ie, {
|
|
566
|
+
modelValue: y(l),
|
|
564
567
|
"onUpdate:modelValue": e[1] || (e[1] = (n) => A(l) ? l.value = n : null)
|
|
565
568
|
}, null, 8, ["modelValue"])
|
|
566
569
|
]),
|
|
567
|
-
g(
|
|
570
|
+
g(le, {
|
|
568
571
|
ref_key: "controller",
|
|
569
572
|
ref: r,
|
|
570
|
-
"column-defs":
|
|
573
|
+
"column-defs": O,
|
|
571
574
|
"rows-defs": (n) => n,
|
|
572
|
-
paginate:
|
|
575
|
+
paginate: B
|
|
573
576
|
}, null, 8, ["rows-defs"])
|
|
574
577
|
]),
|
|
575
578
|
_: 1
|
|
@@ -578,5 +581,5 @@ ID: ${t.row.original.transactionId}`), p(de, { data: t.getValue(), extra: e });
|
|
|
578
581
|
}
|
|
579
582
|
});
|
|
580
583
|
export {
|
|
581
|
-
|
|
584
|
+
Le as default
|
|
582
585
|
};
|