@feedmepos/mf-payment 1.1.7 → 1.1.8

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 (40) hide show
  1. package/dist/{PayoutAccount-C362ShA8.js → PayoutAccount-BAXvKwol.js} +5 -5
  2. package/dist/{PayoutAccount-CAdClj2Y.js → PayoutAccount-C9TC-nLW.js} +3 -3
  3. package/dist/{PayoutAccountSetting-Cbl5b1Jr.js → PayoutAccountSetting-CsY4Dr_E.js} +3 -3
  4. package/dist/{Restaurant-ClDu-bSv.js → Restaurant-C9GmwxpU.js} +4 -4
  5. package/dist/{RestaurantSetting-D5h5RoHf.js → RestaurantSetting-DaSalR0b.js} +3 -3
  6. package/dist/Settlement-BvUs3MyQ.js +454 -0
  7. package/dist/Settlement-C7oFzVbb.js +219 -0
  8. package/dist/{SettlementTransactions-Cpaq8K6x.js → SettlementTransactions-BRo_oigl.js} +75 -69
  9. package/dist/{SettlementTransactions-DIvLOEw6.js → SettlementTransactions-qSgW0VCV.js} +80 -78
  10. package/dist/{Terminal-Cmed6xrj.js → Terminal-DXGKrm3G.js} +5 -5
  11. package/dist/TerminalSetting-bLxGkMlN.js +497 -0
  12. package/dist/{Transaction-BQn5rvxe.js → Transaction-B7ICajHR.js} +6 -6
  13. package/dist/{Transaction-8m9pEyyX.js → Transaction-BI2ZRsxe.js} +52 -47
  14. package/dist/{TransactionOld-CX-Odthg.js → TransactionOld-GLsvtHyF.js} +5 -5
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js → TransactionTable.vue_vue_type_script_setup_true_lang-UjV7RID1.js} +12 -8
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/api/terminal/index.d.ts +4 -0
  18. package/dist/api/transaction/index.d.ts +1 -1
  19. package/dist/{app-QYQdqlqy.js → app-DVnyclnX.js} +327 -321
  20. package/dist/app.d.ts +6 -0
  21. package/dist/app.js +1 -1
  22. package/dist/{assets-Da-9jPqG.js → assets-BZmrImt4.js} +49 -52
  23. package/dist/{grafana-BDr-LF8O.js → grafana-DRnPxAqM.js} +1 -1
  24. package/dist/{index-0Dl-qVTd.js → index-BMF26WT4.js} +29 -29
  25. package/dist/{index-DFq7xhNQ.js → index-C1Hgyi3j.js} +1 -1
  26. package/dist/{index-Dg0Vf3qd.js → index-CD59SyVI.js} +1 -1
  27. package/dist/{index-DTH2dIPG.js → index-DZMn5Qjp.js} +796 -796
  28. package/dist/{index-Dq07OgOJ.js → index-a-Vqap7Z.js} +9 -1
  29. package/dist/{index-DbBsTEVS.js → index-gSE1T266.js} +1 -1
  30. package/dist/{index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js → index.vue_vue_type_script_setup_true_lang-FgXpWvbs.js} +1 -1
  31. package/dist/model/transaction.d.ts +3 -0
  32. package/dist/package.json +1 -1
  33. package/dist/{payout-account--IA1DbB5.js → payout-account-B76ODsn2.js} +2 -2
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
  36. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
  37. package/package.json +1 -1
  38. package/dist/Settlement-B06tIr4_.js +0 -445
  39. package/dist/Settlement-C2BVxmir.js +0 -219
  40. package/dist/TerminalSetting-BrTRbBF7.js +0 -389
@@ -1,16 +1,16 @@
1
- import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as $, withCtx as T, createElementVNode as _, toDisplayString as V, createElementBlock as A, unref as d, createVNode as f, Fragment as Y, renderList as C, ref as O, watch as v, isRef as I, h as y } from "vue";
2
- import { g as P, a as U, t as g, b as B, c as N } from "./assets-Da-9jPqG.js";
3
- import { h as w } from "./moment-h96o7c8I.js";
4
- import { u as G } from "./index-DFq7xhNQ.js";
1
+ import { defineComponent as b, resolveComponent as h, openBlock as m, createBlock as F, normalizeClass as R, withCtx as w, createElementVNode as _, toDisplayString as V, createElementBlock as S, unref as d, createVNode as f, Fragment as Y, renderList as C, ref as O, watch as v, isRef as I, h as y } from "vue";
2
+ import { g as P, a as U, t as g, b as B, c as N } from "./assets-BZmrImt4.js";
3
+ import { h as T } from "./moment-h96o7c8I.js";
4
+ import { u as G } from "./index-C1Hgyi3j.js";
5
5
  import { _ as L } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
6
6
  import { _ as j } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
7
7
  import { useSnackbar as Q, useDialog as z } from "@feedmepos/ui-library";
8
8
  import { w as k } from "./Modal-DB8M9o1T.js";
9
9
  import { u as x } from "./error-K1CakhA9.js";
10
10
  import { _ as H } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
11
- import { g as J } from "./grafana-BDr-LF8O.js";
12
- import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-JHB8s5dZ.js";
13
- import { e as D } from "./index-DTH2dIPG.js";
11
+ import { g as J } from "./grafana-DRnPxAqM.js";
12
+ import { _ as W } from "./index.vue_vue_type_script_setup_true_lang-FgXpWvbs.js";
13
+ import { e as D } from "./index-DZMn5Qjp.js";
14
14
  import { _ as X } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
15
15
  const Z = /* @__PURE__ */ b({
16
16
  __name: "Status",
@@ -23,14 +23,14 @@ const Z = /* @__PURE__ */ b({
23
23
  function o() {
24
24
  return a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : a.data === D.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
25
25
  }
26
- return (c, s) => {
26
+ return (i, s) => {
27
27
  const p = h("FmBadge");
28
28
  return m(), F(p, {
29
29
  inline: "",
30
- class: $(o())
30
+ class: R(o())
31
31
  }, {
32
- default: T(() => [
33
- _("div", null, V(c.data), 1)
32
+ default: w(() => [
33
+ _("div", null, V(i.data), 1)
34
34
  ]),
35
35
  _: 1
36
36
  }, 8, ["class"]);
@@ -43,7 +43,7 @@ const Z = /* @__PURE__ */ b({
43
43
  data: {}
44
44
  },
45
45
  setup(u) {
46
- return (a, o) => (m(), A("img", {
46
+ return (a, o) => (m(), S("img", {
47
47
  class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
48
48
  src: d(P)(a.row.original.gateway)
49
49
  }, null, 8, ee));
@@ -55,7 +55,7 @@ const Z = /* @__PURE__ */ b({
55
55
  data: {}
56
56
  },
57
57
  setup(u) {
58
- return (a, o) => (m(), A("img", {
58
+ return (a, o) => (m(), S("img", {
59
59
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
60
60
  src: d(U)(a.row.original.method.issuer, a.row.original.method.variant)
61
61
  }, null, 8, ae));
@@ -93,25 +93,25 @@ const Z = /* @__PURE__ */ b({
93
93
  action: "history"
94
94
  }
95
95
  ];
96
- return (o, c) => {
97
- const s = h("FmIcon"), p = h("FmMenuItem"), S = h("FmMenu");
98
- return m(), A("div", {
99
- onClick: c[0] || (c[0] = (i) => {
100
- i.stopPropagation();
96
+ return (o, i) => {
97
+ const s = h("FmIcon"), p = h("FmMenuItem"), A = h("FmMenu");
98
+ return m(), S("div", {
99
+ onClick: i[0] || (i[0] = (c) => {
100
+ c.stopPropagation();
101
101
  })
102
102
  }, [
103
- f(S, null, {
104
- "menu-button": T(() => [
103
+ f(A, null, {
104
+ "menu-button": w(() => [
105
105
  f(s, { name: "settings" })
106
106
  ]),
107
- default: T(() => [
108
- (m(!0), A(Y, null, C(a.filter((i) => !!i), (i) => (m(), F(p, {
107
+ default: w(() => [
108
+ (m(!0), S(Y, null, C(a.filter((c) => !!c), (c) => (m(), F(p, {
109
109
  selectable: !0,
110
- key: i.label,
111
- sublabel: i.sublabel,
112
- label: i.label,
113
- icon: i.icon,
114
- onclick: () => o.onAction(i.action)
110
+ key: c.label,
111
+ sublabel: c.sublabel,
112
+ label: c.label,
113
+ icon: c.icon,
114
+ onclick: () => o.onAction(c.action)
115
115
  }, null, 8, ["sublabel", "label", "icon", "onclick"]))), 128))
116
116
  ]),
117
117
  _: 1
@@ -119,24 +119,24 @@ const Z = /* @__PURE__ */ b({
119
119
  ]);
120
120
  };
121
121
  }
122
- }), oe = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" }, ie = { class: "flex space-x-4 self-center" }, ce = { class: "mb-6" }, Se = /* @__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" }, Ae = /* @__PURE__ */ b({
123
123
  __name: "Transaction",
124
124
  setup(u) {
125
- const a = O(), { dateRange: o, searchKey: c } = G({
125
+ const a = O(), { dateRange: o, searchKey: i } = G({
126
126
  searchKey: "",
127
127
  dateRange: {
128
- startDate: w().startOf("day").format("YYYY-MM-DD"),
129
- endDate: w().endOf("day").format("YYYY-MM-DD")
128
+ startDate: T().startOf("day").format("YYYY-MM-DD"),
129
+ endDate: T().endOf("day").format("YYYY-MM-DD")
130
130
  }
131
- }), s = Q(), p = z(), S = async (t, e) => {
131
+ }), s = Q(), p = z(), A = async (t, e) => {
132
132
  let r = parseInt(e);
133
133
  Number.isNaN(r) && (r = 1);
134
134
  const n = await g.readTransactions({
135
- start: w(o.value.startDate).startOf("day").toISOString(),
136
- end: w(o.value.endDate).endOf("day").toISOString(),
135
+ start: T(o.value.startDate).startOf("day").toISOString(),
136
+ end: T(o.value.endDate).endOf("day").toISOString(),
137
137
  limit: t,
138
138
  skip: (r - 1) * t,
139
- search: c.value
139
+ search: i.value
140
140
  }), l = n.length == t;
141
141
  return {
142
142
  data: B(n),
@@ -149,9 +149,9 @@ const Z = /* @__PURE__ */ b({
149
149
  var t;
150
150
  (t = a.value) == null || t.reset();
151
151
  });
152
- let i;
153
- v(c, async () => {
154
- i && clearTimeout(i), i = setTimeout(() => {
152
+ let c;
153
+ v(i, async () => {
154
+ c && clearTimeout(c), c = setTimeout(() => {
155
155
  var t;
156
156
  (t = a.value) == null || t.reset();
157
157
  }, 700);
@@ -269,7 +269,7 @@ const Z = /* @__PURE__ */ b({
269
269
  ], e.transactionAt);
270
270
  window.open(r, "_blank");
271
271
  }
272
- const R = [
272
+ const $ = [
273
273
  {
274
274
  header: () => "Transaction ID",
275
275
  accessorKey: "id",
@@ -321,6 +321,11 @@ const Z = /* @__PURE__ */ b({
321
321
  accessorKey: "source",
322
322
  cell: ({ cell: t, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
323
323
  },
324
+ {
325
+ header: () => "Source",
326
+ accessorKey: "source",
327
+ cell: ({ cell: t, row: e }) => `(${e.original.sourceType}) ${e.original.source}`
328
+ },
324
329
  {
325
330
  header: () => "Transaction At",
326
331
  accessorKey: "transactionAt",
@@ -370,18 +375,18 @@ const Z = /* @__PURE__ */ b({
370
375
  title: "Transactions",
371
376
  loading: !1
372
377
  }, {
373
- default: T(() => [
378
+ default: w(() => [
374
379
  _("div", oe, [
375
380
  _("div", se, [
376
381
  f(r, {
377
- "model-value": d(c),
378
- "onUpdate:modelValue": e[0] || (e[0] = (n) => I(c) ? c.value = n : null),
382
+ "model-value": d(i),
383
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => I(i) ? i.value = n : null),
379
384
  class: "mr-8",
380
385
  label: "Search",
381
386
  placeholder: "Search Transactions ..."
382
387
  }, null, 8, ["model-value"])
383
388
  ]),
384
- _("div", ie, [
389
+ _("div", ce, [
385
390
  f(j, {
386
391
  button: {
387
392
  appendIcon: "file_download",
@@ -397,7 +402,7 @@ const Z = /* @__PURE__ */ b({
397
402
  }, null, 8, ["handler"])
398
403
  ])
399
404
  ]),
400
- _("div", ce, [
405
+ _("div", ie, [
401
406
  f(H, {
402
407
  modelValue: d(o),
403
408
  "onUpdate:modelValue": e[1] || (e[1] = (n) => I(o) ? o.value = n : null)
@@ -406,9 +411,9 @@ const Z = /* @__PURE__ */ b({
406
411
  f(W, {
407
412
  ref_key: "controller",
408
413
  ref: a,
409
- "column-defs": R,
414
+ "column-defs": $,
410
415
  "rows-defs": (n) => n,
411
- paginate: S
416
+ paginate: A
412
417
  }, null, 8, ["rows-defs"])
413
418
  ]),
414
419
  _: 1
@@ -417,5 +422,5 @@ const Z = /* @__PURE__ */ b({
417
422
  }
418
423
  });
419
424
  export {
420
- Se as default
425
+ Ae as default
421
426
  };
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as T, ref as h, onMounted as Y, watch as f, resolveComponent as V, openBlock as C, createBlock as M, unref as t, withCtx as O, createElementVNode as u, createVNode as i, isRef as y } from "vue";
2
- import { t as g, b as S } from "./assets-Da-9jPqG.js";
3
- import { u as $ } from "./index-DTH2dIPG.js";
4
- import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BX7YIl4i.js";
2
+ import { t as g, b as S } from "./assets-BZmrImt4.js";
3
+ import { u as $ } from "./index-DZMn5Qjp.js";
4
+ import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-UjV7RID1.js";
5
5
  import { h as x } from "./moment-h96o7c8I.js";
6
6
  import { useCoreStore as k, useI18n as E } from "@feedmepos/mf-common";
7
7
  import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
- import { u as P } from "./index-DFq7xhNQ.js";
8
+ import { u as P } from "./index-C1Hgyi3j.js";
9
9
  import { _ as A } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
10
10
  import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js";
11
11
  import { _ as F } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -73,7 +73,7 @@ const I = { class: "flex justify-between mb-6 items-center" }, J = { class: "fle
73
73
  label: t(o)("transactions.button.export")
74
74
  },
75
75
  handler: async () => {
76
- await t(g).downloadPortalTransactionReport(t(n), s.value);
76
+ await t(g).downloadPortalTransactionReport(t(n), s.value, !0);
77
77
  }
78
78
  }, null, 8, ["button", "handler"])
79
79
  ])
@@ -1,8 +1,8 @@
1
- import { defineComponent as m, resolveComponent as d, openBlock as l, createBlock as f, normalizeClass as v, withCtx as y, createElementVNode as x, toDisplayString as P, createElementBlock as w, unref as E, createVNode as I, Fragment as R, renderList as V, ref as D, h as p } from "vue";
1
+ import { defineComponent as m, resolveComponent as d, openBlock as l, createBlock as f, normalizeClass as v, withCtx as y, createElementVNode as x, toDisplayString as P, createElementBlock as w, unref as E, createVNode as q, Fragment as R, renderList as V, ref as D, h as p } from "vue";
2
2
  import { useSnackbar as U, useDialog as B } from "@feedmepos/ui-library";
3
- import { g as $, a as L, t as b, c as N } from "./assets-Da-9jPqG.js";
4
- import { e as h } from "./index-DTH2dIPG.js";
5
- import { g as G } from "./grafana-BDr-LF8O.js";
3
+ import { g as $, a as L, t as b, c as N } from "./assets-BZmrImt4.js";
4
+ import { e as h } from "./index-DZMn5Qjp.js";
5
+ import { g as G } from "./grafana-DRnPxAqM.js";
6
6
  import { w as k } from "./Modal-DB8M9o1T.js";
7
7
  import { u as T } from "./error-K1CakhA9.js";
8
8
  import { useCoreStore as O, useI18n as Y } from "@feedmepos/mf-common";
@@ -107,9 +107,9 @@ const j = /* @__PURE__ */ m({
107
107
  a.stopPropagation();
108
108
  })
109
109
  }, [
110
- I(g, null, {
110
+ q(g, null, {
111
111
  "menu-button": y(() => [
112
- I(s, { name: "settings" })
112
+ q(s, { name: "settings" })
113
113
  ]),
114
114
  default: y(() => [
115
115
  (l(!0), w(R, null, V(n.filter((a) => !!a), (a) => (l(), f(u, {
@@ -140,7 +140,7 @@ const j = /* @__PURE__ */ m({
140
140
  },
141
141
  emits: ["row-click"],
142
142
  setup(o, { emit: n }) {
143
- var q;
143
+ var I;
144
144
  const r = o, i = n, s = U(), u = B(), { sessionUser: g } = O(), { t: a } = Y();
145
145
  async function K(t) {
146
146
  try {
@@ -259,6 +259,10 @@ const j = /* @__PURE__ */ m({
259
259
  accessorKey: "status",
260
260
  cell: ({ cell: t, row: e }) => p(j, { row: e, data: t.getValue() })
261
261
  },
262
+ {
263
+ header: () => a("transactions.table.restaurant"),
264
+ accessorKey: "restaurantId"
265
+ },
262
266
  {
263
267
  header: () => a("transactions.table.source"),
264
268
  accessorKey: "source",
@@ -277,7 +281,7 @@ const j = /* @__PURE__ */ m({
277
281
  accessorKey: "amount"
278
282
  }
279
283
  ];
280
- return (q = g.value) != null && q.isInternal && F.push({
284
+ return (I = g.value) != null && I.isInternal && F.push({
281
285
  header: () => a("transactions.table.actions"),
282
286
  accessorKey: "actions",
283
287
  cell: ({ row: t }) => p(W, {
@@ -8,7 +8,7 @@ export declare const settlementApi: {
8
8
  start: string;
9
9
  end: string;
10
10
  }): Promise<SettlementDtoOutput[]>;
11
- downloadBankInstructionFile(country: string | undefined, data: SettlementDtoOutput[]): Promise<void>;
11
+ downloadBankInstructionFile(data: SettlementDtoOutput[]): Promise<void>;
12
12
  downloadSummaryReport(data: SettlementDtoOutput[], date: {
13
13
  start: string;
14
14
  end: string;
@@ -17,4 +17,8 @@ export declare const temrinalApi: {
17
17
  delete(id: string): Promise<any>;
18
18
  getBusinessTerminals(): Promise<FdoPortalTerminal[]>;
19
19
  getRestaurantTerminals(restaurantId: string): Promise<FdoPortalTerminal[]>;
20
+ kioskModeRequest(id: string, payload: {
21
+ enable: boolean;
22
+ password?: string;
23
+ }): Promise<string>;
20
24
  };
@@ -31,7 +31,7 @@ export declare const transactionApi: {
31
31
  downloadPortalTransactionReport(dateRange: {
32
32
  startDate: string;
33
33
  endDate: string;
34
- }, data: PortalPaymentTransaction[]): Promise<void>;
34
+ }, data: PortalPaymentTransaction[], isOld?: boolean): Promise<void>;
35
35
  downloadTransactionReport(date: {
36
36
  start: string;
37
37
  end: string;