@feedmepos/mf-payment 1.2.12 → 1.2.14

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.
Files changed (60) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js +40 -0
  2. package/dist/{PayoutAccount-D-NM-_2s.js → PayoutAccount-B9sThTU6.js} +6 -6
  3. package/dist/{PayoutAccount-j4yHJfSr.js → PayoutAccount-C1-oQCFC.js} +5 -5
  4. package/dist/{PayoutAccountSetting-vzdkhXb8.js → PayoutAccountSetting-D3ffGE0d.js} +111 -114
  5. package/dist/{Restaurant-CPIy0SZJ.js → Restaurant-3FLRoz2Z.js} +5 -5
  6. package/dist/{RestaurantSetting-DK4GOY2d.js → RestaurantSetting-DnqiIepz.js} +3 -3
  7. package/dist/{Settlement-BeI2ksZ3.js → Settlement-Bdj2WaoM.js} +4 -4
  8. package/dist/{Settlement-B5kQfJuQ.js → Settlement-CC2B-e4f.js} +4 -4
  9. package/dist/SettlementTransactions-CwLzHWsb.js +323 -0
  10. package/dist/SettlementTransactions-DGCj9bAe.js +362 -0
  11. package/dist/{Terminal-Bf7VZ5Yo.js → Terminal-7c3OQF9g.js} +5 -5
  12. package/dist/{TerminalSetting-pnwFHRR8.js → TerminalSetting-B7xu6e4X.js} +3 -3
  13. package/dist/{Transaction-Cbiu540w.js → Transaction--t5VJdXQ.js} +125 -94
  14. package/dist/{Transaction-Cpbte6yS.js → Transaction-D1LWBBsZ.js} +7 -7
  15. package/dist/{TransactionOld-Dnnz541Y.js → TransactionOld-DHVZ5iSD.js} +4 -4
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-tMjd6_k7.js → TransactionTable.vue_vue_type_script_setup_true_lang-CRkXGtHQ.js} +111 -89
  17. package/dist/{app-C_At3NFn.js → app-D24UkS2o.js} +340 -340
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-DjGZEHos.js → assets-B5NXw6Y4.js} +35 -33
  20. package/dist/components/AutoCopyCell.vue.d.ts +1 -0
  21. package/dist/{grafana-D99I428B.js → grafana-DaIIupgz.js} +1 -1
  22. package/dist/{index-CW2tMCo9.js → index-B2DvBis-.js} +2 -2
  23. package/dist/{index-DdE42RgX.js → index-BBYs-Llt.js} +1 -1
  24. package/dist/{index-CvPpUZR3.js → index-BFdB2HXN.js} +1 -1
  25. package/dist/{index-B3IOW-oD.js → index-Bboy-oty.js} +1 -1
  26. package/dist/{index-BI63pT6J.js → index-DNHpMza-.js} +5251 -5143
  27. package/dist/{index-DigkUnks.js → index-DvYpRRA_.js} +1 -1
  28. package/dist/{index-DXLkzCkb.js → index-Lio-k9My.js} +1 -1
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-Dx-Mg_Zx.js → index.vue_vue_type_script_setup_true_lang-B8G7gIcx.js} +1 -1
  30. package/dist/model/transaction.d.ts +1 -0
  31. package/dist/package.json +2 -2
  32. package/dist/{payout-account-D7Wzxyao.js → payout-account-MSqoi8mH.js} +3 -3
  33. package/dist/stores/payoutAccount.d.ts +10 -10
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +10 -10
  36. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +28 -34
  37. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +28 -34
  38. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +10 -10
  39. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +10 -10
  40. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +28 -34
  41. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +6 -12
  42. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +1 -1
  43. package/dist/views/admin/settlement/cell/Method.vue.d.ts +1 -1
  44. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  45. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +14 -14
  46. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  47. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  48. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  49. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +14 -14
  50. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  51. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
  52. package/dist/views/admin/transaction/cell/Method.vue.d.ts +1 -1
  53. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +20 -20
  54. package/dist/views/settlement/cell/Gateway.vue.d.ts +1 -1
  55. package/dist/views/settlement/cell/Method.vue.d.ts +1 -1
  56. package/dist/views/transaction/cell/Gateway.vue.d.ts +1 -1
  57. package/package.json +2 -2
  58. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js +0 -39
  59. package/dist/SettlementTransactions-CHjwajgr.js +0 -297
  60. package/dist/SettlementTransactions-D7z5DaxO.js +0 -336
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
2
- import { u as A } from "./index-BI63pT6J.js";
2
+ import { u as A } from "./index-DNHpMza-.js";
3
3
  import { h as S } from "./moment-h96o7c8I.js";
4
- import { s as _ } from "./index-DdE42RgX.js";
4
+ import { s as _ } from "./index-BBYs-Llt.js";
5
5
  import { useSnackbar as U } from "@feedmepos/ui-library";
6
6
  import { d as w } from "./dinero-CIVmXLL-.js";
7
- import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
+ import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
8
8
  import { useRouter as J } from "vue-router";
9
9
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as z } from "./index-CvPpUZR3.js";
10
+ import { u as z } from "./index-BFdB2HXN.js";
11
11
  import { u as G } from "./error-K1CakhA9.js";
12
12
  import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  import "@feedmepos/mf-common";
@@ -0,0 +1,323 @@
1
+ import { defineComponent as x, resolveComponent as f, openBlock as F, createBlock as T, normalizeClass as z, withCtx as r, createElementVNode as n, toDisplayString as l, unref as a, ref as b, onMounted as j, watch as M, createVNode as o, createTextVNode as u, h as C } from "vue";
2
+ import { e as E, u as G } from "./index-DNHpMza-.js";
3
+ import "@feedmepos/ui-library";
4
+ import { d as k } from "./dinero-CIVmXLL-.js";
5
+ import { g as H, a as q, t as J, b as Q } from "./assets-B5NXw6Y4.js";
6
+ import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
+ import { useRouter as X } from "vue-router";
8
+ import { s as Z } from "./index-BBYs-Llt.js";
9
+ import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
10
+ import { h as ae } from "./moment-h96o7c8I.js";
11
+ const ne = /* @__PURE__ */ x({
12
+ __name: "Status",
13
+ props: {
14
+ row: {},
15
+ data: {}
16
+ },
17
+ setup(_) {
18
+ const e = _;
19
+ function y() {
20
+ return e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
21
+ }
22
+ return (d, $) => {
23
+ const N = f("FmBadge");
24
+ return F(), T(N, {
25
+ inline: "",
26
+ class: z(y())
27
+ }, {
28
+ default: r(() => [
29
+ n("div", null, l(d.data), 1)
30
+ ]),
31
+ _: 1
32
+ }, 8, ["class"]);
33
+ };
34
+ }
35
+ }), le = ["src"], oe = /* @__PURE__ */ x({
36
+ __name: "Gateway",
37
+ props: {
38
+ row: {},
39
+ data: {}
40
+ },
41
+ setup(_) {
42
+ return (e, y) => {
43
+ const d = f("FmTooltip");
44
+ return F(), T(d, {
45
+ variant: "plain",
46
+ placement: "top",
47
+ content: e.row.original.gateway,
48
+ "hide-arrow": !0
49
+ }, {
50
+ default: r(() => [
51
+ n("img", {
52
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
53
+ src: a(H)(e.row.original.gateway)
54
+ }, null, 8, le)
55
+ ]),
56
+ _: 1
57
+ }, 8, ["content"]);
58
+ };
59
+ }
60
+ }), se = ["src"], re = /* @__PURE__ */ x({
61
+ __name: "Method",
62
+ props: {
63
+ row: {},
64
+ data: {}
65
+ },
66
+ setup(_) {
67
+ return (e, y) => {
68
+ const d = f("FmTooltip");
69
+ return F(), T(d, {
70
+ variant: "plain",
71
+ placement: "top",
72
+ content: e.row.original.method.issuer,
73
+ "hide-arrow": !0
74
+ }, {
75
+ default: r(() => [
76
+ n("img", {
77
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
78
+ src: a(q)(e.row.original.method.issuer, e.row.original.method.variant)
79
+ }, null, 8, se)
80
+ ]),
81
+ _: 1
82
+ }, 8, ["content"]);
83
+ };
84
+ }
85
+ }), ie = { class: "flex mb-6" }, me = { class: "my-6 w-[240px]" }, be = /* @__PURE__ */ x({
86
+ __name: "SettlementTransactions",
87
+ props: {
88
+ settlementId: {
89
+ type: String,
90
+ required: !0
91
+ }
92
+ },
93
+ setup(_) {
94
+ const { t: e } = ee(), y = _, { isLoading: d, startAsyncCall: $ } = G(!0), { currentRestaurant: N } = te(), O = X(), m = b(), w = b([]), A = b([]);
95
+ async function D(s = !1) {
96
+ $(async () => {
97
+ s || (m.value = await Z.readRestaurantSettlementById(y.settlementId));
98
+ const t = await J.readRestaurantTransactionsBySettlementId(y.settlementId);
99
+ w.value = Q(t), A.value = w.value;
100
+ });
101
+ }
102
+ function B() {
103
+ D();
104
+ }
105
+ j(B), M(N, B);
106
+ const K = b(""), Y = [
107
+ {
108
+ header: () => e("payment.settlements.dialog.feedme.id"),
109
+ accessorKey: "id"
110
+ },
111
+ {
112
+ header: () => e("payment.settlements.dialog.feedme.pay_id"),
113
+ accessorKey: "payId"
114
+ },
115
+ {
116
+ header: () => e("payment.settlements.dialog.feedme.gateway"),
117
+ accessorKey: "gateway",
118
+ meta: {
119
+ textAlign: "center"
120
+ },
121
+ cell: ({ cell: s, row: t }) => t.original.method ? C(oe, { row: t, data: s.getValue() }) : ""
122
+ },
123
+ {
124
+ header: () => e("payment.settlements.dialog.feedme.method"),
125
+ accessorKey: "method",
126
+ meta: {
127
+ textAlign: "center"
128
+ },
129
+ cell: ({ cell: s, row: t }) => t.original.method ? C(re, { row: t, data: s.getValue() }) : ""
130
+ },
131
+ {
132
+ header: () => e("payment.settlements.dialog.feedme.payFor"),
133
+ accessorKey: "payFor"
134
+ },
135
+ {
136
+ header: () => e("payment.settlements.dialog.feedme.type"),
137
+ accessorKey: "type",
138
+ meta: {
139
+ textAlign: "center"
140
+ },
141
+ cell: ({ row: s }) => {
142
+ if (!s.original.method)
143
+ return "";
144
+ const t = s.original.method.variant;
145
+ return t.includes("_ONLINE") ? "ONLINE" : t.includes("_OFFLINE") ? "OFFLINE" : t;
146
+ }
147
+ },
148
+ {
149
+ header: () => e("payment.settlements.dialog.feedme.status"),
150
+ accessorKey: "status",
151
+ cell: ({ cell: s, row: t }) => C(ne, { row: t, data: s.getValue() })
152
+ },
153
+ {
154
+ header: () => e("payment.settlements.dialog.feedme.transaction_at"),
155
+ accessorKey: "transactionAt",
156
+ meta: {
157
+ width: "180px"
158
+ }
159
+ },
160
+ {
161
+ header: () => e("payment.settlements.dialog.feedme.sales_amount"),
162
+ accessorKey: "amount"
163
+ },
164
+ {
165
+ header: () => e("payment.settlements.dialog.feedme.fee"),
166
+ accessorKey: "fee"
167
+ },
168
+ {
169
+ header: () => e("payment.settlements.dialog.feedme.settlement_amount"),
170
+ accessorKey: "payout"
171
+ }
172
+ ], h = b("");
173
+ let S;
174
+ return M(h, async () => {
175
+ S && clearTimeout(S), S = setTimeout(() => {
176
+ var s = new RegExp(h.value, "i");
177
+ A.value = w.value.filter((t) => {
178
+ const v = JSON.stringify(t);
179
+ return s.test(v);
180
+ });
181
+ }, 700);
182
+ }), (s, t) => {
183
+ var V, R;
184
+ const v = f("FmCardHeader"), g = f("FmCardSection"), I = f("FmCard"), P = f("FmSearch"), U = f("FmTable");
185
+ return F(), T(W, {
186
+ title: `${a(e)("payment.settlements.dialog.title")} (${(V = m.value) == null ? void 0 : V._id})`,
187
+ description: `${a(e)("payment.settlements.dialog.date")}: ${a(ae)((R = m.value) == null ? void 0 : R.createdAt).format("YYYY-MM-DD")}`,
188
+ loading: a(d),
189
+ onBack: a(O).back
190
+ }, {
191
+ default: r(() => [
192
+ n("div", ie, [
193
+ o(I, {
194
+ horizontal: "",
195
+ class: "flex-1 p-6",
196
+ variant: "elevated"
197
+ }, {
198
+ default: r(() => [
199
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
200
+ default: r(() => [
201
+ o(v, {
202
+ class: "p-0",
203
+ title: a(e)("payment.settlements.dialog.info.transaction.title"),
204
+ subtitle: ""
205
+ }, null, 8, ["title"]),
206
+ o(g, { class: "p-0" }, {
207
+ default: r(() => {
208
+ var i, c, p, L;
209
+ return [
210
+ n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.for")), 1),
211
+ u(": " + l((c = (i = m.value) == null ? void 0 : i.store) == null ? void 0 : c.event) + " ", 1),
212
+ t[2] || (t[2] = n("br", null, null, -1)),
213
+ n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.reference")), 1),
214
+ u(": " + l((L = (p = m.value) == null ? void 0 : p.store) == null ? void 0 : L.id), 1),
215
+ t[3] || (t[3] = n("br", null, null, -1)),
216
+ n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.count")), 1),
217
+ u(": " + l(w.value.length), 1)
218
+ ];
219
+ }),
220
+ _: 1
221
+ })
222
+ ]),
223
+ _: 1
224
+ })
225
+ ]),
226
+ _: 1
227
+ }),
228
+ o(I, {
229
+ horizontal: "",
230
+ class: "flex-1 p-6 mx-6",
231
+ variant: "elevated"
232
+ }, {
233
+ default: r(() => [
234
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
235
+ default: r(() => [
236
+ o(v, {
237
+ class: "p-0",
238
+ title: a(e)("payment.settlements.dialog.info.bank.title"),
239
+ subtitle: ""
240
+ }, null, 8, ["title"]),
241
+ o(g, { class: "p-0" }, {
242
+ default: r(() => {
243
+ var i, c, p;
244
+ return [
245
+ n("b", null, l(a(e)("payment.settlements.dialog.info.bank.for")), 1),
246
+ u(": " + l((i = m.value) == null ? void 0 : i.beneficiaryBank.name), 1),
247
+ t[4] || (t[4] = n("br", null, null, -1)),
248
+ n("b", null, l(a(e)("payment.settlements.dialog.info.bank.name")), 1),
249
+ u(": " + l((c = m.value) == null ? void 0 : c.beneficiaryBank.holderName), 1),
250
+ t[5] || (t[5] = n("br", null, null, -1)),
251
+ n("b", null, l(a(e)("payment.settlements.dialog.info.bank.number")), 1),
252
+ u(": " + l((p = m.value) == null ? void 0 : p.beneficiaryBank.accountNumber), 1)
253
+ ];
254
+ }),
255
+ _: 1
256
+ })
257
+ ]),
258
+ _: 1
259
+ })
260
+ ]),
261
+ _: 1
262
+ }),
263
+ o(I, {
264
+ horizontal: "",
265
+ class: "flex-1 p-6",
266
+ variant: "elevated"
267
+ }, {
268
+ default: r(() => [
269
+ o(g, { class: "flex flex-col gap-16 justify-between" }, {
270
+ default: r(() => [
271
+ o(v, {
272
+ class: "p-0",
273
+ title: a(e)("payment.settlements.dialog.info.payout.title"),
274
+ subtitle: ""
275
+ }, null, 8, ["title"]),
276
+ o(g, { class: "p-0" }, {
277
+ default: r(() => {
278
+ var i, c, p;
279
+ return [
280
+ n("b", null, l(a(e)("payment.settlements.dialog.info.payout.amount")), 1),
281
+ u(": " + l(a(k)((i = m.value) == null ? void 0 : i.totalAmount).toFormat("$0.00")), 1),
282
+ t[6] || (t[6] = n("br", null, null, -1)),
283
+ n("b", null, l(a(e)("payment.settlements.dialog.info.payout.fee")), 1),
284
+ u(": " + l(a(k)((c = m.value) == null ? void 0 : c.totalFee).toFormat("$0.00")), 1),
285
+ t[7] || (t[7] = n("br", null, null, -1)),
286
+ n("b", null, l(a(e)("payment.settlements.dialog.info.payout.payout")), 1),
287
+ u(": " + l(a(k)((p = m.value) == null ? void 0 : p.totalPayout).toFormat("$0.00")), 1)
288
+ ];
289
+ }),
290
+ _: 1
291
+ })
292
+ ]),
293
+ _: 1
294
+ })
295
+ ]),
296
+ _: 1
297
+ })
298
+ ]),
299
+ n("div", me, [
300
+ o(P, {
301
+ modelValue: h.value,
302
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => h.value = i),
303
+ placeholder: a(e)("payment.settlements.dialog.search")
304
+ }, null, 8, ["modelValue", "placeholder"])
305
+ ]),
306
+ o(U, {
307
+ modelValue: K.value,
308
+ "onUpdate:modelValue": t[1] || (t[1] = (i) => K.value = i),
309
+ "shrink-at": !1,
310
+ "search-value": h.value,
311
+ "row-data": A.value,
312
+ "column-defs": Y,
313
+ loading: a(d)
314
+ }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
315
+ ]),
316
+ _: 1
317
+ }, 8, ["title", "description", "loading", "onBack"]);
318
+ };
319
+ }
320
+ });
321
+ export {
322
+ be as default
323
+ };