@feedmepos/mf-payment 1.1.19 → 1.1.20-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 (34) hide show
  1. package/dist/Forbidden-BvhtA1Ni.js +37 -0
  2. package/dist/{PayoutAccount-BrMo_bdc.js → PayoutAccount-DbVJmcOa.js} +6 -6
  3. package/dist/{PayoutAccount-ClQ35qju.js → PayoutAccount-DtxvkRZg.js} +28 -28
  4. package/dist/{PayoutAccountSetting-DBMWIQ6u.js → PayoutAccountSetting-DcbImWD5.js} +3 -3
  5. package/dist/{Restaurant-DudOcIKg.js → Restaurant-DrTIWONb.js} +4 -4
  6. package/dist/{RestaurantSetting-BJo_ixHt.js → RestaurantSetting-39Xu_7Bm.js} +3 -3
  7. package/dist/{Settlement-CAKn73UQ.js → Settlement-DuWPx6DN.js} +3 -3
  8. package/dist/{Settlement-CJdBUfbZ.js → Settlement-oCVhqcmP.js} +3 -3
  9. package/dist/{SettlementTransactions-BCzKxoIi.js → SettlementTransactions-B1N9DToN.js} +3 -3
  10. package/dist/{SettlementTransactions-pgo_qyD-.js → SettlementTransactions-BPEDOI4q.js} +3 -3
  11. package/dist/{Terminal-BGLOmnl_.js → Terminal-CHNjzVtT.js} +6 -6
  12. package/dist/{TerminalSetting-CiyAJdLj.js → TerminalSetting-BEP2XCkv.js} +28 -22
  13. package/dist/{Transaction-DwxmCKcG.js → Transaction-Bth0jDaE.js} +7 -7
  14. package/dist/{Transaction-qyJAJekb.js → Transaction-Cb15psyP.js} +147 -147
  15. package/dist/{TransactionOld-LES765mv.js → TransactionOld-BPnBP2cu.js} +4 -4
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BEHZCoq6.js → TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js} +57 -53
  17. package/dist/{app-YY9yj-vq.js → app-BfnnIbRB.js} +393 -377
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-Bka69roC.js → assets-Bne2NJOR.js} +25 -22
  20. package/dist/{grafana-CZhYcWzi.js → grafana-DpsdWu10.js} +2 -2
  21. package/dist/{index-DSsEAgyG.js → index-B0zGQtbr.js} +1 -1
  22. package/dist/{index-CtbszYV4.js → index-B1EyQdUg.js} +1 -1
  23. package/dist/{index-F2ifB2oW.js → index-BJaJ2nSQ.js} +1 -1
  24. package/dist/{index-DIG1I3Ka.js → index-BSl3VmjZ.js} +1 -1
  25. package/dist/{index-CGg0eJIr.js → index-Bm2MGtsS.js} +1430 -1430
  26. package/dist/{index-BkOR4M1w.js → index-C5ARs2NW.js} +1 -1
  27. package/dist/{index-ZXI0wUjr.js → index-sQT526AQ.js} +2 -2
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-DMZricqL.js → index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js} +19 -19
  29. package/dist/model/transaction.d.ts +2 -0
  30. package/dist/package.json +1 -1
  31. package/dist/{payout-account-9HPKjwEG.js → payout-account-CX7Sx9yz.js} +3 -3
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/views/Forbidden.vue.d.ts +2 -0
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-CGg0eJIr.js";
1
+ import { g as r, b as i, m as c, l as d, n as y, i as l, r as m } from "./index-Bm2MGtsS.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, n) {
@@ -1,5 +1,5 @@
1
- import { f as u, b as s, g as t, h as e } from "./index-CGg0eJIr.js";
2
- import "./index-F2ifB2oW.js";
1
+ import { f as u, b as s, g as t, h as e } from "./index-Bm2MGtsS.js";
2
+ import "./index-BJaJ2nSQ.js";
3
3
  const r = {
4
4
  async read(a) {
5
5
  return u(
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as T, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R } from "vue";
2
- import { u as G } from "./index-CGg0eJIr.js";
2
+ import { u as G } from "./index-Bm2MGtsS.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const H = ["id"], U = /* @__PURE__ */ I({
5
5
  __name: "FmTableSelection",
@@ -40,7 +40,7 @@ const H = ["id"], U = /* @__PURE__ */ I({
40
40
  label: o.label,
41
41
  value: o.value,
42
42
  "model-value": o.value === y.value,
43
- "onUpdate:modelValue": (n) => k("update:modelValue", o.value)
43
+ "onUpdate:modelValue": (l) => k("update:modelValue", o.value)
44
44
  }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
45
45
  ], 12, H)
46
46
  ]),
@@ -74,15 +74,15 @@ const H = ["id"], U = /* @__PURE__ */ I({
74
74
  const y = [10, 20, 30, 50, 100].map((t) => ({
75
75
  label: t.toString(),
76
76
  value: t
77
- })), i = g, x = k, { isLoading: c, startLoading: h, stopLoading: V } = G(!0), b = r(), a = r(), o = r(""), n = r(10), l = r(1), v = r(0), _ = async function(t = !1) {
78
- h(), t && (a.value = [], o.value = "", l.value = 1, v.value = 0);
79
- const e = await i.paginate(n.value, o.value);
77
+ })), i = g, x = k, { isLoading: c, startLoading: h, stopLoading: V } = G(!0), b = r(), a = r(), o = r(""), l = r(10), n = r(1), v = r(0), _ = async function(t = !1) {
78
+ h(), t && (a.value = [], o.value = "", n.value = 1, v.value = 0);
79
+ const e = await i.paginate(l.value, o.value);
80
80
  a.value = [...a.value ?? [], ...e.data], o.value = e.meta.cursor ?? "", v.value += 1, V();
81
- }, $ = C(() => l.value > 1), q = C(() => l.value < v.value ? !0 : o.value > ""), A = C(() => {
82
- const t = n.value * (l.value - 1), e = t + n.value;
81
+ }, $ = C(() => n.value > 1), q = C(() => n.value < v.value ? !0 : o.value > ""), A = C(() => {
82
+ const t = l.value * (n.value - 1), e = t + l.value;
83
83
  return (a.value ?? []).slice(t, e).map(i.rowsDefs);
84
84
  });
85
- return S(n, () => _(!0)), S(l, (t) => {
85
+ return S(l, () => _(!0)), S(n, (t) => {
86
86
  t > v.value && _();
87
87
  }), E(() => _()), F({
88
88
  reset: () => _(!0),
@@ -96,11 +96,11 @@ const H = ["id"], U = /* @__PURE__ */ I({
96
96
  return t;
97
97
  },
98
98
  pageData: () => {
99
- const t = n.value * (l.value - 1), e = t + n.value;
99
+ const t = l.value * (n.value - 1), e = t + l.value;
100
100
  return (a.value ?? []).slice(t, e);
101
101
  },
102
102
  replaceData: (t, e) => {
103
- const m = t * l.value;
103
+ const m = l.value * (n.value - 1) + t;
104
104
  a.value && (a.value[m] = e);
105
105
  }
106
106
  }), (t, e) => {
@@ -110,7 +110,7 @@ const H = ["id"], U = /* @__PURE__ */ I({
110
110
  modelValue: b.value,
111
111
  "onUpdate:modelValue": e[0] || (e[0] = (s) => b.value = s),
112
112
  loading: D(c),
113
- "page-size": n.value,
113
+ "page-size": l.value,
114
114
  "row-data": A.value,
115
115
  "column-defs": g.columnDefs,
116
116
  "hide-footer": !0,
@@ -126,11 +126,11 @@ const H = ["id"], U = /* @__PURE__ */ I({
126
126
  e[6] || (e[6] = u("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
127
127
  d(U, {
128
128
  items: D(y),
129
- value: n.value,
130
- "onUpdate:modelValue": e[2] || (e[2] = (s) => n.value = s)
129
+ value: l.value,
130
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => l.value = s)
131
131
  }, null, 8, ["items", "value"])
132
132
  ]),
133
- u("span", W, B((l.value - 1) * n.value) + " - " + B((l.value - 1) * n.value + n.value), 1)
133
+ u("span", W, B((n.value - 1) * l.value) + " - " + B((n.value - 1) * l.value + l.value), 1)
134
134
  ]),
135
135
  u("div", X, [
136
136
  d(U, {
@@ -140,24 +140,24 @@ const H = ["id"], U = /* @__PURE__ */ I({
140
140
  value: s
141
141
  })
142
142
  ),
143
- value: l.value,
144
- "onUpdate:modelValue": e[3] || (e[3] = (s) => l.value = s)
143
+ value: n.value,
144
+ "onUpdate:modelValue": e[3] || (e[3] = (s) => n.value = s)
145
145
  }, null, 8, ["items", "value"]),
146
- u("span", Y, " Page " + B(l.value), 1),
146
+ u("span", Y, " Page " + B(n.value), 1),
147
147
  u("div", Z, [
148
148
  d(z, {
149
149
  disabled: !$.value,
150
150
  icon: "chevron_left",
151
151
  "icon-color": "neutral-black",
152
152
  variant: "tertiary",
153
- onClick: e[4] || (e[4] = () => l.value -= 1)
153
+ onClick: e[4] || (e[4] = () => n.value -= 1)
154
154
  }, null, 8, ["disabled"]),
155
155
  d(z, {
156
156
  disabled: !q.value,
157
157
  icon: "chevron_right",
158
158
  "icon-color": "neutral-black",
159
159
  variant: "tertiary",
160
- onClick: e[5] || (e[5] = () => l.value += 1)
160
+ onClick: e[5] || (e[5] = () => n.value += 1)
161
161
  }, null, 8, ["disabled"])
162
162
  ])
163
163
  ])
@@ -11,6 +11,7 @@ export interface PortalPaymentTransaction {
11
11
  gateway: F_PAYMENT_GATEWAY_KEY;
12
12
  status: string;
13
13
  amount: string;
14
+ gatewayAmount: string;
14
15
  fdoAmount: FdoDinero;
15
16
  fee: string;
16
17
  payout: string;
@@ -25,6 +26,7 @@ export interface PortalPaymentTransaction {
25
26
  query: boolean;
26
27
  refund: boolean;
27
28
  notify: boolean;
29
+ isDelivery: boolean;
28
30
  };
29
31
  }
30
32
  declare function toTransaction(trx: FdoPaymentTransactionV2Output): PortalPaymentTransaction;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.19",
3
+ "version": "1.1.20-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,6 +1,6 @@
1
- import { _ as rt, C as st, r as ye, S as it, g as re, a as ot, b as at, c as pe, F as ut, d as ct, e as lt } from "./app-YY9yj-vq.js";
2
- import { a as ht, c as dt, d as ft } from "./index-CGg0eJIr.js";
3
- import { _ as G } from "./index-F2ifB2oW.js";
1
+ import { _ as rt, C as st, r as ye, S as it, g as re, a as ot, b as at, c as pe, F as ut, d as ct, e as lt } from "./app-BfnnIbRB.js";
2
+ import { a as ht, c as dt, d as ft } from "./index-Bm2MGtsS.js";
3
+ import { _ as G } from "./index-BJaJ2nSQ.js";
4
4
  import { useCoreStore as _t } from "@feedmepos/mf-common";
5
5
  /**
6
6
  * @license