@feedmepos/mf-payment 1.5.14-dev → 1.5.16-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.
Files changed (62) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BmOIDlHF.js → Actions.vue_vue_type_script_setup_true_lang-BVJmo7yZ.js} +2 -2
  2. package/dist/{Chargeback-BwFrnuVw.js → Chargeback-CN_5ffe0.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-VCdsMJXV.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js} +1 -1
  4. package/dist/{OnboardForm-D-TlxYQm.js → OnboardForm-DUgCDg0z.js} +5 -5
  5. package/dist/{OnboardForm-1bjTqyjr.js → OnboardForm-DvYi9dVM.js} +364 -335
  6. package/dist/{OnboardSubmission-CsFQc3w-.js → OnboardSubmission-Dd_VhLYi.js} +2 -2
  7. package/dist/{OnboardSubmission-B1p_ss6c.js → OnboardSubmission-uKpGFwN-.js} +5 -5
  8. package/dist/{PayoutAccount-gKGc70jp.js → PayoutAccount-C_CgRoWJ.js} +5 -5
  9. package/dist/{PayoutAccount-CpaFIxzp.js → PayoutAccount-Dmm8RQll.js} +4 -4
  10. package/dist/{PayoutAccountSetting-BoIhsg96.js → PayoutAccountSetting-BGqJyEP-.js} +4 -4
  11. package/dist/{Restaurant-tXUEtR_q.js → Restaurant-BjF1a029.js} +4 -4
  12. package/dist/{RestaurantSetting-CgHsz4H3.js → RestaurantSetting-DC0f4Ucf.js} +3 -3
  13. package/dist/{Settlement-DOvppZAi.js → Settlement-BC3V4klw.js} +3 -3
  14. package/dist/{Settlement-c0bY9_gD.js → Settlement-ZBIhVddV.js} +3 -3
  15. package/dist/{SettlementTransactions-bF7EFZ2j.js → SettlementTransactions---x0z4Fg.js} +4 -4
  16. package/dist/{SettlementTransactions-BouvzPU4.js → SettlementTransactions-NtqKVZ4y.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-CvA16aFf.js → Status.vue_vue_type_script_setup_true_lang-DiLHaz81.js} +1 -1
  18. package/dist/{Terminal-CNqJtWgk.js → Terminal-Dp4YfQLn.js} +5 -5
  19. package/dist/{TerminalSetting-CxbuTkH6.js → TerminalSetting-22VMhd8q.js} +3 -3
  20. package/dist/{Transaction-DsG8LE6e.js → Transaction-BiT6BRmx.js} +6 -6
  21. package/dist/{Transaction-BqSxZ7lr.js → Transaction-JFDOKyml.js} +9 -9
  22. package/dist/{TransactionOld-CJe-29ZZ.js → TransactionOld-CmRVIeU2.js} +6 -6
  23. package/dist/{app-DfYY05aO.js → app-Be-8zsJx.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-BQ2aldLR.js → assets-lFgK3KQx.js} +1 -1
  26. package/dist/{grafana-BUZudDE4.js → grafana-BRpcfaCo.js} +1 -1
  27. package/dist/{index-p6MzFJyt.js → index-9ABD__aA.js} +1 -1
  28. package/dist/index-BcOHdPNx.js +80 -0
  29. package/dist/{index-DxBjQBeA.js → index-CFxxPCNY.js} +1 -1
  30. package/dist/{index-y2BEVclv.js → index-CHX0p0Dm.js} +1 -1
  31. package/dist/{index-a1n8cWO_.js → index-DTD9SWXp.js} +1 -1
  32. package/dist/{index-7Tof5vdq.js → index-QTsd1BO1.js} +6 -6
  33. package/dist/{index-CxOPkwlX.js → index-VWqgxrIV.js} +1 -1
  34. package/dist/{index-DltFdclg.js → index-hKHpA30o.js} +1 -1
  35. package/dist/{index-oL7n2plf.js → index-s7pe9sTx.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-Bl3q7hOw.js → index.vue_vue_type_script_setup_true_lang-QCvHWbIq.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-DWWpqLNM.js → payout-account-B_WG1TKC.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
  41. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  42. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  43. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  44. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  45. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  46. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  47. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  48. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  49. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  50. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  51. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
  52. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
  53. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  54. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  55. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  56. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  57. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  58. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  59. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  60. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  61. package/package.json +2 -2
  62. package/dist/index-BXr5_TWx.js +0 -72
@@ -0,0 +1,80 @@
1
+ import { g as e, b as t, o as u, d as p } from "./index-QTsd1BO1.js";
2
+ import { h as d } from "./moment-h96o7c8I.js";
3
+ import { d as c } from "./index-DTD9SWXp.js";
4
+ const $ = {
5
+ async read(s) {
6
+ return p(
7
+ await t().get("/payments/onboard-submissions", {
8
+ params: { ...s }
9
+ })
10
+ );
11
+ },
12
+ async readById(s) {
13
+ return e(
14
+ await t().get(`/payments/onboard-submissions/${s}`)
15
+ );
16
+ },
17
+ async previewDocument(s) {
18
+ const n = await t().get(
19
+ `payments/onboard-submissions/${s}/document`,
20
+ { responseType: "blob" }
21
+ );
22
+ u(n.data);
23
+ },
24
+ async sendDocument(s) {
25
+ return e(
26
+ await t().post(
27
+ `payments/onboard-submissions/${s}/send`
28
+ )
29
+ );
30
+ },
31
+ async reviewById(s, n) {
32
+ return e(
33
+ await t().put(
34
+ `/payments/onboard-submissions/${s}`,
35
+ n
36
+ )
37
+ );
38
+ },
39
+ async getById(s, n) {
40
+ return e(
41
+ await t().get(
42
+ `restaurants/${n}/onboard-submissions/${s}`
43
+ )
44
+ );
45
+ },
46
+ async getByRestaurant(s) {
47
+ return e(
48
+ await t().get(
49
+ `restaurants/${s}/onboard-submissions`
50
+ )
51
+ );
52
+ },
53
+ async uploadDocument(s, n, a) {
54
+ const o = d().toISOString(), r = b(a);
55
+ return await c.upload(
56
+ `restaurant/${s}/documents/${n}/${o}.${r}`,
57
+ a,
58
+ s
59
+ );
60
+ },
61
+ async updateSubmission(s) {
62
+ return e(
63
+ await t().put(
64
+ `restaurants/${s.restaurantId}/onboard-submissions`,
65
+ s
66
+ )
67
+ );
68
+ }
69
+ }, b = (s) => {
70
+ var r, i, m;
71
+ const n = (r = s.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1], a = (m = (i = s.type.toLowerCase().split("/").pop()) == null ? void 0 : i.split("+")[0]) == null ? void 0 : m.replace(/[^a-z0-9]/g, ""), o = n || a;
72
+ if (!o)
73
+ throw new Error(
74
+ "Unable to determine file extension from name or MIME type"
75
+ );
76
+ return o;
77
+ };
78
+ export {
79
+ $ as o
80
+ };
@@ -1,4 +1,4 @@
1
- import { g as r, r as i, b as m, h as l, l as c, i as d, j as y } from "./index-7Tof5vdq.js";
1
+ import { g as r, r as i, b as m, h as l, l as c, i as d, j as y } from "./index-QTsd1BO1.js";
2
2
  import { h as o } from "./moment-h96o7c8I.js";
3
3
  import { d as f } from "./dinero-CIVmXLL-.js";
4
4
  function* p(t, n) {
@@ -1,6 +1,6 @@
1
1
  import { ref as b, watch as w } from "vue";
2
2
  import { useRoute as A, useRouter as m } from "vue-router";
3
- import { a as y } from "./index-7Tof5vdq.js";
3
+ import { a as y } from "./index-QTsd1BO1.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { f as s } from "./index-7Tof5vdq.js";
1
+ import { f as s } from "./index-QTsd1BO1.js";
2
2
  const c = {
3
3
  async upload(e, t, o) {
4
4
  const n = (await s().post("/document/presign", {
@@ -17170,7 +17170,7 @@ var $v = {};
17170
17170
  })
17171
17171
  }), r.FdoOnboardSubmissionReviewRequest = a.z.object({
17172
17172
  rates: a.z.record(a.z.string(), a.z.number()).nullish(),
17173
- status: a.z.enum(["approved", "rejected"]),
17173
+ status: a.z.enum(["approved", "rejected", "ready"]),
17174
17174
  statusReason: a.z.string().nullish()
17175
17175
  });
17176
17176
  })($v);
@@ -38714,12 +38714,12 @@ xr.FdoTerminalRefundPaymentDto = Zt.z.object({
38714
38714
  r.FdoEcrIntegrationMaybank = T.extend({
38715
38715
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.Maybank),
38716
38716
  config: a.z.object({
38717
- ip: a.z.string()
38717
+ ip: a.z.string().nullish()
38718
38718
  }).nullish()
38719
38719
  }), r.FdoEcrIntegrationMaybank2 = T.extend({
38720
38720
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.Maybank2),
38721
38721
  config: a.z.object({
38722
- ip: a.z.string()
38722
+ ip: a.z.string().nullish()
38723
38723
  }).nullish()
38724
38724
  }), r.FdoEcrIntegrationMaybank3 = T.extend({
38725
38725
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.Maybank3),
@@ -38732,7 +38732,7 @@ xr.FdoTerminalRefundPaymentDto = Zt.z.object({
38732
38732
  }), r.FdoEcrIntegrationNets = T.extend({
38733
38733
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.Nets),
38734
38734
  config: a.z.object({
38735
- ip: a.z.string()
38735
+ ip: a.z.string().nullish()
38736
38736
  }).nullish()
38737
38737
  }), r.FdoEcrIntegrationKBank = T.extend({
38738
38738
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.Kbank),
@@ -38743,7 +38743,7 @@ xr.FdoTerminalRefundPaymentDto = Zt.z.object({
38743
38743
  }), r.FdoEcrIntegrationGhl2 = T.extend({
38744
38744
  gateway: a.z.literal(f.F_TERMINAL_PAYMENT_ECR_PROVIDER.enum.Ghl2),
38745
38745
  config: a.z.object({
38746
- ip: a.z.string()
38746
+ ip: a.z.string().nullish()
38747
38747
  }).nullish()
38748
38748
  }), r.FdoEcrIntegrationGhl3 = T.extend({
38749
38749
  gateway: a.z.literal(f.F_TERMINAL_PAYMENT_ECR_PROVIDER.enum.Ghl3),
@@ -38764,7 +38764,7 @@ xr.FdoTerminalRefundPaymentDto = Zt.z.object({
38764
38764
  }), r.FdoEcrIntegrationGlobalPayments = T.extend({
38765
38765
  gateway: a.z.literal(r.F_ECR_INTEGRATION_KEY.enum.GlobalPayments),
38766
38766
  config: a.z.object({
38767
- ip: a.z.string()
38767
+ ip: a.z.string().nullish()
38768
38768
  }).nullish()
38769
38769
  }), r.FdoEcrIntegration = a.z.discriminatedUnion("gateway", [
38770
38770
  r.FdoEcrIntegrationMaybank,
@@ -1,4 +1,4 @@
1
- import { g as a, b as t, p as r, f as i, d as s } from "./index-7Tof5vdq.js";
1
+ import { g as a, b as t, p as r, f as i, d as s } from "./index-QTsd1BO1.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, f as u, d as e } from "./index-7Tof5vdq.js";
1
+ import { g as n, b as s, f as u, d as e } from "./index-QTsd1BO1.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { g as e, b as r, d as o, h as y, l, r as i, f } from "./index-7Tof5vdq.js";
1
+ import { g as e, b as r, d as o, h as y, l, r as i, f } from "./index-QTsd1BO1.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const h = {
4
4
  async readBySettlementId(t) {
@@ -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-7Tof5vdq.js";
2
+ import { u as J } from "./index-QTsd1BO1.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.14-dev",
3
+ "version": "1.5.16-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -38,7 +38,7 @@
38
38
  "@feedmepos/core": "^2.6.0",
39
39
  "@feedmepos/mf-common": "^1.26.8",
40
40
  "@feedmepos/mf-financing": "0.0.24-dev",
41
- "@feedmepos/payment-entity": "0.1.56",
41
+ "@feedmepos/payment-entity": "0.1.57",
42
42
  "@feedmepos/ui-library": "^1.7.1",
43
43
  "axios": "^0.27.2",
44
44
  "buffer": "^6.0.3",
@@ -1,7 +1,7 @@
1
- import { a as st, c as it, p as E, B as at } from "./index-7Tof5vdq.js";
1
+ import { a as st, c as it, p as E, B as at } from "./index-QTsd1BO1.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
- import { d as H } from "./index-a1n8cWO_.js";
4
- import { _ as ot } from "./app-DfYY05aO.js";
3
+ import { d as H } from "./index-DTD9SWXp.js";
4
+ import { _ as ot } from "./app-Be-8zsJx.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {