@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +46 -40
  20. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-C-X11abA.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
@@ -1,32 +1,33 @@
1
- import { defineComponent as w, resolveComponent as d, openBlock as A, createBlock as S, normalizeClass as G, withCtx as s, createElementVNode as t, toDisplayString as m, unref as g, ref as F, onMounted as j, watch as Y, createVNode as o, createTextVNode as c, h as I } from "vue";
2
- import { e as B, u as H } from "./index-DCPNrUDq.js";
1
+ import { defineComponent as w, resolveComponent as m, openBlock as A, createBlock as S, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, unref as g, ref as x, onMounted as j, watch as Y, createVNode as n, createTextVNode as i, h as I } from "vue";
2
+ import { e as B, u as H } from "./index-DflgpHga.js";
3
3
  import { useDialog as q, useSnackbar as J } from "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as Q, a as W } from "./assets-DnuLfRTO.js";
6
- import { t as $, a as X } from "./transaction-vRrBf3FN.js";
5
+ import { g as Q, a as W } from "./assets-nIQ0r4oP.js";
6
+ import { t as $, a as X } from "./transaction-B4rEbejx.js";
7
7
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as ee } from "vue-router";
9
- import { s as te } from "./index-Coz5aeIO.js";
9
+ import { s as te } from "./index-DhPhiNvt.js";
10
10
  import { u as ae } from "./error-K1CakhA9.js";
11
- const ne = /* @__PURE__ */ w({
11
+ import { w as ne } from "./Modal-DB8M9o1T.js";
12
+ const re = /* @__PURE__ */ w({
12
13
  __name: "Status",
13
14
  props: {
14
15
  row: {},
15
16
  data: {}
16
17
  },
17
- setup(p) {
18
- const n = p;
19
- function u() {
20
- return n.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : n.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
18
+ setup(v) {
19
+ const r = v;
20
+ function d() {
21
+ return r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : r.data === B.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
21
22
  }
22
- return (l, b) => {
23
- const v = d("FmBadge");
24
- return A(), S(v, {
23
+ return (c, b) => {
24
+ const T = m("FmBadge");
25
+ return A(), S(T, {
25
26
  inline: "",
26
- class: G(u())
27
+ class: G(d())
27
28
  }, {
28
- default: s(() => [
29
- t("div", null, m(l.data), 1)
29
+ default: l(() => [
30
+ t("div", null, u(c.data), 1)
30
31
  ]),
31
32
  _: 1
32
33
  }, 8, ["class"]);
@@ -38,57 +39,49 @@ const ne = /* @__PURE__ */ w({
38
39
  row: {},
39
40
  data: {}
40
41
  },
41
- setup(p) {
42
- return (n, u) => {
43
- const l = d("FmThumbnail");
44
- return A(), S(l, {
45
- src: g(Q)(n.row.original.gateway),
42
+ setup(v) {
43
+ return (r, d) => {
44
+ const c = m("FmThumbnail");
45
+ return A(), S(c, {
46
+ src: g(Q)(r.row.original.gateway),
46
47
  class: "mr-2 border-transparent w-[32px] h-[32px]"
47
48
  }, null, 8, ["src"]);
48
49
  };
49
50
  }
50
- }), re = /* @__PURE__ */ w({
51
+ }), le = /* @__PURE__ */ w({
51
52
  __name: "Method",
52
53
  props: {
53
54
  row: {},
54
55
  data: {}
55
56
  },
56
- setup(p) {
57
- return (n, u) => {
58
- const l = d("FmThumbnail");
59
- return A(), S(l, {
60
- src: g(W)(n.row.original.method.issuer),
57
+ setup(v) {
58
+ return (r, d) => {
59
+ const c = m("FmThumbnail");
60
+ return A(), S(c, {
61
+ src: g(W)(r.row.original.method.issuer),
61
62
  class: "mr-2 border-transparent w-[32px] h-[32px]"
62
63
  }, null, 8, ["src"]);
63
64
  };
64
65
  }
65
- }), le = /* @__PURE__ */ w({
66
+ }), se = /* @__PURE__ */ w({
66
67
  __name: "Actions",
67
68
  props: {
68
69
  row: {},
69
70
  data: {}
70
71
  },
71
72
  emits: ["delete"],
72
- setup(p, { emit: n }) {
73
- const u = n;
74
- return (l, b) => {
75
- const v = d("FmButton");
76
- return A(), S(v, {
73
+ setup(v, { emit: r }) {
74
+ const d = r;
75
+ return (c, b) => {
76
+ const T = m("FmButton");
77
+ return A(), S(T, {
77
78
  variant: "plain",
78
79
  "prepend-icon": "delete",
79
- onClick: b[0] || (b[0] = () => u("delete"))
80
+ onClick: b[0] || (b[0] = () => d("delete"))
80
81
  });
81
82
  };
82
83
  }
83
- }), se = (p, n, u, l, b) => {
84
- const v = p.open({
85
- title: n,
86
- message: u,
87
- primaryActions: { text: "Confirm", close: !0 },
88
- secondaryActions: { text: "Cancel", close: !0 }
89
- });
90
- l && v.onPrimary(l);
91
- }, ue = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, Te = /* @__PURE__ */ w({
84
+ }), ue = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, Fe = /* @__PURE__ */ w({
92
85
  __name: "SettlementTransactions",
93
86
  props: {
94
87
  settlementId: {
@@ -96,12 +89,12 @@ const ne = /* @__PURE__ */ w({
96
89
  required: !0
97
90
  }
98
91
  },
99
- setup(p) {
100
- const n = p, { isLoading: u, startAsyncCall: l, startAsyncCallFn: b } = H(!0), v = q(), L = J(), M = ee(), i = F(), N = F([]), h = F([]);
92
+ setup(v) {
93
+ const r = v, { isLoading: d, startAsyncCall: c, startAsyncCallFn: b } = H(!0), T = q(), L = J(), M = ee(), s = x(), N = x([]), h = x([]);
101
94
  async function V(a = !1) {
102
- l(async () => {
103
- a || (i.value = await te.readById(n.settlementId));
104
- const e = await $.readBySettlementId(n.settlementId);
95
+ c(async () => {
96
+ a || (s.value = await te.readById(r.settlementId));
97
+ const e = await $.readBySettlementId(r.settlementId);
105
98
  N.value = X(e), h.value = N.value;
106
99
  });
107
100
  }
@@ -109,7 +102,7 @@ const ne = /* @__PURE__ */ w({
109
102
  V();
110
103
  }
111
104
  j(O);
112
- const K = F(""), R = [
105
+ const K = x(""), R = [
113
106
  {
114
107
  header: () => "Transaction ID",
115
108
  accessorKey: "id"
@@ -132,7 +125,7 @@ const ne = /* @__PURE__ */ w({
132
125
  meta: {
133
126
  textAlign: "center"
134
127
  },
135
- cell: ({ cell: a, row: e }) => e.original.method ? I(re, { row: e, data: a.getValue() }) : ""
128
+ cell: ({ cell: a, row: e }) => e.original.method ? I(le, { row: e, data: a.getValue() }) : ""
136
129
  },
137
130
  {
138
131
  header: () => "Type",
@@ -150,7 +143,7 @@ const ne = /* @__PURE__ */ w({
150
143
  {
151
144
  header: () => "Status",
152
145
  accessorKey: "status",
153
- cell: ({ cell: a, row: e }) => I(ne, { row: e, data: a.getValue() })
146
+ cell: ({ cell: a, row: e }) => I(re, { row: e, data: a.getValue() })
154
147
  },
155
148
  {
156
149
  header: () => "Transaction At",
@@ -174,72 +167,72 @@ const ne = /* @__PURE__ */ w({
174
167
  {
175
168
  header: () => "Actions",
176
169
  accessorKey: "action",
177
- cell: ({ cell: a, row: e }) => I(le, {
170
+ cell: ({ cell: a, row: e }) => I(se, {
178
171
  row: e,
179
172
  data: a.getValue(),
180
- onDelete: () => se(
181
- v,
173
+ onDelete: () => ne(
174
+ T,
182
175
  "Remove transaction",
183
176
  "Are you sure to remove transaction from settlement? This action cannot be revert !",
184
177
  b(async () => {
185
178
  try {
186
179
  await $.removeTransactionFromSettlement(e.original.id), await V();
187
- } catch (_) {
180
+ } catch (y) {
188
181
  L.open({
189
182
  type: "error",
190
183
  title: "Error occurs when removing transaction",
191
- message: ae(_)
184
+ message: ae(y)
192
185
  });
193
186
  }
194
187
  })
195
188
  )
196
189
  })
197
190
  }
198
- ], x = F("");
191
+ ], F = x("");
199
192
  let C;
200
- return Y(x, async () => {
193
+ return Y(F, async () => {
201
194
  C && clearTimeout(C), C = setTimeout(() => {
202
- var a = new RegExp(x.value, "i");
195
+ var a = new RegExp(F.value, "i");
203
196
  h.value = N.value.filter((e) => {
204
- const _ = JSON.stringify(e);
205
- return a.test(_);
197
+ const y = JSON.stringify(e);
198
+ return a.test(y);
206
199
  });
207
200
  }, 700);
208
201
  }), (a, e) => {
209
- var P;
210
- const _ = d("FmCardHeader"), T = d("FmCardSection"), E = d("FmCard"), U = d("FmSearch"), z = d("FmTable");
202
+ var D;
203
+ const y = m("FmCardHeader"), _ = m("FmCardSection"), E = m("FmCard"), U = m("FmSearch"), z = m("FmTable");
211
204
  return A(), S(Z, {
212
- title: `Settlement Transactions (${(P = i.value) == null ? void 0 : P._id})`,
213
- loading: g(u),
205
+ title: `Settlement Transactions (${(D = s.value) == null ? void 0 : D._id})`,
206
+ loading: g(d),
214
207
  onBack: g(M).back
215
208
  }, {
216
- default: s(() => [
209
+ default: l(() => [
217
210
  t("div", ue, [
218
- o(E, {
211
+ n(E, {
219
212
  horizontal: "",
220
213
  class: "flex-1 p-6",
221
214
  variant: "elevated"
222
215
  }, {
223
- default: s(() => [
224
- o(T, { class: "flex flex-col gap-16 justify-between" }, {
225
- default: s(() => [
226
- o(_, {
216
+ default: l(() => [
217
+ n(_, { class: "flex flex-col gap-16 justify-between" }, {
218
+ default: l(() => [
219
+ n(y, {
227
220
  class: "p-0",
228
221
  title: "Transaction Info",
229
222
  subtitle: ""
230
223
  }),
231
- o(T, { class: "p-0" }, {
232
- default: s(() => {
233
- var r, f, y, D;
224
+ n(_, { class: "p-0" }, {
225
+ default: l(() => {
226
+ var o, p, f, P;
234
227
  return [
235
228
  e[2] || (e[2] = t("b", null, "For", -1)),
236
- c(": " + m((f = (r = i.value) == null ? void 0 : r.store) == null ? void 0 : f.event) + " ", 1),
229
+ i(": " + u((p = (o = s.value) == null ? void 0 : o.store) == null ? void 0 : p.event) + " ", 1),
237
230
  e[3] || (e[3] = t("br", null, null, -1)),
238
231
  e[4] || (e[4] = t("b", null, "Reference", -1)),
239
- c(": " + m((D = (y = i.value) == null ? void 0 : y.store) == null ? void 0 : D.id), 1),
232
+ i(": " + u((P = (f = s.value) == null ? void 0 : f.store) == null ? void 0 : P.id), 1),
240
233
  e[5] || (e[5] = t("br", null, null, -1)),
241
234
  e[6] || (e[6] = t("b", null, "Transaction", -1)),
242
- c(": " + m(N.value.length), 1)
235
+ i(": " + u(N.value.length), 1)
243
236
  ];
244
237
  }),
245
238
  _: 1
@@ -250,31 +243,31 @@ const ne = /* @__PURE__ */ w({
250
243
  ]),
251
244
  _: 1
252
245
  }),
253
- o(E, {
246
+ n(E, {
254
247
  horizontal: "",
255
248
  class: "flex-1 p-6 mx-6",
256
249
  variant: "elevated"
257
250
  }, {
258
- default: s(() => [
259
- o(T, { class: "flex flex-col gap-16 justify-between" }, {
260
- default: s(() => [
261
- o(_, {
251
+ default: l(() => [
252
+ n(_, { class: "flex flex-col gap-16 justify-between" }, {
253
+ default: l(() => [
254
+ n(y, {
262
255
  class: "p-0",
263
256
  title: "Bank Info",
264
257
  subtitle: ""
265
258
  }),
266
- o(T, { class: "p-0" }, {
267
- default: s(() => {
268
- var r, f, y;
259
+ n(_, { class: "p-0" }, {
260
+ default: l(() => {
261
+ var o, p, f;
269
262
  return [
270
263
  e[7] || (e[7] = t("b", null, "Bank", -1)),
271
- c(": " + m((r = i.value) == null ? void 0 : r.beneficiaryBank.name), 1),
264
+ i(": " + u((o = s.value) == null ? void 0 : o.beneficiaryBank.name), 1),
272
265
  e[8] || (e[8] = t("br", null, null, -1)),
273
266
  e[9] || (e[9] = t("b", null, "Name", -1)),
274
- c(": " + m((f = i.value) == null ? void 0 : f.beneficiaryBank.holderName), 1),
267
+ i(": " + u((p = s.value) == null ? void 0 : p.beneficiaryBank.holderName), 1),
275
268
  e[10] || (e[10] = t("br", null, null, -1)),
276
269
  e[11] || (e[11] = t("b", null, "Number", -1)),
277
- c(": " + m((y = i.value) == null ? void 0 : y.beneficiaryBank.accountNumber), 1)
270
+ i(": " + u((f = s.value) == null ? void 0 : f.beneficiaryBank.accountNumber), 1)
278
271
  ];
279
272
  }),
280
273
  _: 1
@@ -285,31 +278,31 @@ const ne = /* @__PURE__ */ w({
285
278
  ]),
286
279
  _: 1
287
280
  }),
288
- o(E, {
281
+ n(E, {
289
282
  horizontal: "",
290
283
  class: "flex-1 p-6",
291
284
  variant: "elevated"
292
285
  }, {
293
- default: s(() => [
294
- o(T, { class: "flex flex-col gap-16 justify-between" }, {
295
- default: s(() => [
296
- o(_, {
286
+ default: l(() => [
287
+ n(_, { class: "flex flex-col gap-16 justify-between" }, {
288
+ default: l(() => [
289
+ n(y, {
297
290
  class: "p-0",
298
291
  title: "Payout Info",
299
292
  subtitle: ""
300
293
  }),
301
- o(T, { class: "p-0" }, {
302
- default: s(() => {
303
- var r, f, y;
294
+ n(_, { class: "p-0" }, {
295
+ default: l(() => {
296
+ var o, p, f;
304
297
  return [
305
298
  e[12] || (e[12] = t("b", null, "Amount", -1)),
306
- c(": " + m(g(k)((r = i.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
299
+ i(": " + u(g(k)((o = s.value) == null ? void 0 : o.totalAmount).toFormat("$0.00")), 1),
307
300
  e[13] || (e[13] = t("br", null, null, -1)),
308
301
  e[14] || (e[14] = t("b", null, "Fee", -1)),
309
- c(": " + m(g(k)((f = i.value) == null ? void 0 : f.totalFee).toFormat("$0.00")), 1),
302
+ i(": " + u(g(k)((p = s.value) == null ? void 0 : p.totalFee).toFormat("$0.00")), 1),
310
303
  e[15] || (e[15] = t("br", null, null, -1)),
311
304
  e[16] || (e[16] = t("b", null, "Payout", -1)),
312
- c(": " + m(g(k)((y = i.value) == null ? void 0 : y.totalPayout).toFormat("$0.00")), 1)
305
+ i(": " + u(g(k)((f = s.value) == null ? void 0 : f.totalPayout).toFormat("$0.00")), 1)
313
306
  ];
314
307
  }),
315
308
  _: 1
@@ -322,19 +315,19 @@ const ne = /* @__PURE__ */ w({
322
315
  })
323
316
  ]),
324
317
  t("div", ie, [
325
- o(U, {
326
- modelValue: x.value,
327
- "onUpdate:modelValue": e[0] || (e[0] = (r) => x.value = r),
318
+ n(U, {
319
+ modelValue: F.value,
320
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => F.value = o),
328
321
  placeholder: "Search Transactions ..."
329
322
  }, null, 8, ["modelValue"])
330
323
  ]),
331
- o(z, {
324
+ n(z, {
332
325
  modelValue: K.value,
333
- "onUpdate:modelValue": e[1] || (e[1] = (r) => K.value = r),
334
- "search-value": x.value,
326
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => K.value = o),
327
+ "search-value": F.value,
335
328
  "row-data": h.value,
336
329
  "column-defs": R,
337
- loading: g(u)
330
+ loading: g(d)
338
331
  }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
339
332
  ]),
340
333
  _: 1
@@ -343,5 +336,5 @@ const ne = /* @__PURE__ */ w({
343
336
  }
344
337
  });
345
338
  export {
346
- Te as default
339
+ Fe as default
347
340
  };