@feedmepos/mf-payment 1.0.0-beta.9 → 1.0.1-beta.1
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/{AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js → AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js} +8 -9
- package/dist/{PayoutAccount-_d3TfUSc.js → PayoutAccount-CyVXI1Sx.js} +5 -5
- package/dist/{PayoutAccount-DgN3EHTj.js → PayoutAccount-DGUnImHC.js} +4 -4
- package/dist/{PayoutAccountSetting-CmgVLhdp.js → PayoutAccountSetting-BbtOFbsd.js} +161 -183
- package/dist/Restaurant-ewsvVw3P.js +262 -0
- package/dist/RestaurantSetting-BboKM1iG.js +389 -0
- package/dist/{Settlement-B1-WmCwC.js → Settlement-DsJlFpCC.js} +4 -4
- package/dist/{Settlement-BSOQRlp1.js → Settlement-Hr7jN3EL.js} +4 -4
- package/dist/{SettlementTransactions-Cqd2raea.js → SettlementTransactions-BncoGGQ3.js} +10 -10
- package/dist/{SettlementTransactions-JTwD_Vuq.js → SettlementTransactions-Bz9ZVYfq.js} +41 -41
- package/dist/{Terminal-De69bTKY.js → Terminal-D-U0BVTe.js} +121 -108
- package/dist/{TerminalSetting-DlRHaEZh.js → TerminalSetting-JD3sbXOB.js} +3 -3
- package/dist/{TerminalTransaction-CZCsCpEp.js → TerminalTransaction-B5iY_F-3.js} +18 -18
- package/dist/{TerminalTransaction-C1egvX6I.js → TerminalTransaction-DHmD5x8e.js} +12 -12
- package/dist/{Transaction-B3ZWKg6Q.js → Transaction-BedQtv8p.js} +64 -64
- package/dist/{Transaction-B_0nUmpf.js → Transaction-DA_TB9zD.js} +11 -11
- package/dist/api/restaurant/index.d.ts +6 -0
- package/dist/{app-B-XC_fSK.js → app-CpyZU23J.js} +164 -147
- package/dist/app.js +1 -1
- package/dist/{assets-BCAivOTo.js → assets-8c19wXSV.js} +22 -21
- package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
- package/dist/components/PagingTable/index.vue.d.ts +48 -0
- package/dist/{index-4meiCsRz.js → index-1fXAFo2E.js} +31211 -31211
- package/dist/index-BIXuzGa9.js +19 -0
- package/dist/{index-BFYq3eq8.js → index-Cb1zVhcH.js} +1 -1
- package/dist/{index-CbsnpMWl.js → index-DEpszFWF.js} +1 -1
- package/dist/{index-BwFHcZlm.js → index-DdJrUqkm.js} +1 -1
- package/dist/{index-CBa6eapm.js → index-DeU3Qyca.js} +1 -1
- package/dist/{index-CETCXB6X.js → index-DoAIw4wM.js} +1 -1
- package/dist/index-DsLFmVsY.js +28 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKOlikHb.js → index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js} +64 -61
- package/dist/package.json +2 -2
- package/dist/{payout-account-CKhGpN_d.js → payout-account-BbheLTUt.js} +2 -2
- package/dist/{transaction-COjHU7aN.js → transaction-W49zE8RL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/restaurant/Restaurant.vue.d.ts +2 -0
- package/dist/views/admin/restaurant/RestaurantSetting.vue.d.ts +12 -0
- package/dist/views/admin/restaurant/cell/IsActive.vue.d.ts +7 -0
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +803 -0
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/package.json +2 -2
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as
|
2
|
-
import { e as E, u as q } from "./index-
|
1
|
+
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
|
2
|
+
import { e as E, u as q } from "./index-1fXAFo2E.js";
|
3
3
|
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
4
4
|
import { d as B } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as W, a as X } from "./assets-
|
6
|
-
import { t as P,
|
5
|
+
import { g as W, a as X } from "./assets-8c19wXSV.js";
|
6
|
+
import { t as P, a as Z } from "./transaction-W49zE8RL.js";
|
7
7
|
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as te } from "vue-router";
|
9
|
-
import { s as ae } from "./index-
|
9
|
+
import { s as ae } from "./index-DoAIw4wM.js";
|
10
10
|
import { u as ne } from "./error-K1CakhA9.js";
|
11
11
|
import { w as oe } from "./Modal-DB8M9o1T.js";
|
12
12
|
const re = /* @__PURE__ */ w({
|
@@ -24,7 +24,7 @@ const re = /* @__PURE__ */ w({
|
|
24
24
|
const b = g("FmBadge");
|
25
25
|
return F(), k(b, {
|
26
26
|
inline: "",
|
27
|
-
class:
|
27
|
+
class: G(m())
|
28
28
|
}, {
|
29
29
|
default: l(() => [
|
30
30
|
t("div", null, u(A.data), 1)
|
@@ -41,7 +41,7 @@ const re = /* @__PURE__ */ w({
|
|
41
41
|
},
|
42
42
|
setup(y) {
|
43
43
|
return (o, m) => (F(), L("img", {
|
44
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
44
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
45
45
|
src: p(W)(o.row.original.gateway)
|
46
46
|
}, null, 8, le));
|
47
47
|
}
|
@@ -194,7 +194,7 @@ const re = /* @__PURE__ */ w({
|
|
194
194
|
}, 700);
|
195
195
|
}), (a, e) => {
|
196
196
|
var $;
|
197
|
-
const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"),
|
197
|
+
const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), j = g("FmSearch"), z = g("FmTable");
|
198
198
|
return F(), k(ee, {
|
199
199
|
title: `Settlement Transactions (${($ = s.value) == null ? void 0 : $._id})`,
|
200
200
|
loading: p(m),
|
@@ -309,13 +309,13 @@ const re = /* @__PURE__ */ w({
|
|
309
309
|
})
|
310
310
|
]),
|
311
311
|
t("div", ce, [
|
312
|
-
n(
|
312
|
+
n(j, {
|
313
313
|
modelValue: x.value,
|
314
314
|
"onUpdate:modelValue": e[0] || (e[0] = (r) => x.value = r),
|
315
315
|
placeholder: "Search Transactions ..."
|
316
316
|
}, null, 8, ["modelValue"])
|
317
317
|
]),
|
318
|
-
n(
|
318
|
+
n(z, {
|
319
319
|
modelValue: K.value,
|
320
320
|
"onUpdate:modelValue": e[1] || (e[1] = (r) => K.value = r),
|
321
321
|
"search-value": x.value,
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as
|
2
|
-
import { e as E, u as
|
1
|
+
import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as j, withCtx as r, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as z, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
|
2
|
+
import { e as E, u as G } from "./index-1fXAFo2E.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
import { d as h } from "./dinero-CIVmXLL-.js";
|
5
|
-
import { g as Y, a as H } from "./assets-
|
6
|
-
import { t as q,
|
5
|
+
import { g as Y, a as H } from "./assets-8c19wXSV.js";
|
6
|
+
import { t as q, a as J } from "./transaction-W49zE8RL.js";
|
7
7
|
import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
8
8
|
import { useRouter as W } from "vue-router";
|
9
|
-
import { s as X } from "./index-
|
9
|
+
import { s as X } from "./index-DoAIw4wM.js";
|
10
10
|
import { useCoreStore as Z } from "@feedmepos/mf-common";
|
11
11
|
const ee = /* @__PURE__ */ T({
|
12
12
|
__name: "Status",
|
@@ -15,17 +15,17 @@ const ee = /* @__PURE__ */ T({
|
|
15
15
|
data: {}
|
16
16
|
},
|
17
17
|
setup(y) {
|
18
|
-
const
|
18
|
+
const l = y;
|
19
19
|
function p() {
|
20
|
-
return
|
20
|
+
return l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
21
21
|
}
|
22
22
|
return (S, B) => {
|
23
23
|
const w = g("FmBadge");
|
24
24
|
return F(), P(w, {
|
25
25
|
inline: "",
|
26
|
-
class:
|
26
|
+
class: j(p())
|
27
27
|
}, {
|
28
|
-
default:
|
28
|
+
default: r(() => [
|
29
29
|
t("div", null, u(S.data), 1)
|
30
30
|
]),
|
31
31
|
_: 1
|
@@ -39,24 +39,24 @@ const ee = /* @__PURE__ */ T({
|
|
39
39
|
data: {}
|
40
40
|
},
|
41
41
|
setup(y) {
|
42
|
-
return (
|
43
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
44
|
-
src: c(Y)(
|
42
|
+
return (l, p) => (F(), L("img", {
|
43
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
44
|
+
src: c(Y)(l.row.original.gateway)
|
45
45
|
}, null, 8, te));
|
46
46
|
}
|
47
|
-
}), ne = ["src"],
|
47
|
+
}), ne = ["src"], oe = /* @__PURE__ */ T({
|
48
48
|
__name: "Method",
|
49
49
|
props: {
|
50
50
|
row: {},
|
51
51
|
data: {}
|
52
52
|
},
|
53
53
|
setup(y) {
|
54
|
-
return (
|
54
|
+
return (l, p) => (F(), L("img", {
|
55
55
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
56
|
-
src: c(H)(
|
56
|
+
src: c(H)(l.row.original.method.issuer)
|
57
57
|
}, null, 8, ne));
|
58
58
|
}
|
59
|
-
}),
|
59
|
+
}), re = { class: "flex mb-6" }, le = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
|
60
60
|
__name: "SettlementTransactions",
|
61
61
|
props: {
|
62
62
|
settlementId: {
|
@@ -65,18 +65,18 @@ const ee = /* @__PURE__ */ T({
|
|
65
65
|
}
|
66
66
|
},
|
67
67
|
setup(y) {
|
68
|
-
const
|
68
|
+
const l = y, { isLoading: p, startAsyncCall: S } = G(!0), { currentRestaurant: B } = Z(), w = W(), s = _(), x = _([]), N = _([]);
|
69
69
|
async function O(n = !1) {
|
70
70
|
S(async () => {
|
71
|
-
n || (s.value = await X.readRestaurantSettlementById(
|
72
|
-
const e = await q.readRestaurantTransactionsBySettlementId(
|
71
|
+
n || (s.value = await X.readRestaurantSettlementById(l.settlementId));
|
72
|
+
const e = await q.readRestaurantTransactionsBySettlementId(l.settlementId);
|
73
73
|
x.value = J(e), N.value = x.value;
|
74
74
|
});
|
75
75
|
}
|
76
76
|
function k() {
|
77
77
|
O();
|
78
78
|
}
|
79
|
-
|
79
|
+
z(k), $(B, k);
|
80
80
|
const V = _(""), D = [
|
81
81
|
{
|
82
82
|
header: () => "Transaction ID",
|
@@ -100,7 +100,7 @@ const ee = /* @__PURE__ */ T({
|
|
100
100
|
meta: {
|
101
101
|
textAlign: "center"
|
102
102
|
},
|
103
|
-
cell: ({ cell: n, row: e }) => e.original.method ? C(
|
103
|
+
cell: ({ cell: n, row: e }) => e.original.method ? C(oe, { row: e, data: n.getValue() }) : ""
|
104
104
|
},
|
105
105
|
{
|
106
106
|
header: () => "Type",
|
@@ -157,27 +157,27 @@ const ee = /* @__PURE__ */ T({
|
|
157
157
|
loading: c(p),
|
158
158
|
onBack: c(w).back
|
159
159
|
}, {
|
160
|
-
default:
|
161
|
-
t("div",
|
160
|
+
default: r(() => [
|
161
|
+
t("div", re, [
|
162
162
|
a(I, {
|
163
163
|
horizontal: "",
|
164
164
|
class: "flex-1 p-6",
|
165
165
|
variant: "elevated"
|
166
166
|
}, {
|
167
|
-
default:
|
167
|
+
default: r(() => [
|
168
168
|
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
169
|
-
default:
|
169
|
+
default: r(() => [
|
170
170
|
a(b, {
|
171
171
|
class: "p-0",
|
172
172
|
title: "Transaction Info",
|
173
173
|
subtitle: ""
|
174
174
|
}),
|
175
175
|
a(f, { class: "p-0" }, {
|
176
|
-
default:
|
177
|
-
var
|
176
|
+
default: r(() => {
|
177
|
+
var o, d, m, R;
|
178
178
|
return [
|
179
179
|
e[2] || (e[2] = t("b", null, "For", -1)),
|
180
|
-
i(": " + u((d = (
|
180
|
+
i(": " + u((d = (o = s.value) == null ? void 0 : o.store) == null ? void 0 : d.event) + " ", 1),
|
181
181
|
e[3] || (e[3] = t("br", null, null, -1)),
|
182
182
|
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
183
183
|
i(": " + u((R = (m = s.value) == null ? void 0 : m.store) == null ? void 0 : R.id), 1),
|
@@ -199,20 +199,20 @@ const ee = /* @__PURE__ */ T({
|
|
199
199
|
class: "flex-1 p-6 mx-6",
|
200
200
|
variant: "elevated"
|
201
201
|
}, {
|
202
|
-
default:
|
202
|
+
default: r(() => [
|
203
203
|
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
204
|
-
default:
|
204
|
+
default: r(() => [
|
205
205
|
a(b, {
|
206
206
|
class: "p-0",
|
207
207
|
title: "Bank Info",
|
208
208
|
subtitle: ""
|
209
209
|
}),
|
210
210
|
a(f, { class: "p-0" }, {
|
211
|
-
default:
|
212
|
-
var
|
211
|
+
default: r(() => {
|
212
|
+
var o, d, m;
|
213
213
|
return [
|
214
214
|
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
215
|
-
i(": " + u((
|
215
|
+
i(": " + u((o = s.value) == null ? void 0 : o.beneficiaryBank.name), 1),
|
216
216
|
e[8] || (e[8] = t("br", null, null, -1)),
|
217
217
|
e[9] || (e[9] = t("b", null, "Name", -1)),
|
218
218
|
i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
|
@@ -234,20 +234,20 @@ const ee = /* @__PURE__ */ T({
|
|
234
234
|
class: "flex-1 p-6",
|
235
235
|
variant: "elevated"
|
236
236
|
}, {
|
237
|
-
default:
|
237
|
+
default: r(() => [
|
238
238
|
a(f, { class: "flex flex-col gap-16 justify-between" }, {
|
239
|
-
default:
|
239
|
+
default: r(() => [
|
240
240
|
a(b, {
|
241
241
|
class: "p-0",
|
242
242
|
title: "Payout Info",
|
243
243
|
subtitle: ""
|
244
244
|
}),
|
245
245
|
a(f, { class: "p-0" }, {
|
246
|
-
default:
|
247
|
-
var
|
246
|
+
default: r(() => {
|
247
|
+
var o, d, m;
|
248
248
|
return [
|
249
249
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
250
|
-
i(": " + u(c(h)((
|
250
|
+
i(": " + u(c(h)((o = s.value) == null ? void 0 : o.totalAmount).toFormat("$0.00")), 1),
|
251
251
|
e[13] || (e[13] = t("br", null, null, -1)),
|
252
252
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
253
253
|
i(": " + u(c(h)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
|
@@ -265,16 +265,16 @@ const ee = /* @__PURE__ */ T({
|
|
265
265
|
_: 1
|
266
266
|
})
|
267
267
|
]),
|
268
|
-
t("div",
|
268
|
+
t("div", le, [
|
269
269
|
a(M, {
|
270
270
|
modelValue: v.value,
|
271
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
271
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => v.value = o),
|
272
272
|
placeholder: "Search Transactions ..."
|
273
273
|
}, null, 8, ["modelValue"])
|
274
274
|
]),
|
275
275
|
a(U, {
|
276
276
|
modelValue: V.value,
|
277
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
277
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => V.value = o),
|
278
278
|
"search-value": v.value,
|
279
279
|
"row-data": N.value,
|
280
280
|
"column-defs": D,
|