@feedmepos/mf-payment 1.2.12 → 1.2.13

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-j4yHJfSr.js → PayoutAccount-BallFJB0.js} +5 -5
  3. package/dist/{PayoutAccount-D-NM-_2s.js → PayoutAccount-d7sLsB5J.js} +6 -6
  4. package/dist/{PayoutAccountSetting-vzdkhXb8.js → PayoutAccountSetting-wKE68NqB.js} +111 -114
  5. package/dist/{Restaurant-CPIy0SZJ.js → Restaurant-CA3nbrzh.js} +5 -5
  6. package/dist/{RestaurantSetting-DK4GOY2d.js → RestaurantSetting-CJdlyxX7.js} +3 -3
  7. package/dist/{Settlement-B5kQfJuQ.js → Settlement-BEXf60UK.js} +4 -4
  8. package/dist/{Settlement-BeI2ksZ3.js → Settlement-Cnbk9m6D.js} +4 -4
  9. package/dist/SettlementTransactions-D-lWN15V.js +362 -0
  10. package/dist/SettlementTransactions-Pto6c_3v.js +323 -0
  11. package/dist/{Terminal-Bf7VZ5Yo.js → Terminal-B3S_wOTA.js} +5 -5
  12. package/dist/{TerminalSetting-pnwFHRR8.js → TerminalSetting-tSDETEOb.js} +3 -3
  13. package/dist/{Transaction-Cbiu540w.js → Transaction-BY4EF2Z2.js} +125 -94
  14. package/dist/{Transaction-Cpbte6yS.js → Transaction-DsYgbjyl.js} +7 -7
  15. package/dist/{TransactionOld-Dnnz541Y.js → TransactionOld-BY_4OAOA.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-C02jC4yj.js} +115 -93
  17. package/dist/{app-C_At3NFn.js → app-BiKLWpiD.js} +341 -341
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-DjGZEHos.js → assets-C4cUIo0F.js} +35 -33
  20. package/dist/components/AutoCopyCell.vue.d.ts +1 -0
  21. package/dist/{grafana-D99I428B.js → grafana-DRHro6WQ.js} +1 -1
  22. package/dist/{index-DdE42RgX.js → index-0_vl4Euu.js} +1 -1
  23. package/dist/{index-B3IOW-oD.js → index-4QkP1zBY.js} +1 -1
  24. package/dist/{index-DigkUnks.js → index-BTIQHrH_.js} +1 -1
  25. package/dist/{index-BI63pT6J.js → index-BWaS2Ice.js} +5277 -5169
  26. package/dist/{index-DXLkzCkb.js → index-Bohmvrj5.js} +1 -1
  27. package/dist/{index-CvPpUZR3.js → index-DJlXGssK.js} +1 -1
  28. package/dist/{index-CW2tMCo9.js → index-DeoktQzV.js} +2 -2
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-Dx-Mg_Zx.js → index.vue_vue_type_script_setup_true_lang-wZFI0CDi.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-CtfOQFPT.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,14 +1,14 @@
1
1
  import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as m, createVNode as u, withCtx as _, unref as t, toDisplayString as r, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
2
- import { u as z } from "./index-BI63pT6J.js";
2
+ import { u as z } from "./index-BWaS2Ice.js";
3
3
  import { h as $ } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as K, useCoreStore as E } from "@feedmepos/mf-common";
5
5
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as A } from "./index-DdE42RgX.js";
6
+ import { s as A } from "./index-0_vl4Euu.js";
7
7
  import { useDialog as I } from "@feedmepos/ui-library";
8
8
  import { d } from "./dinero-CIVmXLL-.js";
9
- import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
9
+ import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js";
10
10
  import { useRouter as L } from "vue-router";
11
- import { u as J } from "./index-CvPpUZR3.js";
11
+ import { u as J } from "./index-DJlXGssK.js";
12
12
  import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
14
14
  import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -0,0 +1,362 @@
1
+ import { defineComponent as x, resolveComponent as d, openBlock as A, createBlock as S, normalizeClass as G, withCtx as r, createElementVNode as t, toDisplayString as i, unref as m, ref as F, onMounted as j, watch as H, createVNode as o, createTextVNode as u, h as N } from "vue";
2
+ import { e as k, u as q } from "./index-BWaS2Ice.js";
3
+ import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
+ import { d as B } from "./dinero-CIVmXLL-.js";
5
+ import { g as W, a as X, t as P, b as Z } from "./assets-C4cUIo0F.js";
6
+ import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
+ import { useRouter as te } from "vue-router";
8
+ import { s as ae } from "./index-0_vl4Euu.js";
9
+ import { u as ne } from "./error-K1CakhA9.js";
10
+ import { w as oe } from "./Modal-DB8M9o1T.js";
11
+ import { h as re } from "./moment-h96o7c8I.js";
12
+ const le = /* @__PURE__ */ x({
13
+ __name: "Status",
14
+ props: {
15
+ row: {},
16
+ data: {}
17
+ },
18
+ setup(y) {
19
+ const a = y;
20
+ function c() {
21
+ return a.data === k.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === k.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === k.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
22
+ }
23
+ return (p, b) => {
24
+ const T = d("FmBadge");
25
+ return A(), S(T, {
26
+ inline: "",
27
+ class: G(c())
28
+ }, {
29
+ default: r(() => [
30
+ t("div", null, i(p.data), 1)
31
+ ]),
32
+ _: 1
33
+ }, 8, ["class"]);
34
+ };
35
+ }
36
+ }), se = ["src"], ie = /* @__PURE__ */ x({
37
+ __name: "Gateway",
38
+ props: {
39
+ row: {},
40
+ data: {}
41
+ },
42
+ setup(y) {
43
+ return (a, c) => {
44
+ const p = d("FmTooltip");
45
+ return A(), S(p, {
46
+ variant: "plain",
47
+ placement: "top",
48
+ content: a.row.original.gateway,
49
+ "hide-arrow": !0
50
+ }, {
51
+ default: r(() => [
52
+ t("img", {
53
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
54
+ src: m(W)(a.row.original.gateway)
55
+ }, null, 8, se)
56
+ ]),
57
+ _: 1
58
+ }, 8, ["content"]);
59
+ };
60
+ }
61
+ }), ue = ["src"], me = /* @__PURE__ */ x({
62
+ __name: "Method",
63
+ props: {
64
+ row: {},
65
+ data: {}
66
+ },
67
+ setup(y) {
68
+ return (a, c) => {
69
+ const p = d("FmTooltip");
70
+ return A(), S(p, {
71
+ variant: "plain",
72
+ placement: "top",
73
+ content: a.row.original.method.issuer,
74
+ "hide-arrow": !0
75
+ }, {
76
+ default: r(() => [
77
+ t("img", {
78
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
79
+ src: m(X)(a.row.original.method.issuer, a.row.original.method.variant)
80
+ }, null, 8, ue)
81
+ ]),
82
+ _: 1
83
+ }, 8, ["content"]);
84
+ };
85
+ }
86
+ }), de = /* @__PURE__ */ x({
87
+ __name: "Actions",
88
+ props: {
89
+ row: {},
90
+ data: {}
91
+ },
92
+ emits: ["delete"],
93
+ setup(y, { emit: a }) {
94
+ const c = a;
95
+ return (p, b) => {
96
+ const T = d("FmButton");
97
+ return A(), S(T, {
98
+ variant: "plain",
99
+ "prepend-icon": "delete",
100
+ onClick: b[0] || (b[0] = () => c("delete"))
101
+ });
102
+ };
103
+ }
104
+ }), ce = { class: "flex mb-6" }, pe = { class: "my-6 w-[240px]" }, Se = /* @__PURE__ */ x({
105
+ __name: "SettlementTransactions",
106
+ props: {
107
+ settlementId: {
108
+ type: String,
109
+ required: !0
110
+ }
111
+ },
112
+ setup(y) {
113
+ const a = y, { isLoading: c, startAsyncCall: p, startAsyncCallFn: b } = q(!0), T = J(), L = Q(), O = te(), s = F(), h = F([]), I = F([]);
114
+ async function V(n = !1) {
115
+ p(async () => {
116
+ n || (s.value = await ae.readById(a.settlementId));
117
+ const e = await P.readBySettlementId(a.settlementId);
118
+ h.value = Z(e), I.value = h.value;
119
+ });
120
+ }
121
+ function R() {
122
+ V();
123
+ }
124
+ j(R);
125
+ const D = F(""), Y = [
126
+ {
127
+ header: () => "Transaction ID",
128
+ accessorKey: "id"
129
+ },
130
+ {
131
+ header: () => "Pay ID",
132
+ accessorKey: "payId"
133
+ },
134
+ {
135
+ header: () => "Gateway",
136
+ accessorKey: "gateway",
137
+ meta: {
138
+ textAlign: "center"
139
+ },
140
+ cell: ({ cell: n, row: e }) => e.original.method ? N(ie, { row: e, data: n.getValue() }) : ""
141
+ },
142
+ {
143
+ header: () => "Method",
144
+ accessorKey: "method",
145
+ meta: {
146
+ textAlign: "center"
147
+ },
148
+ cell: ({ cell: n, row: e }) => e.original.method ? N(me, { row: e, data: n.getValue() }) : ""
149
+ },
150
+ {
151
+ header: () => "Type",
152
+ accessorKey: "type",
153
+ meta: {
154
+ textAlign: "center"
155
+ },
156
+ cell: ({ row: n }) => {
157
+ if (!n.original.method)
158
+ return "";
159
+ const e = n.original.method.variant;
160
+ return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
161
+ }
162
+ },
163
+ {
164
+ header: () => "Status",
165
+ accessorKey: "status",
166
+ cell: ({ cell: n, row: e }) => N(le, { row: e, data: n.getValue() })
167
+ },
168
+ {
169
+ header: () => "Transaction At",
170
+ accessorKey: "transactionAt",
171
+ meta: {
172
+ width: "180px"
173
+ }
174
+ },
175
+ {
176
+ header: () => "Sales Amount",
177
+ accessorKey: "amount"
178
+ },
179
+ {
180
+ header: () => "Fee",
181
+ accessorKey: "fee"
182
+ },
183
+ {
184
+ header: () => "Settlement Amount",
185
+ accessorKey: "payout"
186
+ },
187
+ {
188
+ header: () => "Actions",
189
+ accessorKey: "action",
190
+ cell: ({ cell: n, row: e }) => N(de, {
191
+ row: e,
192
+ data: n.getValue(),
193
+ onDelete: () => oe(
194
+ T,
195
+ "Remove transaction",
196
+ "Are you sure to remove transaction from settlement? This action cannot be revert !",
197
+ b(async () => {
198
+ try {
199
+ await P.removeTransactionFromSettlement(e.original.id), await V();
200
+ } catch (v) {
201
+ L.open({
202
+ type: "error",
203
+ title: "Error occurs when removing transaction",
204
+ message: ne(v)
205
+ });
206
+ }
207
+ })
208
+ )
209
+ })
210
+ }
211
+ ], w = F("");
212
+ let C;
213
+ return H(w, async () => {
214
+ C && clearTimeout(C), C = setTimeout(() => {
215
+ var n = new RegExp(w.value, "i");
216
+ I.value = h.value.filter((e) => {
217
+ const v = JSON.stringify(e);
218
+ return n.test(v);
219
+ });
220
+ }, 700);
221
+ }), (n, e) => {
222
+ var K, $;
223
+ const v = d("FmCardHeader"), _ = d("FmCardSection"), E = d("FmCard"), U = d("FmSearch"), z = d("FmTable");
224
+ return A(), S(ee, {
225
+ title: `Settlement Transactions (${(K = s.value) == null ? void 0 : K._id})`,
226
+ description: `Date: ${m(re)(($ = s.value) == null ? void 0 : $.createdAt).format("YYYY-MM-DD")}`,
227
+ loading: m(c),
228
+ onBack: m(O).back
229
+ }, {
230
+ default: r(() => [
231
+ t("div", ce, [
232
+ o(E, {
233
+ horizontal: "",
234
+ class: "flex-1 p-6",
235
+ variant: "elevated"
236
+ }, {
237
+ default: r(() => [
238
+ o(_, { class: "flex flex-col gap-16 justify-between" }, {
239
+ default: r(() => [
240
+ o(v, {
241
+ class: "p-0",
242
+ title: "Transaction Info",
243
+ subtitle: ""
244
+ }),
245
+ o(_, { class: "p-0" }, {
246
+ default: r(() => {
247
+ var l, f, g, M;
248
+ return [
249
+ e[2] || (e[2] = t("b", null, "For", -1)),
250
+ u(": " + i((f = (l = s.value) == null ? void 0 : l.store) == null ? void 0 : f.event) + " ", 1),
251
+ e[3] || (e[3] = t("br", null, null, -1)),
252
+ e[4] || (e[4] = t("b", null, "Reference", -1)),
253
+ u(": " + i((M = (g = s.value) == null ? void 0 : g.store) == null ? void 0 : M.id), 1),
254
+ e[5] || (e[5] = t("br", null, null, -1)),
255
+ e[6] || (e[6] = t("b", null, "Transaction", -1)),
256
+ u(": " + i(h.value.length), 1)
257
+ ];
258
+ }),
259
+ _: 1
260
+ })
261
+ ]),
262
+ _: 1
263
+ })
264
+ ]),
265
+ _: 1
266
+ }),
267
+ o(E, {
268
+ horizontal: "",
269
+ class: "flex-1 p-6 mx-6",
270
+ variant: "elevated"
271
+ }, {
272
+ default: r(() => [
273
+ o(_, { class: "flex flex-col gap-16 justify-between" }, {
274
+ default: r(() => [
275
+ o(v, {
276
+ class: "p-0",
277
+ title: "Bank Info",
278
+ subtitle: ""
279
+ }),
280
+ o(_, { class: "p-0" }, {
281
+ default: r(() => {
282
+ var l, f, g;
283
+ return [
284
+ e[7] || (e[7] = t("b", null, "Bank", -1)),
285
+ u(": " + i((l = s.value) == null ? void 0 : l.beneficiaryBank.name), 1),
286
+ e[8] || (e[8] = t("br", null, null, -1)),
287
+ e[9] || (e[9] = t("b", null, "Name", -1)),
288
+ u(": " + i((f = s.value) == null ? void 0 : f.beneficiaryBank.holderName), 1),
289
+ e[10] || (e[10] = t("br", null, null, -1)),
290
+ e[11] || (e[11] = t("b", null, "Number", -1)),
291
+ u(": " + i((g = s.value) == null ? void 0 : g.beneficiaryBank.accountNumber), 1)
292
+ ];
293
+ }),
294
+ _: 1
295
+ })
296
+ ]),
297
+ _: 1
298
+ })
299
+ ]),
300
+ _: 1
301
+ }),
302
+ o(E, {
303
+ horizontal: "",
304
+ class: "flex-1 p-6",
305
+ variant: "elevated"
306
+ }, {
307
+ default: r(() => [
308
+ o(_, { class: "flex flex-col gap-16 justify-between" }, {
309
+ default: r(() => [
310
+ o(v, {
311
+ class: "p-0",
312
+ title: "Payout Info",
313
+ subtitle: ""
314
+ }),
315
+ o(_, { class: "p-0" }, {
316
+ default: r(() => {
317
+ var l, f, g;
318
+ return [
319
+ e[12] || (e[12] = t("b", null, "Amount", -1)),
320
+ u(": " + i(m(B)((l = s.value) == null ? void 0 : l.totalAmount).toFormat("$0.00")), 1),
321
+ e[13] || (e[13] = t("br", null, null, -1)),
322
+ e[14] || (e[14] = t("b", null, "Fee", -1)),
323
+ u(": " + i(m(B)((f = s.value) == null ? void 0 : f.totalFee).toFormat("$0.00")), 1),
324
+ e[15] || (e[15] = t("br", null, null, -1)),
325
+ e[16] || (e[16] = t("b", null, "Payout", -1)),
326
+ u(": " + i(m(B)((g = s.value) == null ? void 0 : g.totalPayout).toFormat("$0.00")), 1)
327
+ ];
328
+ }),
329
+ _: 1
330
+ })
331
+ ]),
332
+ _: 1
333
+ })
334
+ ]),
335
+ _: 1
336
+ })
337
+ ]),
338
+ t("div", pe, [
339
+ o(U, {
340
+ modelValue: w.value,
341
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => w.value = l),
342
+ placeholder: "Search Transactions ..."
343
+ }, null, 8, ["modelValue"])
344
+ ]),
345
+ o(z, {
346
+ modelValue: D.value,
347
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => D.value = l),
348
+ "shrink-at": !1,
349
+ "search-value": w.value,
350
+ "row-data": I.value,
351
+ "column-defs": Y,
352
+ loading: m(c)
353
+ }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
354
+ ]),
355
+ _: 1
356
+ }, 8, ["title", "description", "loading", "onBack"]);
357
+ };
358
+ }
359
+ });
360
+ export {
361
+ Se as default
362
+ };