@feedmepos/mf-payment 0.0.0-beta.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/PayoutAccount-DZaKHWcy.js +612 -0
  6. package/dist/{PayoutAccount-CpatyqJa.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
  7. package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
  8. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  9. package/dist/Settlement-Bx3zAkIw.js +195 -0
  10. package/dist/Settlement-mwnO-iYH.js +150 -0
  11. package/dist/{SettlementTransactions-DT1A_tI5.js → SettlementTransactions-AaYyTH96.js} +99 -105
  12. package/dist/{SettlementTransactions-CkU0gCHb.js → SettlementTransactions-D_SVuKyR.js} +117 -130
  13. package/dist/Terminal-68OQnhM3.js +372 -0
  14. package/dist/TerminalSetting-DEFim0xg.js +379 -0
  15. package/dist/TerminalTransaction-CQjNdffr.js +426 -0
  16. package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
  17. package/dist/Transaction-68L7JzIk.js +242 -0
  18. package/dist/Transaction-a1VfiCP_.js +405 -0
  19. package/dist/api/index.d.ts +14 -0
  20. package/dist/api/pagination.d.ts +20 -0
  21. package/dist/api/payment-gateway/index.d.ts +9 -0
  22. package/dist/api/settlement/index.d.ts +12 -13
  23. package/dist/api/terminal/index.d.ts +13 -1
  24. package/dist/api/terminal-transaction/index.d.ts +12 -1
  25. package/dist/api/transaction/index.d.ts +7 -2
  26. package/dist/app-C9FRsUfb.js +6343 -0
  27. package/dist/app.js +3 -198
  28. package/dist/assets-Bji7O2YD.js +45 -0
  29. package/dist/clipboard-4jh1WteU.js +10 -0
  30. package/dist/components/AsyncButton.vue.d.ts +21 -0
  31. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  32. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  33. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  34. package/dist/components/RouteCell.vue.d.ts +8 -0
  35. package/dist/helpers/assets.d.ts +2 -0
  36. package/dist/index-Bt_OgDYn.js +56107 -0
  37. package/dist/index-CLYePgWW.js +47 -0
  38. package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
  39. package/dist/index-DSuZG0l6.js +52 -0
  40. package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
  41. package/dist/index-_0TroOJr.js +127 -0
  42. package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
  43. package/dist/model/transaction.d.ts +2 -1
  44. package/dist/package.json +4 -4
  45. package/dist/payout-account-BWcq7OJy.js +1805 -0
  46. package/dist/stores/payoutAccount.d.ts +4 -4
  47. package/dist/transaction-DqrhM5jB.js +87 -0
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/validator-D5jtpt9A.js +2877 -0
  50. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  55. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  56. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  57. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  58. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  59. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  60. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  61. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  62. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  63. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  64. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  65. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  66. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  67. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  68. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  69. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  70. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  71. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  72. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  73. package/package.json +4 -4
  74. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  75. package/dist/PayoutAccount-C0xyoyTa.js +0 -3485
  76. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  77. package/dist/Settlement-BVGACeme.js +0 -136
  78. package/dist/Settlement-Ce48KHrc.js +0 -132
  79. package/dist/Terminal-ByKV2Rof.js +0 -204
  80. package/dist/TerminalTransaction-ClhuAOOF.js +0 -240
  81. package/dist/Transaction-BYq9Ymp_.js +0 -242
  82. package/dist/Transaction-Doq11qIf.js +0 -241
  83. package/dist/api/auth/index.d.ts +0 -7
  84. package/dist/assets-Dg26uQOf.js +0 -1756
  85. package/dist/index-Coz5aeIO.js +0 -61
  86. package/dist/index-DCPNrUDq.js +0 -40075
  87. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  88. package/dist/mascot-side-D5UubCy7.js +0 -8
  89. package/dist/payout-account-D2Ftjrss.js +0 -3317
  90. package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,68 +1,62 @@
1
- import { defineComponent as F, resolveComponent as p, openBlock as S, createBlock as w, normalizeClass as U, withCtx as r, createElementVNode as t, toDisplayString as u, unref as c, ref as _, onMounted as z, watch as L, createVNode as a, createTextVNode as i, h as C } from "vue";
2
- import { e as E, u as G } from "./index-DCPNrUDq.js";
1
+ import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
+ import { e as E, u as j } from "./index-Bt_OgDYn.js";
3
3
  import "@feedmepos/ui-library";
4
- import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as j, a as Y } from "./assets-Dg26uQOf.js";
6
- import { t as H, a as q } from "./transaction-vRrBf3FN.js";
7
- import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
- import { useRouter as Q } from "vue-router";
9
- import { s as W } from "./index-Coz5aeIO.js";
10
- import { useCoreStore as X } from "@feedmepos/mf-common";
11
- const Z = /* @__PURE__ */ F({
4
+ import { d as h } from "./dinero-CIVmXLL-.js";
5
+ import { g as Y, a as H } from "./assets-Bji7O2YD.js";
6
+ import { t as q, a as J } from "./transaction-DqrhM5jB.js";
7
+ import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
+ import { useRouter as W } from "vue-router";
9
+ import { s as X } from "./index-_0TroOJr.js";
10
+ import { useCoreStore as Z } from "@feedmepos/mf-common";
11
+ const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
13
13
  props: {
14
14
  row: {},
15
15
  data: {}
16
16
  },
17
- setup(g) {
18
- const o = g;
19
- function y() {
17
+ setup(y) {
18
+ const o = y;
19
+ function p() {
20
20
  return o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : o.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
- return (f, V) => {
23
- const N = p("FmBadge");
24
- return S(), w(N, {
22
+ return (S, B) => {
23
+ const w = g("FmBadge");
24
+ return F(), P(w, {
25
25
  inline: "",
26
- class: U(y())
26
+ class: z(p())
27
27
  }, {
28
- default: r(() => [
29
- t("div", null, u(f.data), 1)
28
+ default: l(() => [
29
+ t("div", null, u(S.data), 1)
30
30
  ]),
31
31
  _: 1
32
32
  }, 8, ["class"]);
33
33
  };
34
34
  }
35
- }), ee = /* @__PURE__ */ F({
35
+ }), te = ["src"], ae = /* @__PURE__ */ T({
36
36
  __name: "Gateway",
37
37
  props: {
38
38
  row: {},
39
39
  data: {}
40
40
  },
41
- setup(g) {
42
- return (o, y) => {
43
- const f = p("FmThumbnail");
44
- return S(), w(f, {
45
- src: c(j)(o.row.original.gateway),
46
- class: "mr-2 border-transparent w-[32px] h-[32px]"
47
- }, null, 8, ["src"]);
48
- };
41
+ setup(y) {
42
+ return (o, p) => (F(), L("img", {
43
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
44
+ src: c(Y)(o.row.original.gateway)
45
+ }, null, 8, te));
49
46
  }
50
- }), te = /* @__PURE__ */ F({
47
+ }), ne = ["src"], re = /* @__PURE__ */ T({
51
48
  __name: "Method",
52
49
  props: {
53
50
  row: {},
54
51
  data: {}
55
52
  },
56
- setup(g) {
57
- return (o, y) => {
58
- const f = p("FmThumbnail");
59
- return S(), w(f, {
60
- src: c(Y)(o.row.original.method.issuer),
61
- class: "mr-2 border-transparent w-[32px] h-[32px]"
62
- }, null, 8, ["src"]);
63
- };
53
+ setup(y) {
54
+ return (o, p) => (F(), L("img", {
55
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
56
+ src: c(H)(o.row.original.method.issuer)
57
+ }, null, 8, ne));
64
58
  }
65
- }), ae = { class: "flex mb-6" }, ne = { class: "my-6 w-[240px]" }, fe = /* @__PURE__ */ F({
59
+ }), le = { class: "flex mb-6" }, oe = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
66
60
  __name: "SettlementTransactions",
67
61
  props: {
68
62
  settlementId: {
@@ -70,20 +64,20 @@ const Z = /* @__PURE__ */ F({
70
64
  required: !0
71
65
  }
72
66
  },
73
- setup(g) {
74
- const o = g, { isLoading: y, startAsyncCall: f } = G(!0), { currentRestaurant: V } = X(), N = Q(), s = _(), x = _([]), A = _([]);
67
+ setup(y) {
68
+ const o = y, { isLoading: p, startAsyncCall: S } = j(!0), { currentRestaurant: B } = Z(), w = W(), s = _(), x = _([]), N = _([]);
75
69
  async function O(n = !1) {
76
- f(async () => {
77
- n || (s.value = await W.readRestaurantSettlementById(o.settlementId));
78
- const e = await H.readRestaurantTransactionsBySettlementId(o.settlementId);
79
- x.value = q(e), A.value = x.value;
70
+ S(async () => {
71
+ n || (s.value = await X.readRestaurantSettlementById(o.settlementId));
72
+ const e = await q.readRestaurantTransactionsBySettlementId(o.settlementId);
73
+ x.value = J(e), N.value = x.value;
80
74
  });
81
75
  }
82
76
  function k() {
83
77
  O();
84
78
  }
85
- z(k), L(V, k);
86
- const K = _(""), $ = [
79
+ G(k), $(B, k);
80
+ const V = _(""), D = [
87
81
  {
88
82
  header: () => "Transaction ID",
89
83
  accessorKey: "id"
@@ -98,7 +92,7 @@ const Z = /* @__PURE__ */ F({
98
92
  meta: {
99
93
  textAlign: "center"
100
94
  },
101
- cell: ({ cell: n, row: e }) => e.original.method ? C(ee, { row: e, data: n.getValue() }) : ""
95
+ cell: ({ cell: n, row: e }) => e.original.method ? C(ae, { row: e, data: n.getValue() }) : ""
102
96
  },
103
97
  {
104
98
  header: () => "Method",
@@ -106,7 +100,7 @@ const Z = /* @__PURE__ */ F({
106
100
  meta: {
107
101
  textAlign: "center"
108
102
  },
109
- cell: ({ cell: n, row: e }) => e.original.method ? C(te, { row: e, data: n.getValue() }) : ""
103
+ cell: ({ cell: n, row: e }) => e.original.method ? C(re, { row: e, data: n.getValue() }) : ""
110
104
  },
111
105
  {
112
106
  header: () => "Type",
@@ -124,7 +118,7 @@ const Z = /* @__PURE__ */ F({
124
118
  {
125
119
  header: () => "Status",
126
120
  accessorKey: "status",
127
- cell: ({ cell: n, row: e }) => C(Z, { row: e, data: n.getValue() })
121
+ cell: ({ cell: n, row: e }) => C(ee, { row: e, data: n.getValue() })
128
122
  },
129
123
  {
130
124
  header: () => "Transaction At",
@@ -146,47 +140,47 @@ const Z = /* @__PURE__ */ F({
146
140
  accessorKey: "payout"
147
141
  }
148
142
  ], v = _("");
149
- let I;
150
- return L(v, async () => {
151
- I && clearTimeout(I), I = setTimeout(() => {
143
+ let A;
144
+ return $(v, async () => {
145
+ A && clearTimeout(A), A = setTimeout(() => {
152
146
  var n = new RegExp(v.value, "i");
153
- A.value = x.value.filter((e) => {
154
- const T = JSON.stringify(e);
155
- return n.test(T);
147
+ N.value = x.value.filter((e) => {
148
+ const b = JSON.stringify(e);
149
+ return n.test(b);
156
150
  });
157
151
  }, 700);
158
152
  }), (n, e) => {
159
- var R;
160
- const T = p("FmCardHeader"), b = p("FmCardSection"), h = p("FmCard"), D = p("FmSearch"), M = p("FmTable");
161
- return S(), w(J, {
162
- title: `Settlement Transactions (${(R = s.value) == null ? void 0 : R._id})`,
163
- loading: c(y),
164
- onBack: c(N).back
153
+ var K;
154
+ const b = g("FmCardHeader"), f = g("FmCardSection"), I = g("FmCard"), M = g("FmSearch"), U = g("FmTable");
155
+ return F(), P(Q, {
156
+ title: `Settlement Transactions (${(K = s.value) == null ? void 0 : K._id})`,
157
+ loading: c(p),
158
+ onBack: c(w).back
165
159
  }, {
166
- default: r(() => [
167
- t("div", ae, [
168
- a(h, {
160
+ default: l(() => [
161
+ t("div", le, [
162
+ a(I, {
169
163
  horizontal: "",
170
164
  class: "flex-1 p-6",
171
165
  variant: "elevated"
172
166
  }, {
173
- default: r(() => [
174
- a(b, { class: "flex flex-col gap-16 justify-between" }, {
175
- default: r(() => [
176
- a(T, {
167
+ default: l(() => [
168
+ a(f, { class: "flex flex-col gap-16 justify-between" }, {
169
+ default: l(() => [
170
+ a(b, {
177
171
  class: "p-0",
178
172
  title: "Transaction Info",
179
173
  subtitle: ""
180
174
  }),
181
- a(b, { class: "p-0" }, {
182
- default: r(() => {
183
- var l, m, d, P;
175
+ a(f, { class: "p-0" }, {
176
+ default: l(() => {
177
+ var r, d, m, R;
184
178
  return [
185
179
  e[2] || (e[2] = t("b", null, "For", -1)),
186
- i(": " + u((m = (l = s.value) == null ? void 0 : l.store) == null ? void 0 : m.event) + " ", 1),
180
+ i(": " + u((d = (r = s.value) == null ? void 0 : r.store) == null ? void 0 : d.event) + " ", 1),
187
181
  e[3] || (e[3] = t("br", null, null, -1)),
188
182
  e[4] || (e[4] = t("b", null, "Reference", -1)),
189
- i(": " + u((P = (d = s.value) == null ? void 0 : d.store) == null ? void 0 : P.id), 1),
183
+ i(": " + u((R = (m = s.value) == null ? void 0 : m.store) == null ? void 0 : R.id), 1),
190
184
  e[5] || (e[5] = t("br", null, null, -1)),
191
185
  e[6] || (e[6] = t("b", null, "Transaction", -1)),
192
186
  i(": " + u(x.value.length), 1)
@@ -200,31 +194,31 @@ const Z = /* @__PURE__ */ F({
200
194
  ]),
201
195
  _: 1
202
196
  }),
203
- a(h, {
197
+ a(I, {
204
198
  horizontal: "",
205
199
  class: "flex-1 p-6 mx-6",
206
200
  variant: "elevated"
207
201
  }, {
208
- default: r(() => [
209
- a(b, { class: "flex flex-col gap-16 justify-between" }, {
210
- default: r(() => [
211
- a(T, {
202
+ default: l(() => [
203
+ a(f, { class: "flex flex-col gap-16 justify-between" }, {
204
+ default: l(() => [
205
+ a(b, {
212
206
  class: "p-0",
213
207
  title: "Bank Info",
214
208
  subtitle: ""
215
209
  }),
216
- a(b, { class: "p-0" }, {
217
- default: r(() => {
218
- var l, m, d;
210
+ a(f, { class: "p-0" }, {
211
+ default: l(() => {
212
+ var r, d, m;
219
213
  return [
220
214
  e[7] || (e[7] = t("b", null, "Bank", -1)),
221
- i(": " + u((l = s.value) == null ? void 0 : l.beneficiaryBank.name), 1),
215
+ i(": " + u((r = s.value) == null ? void 0 : r.beneficiaryBank.name), 1),
222
216
  e[8] || (e[8] = t("br", null, null, -1)),
223
217
  e[9] || (e[9] = t("b", null, "Name", -1)),
224
- i(": " + u((m = s.value) == null ? void 0 : m.beneficiaryBank.holderName), 1),
218
+ i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
225
219
  e[10] || (e[10] = t("br", null, null, -1)),
226
220
  e[11] || (e[11] = t("b", null, "Number", -1)),
227
- i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.accountNumber), 1)
221
+ i(": " + u((m = s.value) == null ? void 0 : m.beneficiaryBank.accountNumber), 1)
228
222
  ];
229
223
  }),
230
224
  _: 1
@@ -235,31 +229,31 @@ const Z = /* @__PURE__ */ F({
235
229
  ]),
236
230
  _: 1
237
231
  }),
238
- a(h, {
232
+ a(I, {
239
233
  horizontal: "",
240
234
  class: "flex-1 p-6",
241
235
  variant: "elevated"
242
236
  }, {
243
- default: r(() => [
244
- a(b, { class: "flex flex-col gap-16 justify-between" }, {
245
- default: r(() => [
246
- a(T, {
237
+ default: l(() => [
238
+ a(f, { class: "flex flex-col gap-16 justify-between" }, {
239
+ default: l(() => [
240
+ a(b, {
247
241
  class: "p-0",
248
242
  title: "Payout Info",
249
243
  subtitle: ""
250
244
  }),
251
- a(b, { class: "p-0" }, {
252
- default: r(() => {
253
- var l, m, d;
245
+ a(f, { class: "p-0" }, {
246
+ default: l(() => {
247
+ var r, d, m;
254
248
  return [
255
249
  e[12] || (e[12] = t("b", null, "Amount", -1)),
256
- i(": " + u(c(B)((l = s.value) == null ? void 0 : l.totalAmount).toFormat("$0.00")), 1),
250
+ i(": " + u(c(h)((r = s.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
257
251
  e[13] || (e[13] = t("br", null, null, -1)),
258
252
  e[14] || (e[14] = t("b", null, "Fee", -1)),
259
- i(": " + u(c(B)((m = s.value) == null ? void 0 : m.totalFee).toFormat("$0.00")), 1),
253
+ i(": " + u(c(h)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
260
254
  e[15] || (e[15] = t("br", null, null, -1)),
261
255
  e[16] || (e[16] = t("b", null, "Payout", -1)),
262
- i(": " + u(c(B)((d = s.value) == null ? void 0 : d.totalPayout).toFormat("$0.00")), 1)
256
+ i(": " + u(c(h)((m = s.value) == null ? void 0 : m.totalPayout).toFormat("$0.00")), 1)
263
257
  ];
264
258
  }),
265
259
  _: 1
@@ -271,20 +265,20 @@ const Z = /* @__PURE__ */ F({
271
265
  _: 1
272
266
  })
273
267
  ]),
274
- t("div", ne, [
275
- a(D, {
268
+ t("div", oe, [
269
+ a(M, {
276
270
  modelValue: v.value,
277
- "onUpdate:modelValue": e[0] || (e[0] = (l) => v.value = l),
271
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => v.value = r),
278
272
  placeholder: "Search Transactions ..."
279
273
  }, null, 8, ["modelValue"])
280
274
  ]),
281
- a(M, {
282
- modelValue: K.value,
283
- "onUpdate:modelValue": e[1] || (e[1] = (l) => K.value = l),
275
+ a(U, {
276
+ modelValue: V.value,
277
+ "onUpdate:modelValue": e[1] || (e[1] = (r) => V.value = r),
284
278
  "search-value": v.value,
285
- "row-data": A.value,
286
- "column-defs": $,
287
- loading: c(y)
279
+ "row-data": N.value,
280
+ "column-defs": D,
281
+ loading: c(p)
288
282
  }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
289
283
  ]),
290
284
  _: 1
@@ -293,5 +287,5 @@ const Z = /* @__PURE__ */ F({
293
287
  }
294
288
  });
295
289
  export {
296
- fe as default
290
+ ve as default
297
291
  };