@feedmepos/mf-payment 1.0.3 → 1.0.4-beta.2

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/{PayoutAccount-DxMey5W6.js → PayoutAccount-CUcmLnpF.js} +5 -5
  2. package/dist/{PayoutAccount-DYnycBoi.js → PayoutAccount-K-clfaW8.js} +85 -85
  3. package/dist/{PayoutAccountSetting-C1yeSNv8.js → PayoutAccountSetting-B1uLo7gi.js} +4 -4
  4. package/dist/Restaurant-D5L8pG25.js +305 -0
  5. package/dist/{RestaurantSetting-CWZAKz1A.js → RestaurantSetting-Dx0fPDEn.js} +4 -4
  6. package/dist/{Settlement-ByPXBNx1.js → Settlement-BGueDfpI.js} +3 -3
  7. package/dist/{Settlement-BKwie9R8.js → Settlement-D0nuXQMV.js} +3 -3
  8. package/dist/{SettlementTransactions-rXQceUoG.js → SettlementTransactions-DW8-tVPe.js} +4 -4
  9. package/dist/{SettlementTransactions-DVRoAUYv.js → SettlementTransactions-Dsnpidi1.js} +4 -4
  10. package/dist/Terminal-BkhqmKjN.js +404 -0
  11. package/dist/{TerminalSetting-qklmRz3H.js → TerminalSetting-CrpB7DIV.js} +3 -3
  12. package/dist/{TerminalTransaction-64Bn6vh0.js → TerminalTransaction-2E_8keFp.js} +50 -44
  13. package/dist/{TerminalTransaction-YXcGJ2ne.js → TerminalTransaction-BGy4ABmm.js} +184 -154
  14. package/dist/{Transaction-BOc0NW9a.js → Transaction-DFqANzFa.js} +31 -27
  15. package/dist/{Transaction-CqTKm8KP.js → Transaction-izWqPmdQ.js} +81 -48
  16. package/dist/{app-D017JOF7.js → app-DPCnmmmg.js} +329 -329
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-DjRoCcqv.js → assets-NM2zCyV8.js} +1 -1
  19. package/dist/grafana-CqkYm_ru.js +46 -0
  20. package/dist/helpers/grafana.d.ts +7 -0
  21. package/dist/{index-DFePh4ct.js → index-B5pmhl4r.js} +1 -1
  22. package/dist/{index-BerQZMQW.js → index-BWpuTiNy.js} +1 -1
  23. package/dist/{index-CWGSYCJG.js → index-BbPdddp2.js} +1 -1
  24. package/dist/{index-Dj_LwPBy.js → index-Bl77l-UI.js} +8489 -8321
  25. package/dist/{index-CKyh0nlu.js → index-BpclEVci.js} +1 -1
  26. package/dist/{index-BWFqxSU3.js → index-CZv4Ucw7.js} +1 -1
  27. package/dist/{index-Bp_58SiC.js → index-DfC2cb6i.js} +1 -1
  28. package/dist/{index-BEFlDEyV.js → index-DffVv67M.js} +1 -1
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js → index.vue_vue_type_script_setup_true_lang-Bm7Wybo3.js} +1 -1
  30. package/dist/model/transaction.d.ts +2 -0
  31. package/dist/package.json +2 -2
  32. package/dist/{payout-account-BhSP2Imp.js → payout-account-DpAKpX1a.js} +2 -2
  33. package/dist/stores/payoutAccount.d.ts +4 -4
  34. package/dist/{transaction-Bxl86wzh.js → transaction-13xSmWg9.js} +25 -20
  35. package/dist/tsconfig.app.tsbuildinfo +1 -1
  36. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  37. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  38. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  39. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  40. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  41. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  42. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  43. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +5 -0
  44. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  45. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  46. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
  47. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  48. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  49. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  50. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
  51. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  52. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  53. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  54. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -1
  55. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  56. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  57. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  58. package/package.json +2 -2
  59. package/dist/Restaurant-B02jty0J.js +0 -262
  60. package/dist/Terminal-DX8v8WpM.js +0 -386
@@ -1,17 +1,17 @@
1
- import { defineComponent as f, resolveComponent as N, openBlock as g, createBlock as S, normalizeClass as O, withCtx as D, createElementVNode as _, toDisplayString as V, createElementBlock as I, unref as o, ref as A, h as v, onMounted as C, watch as w, createVNode as p, isRef as E } from "vue";
2
- import { t as b, a as M } from "./transaction-Bxl86wzh.js";
3
- import { e as x, u as Y } from "./index-Dj_LwPBy.js";
1
+ import { defineComponent as f, resolveComponent as A, openBlock as h, createBlock as S, normalizeClass as O, withCtx as D, createElementVNode as _, toDisplayString as V, createElementBlock as I, unref as o, ref as N, h as v, onMounted as C, watch as w, createVNode as p, isRef as E } from "vue";
2
+ import { t as b, a as M } from "./transaction-13xSmWg9.js";
3
+ import { e as x, u as Y } from "./index-Bl77l-UI.js";
4
4
  import "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as F } from "./moment-h96o7c8I.js";
7
- import { g as $, a as k } from "./assets-DjRoCcqv.js";
8
- import { useCoreStore as L } from "@feedmepos/mf-common";
9
- import { _ as P } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
10
- import { u as B } from "./index-BerQZMQW.js";
7
+ import { g as $, a as k } from "./assets-NM2zCyV8.js";
8
+ import { useCoreStore as B } from "@feedmepos/mf-common";
9
+ import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
10
+ import { u as P } from "./index-BWpuTiNy.js";
11
11
  import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
- import { _ as G } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
- import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
14
- const q = /* @__PURE__ */ f({
12
+ import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
+ import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
14
+ const j = /* @__PURE__ */ f({
15
15
  __name: "Status",
16
16
  props: {
17
17
  row: {},
@@ -23,8 +23,8 @@ const q = /* @__PURE__ */ f({
23
23
  return a.data === x.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === x.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === x.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
24
24
  }
25
25
  return (l, c) => {
26
- const d = N("FmBadge");
27
- return g(), S(d, {
26
+ const d = A("FmBadge");
27
+ return h(), S(d, {
28
28
  inline: "",
29
29
  class: O(t())
30
30
  }, {
@@ -42,7 +42,7 @@ const q = /* @__PURE__ */ f({
42
42
  data: {}
43
43
  },
44
44
  setup(s) {
45
- return (a, t) => (g(), I("img", {
45
+ return (a, t) => (h(), I("img", {
46
46
  class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
47
47
  src: o($)(a.row.original.gateway)
48
48
  }, null, 8, J));
@@ -54,7 +54,7 @@ const q = /* @__PURE__ */ f({
54
54
  data: {}
55
55
  },
56
56
  setup(s) {
57
- return (a, t) => (g(), I("img", {
57
+ return (a, t) => (h(), I("img", {
58
58
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
59
59
  src: o(k)(a.row.original.method.issuer)
60
60
  }, null, 8, Q));
@@ -73,7 +73,7 @@ const q = /* @__PURE__ */ f({
73
73
  },
74
74
  emits: ["row-click"],
75
75
  setup(s, { emit: a }) {
76
- const t = s, l = a, c = A(""), d = [
76
+ const t = s, l = a, c = N(""), d = [
77
77
  {
78
78
  header: () => "Transaction ID",
79
79
  accessorKey: "id"
@@ -82,6 +82,10 @@ const q = /* @__PURE__ */ f({
82
82
  header: () => "Pay ID",
83
83
  accessorKey: "payId"
84
84
  },
85
+ {
86
+ header: () => "Bill Seq No",
87
+ accessorKey: "seqNumber"
88
+ },
85
89
  {
86
90
  header: () => "Gateway",
87
91
  accessorKey: "gateway",
@@ -114,7 +118,7 @@ const q = /* @__PURE__ */ f({
114
118
  {
115
119
  header: () => "Status",
116
120
  accessorKey: "status",
117
- cell: ({ cell: n, row: e }) => v(q, { row: e, data: n.getValue() })
121
+ cell: ({ cell: n, row: e }) => v(j, { row: e, data: n.getValue() })
118
122
  },
119
123
  {
120
124
  header: () => "Transaction At",
@@ -137,8 +141,8 @@ const q = /* @__PURE__ */ f({
137
141
  }
138
142
  ];
139
143
  return (n, e) => {
140
- const h = N("FmTable");
141
- return g(), S(h, {
144
+ const g = A("FmTable");
145
+ return h(), S(g, {
142
146
  modelValue: c.value,
143
147
  "onUpdate:modelValue": e[0] || (e[0] = (i) => c.value = i),
144
148
  "column-defs": d,
@@ -151,14 +155,14 @@ const q = /* @__PURE__ */ f({
151
155
  }), X = { class: "flex justify-between mb-6 items-center" }, Z = { class: "flex space-x-8" }, ee = { class: "flex space-x-4 self-center" }, ae = { class: "mb-6" }, fe = /* @__PURE__ */ f({
152
156
  __name: "Transaction",
153
157
  setup(s) {
154
- const { dateRange: a, searchKey: t } = B({
158
+ const { dateRange: a, searchKey: t } = P({
155
159
  searchKey: "",
156
160
  dateRange: {
157
161
  startDate: F().startOf("day").format("YYYY-MM-DD"),
158
162
  endDate: F().endOf("day").format("YYYY-MM-DD")
159
163
  }
160
- }), { isLoading: l, startAsyncCall: c } = Y(!0), { currentRestaurant: d } = L(), n = A([]), e = A([]);
161
- async function h() {
164
+ }), { isLoading: l, startAsyncCall: c } = Y(!0), { currentRestaurant: d } = B(), n = N([]), e = N([]);
165
+ async function g() {
162
166
  await c(async () => {
163
167
  const { startDate: y, endDate: r } = a.value, u = await b.readRestaurantTransactions({
164
168
  start: y,
@@ -174,9 +178,9 @@ const q = /* @__PURE__ */ f({
174
178
  });
175
179
  }
176
180
  function i() {
177
- h();
181
+ g();
178
182
  }
179
- C(i), w(d, i), w(a, h);
183
+ C(i), w(d, i), w(a, g);
180
184
  let T;
181
185
  return w(t, async () => {
182
186
  T && clearTimeout(T), T = setTimeout(() => {
@@ -187,8 +191,8 @@ const q = /* @__PURE__ */ f({
187
191
  });
188
192
  }, 700);
189
193
  }), (y, r) => {
190
- const u = N("FmSearch");
191
- return g(), S(P, {
194
+ const u = A("FmSearch");
195
+ return h(), S(L, {
192
196
  title: "Online Transactions",
193
197
  description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
194
198
  loading: o(l)
@@ -196,7 +200,7 @@ const q = /* @__PURE__ */ f({
196
200
  default: D(() => [
197
201
  _("div", X, [
198
202
  _("div", Z, [
199
- p(G),
203
+ p(q),
200
204
  p(u, {
201
205
  "model-value": o(t),
202
206
  "onUpdate:modelValue": r[0] || (r[0] = (m) => E(t) ? t.value = m : null),
@@ -218,7 +222,7 @@ const q = /* @__PURE__ */ f({
218
222
  ])
219
223
  ]),
220
224
  _("div", ae, [
221
- p(j, {
225
+ p(G, {
222
226
  modelValue: o(a),
223
227
  "onUpdate:modelValue": r[1] || (r[1] = (m) => E(a) ? a.value = m : null)
224
228
  }, null, 8, ["modelValue"])
@@ -1,18 +1,19 @@
1
- import { defineComponent as b, resolveComponent as g, openBlock as p, createBlock as E, normalizeClass as q, withCtx as w, createElementVNode as h, toDisplayString as Y, createElementBlock as A, unref as u, createVNode as d, Fragment as $, renderList as C, ref as P, watch as N, isRef as v, h as _ } from "vue";
2
- import { t as y, a as R, b as I } from "./transaction-Bxl86wzh.js";
1
+ import { defineComponent as b, resolveComponent as g, openBlock as p, createBlock as E, normalizeClass as R, withCtx as w, createElementVNode as h, toDisplayString as V, createElementBlock as A, unref as u, createVNode as d, Fragment as Y, renderList as $, ref as C, watch as N, isRef as v, h as y } from "vue";
2
+ import { t as _, a as P, b as I } from "./transaction-13xSmWg9.js";
3
3
  import { h as T } from "./moment-h96o7c8I.js";
4
- import { u as V } from "./index-BerQZMQW.js";
4
+ import { u as L } from "./index-BWpuTiNy.js";
5
5
  import { _ as B } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
6
- import { _ as L } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
7
- import { useSnackbar as U, useDialog as G } from "@feedmepos/ui-library";
6
+ import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
7
+ import { useSnackbar as G, useDialog as j } from "@feedmepos/ui-library";
8
8
  import { w as D } from "./Modal-DB8M9o1T.js";
9
9
  import { u as x } from "./error-K1CakhA9.js";
10
- import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
11
- import { _ as Q } from "./index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js";
12
- import { e as S } from "./index-Dj_LwPBy.js";
13
- import { g as z, a as H } from "./assets-DjRoCcqv.js";
14
- import { _ as J } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
15
- const W = /* @__PURE__ */ b({
10
+ import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
11
+ import { g as z } from "./grafana-CqkYm_ru.js";
12
+ import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-Bm7Wybo3.js";
13
+ import { e as S } from "./index-Bl77l-UI.js";
14
+ import { g as J, a as W } from "./assets-NM2zCyV8.js";
15
+ import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
16
+ const Z = /* @__PURE__ */ b({
16
17
  __name: "Status",
17
18
  props: {
18
19
  row: {},
@@ -27,16 +28,16 @@ const W = /* @__PURE__ */ b({
27
28
  const m = g("FmBadge");
28
29
  return p(), E(m, {
29
30
  inline: "",
30
- class: q(o())
31
+ class: R(o())
31
32
  }, {
32
33
  default: w(() => [
33
- h("div", null, Y(i.data), 1)
34
+ h("div", null, V(i.data), 1)
34
35
  ]),
35
36
  _: 1
36
37
  }, 8, ["class"]);
37
38
  };
38
39
  }
39
- }), X = ["src"], Z = /* @__PURE__ */ b({
40
+ }), ee = ["src"], te = /* @__PURE__ */ b({
40
41
  __name: "Gateway",
41
42
  props: {
42
43
  row: {},
@@ -45,10 +46,10 @@ const W = /* @__PURE__ */ b({
45
46
  setup(f) {
46
47
  return (a, o) => (p(), A("img", {
47
48
  class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
48
- src: u(z)(a.row.original.gateway)
49
- }, null, 8, X));
49
+ src: u(J)(a.row.original.gateway)
50
+ }, null, 8, ee));
50
51
  }
51
- }), ee = ["src"], te = /* @__PURE__ */ b({
52
+ }), ae = ["src"], ne = /* @__PURE__ */ b({
52
53
  __name: "Method",
53
54
  props: {
54
55
  row: {},
@@ -57,10 +58,10 @@ const W = /* @__PURE__ */ b({
57
58
  setup(f) {
58
59
  return (a, o) => (p(), A("img", {
59
60
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
60
- src: u(H)(a.row.original.method.issuer)
61
- }, null, 8, ee));
61
+ src: u(W)(a.row.original.method.issuer)
62
+ }, null, 8, ae));
62
63
  }
63
- }), ae = /* @__PURE__ */ b({
64
+ }), re = /* @__PURE__ */ b({
64
65
  __name: "Actions",
65
66
  props: {
66
67
  onAction: { type: Function }
@@ -84,6 +85,12 @@ const W = /* @__PURE__ */ b({
84
85
  sublabel: "Perform webhook notification for transaction",
85
86
  icon: "webhook",
86
87
  action: "notify"
88
+ },
89
+ {
90
+ label: "Log",
91
+ sublabel: "Inspect transaction historical actions, requests and responses.",
92
+ icon: "history",
93
+ action: "history"
87
94
  }
88
95
  ];
89
96
  return (o, i) => {
@@ -98,7 +105,7 @@ const W = /* @__PURE__ */ b({
98
105
  d(s, { name: "settings" })
99
106
  ]),
100
107
  default: w(() => [
101
- (p(), A($, null, C(a, (c) => d(m, {
108
+ (p(), A(Y, null, $(a, (c) => d(m, {
102
109
  selectable: !0,
103
110
  key: c.label,
104
111
  sublabel: c.sublabel,
@@ -112,19 +119,19 @@ const W = /* @__PURE__ */ b({
112
119
  ]);
113
120
  };
114
121
  }
115
- }), ne = { class: "flex justify-between mb-6 items-center" }, re = { class: "flex space-x-4" }, oe = { class: "flex space-x-4 self-center" }, se = { class: "mb-6" }, we = /* @__PURE__ */ b({
122
+ }), oe = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" }, ce = { class: "flex space-x-4 self-center" }, ie = { class: "mb-6" }, xe = /* @__PURE__ */ b({
116
123
  __name: "Transaction",
117
124
  setup(f) {
118
- const a = P(), { dateRange: o, searchKey: i } = V({
125
+ const a = C(), { dateRange: o, searchKey: i } = L({
119
126
  searchKey: "",
120
127
  dateRange: {
121
128
  startDate: T().startOf("day").format("YYYY-MM-DD"),
122
129
  endDate: T().endOf("day").format("YYYY-MM-DD")
123
130
  }
124
- }), s = U(), m = G(), F = async (e, t) => {
131
+ }), s = G(), m = j(), F = async (e, t) => {
125
132
  let r = parseInt(t);
126
133
  Number.isNaN(r) && (r = 1);
127
- const n = await y.readTransactions({
134
+ const n = await _.readTransactions({
128
135
  start: T(o.value.startDate).startOf("day").toISOString(),
129
136
  end: T(o.value.endDate).endOf("day").toISOString(),
130
137
  limit: e,
@@ -132,7 +139,7 @@ const W = /* @__PURE__ */ b({
132
139
  search: i.value
133
140
  }), l = n.length == e;
134
141
  return {
135
- data: R(n),
142
+ data: P(n),
136
143
  meta: {
137
144
  cursor: l ? (r + 1).toString() : ""
138
145
  }
@@ -161,7 +168,7 @@ const W = /* @__PURE__ */ b({
161
168
  return;
162
169
  }
163
170
  try {
164
- const l = await y.refetchTransaction({ transactionId: t.id });
171
+ const l = await _.refetchTransaction({ transactionId: t.id });
165
172
  (n = a.value) == null || n.replaceData(e, I(l)), s.open({
166
173
  type: "success",
167
174
  title: "Transaction queried and updated successfully."
@@ -174,7 +181,7 @@ const W = /* @__PURE__ */ b({
174
181
  });
175
182
  }
176
183
  }
177
- async function M(e) {
184
+ async function q(e) {
178
185
  var r;
179
186
  const t = (r = a.value) == null ? void 0 : r.pageData().at(e);
180
187
  if (!t) {
@@ -192,7 +199,7 @@ const W = /* @__PURE__ */ b({
192
199
  async () => {
193
200
  var n;
194
201
  try {
195
- const l = await y.refundTransaction({
202
+ const l = await _.refundTransaction({
196
203
  transactionId: t.id,
197
204
  reason: "portal transaction refund",
198
205
  amount: t.fdoAmount
@@ -211,7 +218,7 @@ const W = /* @__PURE__ */ b({
211
218
  }
212
219
  );
213
220
  }
214
- async function O(e) {
221
+ async function K(e) {
215
222
  var r;
216
223
  const t = (r = a.value) == null ? void 0 : r.pageData().at(e);
217
224
  if (!t) {
@@ -228,7 +235,7 @@ const W = /* @__PURE__ */ b({
228
235
  "Are you sure to perform notify transaction?",
229
236
  async () => {
230
237
  try {
231
- await y.renotifyTransaction(t.id), s.open({
238
+ await _.renotifyTransaction(t.id), s.open({
232
239
  type: "success",
233
240
  title: "Transaction notify successfully."
234
241
  });
@@ -242,23 +249,47 @@ const W = /* @__PURE__ */ b({
242
249
  }
243
250
  );
244
251
  }
245
- const K = [
252
+ async function M(e) {
253
+ var n;
254
+ const t = (n = a.value) == null ? void 0 : n.pageData().at(e);
255
+ if (!t) {
256
+ s.open({
257
+ type: "error",
258
+ title: "Something went wrong",
259
+ message: "Fail to find transactions from the displayed transactions."
260
+ });
261
+ return;
262
+ }
263
+ const r = z([
264
+ {
265
+ type: "span",
266
+ queryKey: "transaction.id",
267
+ queryValue: t.id
268
+ }
269
+ ], t.createdAt);
270
+ window.open(r, "_blank");
271
+ }
272
+ const O = [
246
273
  {
247
274
  header: () => "Transaction ID",
248
275
  accessorKey: "id",
249
- cell: ({ cell: e }) => _(J, { data: e.getValue() })
276
+ cell: ({ cell: e }) => y(X, { data: e.getValue() })
250
277
  },
251
278
  {
252
279
  header: () => "Pay ID",
253
280
  accessorKey: "payId"
254
281
  },
282
+ {
283
+ header: () => "Bill",
284
+ accessorKey: "seqNumber"
285
+ },
255
286
  {
256
287
  header: () => "Gateway",
257
288
  accessorKey: "gateway",
258
289
  meta: {
259
290
  textAlign: "center"
260
291
  },
261
- cell: ({ cell: e, row: t }) => t.original.method ? _(Z, { row: t, data: e.getValue() }) : ""
292
+ cell: ({ cell: e, row: t }) => t.original.method ? y(te, { row: t, data: e.getValue() }) : ""
262
293
  },
263
294
  {
264
295
  header: () => "Method",
@@ -266,7 +297,7 @@ const W = /* @__PURE__ */ b({
266
297
  meta: {
267
298
  textAlign: "center"
268
299
  },
269
- cell: ({ cell: e, row: t }) => t.original.method ? _(te, { row: t, data: e.getValue() }) : ""
300
+ cell: ({ cell: e, row: t }) => t.original.method ? y(ne, { row: t, data: e.getValue() }) : ""
270
301
  },
271
302
  {
272
303
  header: () => "Type",
@@ -284,7 +315,7 @@ const W = /* @__PURE__ */ b({
284
315
  {
285
316
  header: () => "Status",
286
317
  accessorKey: "status",
287
- cell: ({ cell: e, row: t }) => _(W, { row: t, data: e.getValue() })
318
+ cell: ({ cell: e, row: t }) => y(Z, { row: t, data: e.getValue() })
288
319
  },
289
320
  {
290
321
  header: () => "Transaction At",
@@ -308,14 +339,16 @@ const W = /* @__PURE__ */ b({
308
339
  {
309
340
  header: () => "Actions",
310
341
  accessorKey: "actions",
311
- cell: ({ row: e }) => _(ae, {
342
+ cell: ({ row: e }) => y(re, {
312
343
  onAction: (t) => {
313
344
  switch (t) {
314
345
  case "notify":
315
- return O(e.index);
346
+ return K(e.index);
316
347
  case "query":
317
348
  return k(e.index);
318
349
  case "refund":
350
+ return q(e.index);
351
+ case "history":
319
352
  return M(e.index);
320
353
  }
321
354
  }
@@ -329,8 +362,8 @@ const W = /* @__PURE__ */ b({
329
362
  loading: !1
330
363
  }, {
331
364
  default: w(() => [
332
- h("div", ne, [
333
- h("div", re, [
365
+ h("div", oe, [
366
+ h("div", se, [
334
367
  d(r, {
335
368
  "model-value": u(i),
336
369
  "onUpdate:modelValue": t[0] || (t[0] = (n) => v(i) ? i.value = n : null),
@@ -339,15 +372,15 @@ const W = /* @__PURE__ */ b({
339
372
  placeholder: "Search Transactions ..."
340
373
  }, null, 8, ["model-value"])
341
374
  ]),
342
- h("div", oe, [
343
- d(L, {
375
+ h("div", ce, [
376
+ d(U, {
344
377
  button: {
345
378
  appendIcon: "file_download",
346
379
  variant: "primary",
347
380
  label: "Export"
348
381
  },
349
382
  handler: async () => {
350
- await u(y).downloadTransactionReport({
383
+ await u(_).downloadTransactionReport({
351
384
  start: u(o).startDate,
352
385
  end: u(o).endDate
353
386
  });
@@ -355,16 +388,16 @@ const W = /* @__PURE__ */ b({
355
388
  }, null, 8, ["handler"])
356
389
  ])
357
390
  ]),
358
- h("div", se, [
359
- d(j, {
391
+ h("div", ie, [
392
+ d(Q, {
360
393
  modelValue: u(o),
361
394
  "onUpdate:modelValue": t[1] || (t[1] = (n) => v(o) ? o.value = n : null)
362
395
  }, null, 8, ["modelValue"])
363
396
  ]),
364
- d(Q, {
397
+ d(H, {
365
398
  ref_key: "controller",
366
399
  ref: a,
367
- "column-defs": K,
400
+ "column-defs": O,
368
401
  "rows-defs": (n) => n,
369
402
  paginate: F
370
403
  }, null, 8, ["rows-defs"])
@@ -375,5 +408,5 @@ const W = /* @__PURE__ */ b({
375
408
  }
376
409
  });
377
410
  export {
378
- we as default
411
+ xe as default
379
412
  };