@feedmepos/mf-payment 1.6.25-dev → 1.6.27-dev

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 (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BXdAC1W-.js → Actions.vue_vue_type_script_setup_true_lang-Bwzl_cxX.js} +1 -1
  2. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CXfuWd1-.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DbOBie8s.js} +2 -2
  3. package/dist/{Chargeback-UGSLhNWz.js → Chargeback-BbEH3Y_G.js} +5 -5
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-o5l1qHMM.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BcsxIsdr.js} +1 -1
  5. package/dist/{OnboardForm-ggSB0CEE.js → OnboardForm-Bb9YjKYW.js} +591 -489
  6. package/dist/{OnboardForm-DosLGogM.js → OnboardForm-DdAQcuVP.js} +189 -179
  7. package/dist/{OnboardSubmission-g3DMFYr4.js → OnboardSubmission-BCUkTerS.js} +5 -5
  8. package/dist/{OnboardSubmission-CDgYzeg9.js → OnboardSubmission-CCKdtcm9.js} +2 -2
  9. package/dist/{PayoutAccount-C7ZJbJYP.js → PayoutAccount-BB4FABnd.js} +5 -5
  10. package/dist/{PayoutAccount-BgHua1FG.js → PayoutAccount-DWyFmSBa.js} +5 -5
  11. package/dist/{PayoutAccountSetting-DFeKBkiv.js → PayoutAccountSetting-BL67hUzD.js} +6 -6
  12. package/dist/{Restaurant-BBTq2ahl.js → Restaurant-DCSJtwU6.js} +4 -4
  13. package/dist/{RestaurantSetting-Dn0tZpFX.js → RestaurantSetting-BGaDyDys.js} +3 -3
  14. package/dist/{Settlement-D2y6M5gv.js → Settlement-DIOB9jJg.js} +3 -3
  15. package/dist/{Settlement-VGXsvWvW.js → Settlement-uF5WsLGG.js} +4 -4
  16. package/dist/{SettlementTransactions-DeFoDBDQ.js → SettlementTransactions-DVVXtgMg.js} +4 -4
  17. package/dist/{SettlementTransactions-BsfpeaH0.js → SettlementTransactions-XQzK0lZC.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-CmDbBV0F.js → Status.vue_vue_type_script_setup_true_lang-BMX1tovh.js} +1 -1
  19. package/dist/{Terminal-CHS9OZRD.js → Terminal-DOEJnX8s.js} +5 -5
  20. package/dist/{TerminalSetting-CDOwqSS3.js → TerminalSetting-CxWoXAjO.js} +4 -4
  21. package/dist/{Transaction-8rLdS1qZ.js → Transaction-CwSo9WYj.js} +10 -10
  22. package/dist/{Transaction-Ae_G2Kj4.js → Transaction-DoYcy9hE.js} +9 -9
  23. package/dist/{TransactionOld-6gmlg85J.js → TransactionOld-D-0XhJ5i.js} +7 -7
  24. package/dist/api/onboard-submission/index.d.ts +1 -0
  25. package/dist/{app-CqwmHLvs.js → app-dkgd1MWR.js} +23 -23
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-CyX9JKtd.js → assets-D0GykycT.js} +1 -1
  28. package/dist/{grafana-pRGXWclJ.js → grafana-C3X8a_Ya.js} +1 -1
  29. package/dist/{index-BTP-CDiG.js → index-BGYJM6Bc.js} +1 -1
  30. package/dist/{index-DMXRugPQ.js → index-B_3uFCLd.js} +27 -9
  31. package/dist/{index-BcqujSZn.js → index-BdnHBZLD.js} +1 -1
  32. package/dist/{index-DGYQpclt.js → index-BoX3KpRv.js} +32 -24
  33. package/dist/{index-B33Td3nm.js → index-CAGDJp3I.js} +1 -1
  34. package/dist/{index-YeihGkvn.js → index-D55DYdIu.js} +1 -1
  35. package/dist/{index-Doeg12q-.js → index-DdSDe8gD.js} +1 -1
  36. package/dist/{index-Du0fGQvY.js → index-DfBw_WqY.js} +1 -1
  37. package/dist/{index-B0EVHtoo.js → index-TWIyXiIU.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-XbaqWIt4.js → index.vue_vue_type_script_setup_true_lang-CNKfkvUm.js} +1 -1
  39. package/dist/package.json +1 -1
  40. package/dist/{payout-account-D6J50-th.js → payout-account-CAaDJkTo.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { g as r, b as n, a as s, d as m, l, c, r as I } from "./index-Du0fGQvY.js";
1
+ import { g as r, b as n, a as s, d as I, l, c, r as m } from "./index-DfBw_WqY.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -66,7 +66,7 @@ const w = {
66
66
  },
67
67
  async readRestaurantTransactions(t) {
68
68
  return r(
69
- await I().get("/transactions", {
69
+ await m().get("/transactions", {
70
70
  params: {
71
71
  v2: !0,
72
72
  start: a(t.start).startOf("day").toISOString(),
@@ -106,7 +106,10 @@ const w = {
106
106
  "fee",
107
107
  "payout",
108
108
  "flags",
109
- "businessId"
109
+ "businessId",
110
+ "callbackResponse",
111
+ "transactionId",
112
+ "gatewayAmount"
110
113
  ];
111
114
  return d && o.push(
112
115
  "gatewayTransactionId",
@@ -119,11 +122,26 @@ const w = {
119
122
  exclude: o,
120
123
  include: ["method.issuer", "fdoAmount.amount", "fdoAmount.currency"],
121
124
  rename: {
122
- "method.issuer": "method",
123
- "fdoAmount.currency": "currency",
124
- "fdoAmount.amount": "amount",
125
- seqNumber: "Bill",
126
- seqNumberBinded: "Bill Binded"
125
+ id: "Transaction ID",
126
+ payId: "Pay ID",
127
+ gatewayTransactionId: "Gateway Transaction ID",
128
+ gatewayRefundId: "Gateway Refund ID",
129
+ "method.issuer": "Method",
130
+ gateway: "Gateway",
131
+ status: "Status",
132
+ payFor: "Pay For",
133
+ source: "Source",
134
+ sourceType: "Source Type",
135
+ restaurantId: "Restaurant",
136
+ settlementId: "Settlement ID",
137
+ settlementAt: "Settlement At",
138
+ transactionAt: "Transaction At",
139
+ refundedAt: "Refunded At",
140
+ "fdoAmount.currency": "Currency",
141
+ "fdoAmount.amount": "Amount",
142
+ seqNumber: "Bill No",
143
+ seqNumberBinded: "Bill Binded",
144
+ billId: "Bill ID"
127
145
  },
128
146
  transformers: {
129
147
  gateway: (e) => e === "RAZER_MERCHANT_SERVICE" ? "FIUU" : e,
@@ -135,7 +153,7 @@ const w = {
135
153
  });
136
154
  },
137
155
  async downloadTransactionReport(t) {
138
- return m(
156
+ return I(
139
157
  await n().get("/transactions/report", {
140
158
  params: {
141
159
  start: a(t.start).startOf("day").toISOString(),
@@ -1,4 +1,4 @@
1
- import { b as a, g as t, p as r, c as i, a as s } from "./index-Du0fGQvY.js";
1
+ import { b as a, g as t, p as r, c as i, a as s } from "./index-DfBw_WqY.js";
2
2
  const m = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,14 +1,14 @@
1
- import { g as o, b as e, o as m, a as c } from "./index-Du0fGQvY.js";
2
- import { h as d } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-Doeg12q-.js";
1
+ import { g as o, b as s, o as m, a as d } from "./index-DfBw_WqY.js";
2
+ import { h as c } from "./moment-h96o7c8I.js";
3
+ import { d as b } from "./index-DdSDe8gD.js";
4
4
  async function g(t) {
5
5
  if (t.type !== "image/png") return t;
6
- const a = await p(t), s = document.createElement("canvas");
7
- s.width = a.width, s.height = a.height;
8
- const n = s.getContext("2d");
6
+ const a = await p(t), e = document.createElement("canvas");
7
+ e.width = a.width, e.height = a.height;
8
+ const n = e.getContext("2d");
9
9
  if (!n) throw new Error("Failed to get 2D canvas context");
10
10
  return n.drawImage(a, 0, 0), new Promise((i, u) => {
11
- s.toBlob((r) => {
11
+ e.toBlob((r) => {
12
12
  if (!r) {
13
13
  u(new Error("Canvas PNG export failed"));
14
14
  return;
@@ -20,30 +20,30 @@ async function g(t) {
20
20
  });
21
21
  }
22
22
  function p(t) {
23
- return new Promise((a, s) => {
23
+ return new Promise((a, e) => {
24
24
  const n = new Image();
25
25
  n.onload = () => {
26
26
  URL.revokeObjectURL(n.src), a(n);
27
27
  }, n.onerror = () => {
28
- URL.revokeObjectURL(n.src), s(new Error("Failed to load image from File"));
28
+ URL.revokeObjectURL(n.src), e(new Error("Failed to load image from File"));
29
29
  }, n.src = URL.createObjectURL(t);
30
30
  });
31
31
  }
32
32
  const $ = {
33
33
  async read(t) {
34
- return c(
35
- await e().get("/payments/onboard-submissions", {
34
+ return d(
35
+ await s().get("/payments/onboard-submissions", {
36
36
  params: { ...t }
37
37
  })
38
38
  );
39
39
  },
40
40
  async readById(t) {
41
41
  return o(
42
- await e().get(`/payments/onboard-submissions/${t}`)
42
+ await s().get(`/payments/onboard-submissions/${t}`)
43
43
  );
44
44
  },
45
45
  async previewDocument(t) {
46
- const a = await e().get(
46
+ const a = await s().get(
47
47
  `payments/onboard-submissions/${t}/document`,
48
48
  { responseType: "blob" }
49
49
  );
@@ -51,61 +51,69 @@ const $ = {
51
51
  },
52
52
  async sendDocument(t) {
53
53
  return o(
54
- await e().post(
54
+ await s().post(
55
55
  `payments/onboard-submissions/${t}/send`
56
56
  )
57
57
  );
58
58
  },
59
59
  async reviewById(t, a) {
60
60
  return o(
61
- await e().put(
61
+ await s().put(
62
62
  `/payments/onboard-submissions/${t}`,
63
63
  a
64
64
  )
65
65
  );
66
66
  },
67
+ async addAdditionalDocuments(t, a) {
68
+ return o(
69
+ await s().post(
70
+ `/payments/onboard-submissions/${t}/additional-documents`,
71
+ { documents: a }
72
+ )
73
+ );
74
+ },
67
75
  async getById(t, a) {
68
76
  return o(
69
- await e().get(
77
+ await s().get(
70
78
  `restaurants/${a}/onboard-submissions/${t}`
71
79
  )
72
80
  );
73
81
  },
74
82
  async getByRestaurant(t) {
75
83
  return o(
76
- await e().get(
84
+ await s().get(
77
85
  `restaurants/${t}/onboard-submissions`
78
86
  )
79
87
  );
80
88
  },
81
89
  async getOnboardSubmissionTyroAuthUrl(t) {
82
90
  return o(
83
- await e().get(
91
+ await s().get(
84
92
  `restaurants/${t}/onboard-submissions/tyro/auth`
85
93
  )
86
94
  );
87
95
  },
88
96
  async getTyroLocations(t) {
89
97
  return o(
90
- await e().get(
98
+ await s().get(
91
99
  `restaurants/${t}/onboard-submissions/tyro/locations`
92
100
  )
93
101
  );
94
102
  },
95
103
  async bindTyroLocation(t, a) {
96
104
  return o(
97
- await e().put(
105
+ await s().put(
98
106
  `restaurants/${t}/onboard-submissions/tyro/location`,
99
107
  a
100
108
  )
101
109
  );
102
110
  },
103
- async uploadDocument(t, a, s) {
111
+ async uploadDocument(t, a, e) {
104
112
  var r;
105
- const n = (r = s.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
113
+ const n = (r = e.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
106
114
  if (!n)
107
115
  throw new Error("Unable to determine file extension from filename");
108
- const i = n === "png" ? await g(s) : s, u = d().toISOString();
116
+ const i = n === "png" ? await g(e) : e, u = c().toISOString();
109
117
  return await b.upload(
110
118
  `restaurant/${t}/documents/${a}/${u}.${n}`,
111
119
  i,
@@ -114,7 +122,7 @@ const $ = {
114
122
  },
115
123
  async updateSubmission(t) {
116
124
  return o(
117
- await e().put(
125
+ await s().put(
118
126
  `restaurants/${t.restaurantId}/onboard-submissions`,
119
127
  t
120
128
  )
@@ -1,4 +1,4 @@
1
- import { a as s, b as e, g as r } from "./index-Du0fGQvY.js";
1
+ import { a as s, b as e, g as r } from "./index-DfBw_WqY.js";
2
2
  const i = {
3
3
  async readRestaurantById(a) {
4
4
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,4 +1,4 @@
1
- import { g as o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-Du0fGQvY.js";
1
+ import { g as o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-DfBw_WqY.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, r) {
@@ -1,4 +1,4 @@
1
- import { b as r, c as p } from "./index-Du0fGQvY.js";
1
+ import { b as r, c as p } from "./index-DfBw_WqY.js";
2
2
  const i = {
3
3
  async upload(e, s, t) {
4
4
  const o = (await p().post("/document/presign", {
@@ -1,4 +1,4 @@
1
- import { w as V, x as nR, v as rR } from "./app-CqwmHLvs.js";
1
+ import { w as V, x as nR, v as rR } from "./app-dkgd1MWR.js";
2
2
  import { useCoreStore as Bu } from "@feedmepos/mf-common";
3
3
  import { ref as iR } from "vue";
4
4
  var gh = {}, il = {}, y = {}, ah = {}, Vm = {}, Hm = {}, Oc = {};
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, c as u, a as e } from "./index-Du0fGQvY.js";
1
+ import { g as n, b as s, c as u, a as e } from "./index-DfBw_WqY.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as q, ref as r, resolveComponent as f, openBlock as g, createBlock as z, withCtx as I, createElementVNode as i, normalizeStyle as E, createElementBlock as M, Fragment as N, renderList as O, createVNode as c, computed as _, watch as L, onMounted as R, unref as D, toDisplayString as B, createCommentVNode as G, nextTick as H, normalizeClass as J } from "vue";
2
- import { u as K } from "./index-Du0fGQvY.js";
2
+ import { u as K } from "./index-DfBw_WqY.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const Q = ["id"], U = /* @__PURE__ */ q({
5
5
  __name: "FmTableSelection",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.6.25-dev",
3
+ "version": "1.6.27-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
- import { p as E, B as st } from "./index-Du0fGQvY.js";
2
- import { v as it, w as at, _ as ut } from "./app-CqwmHLvs.js";
1
+ import { p as E, B as st } from "./index-DfBw_WqY.js";
2
+ import { v as it, w as at, _ as ut } from "./app-dkgd1MWR.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-Doeg12q-.js";
4
+ import { d as H } from "./index-DdSDe8gD.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {