@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
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-YY9yj-vq.js";
1
+ import { h as e, i as r, f as o } from "./app-BfnnIbRB.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-CGg0eJIr.js";
1
+ import { g, b as q, r as c, h as E, l as k, i as b } from "./index-Bm2MGtsS.js";
2
2
  import { h as C } from "./moment-h96o7c8I.js";
3
- import { d as t } from "./dinero-CIVmXLL-.js";
4
- import { _ as l } from "./index-F2ifB2oW.js";
3
+ import { d as H } from "./dinero-CIVmXLL-.js";
4
+ import { _ as l } from "./index-BJaJ2nSQ.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,6 +114,7 @@ const CA = {
114
114
  }
115
115
  };
116
116
  function P(A) {
117
+ var Q;
117
118
  let D = "", w = "";
118
119
  switch (!0) {
119
120
  case !!A.terminal:
@@ -145,14 +146,16 @@ function P(A) {
145
146
  ),
146
147
  refundedAt: A.refundedAt ? C(A.refundedAt).format("YYYY-MM-DD HH:mm:ss") : "",
147
148
  fdoAmount: A.gatewayAmount ?? A.amount,
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"),
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"),
151
153
  seqNumber: A == null ? void 0 : A.seqNumber,
152
154
  flags: {
153
155
  notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
154
156
  refund: A.status === "SUCCESS",
155
- query: A.payType !== "TERMINAL"
157
+ query: A.payType !== "TERMINAL",
158
+ isDelivery: ((Q = A.method) == null ? void 0 : Q.issuer) === "FEEDME" && A.method.variant === "DELIVERY"
156
159
  }
157
160
  };
158
161
  }
@@ -173,7 +176,7 @@ const u = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAcHBwcIBwgJCQ
173
176
  function BA(A) {
174
177
  return e[A] || e.OTHER;
175
178
  }
176
- const H = {
179
+ const t = {
177
180
  ALIPAY: J,
178
181
  BOOST: o,
179
182
  GRABPAY: a,
@@ -212,12 +215,12 @@ const H = {
212
215
  };
213
216
  function gA(A, D) {
214
217
  if (A === l.F_PAYMENT_ISSUER.Enum.FEEDME)
215
- return H[A + "." + D] || H[A];
218
+ return t[A + "." + D] || t[A];
216
219
  const w = A.toUpperCase();
217
- for (const q of Object.keys(O))
218
- if (w.includes(q))
219
- return O[q];
220
- return H[w] || H.OTHER;
220
+ for (const Q of Object.keys(O))
221
+ if (w.includes(Q))
222
+ return O[Q];
223
+ return t[w] || t.OTHER;
221
224
  }
222
225
  export {
223
226
  gA as a,
@@ -1,4 +1,4 @@
1
- import { e as c } from "./index-CGg0eJIr.js";
1
+ import { e as c } from "./index-Bm2MGtsS.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: "production"
43
+ queryValue: "dev"
44
44
  },
45
45
  {
46
46
  type: "resource",
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-CGg0eJIr.js";
1
+ import { b as r, g as e } from "./index-Bm2MGtsS.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,4 +1,4 @@
1
- import { f as s, b as t, g as a, h as r, p as i } from "./index-CGg0eJIr.js";
1
+ import { f as s, b as t, g as a, h as r, p as i } from "./index-Bm2MGtsS.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { j as o, k as f, c as i } from "./index-CGg0eJIr.js";
1
+ import { j as o, k as f, c as i } from "./index-Bm2MGtsS.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,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { d as y } from "./index-CGg0eJIr.js";
3
+ import { d as y } from "./index-Bm2MGtsS.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {