@feedmepos/mf-payment 0.0.0-beta.29 → 0.0.0-beta.30
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-DGZmraWC.js → PayoutAccount-Bkncr_cB.js} +3 -3
- package/dist/{PayoutAccount-CRpuF7oc.js → PayoutAccount-D4mqNLsl.js} +5 -5
- package/dist/{PayoutAccountSetting-B0WUvW2T.js → PayoutAccountSetting-B1hM-zzy.js} +273 -199
- package/dist/{Settlement-DL852BAW.js → Settlement-DtcJVp3Z.js} +3 -3
- package/dist/{Settlement-BfzE6GRq.js → Settlement-kXEsjqGo.js} +3 -3
- package/dist/{SettlementTransactions-Bns4JiYa.js → SettlementTransactions-5JuImQzZ.js} +4 -4
- package/dist/{SettlementTransactions-B-PmdVmd.js → SettlementTransactions-csNNWUX5.js} +4 -4
- package/dist/{Terminal-BJfw9jQn.js → Terminal-DGfySdfA.js} +55 -55
- package/dist/TerminalSetting-CucVft_p.js +374 -0
- package/dist/{TerminalTransaction-F3kzj60e.js → TerminalTransaction-CwoclWJ5.js} +5 -5
- package/dist/{TerminalTransaction-DuVyCu0j.js → TerminalTransaction-DRlFVw4p.js} +5 -5
- package/dist/{Transaction-sG5VLrZG.js → Transaction-CKFRlYUk.js} +4 -4
- package/dist/{Transaction-BV3f9JLh.js → Transaction-DA6UzVnz.js} +4 -4
- package/dist/app.js +13 -13
- package/dist/{assets-Bj5ToWoP.js → assets-RXBV3tUm.js} +1 -1
- package/dist/{index-BYz1HdLk.js → index-BS_dGfh_.js} +1 -1
- package/dist/{index-dVGYvcJH.js → index-CJp88CGw.js} +1 -1
- package/dist/{index-BvPakrCi.js → index-CNmg4bnZ.js} +1 -1
- package/dist/{index-CTWoVKkI.js → index-C_44uoxW.js} +8597 -8249
- package/dist/{index-DvBq8FZH.js → index-CbUxRjwz.js} +1 -1
- package/dist/{index-BmrM-GfD.js → index-Cl2XhO9t.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js → index.vue_vue_type_script_setup_true_lang-GkJ2OZPm.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BT8stlNQ.js → payout-account-C_01-U_N.js} +261 -261
- package/dist/{transaction-LP1p6TuS.js → transaction-yTOBjyUq.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +24 -2
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +24 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +24 -2
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +24 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +24 -4
- package/package.json +2 -2
- package/dist/TerminalSetting-DJ-_DZr_.js +0 -254
@@ -1,13 +1,13 @@
|
|
1
|
-
import { defineComponent as I, resolveComponent as y, openBlock as b, createElementBlock as
|
2
|
-
import { p as
|
3
|
-
import { g as _, b as B, u as L } from "./index-
|
1
|
+
import { defineComponent as I, resolveComponent as y, openBlock as b, createElementBlock as $, Fragment as T, createElementVNode as i, createVNode as o, withCtx as F, createTextVNode as S, toDisplayString as C, createCommentVNode as U, createBlock as V, ref as k, watch as N, computed as E, unref as d, isRef as M, h as K, onMounted as O, resolveDynamicComponent as j, normalizeProps as z, mergeProps as H } from "vue";
|
2
|
+
import { p as R } from "./index-CNmg4bnZ.js";
|
3
|
+
import { g as _, b as B, u as L } from "./index-C_44uoxW.js";
|
4
4
|
import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
5
5
|
import { useRouter as J } from "vue-router";
|
6
|
-
import { u as Q } from "./index-
|
6
|
+
import { u as Q } from "./index-BS_dGfh_.js";
|
7
7
|
import { P as q } from "./PDFViewer-CjH_C1uT.js";
|
8
8
|
import { useSnackbar as X } from "@feedmepos/ui-library";
|
9
9
|
import { u as Y } from "./error-K1CakhA9.js";
|
10
|
-
import { z as
|
10
|
+
import { z as w, a as A } from "./validator-D5jtpt9A.js";
|
11
11
|
const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
12
12
|
__name: "Information",
|
13
13
|
props: {
|
@@ -16,36 +16,36 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
16
16
|
required: !0
|
17
17
|
}
|
18
18
|
},
|
19
|
-
setup(
|
20
|
-
return (
|
21
|
-
const
|
22
|
-
return b(),
|
19
|
+
setup(a) {
|
20
|
+
return (m, e) => {
|
21
|
+
const p = y("FmCardHeader"), r = y("FmCardSection"), t = y("FmCard");
|
22
|
+
return b(), $(T, null, [
|
23
23
|
i("div", h, [
|
24
|
-
o(
|
24
|
+
o(t, {
|
25
25
|
horizontal: "",
|
26
26
|
class: "flex-1 p-6",
|
27
27
|
variant: "elevated"
|
28
28
|
}, {
|
29
|
-
default:
|
29
|
+
default: F(() => [
|
30
30
|
o(r, { class: "flex flex-col gap-16 justify-between" }, {
|
31
|
-
default:
|
32
|
-
o(
|
31
|
+
default: F(() => [
|
32
|
+
o(p, {
|
33
33
|
class: "p-0",
|
34
34
|
title: "Account Info",
|
35
35
|
subtitle: ""
|
36
36
|
}),
|
37
37
|
o(r, { class: "p-0" }, {
|
38
|
-
default:
|
39
|
-
var u,
|
38
|
+
default: F(() => {
|
39
|
+
var u, f, v, n, l;
|
40
40
|
return [
|
41
41
|
e[0] || (e[0] = i("b", null, "For", -1)),
|
42
|
-
|
42
|
+
S(": " + C((f = (u = a.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : f.event) + " ", 1),
|
43
43
|
e[1] || (e[1] = i("br", null, null, -1)),
|
44
44
|
e[2] || (e[2] = i("b", null, "Reference", -1)),
|
45
|
-
|
45
|
+
S(": " + C((n = (v = a.payoutAccount) == null ? void 0 : v.store) == null ? void 0 : n.id), 1),
|
46
46
|
e[3] || (e[3] = i("br", null, null, -1)),
|
47
47
|
e[4] || (e[4] = i("b", null, "Business", -1)),
|
48
|
-
|
48
|
+
S(": " + C((l = a.payoutAccount) == null ? void 0 : l.businessId), 1),
|
49
49
|
e[5] || (e[5] = i("br", null, null, -1))
|
50
50
|
];
|
51
51
|
}),
|
@@ -57,31 +57,31 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
57
57
|
]),
|
58
58
|
_: 1
|
59
59
|
}),
|
60
|
-
o(
|
60
|
+
o(t, {
|
61
61
|
horizontal: "",
|
62
62
|
class: "flex-1 p-6",
|
63
63
|
variant: "elevated"
|
64
64
|
}, {
|
65
|
-
default:
|
65
|
+
default: F(() => [
|
66
66
|
o(r, { class: "flex flex-col gap-16 justify-between" }, {
|
67
|
-
default:
|
68
|
-
o(
|
67
|
+
default: F(() => [
|
68
|
+
o(p, {
|
69
69
|
class: "p-0",
|
70
70
|
title: "Key Person",
|
71
71
|
subtitle: ""
|
72
72
|
}),
|
73
73
|
o(r, { class: "p-0" }, {
|
74
|
-
default:
|
75
|
-
var u,
|
74
|
+
default: F(() => {
|
75
|
+
var u, f, v, n, l, s, c, x;
|
76
76
|
return [
|
77
77
|
e[6] || (e[6] = i("b", null, "Email", -1)),
|
78
|
-
|
78
|
+
S(": " + C((v = (f = (u = a.payoutAccount) == null ? void 0 : u.store) == null ? void 0 : f.keyPerson) == null ? void 0 : v.email) + " ", 1),
|
79
79
|
e[7] || (e[7] = i("br", null, null, -1)),
|
80
80
|
e[8] || (e[8] = i("b", null, "Name", -1)),
|
81
|
-
|
81
|
+
S(": " + C((s = (l = (n = a.payoutAccount) == null ? void 0 : n.store) == null ? void 0 : l.keyPerson) == null ? void 0 : s.name), 1),
|
82
82
|
e[9] || (e[9] = i("br", null, null, -1)),
|
83
83
|
e[10] || (e[10] = i("b", null, "Phone", -1)),
|
84
|
-
|
84
|
+
S(": " + C((x = (c = a.payoutAccount) == null ? void 0 : c.store.keyPerson) == null ? void 0 : x.phone), 1),
|
85
85
|
e[11] || (e[11] = i("br", null, null, -1))
|
86
86
|
];
|
87
87
|
}),
|
@@ -95,14 +95,14 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
95
95
|
})
|
96
96
|
]),
|
97
97
|
e[12] || (e[12] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Exterior Photo", -1)),
|
98
|
-
|
98
|
+
a.payoutAccount.store.exteriorPhoto ? (b(), $("img", {
|
99
99
|
key: 0,
|
100
|
-
src:
|
100
|
+
src: a.payoutAccount.store.exteriorPhoto
|
101
101
|
}, null, 8, ee)) : U("", !0)
|
102
102
|
], 64);
|
103
103
|
};
|
104
104
|
}
|
105
|
-
}), ae = { class: "flex gap-16" },
|
105
|
+
}), ae = { class: "flex gap-16" }, le = { class: "flex-1" }, ne = { class: "flex-1" }, oe = /* @__PURE__ */ I({
|
106
106
|
__name: "Settlement",
|
107
107
|
props: {
|
108
108
|
payoutAccount: {
|
@@ -110,35 +110,35 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
110
110
|
required: !0
|
111
111
|
}
|
112
112
|
},
|
113
|
-
setup(
|
114
|
-
return (
|
115
|
-
const
|
116
|
-
return b(),
|
117
|
-
o(
|
113
|
+
setup(a) {
|
114
|
+
return (m, e) => {
|
115
|
+
const p = y("FmCardHeader"), r = y("FmCardSection"), t = y("FmCard");
|
116
|
+
return b(), $(T, null, [
|
117
|
+
o(t, {
|
118
118
|
horizontal: "",
|
119
119
|
class: "flex-1 p-6 mx-6 mb-6",
|
120
120
|
variant: "elevated"
|
121
121
|
}, {
|
122
|
-
default:
|
122
|
+
default: F(() => [
|
123
123
|
o(r, { class: "flex flex-col gap-16 justify-between" }, {
|
124
|
-
default:
|
125
|
-
o(
|
124
|
+
default: F(() => [
|
125
|
+
o(p, {
|
126
126
|
class: "p-0",
|
127
127
|
title: "Bank Info",
|
128
128
|
subtitle: ""
|
129
129
|
}),
|
130
130
|
o(r, { class: "p-0" }, {
|
131
|
-
default:
|
132
|
-
var u,
|
131
|
+
default: F(() => {
|
132
|
+
var u, f, v, n, l, s;
|
133
133
|
return [
|
134
134
|
e[0] || (e[0] = i("b", null, "Bank", -1)),
|
135
|
-
|
135
|
+
S(": " + C((f = (u = a.payoutAccount) == null ? void 0 : u.store.bank) == null ? void 0 : f.name), 1),
|
136
136
|
e[1] || (e[1] = i("br", null, null, -1)),
|
137
137
|
e[2] || (e[2] = i("b", null, "Name", -1)),
|
138
|
-
|
138
|
+
S(": " + C((n = (v = a.payoutAccount) == null ? void 0 : v.store.bank) == null ? void 0 : n.holderName), 1),
|
139
139
|
e[3] || (e[3] = i("br", null, null, -1)),
|
140
140
|
e[4] || (e[4] = i("b", null, "Number", -1)),
|
141
|
-
|
141
|
+
S(": " + C((s = (l = a.payoutAccount) == null ? void 0 : l.store.bank) == null ? void 0 : s.accountNumber), 1)
|
142
142
|
];
|
143
143
|
}),
|
144
144
|
_: 1
|
@@ -150,20 +150,20 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
150
150
|
_: 1
|
151
151
|
}),
|
152
152
|
i("div", ae, [
|
153
|
-
i("div",
|
153
|
+
i("div", le, [
|
154
154
|
e[5] || (e[5] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "SSM", -1)),
|
155
|
-
|
155
|
+
a.payoutAccount.store.ssm ? (b(), V(q, {
|
156
156
|
key: 0,
|
157
|
-
pdf:
|
157
|
+
pdf: a.payoutAccount.store.ssm,
|
158
158
|
"disable-text-layer": !0,
|
159
159
|
"disable-annotation-layer": !0
|
160
160
|
}, null, 8, ["pdf"])) : U("", !0)
|
161
161
|
]),
|
162
|
-
i("div",
|
162
|
+
i("div", ne, [
|
163
163
|
e[6] || (e[6] = i("p", { class: "fm-typo-en-body-lg-600 mb-6" }, "Bank Statement", -1)),
|
164
|
-
|
164
|
+
a.payoutAccount.store.bankStatement ? (b(), V(q, {
|
165
165
|
key: 0,
|
166
|
-
pdf:
|
166
|
+
pdf: a.payoutAccount.store.bankStatement,
|
167
167
|
"disable-text-layer": !0,
|
168
168
|
"disable-annotation-layer": !0
|
169
169
|
}, null, 8, ["pdf"])) : U("", !0)
|
@@ -178,19 +178,19 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
178
178
|
data: {},
|
179
179
|
onChange: { type: Function }
|
180
180
|
},
|
181
|
-
setup(
|
182
|
-
const
|
183
|
-
return
|
184
|
-
|
185
|
-
}), (
|
186
|
-
const
|
187
|
-
return b(), V(
|
181
|
+
setup(a) {
|
182
|
+
const m = a, e = k(m.data.toString());
|
183
|
+
return N(e, (p) => {
|
184
|
+
m.onChange(parseFloat(p));
|
185
|
+
}), (p, r) => {
|
186
|
+
const t = y("FmTextField");
|
187
|
+
return b(), V(t, {
|
188
188
|
inputmode: "decimal",
|
189
189
|
modelValue: e.value,
|
190
190
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => e.value = u)
|
191
191
|
}, {
|
192
|
-
append:
|
193
|
-
|
192
|
+
append: F(() => r[1] || (r[1] = [
|
193
|
+
S("%")
|
194
194
|
])),
|
195
195
|
_: 1
|
196
196
|
}, 8, ["modelValue"]);
|
@@ -202,20 +202,20 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
202
202
|
data: {},
|
203
203
|
onChange: { type: Function }
|
204
204
|
},
|
205
|
-
setup(
|
206
|
-
const
|
207
|
-
return
|
208
|
-
|
209
|
-
}), (
|
210
|
-
const
|
211
|
-
return b(), V(
|
205
|
+
setup(a) {
|
206
|
+
const m = a, e = k(m.data.toString());
|
207
|
+
return N(e, (p) => {
|
208
|
+
m.onChange(parseInt(p));
|
209
|
+
}), (p, r) => {
|
210
|
+
const t = y("FmTextField");
|
211
|
+
return b(), V(t, {
|
212
212
|
inputmode: "numeric",
|
213
213
|
modelValue: e.value,
|
214
214
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => e.value = u)
|
215
215
|
}, null, 8, ["modelValue"]);
|
216
216
|
};
|
217
217
|
}
|
218
|
-
}), se = { class: "flex gap-16 mt-6" }, ie = { class: "flex-1" }, de = { class: "flex-1" },
|
218
|
+
}), se = { class: "flex gap-16 mt-6" }, ie = { class: "flex-1" }, de = { class: "flex-1" }, me = { class: "my-6 w-full flex justify-end" }, ce = { class: "w-[320px]" }, pe = /* @__PURE__ */ I({
|
219
219
|
__name: "PaymentStatus",
|
220
220
|
props: {
|
221
221
|
onUpdate: {
|
@@ -227,15 +227,15 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
227
227
|
required: !0
|
228
228
|
}
|
229
229
|
},
|
230
|
-
setup(
|
231
|
-
const
|
230
|
+
setup(a) {
|
231
|
+
const m = a, e = k(!1), p = X(), r = async (n) => {
|
232
232
|
try {
|
233
|
-
e.value = !0, await
|
233
|
+
e.value = !0, await m.onUpdate(n), p.open({
|
234
234
|
type: "success",
|
235
235
|
title: "Payout account update succesfully"
|
236
236
|
});
|
237
237
|
} catch (l) {
|
238
|
-
|
238
|
+
p.open({
|
239
239
|
type: "error",
|
240
240
|
title: "Error occurs when updating payout account",
|
241
241
|
message: Y(l)
|
@@ -243,12 +243,12 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
243
243
|
} finally {
|
244
244
|
e.value = !1;
|
245
245
|
}
|
246
|
-
}, { search:
|
246
|
+
}, { search: t } = Q({
|
247
247
|
search: ""
|
248
248
|
}), u = E(() => {
|
249
|
-
const { ssm: n, bank: l, bankStatement: s } =
|
249
|
+
const { ssm: n, bank: l, bankStatement: s } = m.payoutAccount.store;
|
250
250
|
return n && l && l.name && l.accountNumber && l.holderName && s;
|
251
|
-
}),
|
251
|
+
}), f = k(""), v = [
|
252
252
|
{
|
253
253
|
header: () => "Payment Method",
|
254
254
|
accessorKey: "issuer",
|
@@ -259,10 +259,10 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
259
259
|
accessorKey: "rate",
|
260
260
|
cell: ({ row: n }) => {
|
261
261
|
let l = 0;
|
262
|
-
return n.original.rate && (l = n.original.rate.amount / Math.pow(10, n.original.rate.precision)),
|
262
|
+
return n.original.rate && (l = n.original.rate.amount / Math.pow(10, n.original.rate.precision)), K(ue, {
|
263
263
|
data: l,
|
264
264
|
onChange: (s) => {
|
265
|
-
const c =
|
265
|
+
const c = m.payoutAccount.methods.at(n.index);
|
266
266
|
c.rate || (c.rate = {
|
267
267
|
amount: 0,
|
268
268
|
precision: 4
|
@@ -274,26 +274,26 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
274
274
|
{
|
275
275
|
header: () => "T plus",
|
276
276
|
accessorKey: "tPlus",
|
277
|
-
cell: ({ row: n }) =>
|
277
|
+
cell: ({ row: n }) => K(re, {
|
278
278
|
data: n.original.tPlus ?? 0,
|
279
279
|
onChange: (l) => {
|
280
|
-
const s =
|
280
|
+
const s = m.payoutAccount.methods.at(n.index);
|
281
281
|
s.tPlus = l;
|
282
282
|
}
|
283
283
|
})
|
284
284
|
}
|
285
285
|
];
|
286
286
|
return (n, l) => {
|
287
|
-
const s = y("FmRadio"), c = y("FmRadioGroup"),
|
288
|
-
return b(),
|
287
|
+
const s = y("FmRadio"), c = y("FmRadioGroup"), x = y("FmSwitch"), P = y("FmSearch"), g = y("FmTable"), W = y("FmButton");
|
288
|
+
return b(), $(T, null, [
|
289
289
|
i("div", se, [
|
290
290
|
i("div", ie, [
|
291
291
|
o(c, {
|
292
|
-
modelValue:
|
293
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
292
|
+
modelValue: a.payoutAccount.status,
|
293
|
+
"onUpdate:modelValue": l[0] || (l[0] = (G) => a.payoutAccount.status = G),
|
294
294
|
label: "Account Status"
|
295
295
|
}, {
|
296
|
-
default:
|
296
|
+
default: F(() => [
|
297
297
|
o(s, {
|
298
298
|
value: "NEW",
|
299
299
|
label: "New"
|
@@ -311,32 +311,32 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
311
311
|
}, 8, ["modelValue"])
|
312
312
|
]),
|
313
313
|
i("div", de, [
|
314
|
-
o(
|
315
|
-
modelValue:
|
316
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
314
|
+
o(x, {
|
315
|
+
modelValue: a.payoutAccount.enable,
|
316
|
+
"onUpdate:modelValue": l[1] || (l[1] = (G) => a.payoutAccount.enable = G),
|
317
317
|
disabled: !u.value,
|
318
318
|
label: "Enabled",
|
319
319
|
sublabel: "Merchant can use online features such as e-payment, settlement"
|
320
320
|
}, null, 8, ["modelValue", "disabled"])
|
321
321
|
])
|
322
322
|
]),
|
323
|
-
|
324
|
-
i("div",
|
325
|
-
i("div",
|
326
|
-
o(
|
327
|
-
modelValue:
|
328
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
323
|
+
a.payoutAccount.enable ? (b(), $(T, { key: 0 }, [
|
324
|
+
i("div", me, [
|
325
|
+
i("div", ce, [
|
326
|
+
o(P, {
|
327
|
+
modelValue: d(t),
|
328
|
+
"onUpdate:modelValue": l[2] || (l[2] = (G) => M(t) ? t.value = G : null),
|
329
329
|
placeholder: "Search Method ..."
|
330
330
|
}, null, 8, ["modelValue"])
|
331
331
|
])
|
332
332
|
]),
|
333
333
|
o(g, {
|
334
334
|
class: "mt-6",
|
335
|
-
modelValue:
|
336
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
337
|
-
"search-value":
|
338
|
-
"row-data":
|
339
|
-
"column-defs":
|
335
|
+
modelValue: f.value,
|
336
|
+
"onUpdate:modelValue": l[3] || (l[3] = (G) => f.value = G),
|
337
|
+
"search-value": d(t),
|
338
|
+
"row-data": a.payoutAccount.methods,
|
339
|
+
"column-defs": v
|
340
340
|
}, null, 8, ["modelValue", "search-value", "row-data"])
|
341
341
|
], 64)) : U("", !0),
|
342
342
|
o(W, {
|
@@ -344,35 +344,35 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
344
344
|
variant: "primary",
|
345
345
|
label: "Save",
|
346
346
|
loading: e.value,
|
347
|
-
onclick: () => r(
|
347
|
+
onclick: () => r(a.payoutAccount)
|
348
348
|
}, null, 8, ["loading", "onclick"])
|
349
349
|
], 64);
|
350
350
|
};
|
351
351
|
}
|
352
|
-
}),
|
353
|
-
async get(
|
352
|
+
}), D = {
|
353
|
+
async get(a) {
|
354
354
|
return _(
|
355
355
|
await B().get(
|
356
|
-
`restaurants/${
|
356
|
+
`restaurants/${a}/payment-gateway`
|
357
357
|
)
|
358
358
|
);
|
359
359
|
},
|
360
|
-
async upsert(
|
360
|
+
async upsert(a, m) {
|
361
361
|
return _(
|
362
362
|
await B().post(
|
363
|
-
`restaurants/${
|
364
|
-
{ data:
|
363
|
+
`restaurants/${a}/payment-gateway`,
|
364
|
+
{ data: m }
|
365
365
|
)
|
366
366
|
);
|
367
367
|
},
|
368
|
-
async delete(
|
368
|
+
async delete(a, m) {
|
369
369
|
return _(
|
370
370
|
await B().delete(
|
371
|
-
`restaurants/${
|
371
|
+
`restaurants/${a}/payment-gateway/${m}`
|
372
372
|
)
|
373
373
|
);
|
374
374
|
}
|
375
|
-
}, ye = { class: "flex mt-6 space-x-6" },
|
375
|
+
}, ye = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ I({
|
376
376
|
__name: "FiuuGateway",
|
377
377
|
props: {
|
378
378
|
onUpdate: {
|
@@ -388,9 +388,9 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
388
388
|
required: !0
|
389
389
|
}
|
390
390
|
},
|
391
|
-
setup(
|
392
|
-
var
|
393
|
-
const e =
|
391
|
+
setup(a) {
|
392
|
+
var p;
|
393
|
+
const e = k(((p = a.gateway) == null ? void 0 : p.config) || {
|
394
394
|
merchantId: "",
|
395
395
|
uniqueId: "",
|
396
396
|
verifyKey: "",
|
@@ -398,59 +398,59 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
398
398
|
applicationCode: "",
|
399
399
|
offlineSecret: ""
|
400
400
|
});
|
401
|
-
return (r,
|
402
|
-
const u = y("FmTextField"),
|
403
|
-
return b(), V(
|
401
|
+
return (r, t) => {
|
402
|
+
const u = y("FmTextField"), f = y("FmButton"), v = y("FmForm");
|
403
|
+
return b(), V(v, {
|
404
404
|
ref: "form",
|
405
405
|
class: "flex flex-col gap-16",
|
406
|
-
onValidationSuccess:
|
406
|
+
onValidationSuccess: t[6] || (t[6] = () => a.onUpdate(e.value))
|
407
407
|
}, {
|
408
|
-
default:
|
408
|
+
default: F(() => [
|
409
409
|
o(u, {
|
410
410
|
modelValue: e.value.merchantId,
|
411
|
-
"onUpdate:modelValue":
|
411
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.merchantId = n),
|
412
412
|
label: "Merchant ID",
|
413
|
-
rules:
|
413
|
+
rules: d(w)(d(A).string())
|
414
414
|
}, null, 8, ["modelValue", "rules"]),
|
415
415
|
o(u, {
|
416
416
|
modelValue: e.value.uniqueId,
|
417
|
-
"onUpdate:modelValue":
|
417
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.uniqueId = n),
|
418
418
|
label: "Unique ID",
|
419
|
-
rules:
|
419
|
+
rules: d(w)(d(A).string())
|
420
420
|
}, null, 8, ["modelValue", "rules"]),
|
421
421
|
o(u, {
|
422
422
|
modelValue: e.value.verifyKey,
|
423
|
-
"onUpdate:modelValue":
|
423
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => e.value.verifyKey = n),
|
424
424
|
label: "Verify Key",
|
425
|
-
rules:
|
425
|
+
rules: d(w)(d(A).string())
|
426
426
|
}, null, 8, ["modelValue", "rules"]),
|
427
427
|
o(u, {
|
428
428
|
modelValue: e.value.secretKey,
|
429
|
-
"onUpdate:modelValue":
|
429
|
+
"onUpdate:modelValue": t[3] || (t[3] = (n) => e.value.secretKey = n),
|
430
430
|
label: "Secret Key",
|
431
|
-
rules:
|
431
|
+
rules: d(w)(d(A).string())
|
432
432
|
}, null, 8, ["modelValue", "rules"]),
|
433
433
|
o(u, {
|
434
434
|
modelValue: e.value.applicationCode,
|
435
|
-
"onUpdate:modelValue":
|
435
|
+
"onUpdate:modelValue": t[4] || (t[4] = (n) => e.value.applicationCode = n),
|
436
436
|
label: "Application Code ( Offline )",
|
437
|
-
rules:
|
437
|
+
rules: d(w)(d(A).string())
|
438
438
|
}, null, 8, ["modelValue", "rules"]),
|
439
439
|
o(u, {
|
440
440
|
modelValue: e.value.offlineSecret,
|
441
|
-
"onUpdate:modelValue":
|
441
|
+
"onUpdate:modelValue": t[5] || (t[5] = (n) => e.value.offlineSecret = n),
|
442
442
|
label: "Offline Secret ( Offline )",
|
443
|
-
rules:
|
443
|
+
rules: d(w)(d(A).string())
|
444
444
|
}, null, 8, ["modelValue", "rules"]),
|
445
445
|
i("div", ye, [
|
446
|
-
|
446
|
+
a.gateway ? (b(), V(f, {
|
447
447
|
key: 0,
|
448
448
|
class: "flex-1",
|
449
449
|
variant: "secondary",
|
450
450
|
label: "Delete",
|
451
|
-
onclick: () =>
|
451
|
+
onclick: () => a.onDelete(a.gateway)
|
452
452
|
}, null, 8, ["onclick"])) : U("", !0),
|
453
|
-
o(
|
453
|
+
o(f, {
|
454
454
|
type: "submit",
|
455
455
|
class: "flex-1",
|
456
456
|
variant: "primary",
|
@@ -462,7 +462,7 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
462
462
|
}, 512);
|
463
463
|
};
|
464
464
|
}
|
465
|
-
}),
|
465
|
+
}), fe = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ I({
|
466
466
|
__name: "RevenueMonsterGateway",
|
467
467
|
props: {
|
468
468
|
onUpdate: {
|
@@ -478,54 +478,123 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
478
478
|
required: !0
|
479
479
|
}
|
480
480
|
},
|
481
|
-
setup(
|
482
|
-
var
|
483
|
-
const e =
|
481
|
+
setup(a) {
|
482
|
+
var p;
|
483
|
+
const e = k(((p = a.gateway) == null ? void 0 : p.config) || {
|
484
484
|
storeId: "",
|
485
485
|
clientId: "",
|
486
486
|
clientSecret: "",
|
487
487
|
clientPrivateKey: ""
|
488
488
|
});
|
489
|
-
return (r,
|
490
|
-
const u = y("FmTextField"),
|
489
|
+
return (r, t) => {
|
490
|
+
const u = y("FmTextField"), f = y("FmTextarea"), v = y("FmButton"), n = y("FmForm");
|
491
491
|
return b(), V(n, {
|
492
492
|
ref: "form",
|
493
493
|
class: "flex flex-col gap-16",
|
494
|
-
onValidationSuccess:
|
494
|
+
onValidationSuccess: t[4] || (t[4] = () => a.onUpdate(e.value))
|
495
495
|
}, {
|
496
|
-
default:
|
496
|
+
default: F(() => [
|
497
497
|
o(u, {
|
498
498
|
modelValue: e.value.storeId,
|
499
|
-
"onUpdate:modelValue":
|
499
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.storeId = l),
|
500
500
|
label: "Store ID",
|
501
|
-
rules:
|
501
|
+
rules: d(w)(d(A).string())
|
502
502
|
}, null, 8, ["modelValue", "rules"]),
|
503
503
|
o(u, {
|
504
504
|
modelValue: e.value.clientId,
|
505
|
-
"onUpdate:modelValue":
|
505
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.clientId = l),
|
506
506
|
label: "Client ID",
|
507
|
-
rules:
|
507
|
+
rules: d(w)(d(A).string())
|
508
508
|
}, null, 8, ["modelValue", "rules"]),
|
509
509
|
o(u, {
|
510
510
|
modelValue: e.value.clientSecret,
|
511
|
-
"onUpdate:modelValue":
|
511
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.value.clientSecret = l),
|
512
512
|
label: "Client Secret",
|
513
|
-
rules:
|
513
|
+
rules: d(w)(d(A).string())
|
514
514
|
}, null, 8, ["modelValue", "rules"]),
|
515
|
-
o(
|
515
|
+
o(f, {
|
516
516
|
modelValue: e.value.clientPrivateKey,
|
517
|
-
"onUpdate:modelValue":
|
517
|
+
"onUpdate:modelValue": t[3] || (t[3] = (l) => e.value.clientPrivateKey = l),
|
518
518
|
label: "Client Private Key"
|
519
519
|
}, null, 8, ["modelValue"]),
|
520
|
-
i("div",
|
521
|
-
|
520
|
+
i("div", fe, [
|
521
|
+
a.gateway ? (b(), V(v, {
|
522
522
|
key: 0,
|
523
523
|
class: "flex-1",
|
524
524
|
variant: "secondary",
|
525
525
|
label: "Delete",
|
526
|
-
onclick: () =>
|
526
|
+
onclick: () => a.onDelete(a.gateway)
|
527
527
|
}, null, 8, ["onclick"])) : U("", !0),
|
528
|
-
o(
|
528
|
+
o(v, {
|
529
|
+
type: "submit",
|
530
|
+
class: "flex-1",
|
531
|
+
variant: "primary",
|
532
|
+
label: "Save"
|
533
|
+
})
|
534
|
+
])
|
535
|
+
]),
|
536
|
+
_: 1
|
537
|
+
}, 512);
|
538
|
+
};
|
539
|
+
}
|
540
|
+
}), ge = { class: "flex mt-6 space-x-6" }, Fe = /* @__PURE__ */ I({
|
541
|
+
__name: "GhlGateway",
|
542
|
+
props: {
|
543
|
+
onUpdate: {
|
544
|
+
type: Function,
|
545
|
+
required: !0
|
546
|
+
},
|
547
|
+
onDelete: {
|
548
|
+
type: Function,
|
549
|
+
required: !0
|
550
|
+
},
|
551
|
+
gateway: {
|
552
|
+
type: Object,
|
553
|
+
required: !0
|
554
|
+
}
|
555
|
+
},
|
556
|
+
setup(a) {
|
557
|
+
var p;
|
558
|
+
const e = k(((p = a.gateway) == null ? void 0 : p.config) || {
|
559
|
+
merchantId: "",
|
560
|
+
terminalId: "",
|
561
|
+
privateKey: ""
|
562
|
+
});
|
563
|
+
return (r, t) => {
|
564
|
+
const u = y("FmTextField"), f = y("FmTextarea"), v = y("FmButton"), n = y("FmForm");
|
565
|
+
return b(), V(n, {
|
566
|
+
ref: "form",
|
567
|
+
class: "flex flex-col gap-16",
|
568
|
+
onValidationSuccess: t[3] || (t[3] = () => a.onUpdate(e.value))
|
569
|
+
}, {
|
570
|
+
default: F(() => [
|
571
|
+
o(u, {
|
572
|
+
modelValue: e.value.merchantId,
|
573
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => e.value.merchantId = l),
|
574
|
+
label: "Merchant ID",
|
575
|
+
rules: d(w)(d(A).string())
|
576
|
+
}, null, 8, ["modelValue", "rules"]),
|
577
|
+
o(u, {
|
578
|
+
modelValue: e.value.terminalId,
|
579
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => e.value.terminalId = l),
|
580
|
+
label: "Terminal ID",
|
581
|
+
rules: d(w)(d(A).string())
|
582
|
+
}, null, 8, ["modelValue", "rules"]),
|
583
|
+
o(f, {
|
584
|
+
modelValue: e.value.privateKey,
|
585
|
+
"onUpdate:modelValue": t[2] || (t[2] = (l) => e.value.privateKey = l),
|
586
|
+
label: "Private Key",
|
587
|
+
rules: d(w)(d(A).string())
|
588
|
+
}, null, 8, ["modelValue", "rules"]),
|
589
|
+
i("div", ge, [
|
590
|
+
a.gateway ? (b(), V(v, {
|
591
|
+
key: 0,
|
592
|
+
class: "flex-1",
|
593
|
+
variant: "secondary",
|
594
|
+
label: "Delete",
|
595
|
+
onclick: () => a.onDelete(a.gateway)
|
596
|
+
}, null, 8, ["onclick"])) : U("", !0),
|
597
|
+
o(v, {
|
529
598
|
type: "submit",
|
530
599
|
class: "flex-1",
|
531
600
|
variant: "primary",
|
@@ -537,10 +606,10 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
537
606
|
}, 512);
|
538
607
|
};
|
539
608
|
}
|
540
|
-
}),
|
609
|
+
}), xe = {
|
541
610
|
key: 0,
|
542
611
|
class: "flex items-center justify-center min-h-[80vh]"
|
543
|
-
},
|
612
|
+
}, Ve = /* @__PURE__ */ I({
|
544
613
|
__name: "PaymentGateway",
|
545
614
|
props: {
|
546
615
|
payoutAccount: {
|
@@ -548,38 +617,38 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
548
617
|
required: !0
|
549
618
|
}
|
550
619
|
},
|
551
|
-
setup(
|
552
|
-
const
|
620
|
+
setup(a) {
|
621
|
+
const m = a, { isLoading: e, startAsyncCall: p } = L(), r = k(), t = k([]);
|
553
622
|
function u() {
|
554
|
-
|
623
|
+
p(async () => {
|
555
624
|
var s;
|
556
|
-
|
625
|
+
t.value = await D.get(m.payoutAccount.store.id), r.value = (s = t.value.find((c) => c.active)) == null ? void 0 : s.paymentGateway;
|
557
626
|
});
|
558
627
|
}
|
559
|
-
async function
|
560
|
-
|
561
|
-
var
|
628
|
+
async function f(s) {
|
629
|
+
p(async () => {
|
630
|
+
var P;
|
562
631
|
const c = {
|
563
632
|
_id: "",
|
564
633
|
_rev: "",
|
565
634
|
paymentGateway: r.value,
|
566
635
|
config: s,
|
567
636
|
active: !0
|
568
|
-
},
|
569
|
-
|
570
|
-
|
571
|
-
g.active && g.paymentGateway !== c.paymentGateway && await
|
637
|
+
}, x = t.value.find((g) => g.paymentGateway === r.value);
|
638
|
+
x && (c._id = x._id, c._rev = x._rev), await Promise.all(
|
639
|
+
t.value.map(async (g) => {
|
640
|
+
g.active && g.paymentGateway !== c.paymentGateway && await D.upsert(m.payoutAccount.store.id, {
|
572
641
|
...g,
|
573
642
|
active: !1
|
574
643
|
});
|
575
644
|
})
|
576
|
-
), await
|
645
|
+
), await D.upsert(m.payoutAccount.store.id, c), t.value = await D.get(m.payoutAccount.store.id), r.value = (P = t.value.find((g) => g.active)) == null ? void 0 : P.paymentGateway;
|
577
646
|
});
|
578
647
|
}
|
579
|
-
async function
|
580
|
-
|
648
|
+
async function v(s) {
|
649
|
+
p(async () => {
|
581
650
|
var c;
|
582
|
-
await
|
651
|
+
await D.delete(m.payoutAccount.store.id, s._id), t.value = await D.get(m.payoutAccount.store.id), r.value = (c = t.value.find((x) => x.active)) == null ? void 0 : c.paymentGateway;
|
583
652
|
});
|
584
653
|
}
|
585
654
|
O(u);
|
@@ -587,23 +656,28 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
587
656
|
{
|
588
657
|
label: "Fiuu",
|
589
658
|
value: "RAZER_MERCHANT_SERVICE",
|
590
|
-
form:
|
659
|
+
form: ve
|
591
660
|
},
|
592
661
|
{
|
593
662
|
label: "Revenue Monster",
|
594
663
|
value: "REVENUE_MONSTER",
|
595
664
|
form: be
|
665
|
+
},
|
666
|
+
{
|
667
|
+
label: "GHL",
|
668
|
+
value: "E_GHL",
|
669
|
+
form: Fe
|
596
670
|
}
|
597
671
|
], l = E(() => {
|
598
672
|
var s;
|
599
673
|
return (s = n.find((c) => c.value === r.value)) == null ? void 0 : s.form;
|
600
674
|
});
|
601
675
|
return (s, c) => {
|
602
|
-
const
|
603
|
-
return b(),
|
604
|
-
|
605
|
-
o(
|
606
|
-
])) : (b(), V(
|
676
|
+
const x = y("FmCircularProgress"), P = y("FmSelect");
|
677
|
+
return b(), $(T, null, [
|
678
|
+
d(e) ? (b(), $("div", xe, [
|
679
|
+
o(x, { size: "xxl" })
|
680
|
+
])) : (b(), V(P, {
|
607
681
|
key: 1,
|
608
682
|
modelValue: r.value,
|
609
683
|
"onUpdate:modelValue": c[0] || (c[0] = (g) => r.value = g),
|
@@ -612,14 +686,14 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
612
686
|
items: n
|
613
687
|
}, null, 8, ["modelValue"])),
|
614
688
|
r.value ? (b(), V(j(l.value), z(H({ key: 2 }, {
|
615
|
-
gateway:
|
616
|
-
onDelete:
|
617
|
-
onUpdate:
|
689
|
+
gateway: t.value.find((g) => g.paymentGateway === r.value),
|
690
|
+
onDelete: v,
|
691
|
+
onUpdate: f
|
618
692
|
})), null, 16)) : U("", !0)
|
619
693
|
], 64);
|
620
694
|
};
|
621
695
|
}
|
622
|
-
}),
|
696
|
+
}), De = /* @__PURE__ */ I({
|
623
697
|
__name: "PayoutAccountSetting",
|
624
698
|
props: {
|
625
699
|
accountId: {
|
@@ -627,17 +701,17 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
627
701
|
required: !0
|
628
702
|
}
|
629
703
|
},
|
630
|
-
setup(
|
631
|
-
const
|
704
|
+
setup(a) {
|
705
|
+
const m = a, { tab: e } = Q({
|
632
706
|
tab: "information"
|
633
|
-
}), { isLoading:
|
634
|
-
async function
|
635
|
-
await
|
636
|
-
|
707
|
+
}), { isLoading: p, startAsyncCall: r } = L(!0), t = J(), u = k();
|
708
|
+
async function f(s) {
|
709
|
+
await R.updateById(
|
710
|
+
m.accountId,
|
637
711
|
s
|
638
|
-
), u.value = await
|
712
|
+
), u.value = await R.readById(m.accountId);
|
639
713
|
}
|
640
|
-
const
|
714
|
+
const v = [
|
641
715
|
{
|
642
716
|
label: "Information",
|
643
717
|
value: "information",
|
@@ -659,37 +733,37 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
659
733
|
];
|
660
734
|
function n() {
|
661
735
|
r(async () => {
|
662
|
-
u.value = await
|
736
|
+
u.value = await R.readById(m.accountId), u.value.store.event === "ORDERING" && v.push({
|
663
737
|
label: "Payment Gateway",
|
664
738
|
value: "payment-gateway",
|
665
739
|
icon: "assured_workload",
|
666
|
-
render:
|
740
|
+
render: Ve
|
667
741
|
});
|
668
742
|
});
|
669
743
|
}
|
670
744
|
O(n);
|
671
745
|
const l = E(() => {
|
672
746
|
var s;
|
673
|
-
return (s =
|
747
|
+
return (s = v.find((c) => c.value === e.value)) == null ? void 0 : s.render;
|
674
748
|
});
|
675
749
|
return (s, c) => {
|
676
|
-
var
|
677
|
-
const
|
750
|
+
var P;
|
751
|
+
const x = y("FmTabs");
|
678
752
|
return b(), V(Z, {
|
679
|
-
title: `Payout Account (${(
|
680
|
-
loading: p
|
681
|
-
onBack:
|
753
|
+
title: `Payout Account (${(P = u.value) == null ? void 0 : P._id})`,
|
754
|
+
loading: d(p),
|
755
|
+
onBack: d(t).back
|
682
756
|
}, {
|
683
|
-
default:
|
684
|
-
o(
|
685
|
-
"model-value":
|
757
|
+
default: F(() => [
|
758
|
+
o(x, {
|
759
|
+
"model-value": d(e),
|
686
760
|
"onUpdate:modelValue": c[0] || (c[0] = (g) => M(e) ? e.value = g : null),
|
687
761
|
class: "mb-6",
|
688
|
-
items:
|
762
|
+
items: v
|
689
763
|
}, null, 8, ["model-value"]),
|
690
|
-
|
764
|
+
d(e) ? (b(), V(j(l.value), z(H({ key: 0 }, {
|
691
765
|
payoutAccount: u.value,
|
692
|
-
onUpdate:
|
766
|
+
onUpdate: f
|
693
767
|
})), null, 16)) : U("", !0)
|
694
768
|
]),
|
695
769
|
_: 1
|
@@ -698,5 +772,5 @@ const h = { class: "flex gap-16 mb-6" }, ee = ["src"], te = /* @__PURE__ */ I({
|
|
698
772
|
}
|
699
773
|
});
|
700
774
|
export {
|
701
|
-
|
775
|
+
De as default
|
702
776
|
};
|