@feedmepos/mf-payment 1.5.33-dev → 1.5.33

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 (46) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-CWl5TjGX.js → Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js} +1 -1
  2. package/dist/{Chargeback-BGXLNd-w.js → Chargeback-BkVFinyh.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DVL3Tlwu.js → DocumentViewer.vue_vue_type_script_setup_true_lang-3pmwclcO.js} +1 -1
  4. package/dist/{OnboardForm-2C1LeXFJ.js → OnboardForm-Dlq2AiT4.js} +238 -242
  5. package/dist/{OnboardForm-BYfjLNbu.js → OnboardForm-Dnjh1Nk_.js} +5 -5
  6. package/dist/{OnboardSubmission-ChwyUxSB.js → OnboardSubmission-BE5FWMKX.js} +114 -104
  7. package/dist/{OnboardSubmission-CuK2dw8O.js → OnboardSubmission-O5wr2kLB.js} +5 -5
  8. package/dist/{PayoutAccount-C4DGIORU.js → PayoutAccount-DmKO3q2L.js} +5 -5
  9. package/dist/{PayoutAccount-BFLTTf65.js → PayoutAccount-DrTvpBy9.js} +4 -4
  10. package/dist/{PayoutAccountSetting-B2xwRNVI.js → PayoutAccountSetting-BJljfdwp.js} +4 -4
  11. package/dist/{Restaurant-uaKyfVHa.js → Restaurant-DN2_DdKR.js} +4 -4
  12. package/dist/{RestaurantSetting-u3gPnAi3.js → RestaurantSetting-f0T5REdJ.js} +3 -3
  13. package/dist/{Settlement-8aKO0XlN.js → Settlement-DJ6ETp2U.js} +3 -3
  14. package/dist/Settlement-SoOQIN8y.js +490 -0
  15. package/dist/{SettlementTransactions-CgLmSBeK.js → SettlementTransactions-DF2ybUos.js} +4 -4
  16. package/dist/{SettlementTransactions-Dy_c3e55.js → SettlementTransactions-cYUYH2RJ.js} +19 -23
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-91BuHsLC.js → Status.vue_vue_type_script_setup_true_lang-B41rO8q8.js} +1 -1
  18. package/dist/{Terminal-C9XlK0gi.js → Terminal-DuGHgfMp.js} +5 -5
  19. package/dist/{TerminalSetting-CPMJTKR8.js → TerminalSetting-iXqUzSSo.js} +3 -3
  20. package/dist/{Transaction-YZryhRiu.js → Transaction-A-sOT2PE.js} +75 -60
  21. package/dist/Transaction-CbZRbUDH.js +482 -0
  22. package/dist/{TransactionOld-DRA-jAKQ.js → TransactionOld-DttRuS3v.js} +6 -6
  23. package/dist/api/settlement/index.d.ts +4 -10
  24. package/dist/api/transaction/index.d.ts +1 -1
  25. package/dist/{app-wX6XYVw4.js → app-CEHONMRw.js} +24 -24
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-im1V-t7Q.js → assets-gWQvONT9.js} +1 -1
  28. package/dist/components/SourceSelector.vue.d.ts +0 -2
  29. package/dist/{grafana-DxtD1PVA.js → grafana-VY3mqepx.js} +1 -1
  30. package/dist/{index-cnWXAOZL.js → index-BGIv1us6.js} +1 -1
  31. package/dist/{index-DyHgJMgm.js → index-BRhAeH7J.js} +7 -13
  32. package/dist/{index-1hOLckXe.js → index-BcmesiC4.js} +19 -21
  33. package/dist/{index-Dqz_cMKc.js → index-CscYwjzM.js} +1 -1
  34. package/dist/{index-CCD_GxfC.js → index-DGqWjywh.js} +1 -1
  35. package/dist/{index-C7qDYSTa.js → index-DhYZ6Ghe.js} +2 -2
  36. package/dist/{index-sVmXR_uy.js → index-Dq4IAN2N.js} +1 -1
  37. package/dist/{index-BAR0oK1p.js → index-Q0ELb0wB.js} +1 -1
  38. package/dist/{index-CV3NoDGL.js → index-T2CVm7-_.js} +5437 -5445
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-BLlCp9H7.js → index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js} +1 -1
  40. package/dist/package.json +2 -2
  41. package/dist/{payout-account-B5umMzLY.js → payout-account-CbxRdhNQ.js} +3 -3
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/Settlement-DYMTw2xR.js +0 -610
  45. package/dist/Transaction-J4EbMhb-.js +0 -482
  46. package/dist/components/SettlementSelector.vue.d.ts +0 -12
@@ -1,17 +1,17 @@
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-DyHgJMgm.js";
2
+ import { t as _ } from "./index-BRhAeH7J.js";
3
3
  import { h as x } from "./moment-h96o7c8I.js";
4
- import { g as j, a as z, t as Q, _ as W, b as S } from "./assets-im1V-t7Q.js";
5
- import { u as H } from "./index-BAR0oK1p.js";
4
+ import { g as j, a as z, t as Q, _ as W, b as S } from "./assets-gWQvONT9.js";
5
+ import { u as H } from "./index-Q0ELb0wB.js";
6
6
  import { _ as J } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
8
8
  import { useDialogChild as Z, useSnackbar as ee, useDialog as te } from "@feedmepos/ui-library";
9
9
  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
- import { g as ne } from "./grafana-DxtD1PVA.js";
13
- import { _ as oe } from "./index.vue_vue_type_script_setup_true_lang-BLlCp9H7.js";
14
- import { _ as re } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
12
+ import { g as ne } from "./grafana-VY3mqepx.js";
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 (r, u) => {
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 (r, u) => {
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 r = [
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"), o = p("FmMenuItem"), m = p("FmMenu");
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(r.filter((c) => !!c), (c) => (g(), F(o, {
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 r = s, { emitData: u, emitAction: i } = Z(), d = M(""), o = q().trim().pipe(r.schema), m = () => {
156
- const c = o.safeParse(d.value);
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(o)),
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 (r, u) => {
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 r = M(), { dateRange: u, searchKey: i } = H({
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(), o = ee(), m = te(), c = async (t, e) => {
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 = r.value) == null || t.reset();
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 = r.value) == null || t.reset();
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 = r.value) == null ? void 0 : a.pageData().at(t);
244
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
245
245
  if (!e) {
246
- o.open({
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({ transactionId: e.id });
255
- (n = r.value) == null || n.replaceData(t, S(l)), o.open({
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
- o.open({
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 = r.value) == null ? void 0 : a.pageData().at(t);
271
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
270
272
  if (!e) {
271
- o.open({
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 = r.value) == null || n.replaceData(t, S(l)), o.open({
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
- o.open({
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 = r.value) == null ? void 0 : a.pageData().at(t);
308
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
307
309
  if (!e) {
308
- o.open({
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), o.open({
323
+ await _.renotifyTransaction(e.id), r.open({
322
324
  type: "success",
323
325
  title: "Transaction notify successfully."
324
326
  });
325
327
  } catch (n) {
326
- o.open({
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 = r.value) == null ? void 0 : n.pageData().at(t);
339
+ const e = (n = o.value) == null ? void 0 : n.pageData().at(t);
338
340
  if (!e) {
339
- o.open({
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
- type: "span",
349
- queryKey: "transaction.id",
350
- queryValue: e.id
351
- }
352
- ], e.transactionAt);
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 B(t) {
360
+ async function R(t) {
356
361
  var a;
357
- const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
362
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
358
363
  if (!e) {
359
- o.open({
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({ transactionId: e.id, payId: n });
380
- (l = r.value) == null || l.replaceData(t, S(h)), o.open({
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
- o.open({
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 R(t) {
401
+ async function B(t) {
394
402
  var a;
395
- const e = (a = r.value) == null ? void 0 : a.pageData().at(t);
403
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t);
396
404
  if (!e) {
397
- o.open({
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({ transactionId: e.id, gatewayTransactionId: n });
418
- (l = r.value) == null || l.replaceData(t, S(h)), o.open({
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
- o.open({
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(re, { data: t.getValue(), extra: e });
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 = r.value) == null ? void 0 : a.pageData().at(t.index);
524
+ const e = (a = o.value) == null ? void 0 : a.pageData().at(t.index);
510
525
  if (!e) {
511
- o.open({
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(oe, {
594
+ f(re, {
580
595
  ref_key: "controller",
581
- ref: r,
596
+ ref: o,
582
597
  "column-defs": E,
583
598
  "rows-defs": (n) => n,
584
599
  paginate: c