@feedmepos/mf-payment 1.5.34-dev → 1.5.34
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/{Chargeback-CQkYS7zA.js → Chargeback-BkVFinyh.js} +1 -1
- package/dist/{OnboardForm-wAD3F3VU.js → OnboardForm--wUvq0Bz.js} +1 -1
- package/dist/{OnboardForm-C8aDH-Z2.js → OnboardForm-B04cZaFV.js} +1 -1
- package/dist/{PayoutAccount-DyLs9JCT.js → PayoutAccount-E5ujCJqw.js} +1 -1
- package/dist/{PayoutAccount-Dc_zZpAf.js → PayoutAccount-jlCtwsaD.js} +1 -1
- package/dist/{Settlement-CRlYjp36.js → Settlement-DJ6ETp2U.js} +1 -1
- package/dist/Settlement-SoOQIN8y.js +490 -0
- package/dist/{SettlementTransactions-C4F8UT8k.js → SettlementTransactions-DF2ybUos.js} +2 -2
- package/dist/{SettlementTransactions-C0vRk4kI.js → SettlementTransactions-cYUYH2RJ.js} +17 -21
- package/dist/{Transaction-yG_6hsqm.js → Transaction-A-sOT2PE.js} +72 -57
- package/dist/Transaction-CbZRbUDH.js +482 -0
- package/dist/{TransactionOld-r7nV-5_S.js → TransactionOld-DttRuS3v.js} +1 -1
- package/dist/api/settlement/index.d.ts +4 -10
- package/dist/api/transaction/index.d.ts +1 -1
- package/dist/{app-DmsKi6me.js → app-qtpxMy1_.js} +132 -141
- package/dist/app.js +1 -1
- package/dist/components/SourceSelector.vue.d.ts +0 -2
- package/dist/{index-CiCmB-Rg.js → index-BRhAeH7J.js} +7 -13
- package/dist/{index-_EfmUlsc.js → index-BcmesiC4.js} +19 -21
- package/dist/package.json +1 -1
- package/dist/{payout-account-Ce3mmpiT.js → payout-account-Ca3Ayv7S.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Settlement-BAeQCoUt.js +0 -610
- package/dist/Transaction-D9hFp-bx.js +0 -482
- package/dist/components/SettlementSelector.vue.d.ts +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, resolveComponent as p, openBlock as g, createBlock as F, withCtx as D, createElementVNode as b, unref as y, createElementBlock as $, createVNode as f, Fragment as O, renderList as Y, ref as M, createTextVNode as U, toDisplayString as L, watch as G, isRef as K, h as I } from "vue";
|
|
2
|
-
import { t as _ } from "./index-
|
|
2
|
+
import { t as _ } from "./index-BRhAeH7J.js";
|
|
3
3
|
import { h as x } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { g as j, a as z, t as Q, _ as W, b as S } from "./assets-gWQvONT9.js";
|
|
5
5
|
import { u as H } from "./index-Q0ELb0wB.js";
|
|
@@ -10,8 +10,8 @@ import { w as N } from "./Modal-DB8M9o1T.js";
|
|
|
10
10
|
import { u as T } from "./error-K1CakhA9.js";
|
|
11
11
|
import { _ as ae } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js";
|
|
12
12
|
import { g as ne } from "./grafana-VY3mqepx.js";
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
13
|
+
import { _ as re } from "./index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js";
|
|
14
|
+
import { _ as oe } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
15
15
|
import { s as q, z as se } from "./validator-DzjyJnvv.js";
|
|
16
16
|
import { useCoreStore as ie } from "@feedmepos/mf-common";
|
|
17
17
|
const ce = ["src"], le = /* @__PURE__ */ v({
|
|
@@ -21,7 +21,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
21
21
|
data: {}
|
|
22
22
|
},
|
|
23
23
|
setup(s) {
|
|
24
|
-
return (
|
|
24
|
+
return (o, u) => {
|
|
25
25
|
const i = p("FmTooltip");
|
|
26
26
|
return g(), F(i, {
|
|
27
27
|
variant: "plain",
|
|
@@ -46,7 +46,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
46
46
|
data: {}
|
|
47
47
|
},
|
|
48
48
|
setup(s) {
|
|
49
|
-
return (
|
|
49
|
+
return (o, u) => {
|
|
50
50
|
const i = p("FmTooltip");
|
|
51
51
|
return g(), F(i, {
|
|
52
52
|
variant: "plain",
|
|
@@ -71,7 +71,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
71
71
|
transaction: {}
|
|
72
72
|
},
|
|
73
73
|
setup(s) {
|
|
74
|
-
const
|
|
74
|
+
const o = [
|
|
75
75
|
s.transaction.flags.query && {
|
|
76
76
|
label: "Query",
|
|
77
77
|
sublabel: "Perform transaction status inquriy",
|
|
@@ -110,7 +110,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
110
110
|
}
|
|
111
111
|
];
|
|
112
112
|
return (u, i) => {
|
|
113
|
-
const d = p("FmIcon"),
|
|
113
|
+
const d = p("FmIcon"), r = p("FmMenuItem"), m = p("FmMenu");
|
|
114
114
|
return g(), $("div", {
|
|
115
115
|
onClick: i[0] || (i[0] = (c) => {
|
|
116
116
|
c.stopPropagation();
|
|
@@ -121,7 +121,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
121
121
|
f(d, { name: "settings" })
|
|
122
122
|
]),
|
|
123
123
|
default: D(() => [
|
|
124
|
-
(g(!0), $(O, null, Y(
|
|
124
|
+
(g(!0), $(O, null, Y(o.filter((c) => !!c), (c) => (g(), F(r, {
|
|
125
125
|
selectable: !0,
|
|
126
126
|
key: c.label,
|
|
127
127
|
sublabel: c.sublabel,
|
|
@@ -152,8 +152,8 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
setup(s) {
|
|
155
|
-
const
|
|
156
|
-
const c =
|
|
155
|
+
const o = s, { emitData: u, emitAction: i } = Z(), d = M(""), r = q().trim().pipe(o.schema), m = () => {
|
|
156
|
+
const c = r.safeParse(d.value);
|
|
157
157
|
c.success && (u(c.data), i("primary"));
|
|
158
158
|
};
|
|
159
159
|
return (c, w) => {
|
|
@@ -168,7 +168,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
168
168
|
"onUpdate:modelValue": w[0] || (w[0] = (k) => d.value = k),
|
|
169
169
|
label: s.label,
|
|
170
170
|
placeholder: s.placeholder,
|
|
171
|
-
rules: y(se)(y(
|
|
171
|
+
rules: y(se)(y(r)),
|
|
172
172
|
autofocus: ""
|
|
173
173
|
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
174
174
|
b("div", pe, [
|
|
@@ -190,7 +190,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
190
190
|
data: {}
|
|
191
191
|
},
|
|
192
192
|
setup(s) {
|
|
193
|
-
return (
|
|
193
|
+
return (o, u) => {
|
|
194
194
|
const i = p("FmIcon");
|
|
195
195
|
return g(), $("span", ye, [
|
|
196
196
|
U(L(s.row.original.seqNumber) + " ", 1),
|
|
@@ -205,13 +205,13 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
205
205
|
}), ge = { class: "flex justify-between mb-6 items-center" }, he = { class: "flex space-x-4" }, _e = { class: "flex space-x-4 self-center" }, be = { class: "mb-6" }, Ne = /* @__PURE__ */ v({
|
|
206
206
|
__name: "Transaction",
|
|
207
207
|
setup(s) {
|
|
208
|
-
const
|
|
208
|
+
const o = M(), { dateRange: u, searchKey: i } = H({
|
|
209
209
|
searchKey: "",
|
|
210
210
|
dateRange: {
|
|
211
211
|
startDate: x().startOf("day").format("YYYY-MM-DD"),
|
|
212
212
|
endDate: x().endOf("day").format("YYYY-MM-DD")
|
|
213
213
|
}
|
|
214
|
-
}), { sessionUser: d } = ie(),
|
|
214
|
+
}), { sessionUser: d } = ie(), r = ee(), m = te(), c = async (t, e) => {
|
|
215
215
|
let a = parseInt(e);
|
|
216
216
|
Number.isNaN(a) && (a = 1);
|
|
217
217
|
const n = await _.readTransactions({
|
|
@@ -230,20 +230,20 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
230
230
|
};
|
|
231
231
|
G(u, async () => {
|
|
232
232
|
var t;
|
|
233
|
-
(t =
|
|
233
|
+
(t = o.value) == null || t.reset();
|
|
234
234
|
});
|
|
235
235
|
let w;
|
|
236
236
|
G(i, async () => {
|
|
237
237
|
w && clearTimeout(w), w = setTimeout(() => {
|
|
238
238
|
var t;
|
|
239
|
-
(t =
|
|
239
|
+
(t = o.value) == null || t.reset();
|
|
240
240
|
}, 700);
|
|
241
241
|
});
|
|
242
242
|
async function P(t) {
|
|
243
243
|
var a, n;
|
|
244
|
-
const e = (a =
|
|
244
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
|
|
245
245
|
if (!e) {
|
|
246
|
-
|
|
246
|
+
r.open({
|
|
247
247
|
type: "error",
|
|
248
248
|
title: "Something went wrong",
|
|
249
249
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -251,13 +251,15 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
253
|
try {
|
|
254
|
-
const l = await _.refetchTransaction({
|
|
255
|
-
|
|
254
|
+
const l = await _.refetchTransaction({
|
|
255
|
+
transactionId: e.id
|
|
256
|
+
});
|
|
257
|
+
(n = o.value) == null || n.replaceData(t, S(l)), r.open({
|
|
256
258
|
type: "success",
|
|
257
259
|
title: "Transaction queried and updated successfully."
|
|
258
260
|
});
|
|
259
261
|
} catch (l) {
|
|
260
|
-
|
|
262
|
+
r.open({
|
|
261
263
|
type: "error",
|
|
262
264
|
title: "Fail to query transaction.",
|
|
263
265
|
message: T(l)
|
|
@@ -266,9 +268,9 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
266
268
|
}
|
|
267
269
|
async function A(t) {
|
|
268
270
|
var a;
|
|
269
|
-
const e = (a =
|
|
271
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
|
|
270
272
|
if (!e) {
|
|
271
|
-
|
|
273
|
+
r.open({
|
|
272
274
|
type: "error",
|
|
273
275
|
title: "Something went wrong",
|
|
274
276
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -287,12 +289,12 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
287
289
|
reason: "portal transaction refund",
|
|
288
290
|
amount: e.fdoAmount
|
|
289
291
|
});
|
|
290
|
-
(n =
|
|
292
|
+
(n = o.value) == null || n.replaceData(t, S(l)), r.open({
|
|
291
293
|
type: "success",
|
|
292
294
|
title: "Transaction refund request initiated."
|
|
293
295
|
});
|
|
294
296
|
} catch (l) {
|
|
295
|
-
|
|
297
|
+
r.open({
|
|
296
298
|
type: "error",
|
|
297
299
|
title: "Fail to request refund transaction.",
|
|
298
300
|
message: T(l)
|
|
@@ -303,9 +305,9 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
303
305
|
}
|
|
304
306
|
async function V(t) {
|
|
305
307
|
var a;
|
|
306
|
-
const e = (a =
|
|
308
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
|
|
307
309
|
if (!e) {
|
|
308
|
-
|
|
310
|
+
r.open({
|
|
309
311
|
type: "error",
|
|
310
312
|
title: "Something went wrong",
|
|
311
313
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -318,12 +320,12 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
318
320
|
"Are you sure to perform notify transaction?",
|
|
319
321
|
async () => {
|
|
320
322
|
try {
|
|
321
|
-
await _.renotifyTransaction(e.id),
|
|
323
|
+
await _.renotifyTransaction(e.id), r.open({
|
|
322
324
|
type: "success",
|
|
323
325
|
title: "Transaction notify successfully."
|
|
324
326
|
});
|
|
325
327
|
} catch (n) {
|
|
326
|
-
|
|
328
|
+
r.open({
|
|
327
329
|
type: "error",
|
|
328
330
|
title: "Fail to notify transaction.",
|
|
329
331
|
message: T(n)
|
|
@@ -334,29 +336,32 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
334
336
|
}
|
|
335
337
|
async function k(t) {
|
|
336
338
|
var n;
|
|
337
|
-
const e = (n =
|
|
339
|
+
const e = (n = o.value) == null ? void 0 : n.pageData().at(t);
|
|
338
340
|
if (!e) {
|
|
339
|
-
|
|
341
|
+
r.open({
|
|
340
342
|
type: "error",
|
|
341
343
|
title: "Something went wrong",
|
|
342
344
|
message: "Fail to find transactions from the displayed transactions."
|
|
343
345
|
});
|
|
344
346
|
return;
|
|
345
347
|
}
|
|
346
|
-
const a = ne(
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
348
|
+
const a = ne(
|
|
349
|
+
[
|
|
350
|
+
{
|
|
351
|
+
type: "span",
|
|
352
|
+
queryKey: "transaction.id",
|
|
353
|
+
queryValue: e.id
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
e.transactionAt
|
|
357
|
+
);
|
|
353
358
|
window.open(a, "_blank");
|
|
354
359
|
}
|
|
355
|
-
async function
|
|
360
|
+
async function R(t) {
|
|
356
361
|
var a;
|
|
357
|
-
const e = (a =
|
|
362
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
|
|
358
363
|
if (!e) {
|
|
359
|
-
|
|
364
|
+
r.open({
|
|
360
365
|
type: "error",
|
|
361
366
|
title: "Something went wrong",
|
|
362
367
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -376,13 +381,16 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
376
381
|
}).onPrimary(async (n) => {
|
|
377
382
|
var l;
|
|
378
383
|
try {
|
|
379
|
-
const h = await _.bindPayId({
|
|
380
|
-
|
|
384
|
+
const h = await _.bindPayId({
|
|
385
|
+
transactionId: e.id,
|
|
386
|
+
payId: n
|
|
387
|
+
});
|
|
388
|
+
(l = o.value) == null || l.replaceData(t, S(h)), r.open({
|
|
381
389
|
type: "success",
|
|
382
390
|
title: "Pay ID set successfully."
|
|
383
391
|
}), m.close();
|
|
384
392
|
} catch (h) {
|
|
385
|
-
|
|
393
|
+
r.open({
|
|
386
394
|
type: "error",
|
|
387
395
|
title: "Failed to set Pay ID.",
|
|
388
396
|
message: T(h)
|
|
@@ -390,11 +398,11 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
390
398
|
}
|
|
391
399
|
});
|
|
392
400
|
}
|
|
393
|
-
async function
|
|
401
|
+
async function B(t) {
|
|
394
402
|
var a;
|
|
395
|
-
const e = (a =
|
|
403
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
|
|
396
404
|
if (!e) {
|
|
397
|
-
|
|
405
|
+
r.open({
|
|
398
406
|
type: "error",
|
|
399
407
|
title: "Something went wrong",
|
|
400
408
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -414,13 +422,16 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
414
422
|
}).onPrimary(async (n) => {
|
|
415
423
|
var l;
|
|
416
424
|
try {
|
|
417
|
-
const h = await _.setGatewayId({
|
|
418
|
-
|
|
425
|
+
const h = await _.setGatewayId({
|
|
426
|
+
transactionId: e.id,
|
|
427
|
+
gatewayTransactionId: n
|
|
428
|
+
});
|
|
429
|
+
(l = o.value) == null || l.replaceData(t, S(h)), r.open({
|
|
419
430
|
type: "success",
|
|
420
431
|
title: "Gateway ID set successfully."
|
|
421
432
|
}), m.close();
|
|
422
433
|
} catch (h) {
|
|
423
|
-
|
|
434
|
+
r.open({
|
|
424
435
|
type: "error",
|
|
425
436
|
title: "Failed to set Gateway ID.",
|
|
426
437
|
message: T(h)
|
|
@@ -436,7 +447,7 @@ const ce = ["src"], le = /* @__PURE__ */ v({
|
|
|
436
447
|
var a, n;
|
|
437
448
|
let e = "";
|
|
438
449
|
return ((a = d.value) != null && a.role.isStaff || (n = d.value) != null && n.role.isAdmin) && t.row.original.transactionId && (e = `
|
|
439
|
-
ID: ${t.row.original.transactionId}`), I(
|
|
450
|
+
ID: ${t.row.original.transactionId}`), I(oe, { data: t.getValue(), extra: e });
|
|
440
451
|
}
|
|
441
452
|
},
|
|
442
453
|
{
|
|
@@ -481,6 +492,10 @@ ID: ${t.row.original.transactionId}`), I(re, { data: t.getValue(), extra: e });
|
|
|
481
492
|
accessorKey: "status",
|
|
482
493
|
cell: ({ cell: t }) => I(W, { data: t.getValue() })
|
|
483
494
|
},
|
|
495
|
+
{
|
|
496
|
+
header: () => "Restaurant",
|
|
497
|
+
accessorKey: "restaurantId"
|
|
498
|
+
},
|
|
484
499
|
{
|
|
485
500
|
header: () => "Source",
|
|
486
501
|
accessorKey: "source",
|
|
@@ -506,9 +521,9 @@ ID: ${t.row.original.transactionId}`), I(re, { data: t.getValue(), extra: e });
|
|
|
506
521
|
accessorKey: "actions",
|
|
507
522
|
cell: ({ row: t }) => {
|
|
508
523
|
var a;
|
|
509
|
-
const e = (a =
|
|
524
|
+
const e = (a = o.value) == null ? void 0 : a.pageData().at(t.index);
|
|
510
525
|
if (!e) {
|
|
511
|
-
|
|
526
|
+
r.open({
|
|
512
527
|
type: "error",
|
|
513
528
|
title: "Something went wrong",
|
|
514
529
|
message: "Fail to find transactions from the displayed transactions."
|
|
@@ -528,9 +543,9 @@ ID: ${t.row.original.transactionId}`), I(re, { data: t.getValue(), extra: e });
|
|
|
528
543
|
case "history":
|
|
529
544
|
return k(t.index);
|
|
530
545
|
case "setPayId":
|
|
531
|
-
return B(t.index);
|
|
532
|
-
case "setGatewayId":
|
|
533
546
|
return R(t.index);
|
|
547
|
+
case "setGatewayId":
|
|
548
|
+
return B(t.index);
|
|
534
549
|
}
|
|
535
550
|
}
|
|
536
551
|
});
|
|
@@ -576,9 +591,9 @@ ID: ${t.row.original.transactionId}`), I(re, { data: t.getValue(), extra: e });
|
|
|
576
591
|
"onUpdate:modelValue": e[1] || (e[1] = (n) => K(u) ? u.value = n : null)
|
|
577
592
|
}, null, 8, ["modelValue"])
|
|
578
593
|
]),
|
|
579
|
-
f(
|
|
594
|
+
f(re, {
|
|
580
595
|
ref_key: "controller",
|
|
581
|
-
ref:
|
|
596
|
+
ref: o,
|
|
582
597
|
"column-defs": E,
|
|
583
598
|
"rows-defs": (n) => n,
|
|
584
599
|
paginate: c
|