@feedmepos/mf-payment 1.6.26-dev → 1.6.28-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-iXqW5wLW.js → Actions.vue_vue_type_script_setup_true_lang-B4ZiwdN0.js} +1 -1
  2. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CYtvX7so.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-B_Ijdnd4.js} +2 -2
  3. package/dist/{Chargeback-BGe5XDl_.js → Chargeback-YmbARhKg.js} +5 -5
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CdKtDipZ.js} +1 -1
  5. package/dist/{OnboardForm-C3Fr7gLX.js → OnboardForm-CcrB3E8X.js} +591 -489
  6. package/dist/{OnboardForm-BnhW72k-.js → OnboardForm-DHgdxxqe.js} +189 -179
  7. package/dist/{OnboardSubmission-Dim4WQjJ.js → OnboardSubmission-CtitCQsu.js} +2 -2
  8. package/dist/{OnboardSubmission-Da4ddkN6.js → OnboardSubmission-DKdaX9rF.js} +5 -5
  9. package/dist/{PayoutAccount-Ckw1l_qj.js → PayoutAccount-CXeBK1AX.js} +5 -5
  10. package/dist/{PayoutAccount-CtPL_D_S.js → PayoutAccount-DTx2LcLp.js} +5 -5
  11. package/dist/{PayoutAccountSetting-DAt-NWWK.js → PayoutAccountSetting-B1X-UvJK.js} +6 -6
  12. package/dist/{Restaurant-3onCdWrc.js → Restaurant-CIBbX8G3.js} +4 -4
  13. package/dist/{RestaurantSetting-BJ5P9d8A.js → RestaurantSetting-D7ICl_qP.js} +3 -3
  14. package/dist/{Settlement-Cb2hQdZF.js → Settlement-BI-VTPxv.js} +4 -4
  15. package/dist/{Settlement-DuXn-xyR.js → Settlement-CdWL_ETb.js} +3 -3
  16. package/dist/{SettlementTransactions-Cl8C5O0J.js → SettlementTransactions-Cu-BYmgZ.js} +4 -4
  17. package/dist/{SettlementTransactions-igk5fdWl.js → SettlementTransactions-CuG_0cWP.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js → Status.vue_vue_type_script_setup_true_lang-D3s5zsYW.js} +1 -1
  19. package/dist/{Terminal-DMOhtME8.js → Terminal-Btv6-BKv.js} +5 -5
  20. package/dist/{TerminalSetting-BzL7K-uH.js → TerminalSetting-BOfwlpzm.js} +4 -4
  21. package/dist/{Transaction-D7uX4qHQ.js → Transaction-BlX2YbA7.js} +9 -9
  22. package/dist/{Transaction-DfKVD6f1.js → Transaction-DPsf-VDH.js} +10 -10
  23. package/dist/{TransactionOld-D_JU2_mR.js → TransactionOld-BNF36cu2.js} +7 -7
  24. package/dist/api/onboard-submission/index.d.ts +1 -0
  25. package/dist/{app-Bezc2BFB.js → app-B5iKjZWK.js} +23 -23
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-D3BP5M_A.js → assets-Cc2Vi-Gl.js} +1 -1
  28. package/dist/{grafana-BbjqeSUV.js → grafana-CfwAikn_.js} +1 -1
  29. package/dist/{index-Bv2sHRuG.js → index-1LtOZdzT.js} +1 -1
  30. package/dist/{index-ZhbF97Tm.js → index-BAlPThXB.js} +1 -1
  31. package/dist/{index-BoZvRGNb.js → index-BXA_Sb3P.js} +1 -1
  32. package/dist/{index-pOLLwiKx.js → index-BrB06b4G.js} +1 -1
  33. package/dist/{index-B46LoJuc.js → index-C-7E5sGo.js} +1 -1
  34. package/dist/{index-Agw94979.js → index-C64vpG3g.js} +1 -1
  35. package/dist/{index-BbMFtfU9.js → index-CfsT_RZU.js} +1 -1
  36. package/dist/{index-C4VQgcNt.js → index-Ckm19Rq6.js} +32 -24
  37. package/dist/{index-da9XXOQN.js → index-DZmqReyr.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-B79Nwx5o.js → index.vue_vue_type_script_setup_true_lang-Dw0Sdf8S.js} +1 -1
  39. package/dist/package.json +1 -1
  40. package/dist/{payout-account-Do9T9GvQ.js → payout-account-BfxGH_xZ.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 o, c as m, b as s, d as l, l as c, f as d, h as y } from "./index-Agw94979.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-C64vpG3g.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 { w as V, x as nR, v as rR } from "./app-Bezc2BFB.js";
1
+ import { w as V, x as nR, v as rR } from "./app-B5iKjZWK.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 { a as s, b as e, g as r } from "./index-Agw94979.js";
1
+ import { a as s, b as e, g as r } from "./index-C64vpG3g.js";
2
2
  const i = {
3
3
  async readRestaurantById(a) {
4
4
  const t = await e().get(`/payments/restaurants/${a}`);
@@ -1,14 +1,14 @@
1
- import { g as o, b as e, o as m, a as c } from "./index-Agw94979.js";
2
- import { h as d } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-ZhbF97Tm.js";
1
+ import { g as o, b as s, o as m, a as d } from "./index-C64vpG3g.js";
2
+ import { h as c } from "./moment-h96o7c8I.js";
3
+ import { d as b } from "./index-BAlPThXB.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,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 { v as y } from "./app-Bezc2BFB.js";
3
+ import { v as y } from "./app-B5iKjZWK.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -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-Agw94979.js";
2
+ import { u as K } from "./index-C64vpG3g.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.26-dev",
3
+ "version": "1.6.28-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-Agw94979.js";
2
- import { v as it, w as at, _ as ut } from "./app-Bezc2BFB.js";
1
+ import { p as E, B as st } from "./index-C64vpG3g.js";
2
+ import { v as it, w as at, _ as ut } from "./app-B5iKjZWK.js";
3
3
  import { useCoreStore as ot } from "@feedmepos/mf-common";
4
- import { d as H } from "./index-ZhbF97Tm.js";
4
+ import { d as H } from "./index-BAlPThXB.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {