@feedmepos/mf-payment 1.6.13-dev → 1.6.14
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.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-CRy-UQpe.js → Actions.vue_vue_type_script_setup_true_lang-BbupZw1S.js} +1 -1
- package/dist/{Chargeback-Cg9Xe6iD.js → Chargeback-CH62eRr_.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CiqJxutL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CvEPKQ0P.js} +1 -1
- package/dist/{OnboardForm-mETWu1dk.js → OnboardForm-9i4mWOkj.js} +110 -108
- package/dist/{OnboardForm-DQBU7D0V.js → OnboardForm-D4tAciGg.js} +5 -5
- package/dist/{OnboardSubmission-DhR5UmjI.js → OnboardSubmission-BKE-jyhM.js} +2 -2
- package/dist/{OnboardSubmission-CdAKhGo2.js → OnboardSubmission-BtO11-Vy.js} +5 -5
- package/dist/{PayoutAccount-z4BGvlhv.js → PayoutAccount-BDzARnwG.js} +5 -5
- package/dist/{PayoutAccount-DTUZj1yi.js → PayoutAccount-xZMMTE5R.js} +5 -5
- package/dist/{PayoutAccountSetting-DHaTKlRM.js → PayoutAccountSetting-DFIqcSlu.js} +6 -6
- package/dist/{Restaurant-Bzz0qnnj.js → Restaurant-DWYMTg18.js} +4 -4
- package/dist/{RestaurantSetting-BvAl6Vo-.js → RestaurantSetting-B25lPqst.js} +3 -3
- package/dist/{Settlement-CPB3Cojm.js → Settlement-DlJKneyT.js} +4 -4
- package/dist/{Settlement-DBhzPPJS.js → Settlement-rzZORV84.js} +3 -3
- package/dist/{SettlementTransactions-BsOGpbtn.js → SettlementTransactions-DWpJIH4s.js} +4 -4
- package/dist/{SettlementTransactions-BwSrt1vA.js → SettlementTransactions-OSBpoxw_.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BSX8ZhuG.js → Status.vue_vue_type_script_setup_true_lang-BNscDlcd.js} +1 -1
- package/dist/{Terminal-CzM77vSF.js → Terminal-DjEQpxj4.js} +5 -5
- package/dist/{TerminalSetting-DtmOsDl0.js → TerminalSetting-DO6syZO5.js} +4 -4
- package/dist/Transaction-CzoPy5qa.js +582 -0
- package/dist/{Transaction-DBh0KtR-.js → Transaction-DO68HCWp.js} +10 -10
- package/dist/{TransactionOld-CAORQJw2.js → TransactionOld-BKDnzB5S.js} +7 -7
- package/dist/{app-D4_0cKed.js → app-Bcxqj_xd.js} +171 -180
- package/dist/app.js +1 -1
- package/dist/{assets-BEqu4LTS.js → assets-DOR97q0X.js} +1 -2
- package/dist/{grafana-BC92XSGj.js → grafana-CTgUNGa5.js} +1 -1
- package/dist/helpers/sanitizePng.d.ts +12 -0
- package/dist/{index-2pJ6aK3N.js → index-A2eppeA0.js} +1 -1
- package/dist/{index-DyFv4ofl.js → index-B9eVTdgc.js} +1 -1
- package/dist/{index-C-K9TPBG.js → index-BA7xVCY-.js} +1 -1
- package/dist/{index-9bLqrnE-.js → index-BdSuJKDq.js} +1 -1
- package/dist/{index-B4BQXToQ.js → index-BfGA2vXi.js} +1 -1
- package/dist/{index-DqZVPkHG.js → index-CaP3EO_J.js} +1 -1
- package/dist/index-CeOY59jv.js +126 -0
- package/dist/{index-lJgQkdhr.js → index-Dg5-nE86.js} +1 -1
- package/dist/{index-Vzwov74c.js → index-GtjM0xay.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dh_I8dOY.js → index.vue_vue_type_script_setup_true_lang-CQ975gYe.js} +1 -1
- package/dist/model/transaction.d.ts +0 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-D5UsGVu2.js → payout-account-Bfm4aZhV.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Transaction-B1Hw-Qs-.js +0 -636
- package/dist/index-BBSrL5Hb.js +0 -97
- package/dist/views/admin/transaction/TransactionMetadataDialog.vue.d.ts +0 -5
package/dist/app.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as Q } from "./index-
|
|
1
|
+
import { p as Q } from "./index-BA7xVCY-.js";
|
|
2
2
|
import { d as w } from "./dinero-CIVmXLL-.js";
|
|
3
3
|
import { h as V } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { defineComponent as c, resolveComponent as R, openBlock as l, createBlock as L, normalizeClass as T, withCtx as z, createElementVNode as p, toDisplayString as r } from "vue";
|
|
@@ -47,7 +47,6 @@ function k(A) {
|
|
|
47
47
|
billId: A == null ? void 0 : A.billId,
|
|
48
48
|
seqNumber: A == null ? void 0 : A.seqNumber,
|
|
49
49
|
seqNumberBinded: (A == null ? void 0 : A.seqNumberBinded) ?? !1,
|
|
50
|
-
callbackResponse: A.callbackResponse,
|
|
51
50
|
flags: {
|
|
52
51
|
notify: A.status === "SUCCESS" && !!A.notifyUrl && A._id.length > 6,
|
|
53
52
|
refund: A.status === "SUCCESS",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as c } from "./index-
|
|
1
|
+
import { e as c } from "./index-BA7xVCY-.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 = (o, r, t) => ({
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-encode PNG images to non-interlaced format using the Canvas API.
|
|
3
|
+
*
|
|
4
|
+
* gopdf (our Go PDF generator) does not support Adam7 interlacing.
|
|
5
|
+
* Drawing any image to a canvas and exporting it as PNG always produces
|
|
6
|
+
* a non-interlaced PNG, so this is a lightweight client-side fix.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Convert a PNG File into a non-interlaced PNG File using an off-screen canvas.
|
|
10
|
+
* Non-PNG files are returned unchanged.
|
|
11
|
+
*/
|
|
12
|
+
export declare function sanitizePngFile(file: File): Promise<File>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as V, a as nR, g as rR } from "./app-
|
|
1
|
+
import { c as V, a as nR, g as rR } from "./app-Bcxqj_xd.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 e, a as o, d as m, l, c as i, r as f } from "./index-
|
|
1
|
+
import { g as n, b as e, a as o, d as m, l, c as i, r as f } from "./index-BA7xVCY-.js";
|
|
2
2
|
import { h as a } from "./moment-h96o7c8I.js";
|
|
3
3
|
const w = {
|
|
4
4
|
async readBySettlementId(t) {
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { g as o, b as e, o as m, a as c } from "./index-BA7xVCY-.js";
|
|
2
|
+
import { h as d } from "./moment-h96o7c8I.js";
|
|
3
|
+
import { d as b } from "./index-CaP3EO_J.js";
|
|
4
|
+
async function g(t) {
|
|
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");
|
|
9
|
+
if (!n) throw new Error("Failed to get 2D canvas context");
|
|
10
|
+
return n.drawImage(a, 0, 0), new Promise((i, u) => {
|
|
11
|
+
s.toBlob((r) => {
|
|
12
|
+
if (!r) {
|
|
13
|
+
u(new Error("Canvas PNG export failed"));
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
i(
|
|
17
|
+
new File([r], t.name, { type: "image/png", lastModified: t.lastModified })
|
|
18
|
+
);
|
|
19
|
+
}, "image/png");
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function p(t) {
|
|
23
|
+
return new Promise((a, s) => {
|
|
24
|
+
const n = new Image();
|
|
25
|
+
n.onload = () => {
|
|
26
|
+
URL.revokeObjectURL(n.src), a(n);
|
|
27
|
+
}, n.onerror = () => {
|
|
28
|
+
URL.revokeObjectURL(n.src), s(new Error("Failed to load image from File"));
|
|
29
|
+
}, n.src = URL.createObjectURL(t);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
const $ = {
|
|
33
|
+
async read(t) {
|
|
34
|
+
return c(
|
|
35
|
+
await e().get("/payments/onboard-submissions", {
|
|
36
|
+
params: { ...t }
|
|
37
|
+
})
|
|
38
|
+
);
|
|
39
|
+
},
|
|
40
|
+
async readById(t) {
|
|
41
|
+
return o(
|
|
42
|
+
await e().get(`/payments/onboard-submissions/${t}`)
|
|
43
|
+
);
|
|
44
|
+
},
|
|
45
|
+
async previewDocument(t) {
|
|
46
|
+
const a = await e().get(
|
|
47
|
+
`payments/onboard-submissions/${t}/document`,
|
|
48
|
+
{ responseType: "blob" }
|
|
49
|
+
);
|
|
50
|
+
m(a.data);
|
|
51
|
+
},
|
|
52
|
+
async sendDocument(t) {
|
|
53
|
+
return o(
|
|
54
|
+
await e().post(
|
|
55
|
+
`payments/onboard-submissions/${t}/send`
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
},
|
|
59
|
+
async reviewById(t, a) {
|
|
60
|
+
return o(
|
|
61
|
+
await e().put(
|
|
62
|
+
`/payments/onboard-submissions/${t}`,
|
|
63
|
+
a
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
},
|
|
67
|
+
async getById(t, a) {
|
|
68
|
+
return o(
|
|
69
|
+
await e().get(
|
|
70
|
+
`restaurants/${a}/onboard-submissions/${t}`
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
},
|
|
74
|
+
async getByRestaurant(t) {
|
|
75
|
+
return o(
|
|
76
|
+
await e().get(
|
|
77
|
+
`restaurants/${t}/onboard-submissions`
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
async getOnboardSubmissionTyroAuthUrl(t) {
|
|
82
|
+
return o(
|
|
83
|
+
await e().get(
|
|
84
|
+
`restaurants/${t}/onboard-submissions/tyro/auth`
|
|
85
|
+
)
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
async getTyroLocations(t) {
|
|
89
|
+
return o(
|
|
90
|
+
await e().get(
|
|
91
|
+
`restaurants/${t}/onboard-submissions/tyro/locations`
|
|
92
|
+
)
|
|
93
|
+
);
|
|
94
|
+
},
|
|
95
|
+
async bindTyroLocation(t, a) {
|
|
96
|
+
return o(
|
|
97
|
+
await e().put(
|
|
98
|
+
`restaurants/${t}/onboard-submissions/tyro/location`,
|
|
99
|
+
a
|
|
100
|
+
)
|
|
101
|
+
);
|
|
102
|
+
},
|
|
103
|
+
async uploadDocument(t, a, s) {
|
|
104
|
+
var r;
|
|
105
|
+
const n = (r = s.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
|
|
106
|
+
if (!n)
|
|
107
|
+
throw new Error("Unable to determine file extension from filename");
|
|
108
|
+
const i = n === "png" ? await g(s) : s, u = d().toISOString();
|
|
109
|
+
return await b.upload(
|
|
110
|
+
`restaurant/${t}/documents/${a}/${u}.${n}`,
|
|
111
|
+
i,
|
|
112
|
+
t
|
|
113
|
+
);
|
|
114
|
+
},
|
|
115
|
+
async updateSubmission(t) {
|
|
116
|
+
return o(
|
|
117
|
+
await e().put(
|
|
118
|
+
`restaurants/${t.restaurantId}/onboard-submissions`,
|
|
119
|
+
t
|
|
120
|
+
)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export {
|
|
125
|
+
$ as o
|
|
126
|
+
};
|
|
@@ -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-
|
|
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-BA7xVCY-.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as U, ref as r, resolveComponent as f, openBlock as g, createBlock as S, withCtx as z, createElementVNode as s, normalizeStyle as j, createElementBlock as B, Fragment as N, renderList as E, createVNode as c, computed as _, watch as I, onMounted as O, unref as C, toDisplayString as D, createCommentVNode as R, nextTick as G, normalizeClass as H } from "vue";
|
|
2
|
-
import { u as J } from "./index-
|
|
2
|
+
import { u as J } from "./index-BA7xVCY-.js";
|
|
3
3
|
import "@feedmepos/ui-library";
|
|
4
4
|
const K = ["id"], L = /* @__PURE__ */ U({
|
|
5
5
|
__name: "FmTableSelection",
|
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as E, B as st } from "./index-
|
|
2
|
-
import { g as it, c as at, _ as ut } from "./app-
|
|
1
|
+
import { p as E, B as st } from "./index-BA7xVCY-.js";
|
|
2
|
+
import { g as it, c as at, _ as ut } from "./app-Bcxqj_xd.js";
|
|
3
3
|
import { useCoreStore as ot } from "@feedmepos/mf-common";
|
|
4
|
-
import { d as H } from "./index-
|
|
4
|
+
import { d as H } from "./index-CaP3EO_J.js";
|
|
5
5
|
var Q = { exports: {} };
|
|
6
6
|
(function(i, a) {
|
|
7
7
|
(function(t, m) {
|