@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.
- 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
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CXfuWd1-.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DbOBie8s.js} +2 -2
- package/dist/{Chargeback-UGSLhNWz.js → Chargeback-BbEH3Y_G.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-o5l1qHMM.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BcsxIsdr.js} +1 -1
- package/dist/{OnboardForm-ggSB0CEE.js → OnboardForm-Bb9YjKYW.js} +591 -489
- package/dist/{OnboardForm-DosLGogM.js → OnboardForm-DdAQcuVP.js} +189 -179
- package/dist/{OnboardSubmission-g3DMFYr4.js → OnboardSubmission-BCUkTerS.js} +5 -5
- package/dist/{OnboardSubmission-CDgYzeg9.js → OnboardSubmission-CCKdtcm9.js} +2 -2
- package/dist/{PayoutAccount-C7ZJbJYP.js → PayoutAccount-BB4FABnd.js} +5 -5
- package/dist/{PayoutAccount-BgHua1FG.js → PayoutAccount-DWyFmSBa.js} +5 -5
- package/dist/{PayoutAccountSetting-DFeKBkiv.js → PayoutAccountSetting-BL67hUzD.js} +6 -6
- package/dist/{Restaurant-BBTq2ahl.js → Restaurant-DCSJtwU6.js} +4 -4
- package/dist/{RestaurantSetting-Dn0tZpFX.js → RestaurantSetting-BGaDyDys.js} +3 -3
- package/dist/{Settlement-D2y6M5gv.js → Settlement-DIOB9jJg.js} +3 -3
- package/dist/{Settlement-VGXsvWvW.js → Settlement-uF5WsLGG.js} +4 -4
- package/dist/{SettlementTransactions-DeFoDBDQ.js → SettlementTransactions-DVVXtgMg.js} +4 -4
- package/dist/{SettlementTransactions-BsfpeaH0.js → SettlementTransactions-XQzK0lZC.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CmDbBV0F.js → Status.vue_vue_type_script_setup_true_lang-BMX1tovh.js} +1 -1
- package/dist/{Terminal-CHS9OZRD.js → Terminal-DOEJnX8s.js} +5 -5
- package/dist/{TerminalSetting-CDOwqSS3.js → TerminalSetting-CxWoXAjO.js} +4 -4
- package/dist/{Transaction-8rLdS1qZ.js → Transaction-CwSo9WYj.js} +10 -10
- package/dist/{Transaction-Ae_G2Kj4.js → Transaction-DoYcy9hE.js} +9 -9
- package/dist/{TransactionOld-6gmlg85J.js → TransactionOld-D-0XhJ5i.js} +7 -7
- package/dist/api/onboard-submission/index.d.ts +1 -0
- package/dist/{app-CqwmHLvs.js → app-dkgd1MWR.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-CyX9JKtd.js → assets-D0GykycT.js} +1 -1
- package/dist/{grafana-pRGXWclJ.js → grafana-C3X8a_Ya.js} +1 -1
- package/dist/{index-BTP-CDiG.js → index-BGYJM6Bc.js} +1 -1
- package/dist/{index-DMXRugPQ.js → index-B_3uFCLd.js} +27 -9
- package/dist/{index-BcqujSZn.js → index-BdnHBZLD.js} +1 -1
- package/dist/{index-DGYQpclt.js → index-BoX3KpRv.js} +32 -24
- package/dist/{index-B33Td3nm.js → index-CAGDJp3I.js} +1 -1
- package/dist/{index-YeihGkvn.js → index-D55DYdIu.js} +1 -1
- package/dist/{index-Doeg12q-.js → index-DdSDe8gD.js} +1 -1
- package/dist/{index-Du0fGQvY.js → index-DfBw_WqY.js} +1 -1
- package/dist/{index-B0EVHtoo.js → index-TWIyXiIU.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-XbaqWIt4.js → index.vue_vue_type_script_setup_true_lang-CNKfkvUm.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-D6J50-th.js → payout-account-CAaDJkTo.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as r, b as n, a as s, d as
|
|
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
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
|
156
|
+
return I(
|
|
139
157
|
await n().get("/transactions/report", {
|
|
140
158
|
params: {
|
|
141
159
|
start: a(t.start).startOf("day").toISOString(),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { g as o, b as
|
|
2
|
-
import { h as
|
|
3
|
-
import { d as b } from "./index-
|
|
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),
|
|
7
|
-
|
|
8
|
-
const n =
|
|
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
|
-
|
|
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,
|
|
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),
|
|
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
|
|
35
|
-
await
|
|
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
|
|
42
|
+
await s().get(`/payments/onboard-submissions/${t}`)
|
|
43
43
|
);
|
|
44
44
|
},
|
|
45
45
|
async previewDocument(t) {
|
|
46
|
-
const a = await
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
111
|
+
async uploadDocument(t, a, e) {
|
|
104
112
|
var r;
|
|
105
|
-
const n = (r =
|
|
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(
|
|
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
|
|
125
|
+
await s().put(
|
|
118
126
|
`restaurants/${t.restaurantId}/onboard-submissions`,
|
|
119
127
|
t
|
|
120
128
|
)
|
|
@@ -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-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 { w as V, x as nR, v as rR } from "./app-
|
|
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,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-
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import { p as E, B as st } from "./index-
|
|
2
|
-
import { v as it, w as at, _ as ut } from "./app-
|
|
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-
|
|
4
|
+
import { d as H } from "./index-DdSDe8gD.js";
|
|
5
5
|
var Q = { exports: {} };
|
|
6
6
|
(function(i, a) {
|
|
7
7
|
(function(t, m) {
|