@feedmepos/mf-payment 1.4.21 → 1.4.22
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-CXzcR3lA.js → Actions.vue_vue_type_script_setup_true_lang-BznH1pCi.js} +1 -1
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js +47 -0
- package/dist/Chargeback-BpseIbPa.js +413 -0
- package/dist/{OnboardForm-DRTeMI32.js → OnboardForm-BXHZmJj5.js} +2 -2
- package/dist/{OnboardForm-BHT2IaUt.js → OnboardForm-C-JdvBrY.js} +2 -2
- package/dist/{OnboardSubmission-D_T1RJQH.js → OnboardSubmission-BK4RvKJr.js} +1 -1
- package/dist/{OnboardSubmission-LNBKTrDd.js → OnboardSubmission-DcwpUkU-.js} +1 -1
- package/dist/{PayoutAccount-t-t5ndKZ.js → PayoutAccount-C2yxr8pq.js} +1 -1
- package/dist/{PayoutAccount-DqLL0Lc0.js → PayoutAccount-CUa_V1sD.js} +3 -3
- package/dist/{Restaurant-ZTbhEMio.js → Restaurant-CCaYPuWH.js} +1 -1
- package/dist/{Settlement-CqZSTDvu.js → Settlement-BQNJSUCM.js} +1 -1
- package/dist/{Settlement-CR8qyWus.js → Settlement-BU-jCEbB.js} +1 -1
- package/dist/{SettlementTransactions-C9jYK2Ne.js → SettlementTransactions-BRFWqc84.js} +6 -5
- package/dist/{SettlementTransactions-BX1D315E.js → SettlementTransactions-Byo3zJE4.js} +4 -3
- package/dist/{Transaction-NaM-tip2.js → Transaction-BXHr-OfI.js} +5 -4
- package/dist/{Transaction-8hEjSIV1.js → Transaction-BjjC70YL.js} +9 -8
- package/dist/{TransactionOld-Qhbe5ao8.js → TransactionOld-BxLREYPj.js} +23 -22
- package/dist/api/transaction/index.d.ts +17 -0
- package/dist/{app-CDr59oLf.js → app-D97DD4SS.js} +73 -65
- package/dist/app.js +1 -1
- package/dist/{assets-BGs9zWOF.js → assets-fhkvhIzG.js} +88 -203
- package/dist/components/AutoCopyCell.vue.d.ts +4 -0
- package/dist/index-73aaBilo.js +145 -0
- package/dist/{index-DhUIX6ww.js → index-B1sLSRQi.js} +1 -1
- package/dist/model/chargeback.d.ts +24 -0
- package/dist/package.json +1 -1
- package/dist/{payout-account-D91l85XC.js → payout-account-qOjbJ1zZ.js} +2 -2
- package/dist/{plugins-Cyj2wAwo.js → plugins-Bcb2Wq18.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/chargeback/Chargeback.vue.d.ts +2 -0
- package/dist/views/admin/chargeback/CreateChargebackDialog.vue.d.ts +2 -0
- package/dist/views/admin/chargeback/UpdateChargebackDialog.vue.d.ts +6 -0
- package/dist/views/admin/chargeback/cell/Actions.vue.d.ts +8 -0
- package/package.json +1 -1
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js +0 -40
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as $, Fragment as q, unref as t, createBlock as D, createCommentVNode as w, withCtx as K, createVNode as _, renderList as Q, createElementVNode as V, isRef as N, h as k } from "vue";
|
|
2
|
-
import { t as C
|
|
2
|
+
import { t as C } from "./index-73aaBilo.js";
|
|
3
3
|
import { h as O } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useI18n as G, useCoreStore as j } from "@feedmepos/mf-common";
|
|
5
|
-
import { _ as
|
|
5
|
+
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
6
|
+
import { t as W, b as X } from "./assets-fhkvhIzG.js";
|
|
6
7
|
import { u as Z } from "./index-Dn73sX5Z.js";
|
|
7
8
|
import { _ as ee } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
8
9
|
import { _ as ae } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
|
@@ -11,7 +12,7 @@ import { p as ne } from "./index-ATmg3hKo.js";
|
|
|
11
12
|
import { t as re } from "./index-CYaUSwOX.js";
|
|
12
13
|
import { u as se, p as x } from "./index-DSG40xEJ.js";
|
|
13
14
|
import { useSnackbar as oe, useDialog as le } from "@feedmepos/ui-library";
|
|
14
|
-
import { _ as ie, a as ce, b as ue, c as me } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { _ as ie, a as ce, b as ue, c as me } from "./Actions.vue_vue_type_script_setup_true_lang-BznH1pCi.js";
|
|
15
16
|
import { g as de } from "./grafana-inVQ9Jwy.js";
|
|
16
17
|
import { w as L } from "./Modal-DB8M9o1T.js";
|
|
17
18
|
import { u as P } from "./error-K1CakhA9.js";
|
|
@@ -120,7 +121,7 @@ const ye = /* @__PURE__ */ B({
|
|
|
120
121
|
], 64);
|
|
121
122
|
};
|
|
122
123
|
}
|
|
123
|
-
}), fe = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-8 items-start" }, ve = { class: "flex space-x-4 self-center" }, be = { class: "flex space-x-12 mb-6" },
|
|
124
|
+
}), fe = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-8 items-start" }, ve = { class: "flex space-x-4 self-center" }, be = { class: "flex space-x-12 mb-6" }, we = /* @__PURE__ */ B({
|
|
124
125
|
__name: "Transaction",
|
|
125
126
|
setup(z) {
|
|
126
127
|
var g, o;
|
|
@@ -340,7 +341,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
340
341
|
})
|
|
341
342
|
}), (a, e) => {
|
|
342
343
|
const r = h("FmSearch"), n = h("FmSelect");
|
|
343
|
-
return A(), D(
|
|
344
|
+
return A(), D(H, {
|
|
344
345
|
title: t(s)("payment.transactions.title"),
|
|
345
346
|
description: t(s)("payment.transactions.description"),
|
|
346
347
|
loading: !1
|
|
@@ -384,7 +385,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
384
385
|
handler: async () => {
|
|
385
386
|
var I;
|
|
386
387
|
const l = await ((I = v.value) == null ? void 0 : I.allData());
|
|
387
|
-
l != null && await t(C).downloadPortalTransactionReport(t(u), t(
|
|
388
|
+
l != null && await t(C).downloadPortalTransactionReport(t(u), t(W)(l));
|
|
388
389
|
}
|
|
389
390
|
}, null, 8, ["button", "handler"])
|
|
390
391
|
])
|
|
@@ -405,7 +406,7 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
405
406
|
ref_key: "controller",
|
|
406
407
|
ref: v,
|
|
407
408
|
"column-defs": p,
|
|
408
|
-
"rows-defs": t(
|
|
409
|
+
"rows-defs": t(X),
|
|
409
410
|
paginate: (l, I) => t(C).readTransactionsV2({
|
|
410
411
|
limit: l,
|
|
411
412
|
cursor: I,
|
|
@@ -424,5 +425,5 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
424
425
|
}
|
|
425
426
|
});
|
|
426
427
|
export {
|
|
427
|
-
|
|
428
|
+
we as default
|
|
428
429
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
|
|
2
|
-
import { t as v
|
|
3
|
-
import { u as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import {
|
|
2
|
+
import { t as v } from "./index-73aaBilo.js";
|
|
3
|
+
import { u as U } from "./index-DSG40xEJ.js";
|
|
4
|
+
import { useSnackbar as L, useDialog as P } from "@feedmepos/ui-library";
|
|
5
|
+
import { b as $, t as B } from "./assets-fhkvhIzG.js";
|
|
6
|
+
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-BznH1pCi.js";
|
|
6
7
|
import { g as z } from "./grafana-inVQ9Jwy.js";
|
|
7
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
8
9
|
import { u as V } from "./error-K1CakhA9.js";
|
|
@@ -27,7 +28,7 @@ const ea = /* @__PURE__ */ S({
|
|
|
27
28
|
},
|
|
28
29
|
emits: ["row-click"],
|
|
29
30
|
setup(q, { emit: d }) {
|
|
30
|
-
var
|
|
31
|
+
var f, T;
|
|
31
32
|
const o = q, l = K([...o.data]);
|
|
32
33
|
x(
|
|
33
34
|
() => o.data,
|
|
@@ -36,7 +37,7 @@ const ea = /* @__PURE__ */ S({
|
|
|
36
37
|
},
|
|
37
38
|
{ deep: !0, immediate: !0 }
|
|
38
39
|
);
|
|
39
|
-
const D = d, c =
|
|
40
|
+
const D = d, c = L(), m = P(), { sessionUser: r } = N(), { t } = E();
|
|
40
41
|
async function h(e) {
|
|
41
42
|
try {
|
|
42
43
|
const a = await v.refetchTransaction({ transactionId: e.id });
|
|
@@ -99,7 +100,7 @@ const ea = /* @__PURE__ */ S({
|
|
|
99
100
|
}
|
|
100
101
|
);
|
|
101
102
|
}
|
|
102
|
-
async function
|
|
103
|
+
async function y(e) {
|
|
103
104
|
const a = z([
|
|
104
105
|
{
|
|
105
106
|
type: "span",
|
|
@@ -185,7 +186,7 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
];
|
|
188
|
-
return ((
|
|
189
|
+
return ((f = r.value) != null && f.role.isStaff || (T = r.value) != null && T.role.isAdmin) && p.push({
|
|
189
190
|
header: () => t("payment.transactions.table.actions"),
|
|
190
191
|
accessorKey: "actions",
|
|
191
192
|
cell: ({ row: e }) => A(Q, {
|
|
@@ -203,7 +204,7 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
203
204
|
title: "You are not allowed to refund transaction."
|
|
204
205
|
}) : b(e.original);
|
|
205
206
|
case "history":
|
|
206
|
-
return
|
|
207
|
+
return y(e.original);
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
})
|
|
@@ -219,7 +220,7 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
219
220
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
|
220
221
|
};
|
|
221
222
|
}
|
|
222
|
-
}), ta = { class: "flex justify-between mb-6 items-center" }, na = { class: "flex space-x-8" }, ra = { class: "flex space-x-4 self-center" }, oa = { class: "mb-6" },
|
|
223
|
+
}), ta = { class: "flex justify-between mb-6 items-center" }, na = { class: "flex space-x-8" }, ra = { class: "flex space-x-4 self-center" }, oa = { class: "mb-6" }, Aa = /* @__PURE__ */ S({
|
|
223
224
|
__name: "TransactionOld",
|
|
224
225
|
setup(q) {
|
|
225
226
|
const { dateRange: d, searchKey: o } = W({
|
|
@@ -228,18 +229,18 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
228
229
|
startDate: I().startOf("day").format("YYYY-MM-DD"),
|
|
229
230
|
endDate: I().endOf("day").format("YYYY-MM-DD")
|
|
230
231
|
}
|
|
231
|
-
}), { isLoading: l, startAsyncCall: D } =
|
|
232
|
+
}), { isLoading: l, startAsyncCall: D } = U(!0), { currentRestaurant: c } = N(), { t: m } = E(), r = K([]), t = K([]);
|
|
232
233
|
async function h() {
|
|
233
234
|
await D(async () => {
|
|
234
|
-
const { startDate:
|
|
235
|
-
start:
|
|
235
|
+
const { startDate: y, endDate: s } = d.value, p = await v.readRestaurantTransactions({
|
|
236
|
+
start: y,
|
|
236
237
|
end: s
|
|
237
238
|
});
|
|
238
|
-
if (r.value =
|
|
239
|
-
var
|
|
239
|
+
if (r.value = B(p), t.value = r.value, o.value > "") {
|
|
240
|
+
var f = new RegExp(o.value, "i");
|
|
240
241
|
t.value = r.value.filter((T) => {
|
|
241
242
|
const e = JSON.stringify(T);
|
|
242
|
-
return
|
|
243
|
+
return f.test(e);
|
|
243
244
|
});
|
|
244
245
|
}
|
|
245
246
|
});
|
|
@@ -251,13 +252,13 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
251
252
|
let g;
|
|
252
253
|
return x(o, async () => {
|
|
253
254
|
g && clearTimeout(g), g = setTimeout(() => {
|
|
254
|
-
var
|
|
255
|
+
var y = new RegExp(o.value, "i");
|
|
255
256
|
t.value = r.value.filter((s) => {
|
|
256
257
|
const p = JSON.stringify(s);
|
|
257
|
-
return
|
|
258
|
+
return y.test(p);
|
|
258
259
|
});
|
|
259
260
|
}, 700);
|
|
260
|
-
}), (
|
|
261
|
+
}), (y, s) => {
|
|
261
262
|
const p = F("FmSearch");
|
|
262
263
|
return Y(), C(H, {
|
|
263
264
|
title: i(m)("payment.transactions.title"),
|
|
@@ -270,7 +271,7 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
270
271
|
_(Z),
|
|
271
272
|
_(p, {
|
|
272
273
|
"model-value": i(o),
|
|
273
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
274
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => R(o) ? o.value = f : null),
|
|
274
275
|
label: i(m)("payment.transactions.search.title"),
|
|
275
276
|
placeholder: i(m)("payment.transactions.search.placeholder")
|
|
276
277
|
}, null, 8, ["model-value", "label", "placeholder"])
|
|
@@ -291,7 +292,7 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
291
292
|
w("div", oa, [
|
|
292
293
|
_(aa, {
|
|
293
294
|
modelValue: i(d),
|
|
294
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
295
|
+
"onUpdate:modelValue": s[1] || (s[1] = (f) => R(d) ? d.value = f : null)
|
|
295
296
|
}, null, 8, ["modelValue"])
|
|
296
297
|
]),
|
|
297
298
|
_(ea, {
|
|
@@ -305,5 +306,5 @@ ID: ` + a.original.transactionId : a.original.id;
|
|
|
305
306
|
}
|
|
306
307
|
});
|
|
307
308
|
export {
|
|
308
|
-
|
|
309
|
+
Aa as default
|
|
309
310
|
};
|
|
@@ -39,4 +39,21 @@ export declare const transactionApi: {
|
|
|
39
39
|
start: string;
|
|
40
40
|
end: string;
|
|
41
41
|
}): Promise<void>;
|
|
42
|
+
readChargebackTransactions(params: {
|
|
43
|
+
start: string;
|
|
44
|
+
end: string;
|
|
45
|
+
limit: number;
|
|
46
|
+
cursor: string;
|
|
47
|
+
search: string;
|
|
48
|
+
}): Promise<PaginatedResult<FdoPaymentTransactionV2Output>>;
|
|
49
|
+
createChargebackTransaction(req: {
|
|
50
|
+
restaurant: string;
|
|
51
|
+
payId?: string;
|
|
52
|
+
amount: number;
|
|
53
|
+
chargeBackReason: string;
|
|
54
|
+
}): Promise<FdoPaymentTransactionV2Output>;
|
|
55
|
+
updateChargebackTransaction(req: {
|
|
56
|
+
chargebackId: string;
|
|
57
|
+
canSettleAt: string;
|
|
58
|
+
}): Promise<FdoPaymentTransactionV2Output>;
|
|
42
59
|
};
|