@feedmepos/mf-payment 1.1.20-beta.2 → 1.1.20

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/{PayoutAccount-DtxvkRZg.js → PayoutAccount-B50mbpXa.js} +28 -28
  2. package/dist/{PayoutAccount-DbVJmcOa.js → PayoutAccount-ChnMSqoz.js} +6 -6
  3. package/dist/{PayoutAccountSetting-DcbImWD5.js → PayoutAccountSetting-CYflBcUv.js} +3 -3
  4. package/dist/{Restaurant-DrTIWONb.js → Restaurant-Ddo7QfJv.js} +4 -4
  5. package/dist/{RestaurantSetting-39Xu_7Bm.js → RestaurantSetting-C_5OjEo4.js} +3 -3
  6. package/dist/{Settlement-oCVhqcmP.js → Settlement-DDZ6ll4r.js} +3 -3
  7. package/dist/{Settlement-DuWPx6DN.js → Settlement-DxMP0Iu2.js} +3 -3
  8. package/dist/{SettlementTransactions-BPEDOI4q.js → SettlementTransactions-4Z1eNypN.js} +3 -3
  9. package/dist/{SettlementTransactions-B1N9DToN.js → SettlementTransactions-VinJ6fUK.js} +3 -3
  10. package/dist/{Terminal-CHNjzVtT.js → Terminal-msh6w52E.js} +6 -6
  11. package/dist/{TerminalSetting-BEP2XCkv.js → TerminalSetting-B56NaLJG.js} +3 -3
  12. package/dist/{Transaction-Cb15psyP.js → Transaction-BFEc8CE5.js} +147 -147
  13. package/dist/{Transaction-Bth0jDaE.js → Transaction-CJ6tkVm7.js} +7 -7
  14. package/dist/{TransactionOld-BPnBP2cu.js → TransactionOld-CQCjIj-y.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-BdPgL0W8.js → TransactionTable.vue_vue_type_script_setup_true_lang-Be5X-POy.js} +53 -57
  16. package/dist/{app-BfnnIbRB.js → app-BMjpPKrE.js} +372 -388
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-Bne2NJOR.js → assets-uU5K-t3w.js} +22 -25
  19. package/dist/{grafana-DpsdWu10.js → grafana-jZIQEb-4.js} +2 -2
  20. package/dist/{index-C5ARs2NW.js → index-4jxBEYP_.js} +1 -1
  21. package/dist/{index-BJaJ2nSQ.js → index-C2icSInW.js} +1 -1
  22. package/dist/{index-sQT526AQ.js → index-CWuISLUP.js} +2 -2
  23. package/dist/{index-Bm2MGtsS.js → index-CeqaPQxS.js} +2285 -2285
  24. package/dist/{index-BSl3VmjZ.js → index-Ci5Z345g.js} +1 -1
  25. package/dist/{index-B1EyQdUg.js → index-Db8vOED3.js} +1 -1
  26. package/dist/{index-B0zGQtbr.js → index-sQgEmNx9.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-CV3EXPH9.js → index.vue_vue_type_script_setup_true_lang-D8jBmVoN.js} +19 -19
  28. package/dist/model/transaction.d.ts +0 -2
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-CX7Sx9yz.js → payout-account-CQou3k40.js} +3 -3
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/Forbidden-BvhtA1Ni.js +0 -37
  34. package/dist/views/Forbidden.vue.d.ts +0 -2
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-BfnnIbRB.js";
1
+ import { h as e, i as r, f as o } from "./app-BMjpPKrE.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,18 +1,18 @@
1
- import { g, b as q, r as c, h as E, l as k, i as b } from "./index-Bm2MGtsS.js";
1
+ import { g, b as Q, r as c, h as E, l as k, i as b } from "./index-CeqaPQxS.js";
2
2
  import { h as C } from "./moment-h96o7c8I.js";
3
- import { d as H } from "./dinero-CIVmXLL-.js";
4
- import { _ as l } from "./index-BJaJ2nSQ.js";
3
+ import { d as t } from "./dinero-CIVmXLL-.js";
4
+ import { _ as l } from "./index-C2icSInW.js";
5
5
  const CA = {
6
6
  async readBySettlementId(A) {
7
7
  return g(
8
- await q().get(
8
+ await Q().get(
9
9
  `/transactions/settlements/${A}`
10
10
  )
11
11
  );
12
12
  },
13
13
  async readTransactions(A) {
14
14
  return g(
15
- await q().get("/transactions", {
15
+ await Q().get("/transactions", {
16
16
  params: {
17
17
  search: A.search,
18
18
  skip: A.skip,
@@ -25,24 +25,24 @@ const CA = {
25
25
  },
26
26
  async removeTransactionFromSettlement(A) {
27
27
  return g(
28
- await q().delete(`/settlements/${A}`)
28
+ await Q().delete(`/settlements/${A}`)
29
29
  );
30
30
  },
31
31
  async refetchTransaction({
32
32
  transactionId: A
33
33
  }) {
34
34
  return g(
35
- await q().get(`/transactions/query/${A}`)
35
+ await Q().get(`/transactions/query/${A}`)
36
36
  );
37
37
  },
38
38
  async refundTransaction(A) {
39
39
  return g(
40
- await q().post("/transactions/refund", A)
40
+ await Q().post("/transactions/refund", A)
41
41
  );
42
42
  },
43
43
  async renotifyTransaction(A) {
44
44
  return g(
45
- await q().post("/payments/re-notify", { transactionId: A })
45
+ await Q().post("/payments/re-notify", { transactionId: A })
46
46
  );
47
47
  },
48
48
  async readRestaurantTransactions(A) {
@@ -77,7 +77,7 @@ const CA = {
77
77
  );
78
78
  },
79
79
  async downloadPortalTransactionReport(A, D, w = !1) {
80
- const Q = C(A.startDate), f = C(A.endDate).endOf("day"), d = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
80
+ const q = C(A.startDate), f = C(A.endDate).endOf("day"), d = ["method", "fdoAmount", "amount", "fee", "payout", "flags"];
81
81
  return w && d.push(
82
82
  "gatewayTransactionId",
83
83
  "gatewayRefundId",
@@ -85,7 +85,7 @@ const CA = {
85
85
  "settlementId",
86
86
  "settlementAt"
87
87
  ), k(D, {
88
- filename: `transaction-report-${Q.format("YYYY_MM_DD_HH:mm")}-${f.format("YYYY_MM_DD_HH:mm")}.xlsx`,
88
+ filename: `transaction-report-${q.format("YYYY_MM_DD_HH:mm")}-${f.format("YYYY_MM_DD_HH:mm")}.xlsx`,
89
89
  exclude: d,
90
90
  include: ["method.issuer", "fdoAmount.amount", "fdoAmount.currency"],
91
91
  rename: {
@@ -103,7 +103,7 @@ const CA = {
103
103
  },
104
104
  async downloadTransactionReport(A) {
105
105
  return b(
106
- await q().get("/transactions/report", {
106
+ await Q().get("/transactions/report", {
107
107
  params: {
108
108
  start: C(A.start).startOf("day").toISOString(),
109
109
  end: C(A.end).endOf("day").toISOString()
@@ -114,7 +114,6 @@ const CA = {
114
114
  }
115
115
  };
116
116
  function P(A) {
117
- var Q;
118
117
  let D = "", w = "";
119
118
  switch (!0) {
120
119
  case !!A.terminal:
@@ -146,16 +145,14 @@ function P(A) {
146
145
  ),
147
146
  refundedAt: A.refundedAt ? C(A.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
148
147
  fdoAmount: A.gatewayAmount ?? A.amount,
149
- amount: H(A.amount).toFormat("$0.00"),
150
- gatewayAmount: H(A.gatewayAmount ?? {}).toFormat("$0.00"),
151
- fee: H(A.fee).toFormat("$0.00"),
152
- payout: H(A.payout).toFormat("$0.00"),
148
+ amount: t(A.gatewayAmount ?? A.amount).toFormat("$0.00"),
149
+ fee: t(A.fee).toFormat("$0.00"),
150
+ payout: t(A.payout).toFormat("$0.00"),
153
151
  seqNumber: A == null ? void 0 : A.seqNumber,
154
152
  flags: {
155
153
  notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
156
154
  refund: A.status === "SUCCESS",
157
- query: A.payType !== "TERMINAL",
158
- isDelivery: ((Q = A.method) == null ? void 0 : Q.issuer) === "FEEDME" && A.method.variant === "DELIVERY"
155
+ query: A.payType !== "TERMINAL"
159
156
  }
160
157
  };
161
158
  }
@@ -176,7 +173,7 @@ const u = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAcHBwcIBwgJCQ
176
173
  function BA(A) {
177
174
  return e[A] || e.OTHER;
178
175
  }
179
- const t = {
176
+ const H = {
180
177
  ALIPAY: J,
181
178
  BOOST: o,
182
179
  GRABPAY: a,
@@ -215,12 +212,12 @@ const t = {
215
212
  };
216
213
  function gA(A, D) {
217
214
  if (A === l.F_PAYMENT_ISSUER.Enum.FEEDME)
218
- return t[A + "." + D] || t[A];
215
+ return H[A + "." + D] || H[A];
219
216
  const w = A.toUpperCase();
220
- for (const Q of Object.keys(O))
221
- if (w.includes(Q))
222
- return O[Q];
223
- return t[w] || t.OTHER;
217
+ for (const q of Object.keys(O))
218
+ if (w.includes(q))
219
+ return O[q];
220
+ return H[w] || H.OTHER;
224
221
  }
225
222
  export {
226
223
  gA as a,
@@ -1,4 +1,4 @@
1
- import { e as c } from "./index-Bm2MGtsS.js";
1
+ import { e as c } from "./index-CeqaPQxS.js";
2
2
  import { useCoreStore as p } from "@feedmepos/mf-common";
3
3
  import { h as n } from "./moment-h96o7c8I.js";
4
4
  const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (t, r, o) => ({
@@ -40,7 +40,7 @@ const i = "https://grafana.feedme.farm/explore?schemaVersion=1", m = (t, r, o) =
40
40
  {
41
41
  type: "resource",
42
42
  queryKey: "cluster",
43
- queryValue: "dev"
43
+ queryValue: "production"
44
44
  },
45
45
  {
46
46
  type: "resource",
@@ -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-Bm2MGtsS.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-CeqaPQxS.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,4 +1,4 @@
1
- import { j as o, k as f, c as i } from "./index-Bm2MGtsS.js";
1
+ import { j as o, k as f, c as i } from "./index-CeqaPQxS.js";
2
2
  var d = {}, O = {}, u = {};
3
3
  Object.defineProperty(u, "__esModule", { value: !0 });
4
4
  u.F_PAYMENT_TRANSACTION_GROUP = u.F_PAYMENT_TRANSACTION_STATUS = u.F_PAYMENT_GATEWAY_KEY = u.F_PAYMENT_TYPE = u.F_PAYMENT_FOR = void 0;
@@ -1,5 +1,5 @@
1
- import { f as u, b as s, g as t, h as e } from "./index-Bm2MGtsS.js";
2
- import "./index-BJaJ2nSQ.js";
1
+ import { f as u, b as s, g as t, h as e } from "./index-CeqaPQxS.js";
2
+ import "./index-C2icSInW.js";
3
3
  const r = {
4
4
  async read(a) {
5
5
  return u(