@feedmepos/mf-payment 1.5.6-dev → 1.5.6

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 (70) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cwt13ALm.js → Actions.vue_vue_type_script_setup_true_lang-BLXnOuCw.js} +2 -2
  2. package/dist/{Chargeback-BdT_s3at.js → Chargeback-19afdT_4.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CTA026mA.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C-5XOuTl.js} +1 -1
  4. package/dist/{OnboardForm-BGM0rOan.js → OnboardForm-Cnnx_Wje.js} +5 -5
  5. package/dist/{OnboardForm-BsgH4rQ8.js → OnboardForm-DBgi_Y2Q.js} +5 -5
  6. package/dist/{OnboardSubmission-DcFt464S.js → OnboardSubmission-BB383_k0.js} +5 -5
  7. package/dist/{OnboardSubmission-DrWzegfK.js → OnboardSubmission-BhW5esGJ.js} +2 -2
  8. package/dist/{PayoutAccount-5spM7Xnv.js → PayoutAccount-DNl7LXSp.js} +5 -5
  9. package/dist/{PayoutAccount-D1NqkA8w.js → PayoutAccount-OGJGX0YY.js} +4 -4
  10. package/dist/PayoutAccountSetting-DzkmUdgK.js +1318 -0
  11. package/dist/{Restaurant-DCycaRR7.js → Restaurant-ZiTHtFZJ.js} +4 -4
  12. package/dist/{RestaurantSetting-D6s1uPMz.js → RestaurantSetting-M1jYaGwx.js} +3 -3
  13. package/dist/{Settlement-DlplAJW2.js → Settlement-Cj2W8VfH.js} +3 -3
  14. package/dist/{Settlement-DHebMBfs.js → Settlement-D_nmqYEC.js} +3 -3
  15. package/dist/{SettlementTransactions-D1FZ4SvU.js → SettlementTransactions-DQZUsieX.js} +4 -4
  16. package/dist/{SettlementTransactions-BB3jFvdP.js → SettlementTransactions-DvO6XMC4.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BsbxaRKL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +1 -1
  18. package/dist/{Terminal-DOf20nIw.js → Terminal-CoPPPePw.js} +5 -5
  19. package/dist/{TerminalSetting-fwdOkBMF.js → TerminalSetting-PWs1fyFe.js} +3 -3
  20. package/dist/{Transaction-BojSMumb.js → Transaction-C6CtVbqB.js} +6 -6
  21. package/dist/{Transaction-DRc7VdWm.js → Transaction-DHTahbbJ.js} +9 -9
  22. package/dist/{TransactionOld-CVid_gM_.js → TransactionOld-Cvqw-Osm.js} +6 -6
  23. package/dist/{app-DewutbV3.js → app-BtjXBDKJ.js} +518 -526
  24. package/dist/app.js +4 -5
  25. package/dist/{assets-BnwoyNOf.js → assets-V6CPweA9.js} +1 -1
  26. package/dist/{grafana-Bz7xSfdW.js → grafana-fZyobMgN.js} +1 -1
  27. package/dist/{index-DyEaoZ8f.js → index--K2ipr4H.js} +1 -1
  28. package/dist/{index-Dqk3bGgi.js → index-BJNCcdvT.js} +5504 -5503
  29. package/dist/{index-BcpQUz2-.js → index-C-YBwRQp.js} +1 -1
  30. package/dist/{index-BGliGchf.js → index-CMN40t8e.js} +1 -1
  31. package/dist/{index-Bi2r6bNV.js → index-CtkwL_6R.js} +1 -1
  32. package/dist/{index-DaMy_lQ6.js → index-D69RnDa7.js} +1 -1
  33. package/dist/{index-6TNmNay6.js → index-_u7l8cO3.js} +1 -1
  34. package/dist/{index-DqW_m_SE.js → index-eLZ3BErV.js} +1 -1
  35. package/dist/{index-D68osbqj.js → index-ysvBViCR.js} +26 -23
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-D6hndvwu.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-BTAtskf1.js → payout-account-DKOx8gaG.js} +3 -3
  39. package/dist/stores/payoutAccount.d.ts +22 -30
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -30
  42. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -30
  43. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -30
  44. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +24 -32
  45. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -30
  46. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -30
  47. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  48. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +8 -8
  49. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  50. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +8 -8
  51. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +8 -8
  52. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +8 -8
  53. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +8 -8
  54. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +8 -8
  55. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +8 -8
  56. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +8 -8
  57. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +8 -8
  58. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +8 -8
  59. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +8 -8
  60. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +8 -8
  61. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +8 -8
  62. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +8 -8
  63. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +8 -8
  64. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +8 -8
  65. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -60
  66. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +52 -52
  67. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +26 -26
  68. package/package.json +2 -2
  69. package/dist/PayoutAccountSetting-BSmvV6yF.js +0 -1359
  70. package/dist/views/admin/payout-account/cell/MinimumFeeInput.vue.d.ts +0 -6
@@ -1,4 +1,4 @@
1
- import { g as a, b as t, p as r, f as i, d as s } from "./index-Dqk3bGgi.js";
1
+ import { g as a, b as t, p as r, f as i, d as s } from "./index-BJNCcdvT.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-Dqk3bGgi.js";
1
+ import { b as r, g as e } from "./index-BJNCcdvT.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -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-Dqk3bGgi.js";
3
+ import { a as y } from "./index-BJNCcdvT.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -1,4 +1,4 @@
1
- import { g as n, b as s, f as u, d as e } from "./index-Dqk3bGgi.js";
1
+ import { g as n, b as s, f as u, d as e } from "./index-BJNCcdvT.js";
2
2
  const o = {
3
3
  async read(a) {
4
4
  return e(
@@ -1,4 +1,4 @@
1
- import { f as s } from "./index-Dqk3bGgi.js";
1
+ import { f as s } from "./index-BJNCcdvT.js";
2
2
  const c = {
3
3
  async upload(e, t, o) {
4
4
  const n = (await s().post("/document/presign", {
@@ -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-Dqk3bGgi.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-BJNCcdvT.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,65 +1,68 @@
1
- import { g as n, b as a, o as r, d as i } from "./index-Dqk3bGgi.js";
2
- import { h as u } from "./moment-h96o7c8I.js";
3
- import { d as m } from "./index-6TNmNay6.js";
4
- const c = {
1
+ import { g as t, b as a, o as u, d as m } from "./index-BJNCcdvT.js";
2
+ import { h as d } from "./moment-h96o7c8I.js";
3
+ import { d as b } from "./index-_u7l8cO3.js";
4
+ const w = {
5
5
  async read(s) {
6
- return i(
6
+ return m(
7
7
  await a().get("/payments/onboard-submissions", {
8
8
  params: { ...s }
9
9
  })
10
10
  );
11
11
  },
12
12
  async readById(s) {
13
- return n(
13
+ return t(
14
14
  await a().get(`/payments/onboard-submissions/${s}`)
15
15
  );
16
16
  },
17
17
  async previewDocument(s) {
18
- const t = await a().get(
18
+ const n = await a().get(
19
19
  `payments/onboard-submissions/${s}/document`,
20
20
  { responseType: "blob" }
21
21
  );
22
- r(t.data);
22
+ u(n.data);
23
23
  },
24
24
  async sendDocument(s) {
25
- return n(
25
+ return t(
26
26
  await a().post(
27
27
  `payments/onboard-submissions/${s}/send`
28
28
  )
29
29
  );
30
30
  },
31
- async reviewById(s, t) {
32
- return n(
31
+ async reviewById(s, n) {
32
+ return t(
33
33
  await a().put(
34
34
  `/payments/onboard-submissions/${s}`,
35
- t
35
+ n
36
36
  )
37
37
  );
38
38
  },
39
- async getById(s, t) {
40
- return n(
39
+ async getById(s, n) {
40
+ return t(
41
41
  await a().get(
42
- `restaurants/${t}/onboard-submissions/${s}`
42
+ `restaurants/${n}/onboard-submissions/${s}`
43
43
  )
44
44
  );
45
45
  },
46
46
  async getByRestaurant(s) {
47
- return n(
47
+ return t(
48
48
  await a().get(
49
49
  `restaurants/${s}/onboard-submissions`
50
50
  )
51
51
  );
52
52
  },
53
- async uploadDocument(s, t, o) {
54
- const e = u().toISOString();
55
- return await m.upload(
56
- `restaurant/${s}/documents/${t}/${e}.pdf`,
57
- o,
53
+ async uploadDocument(s, n, e) {
54
+ var r;
55
+ const i = d().toISOString(), o = (r = e.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
56
+ if (!o)
57
+ throw new Error("Unable to determine file extension from filename");
58
+ return await b.upload(
59
+ `restaurant/${s}/documents/${n}/${i}.${o}`,
60
+ e,
58
61
  s
59
62
  );
60
63
  },
61
64
  async updateSubmission(s) {
62
- return n(
65
+ return t(
63
66
  await a().put(
64
67
  `restaurants/${s.restaurantId}/onboard-submissions`,
65
68
  s
@@ -68,5 +71,5 @@ const c = {
68
71
  }
69
72
  };
70
73
  export {
71
- c as o
74
+ w as o
72
75
  };
@@ -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-Dqk3bGgi.js";
2
+ import { u as J } from "./index-BJNCcdvT.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.6-dev",
3
+ "version": "1.5.6",
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.53",
41
+ "@feedmepos/payment-entity": "0.1.52",
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-Dqk3bGgi.js";
1
+ import { a as st, c as it, p as E, B as at } from "./index-BJNCcdvT.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
- import { d as H } from "./index-6TNmNay6.js";
4
- import { _ as ot } from "./app-DewutbV3.js";
3
+ import { d as H } from "./index-_u7l8cO3.js";
4
+ import { _ as ot } from "./app-BtjXBDKJ.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {
@@ -7,21 +7,22 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
7
7
  businessPayoutAccounts: {
8
8
  enable?: boolean | null | undefined;
9
9
  gateways?: ({
10
+ paymentGateway: "REVENUE_MONSTER";
10
11
  config: {
11
12
  clientId: string;
12
13
  clientPrivateKey: string;
13
14
  clientSecret: string;
14
15
  storeId: string;
15
16
  };
16
- paymentGateway: "REVENUE_MONSTER";
17
17
  } | {
18
+ paymentGateway: "RAZER_MERCHANT_SERVICE";
18
19
  config: {
19
20
  merchantId: string;
20
21
  secretKey: string;
21
22
  verifyKey: string;
22
23
  };
23
- paymentGateway: "RAZER_MERCHANT_SERVICE";
24
24
  } | {
25
+ paymentGateway: "MACAU_PASS";
25
26
  config: {
26
27
  merchantId: string;
27
28
  merchantName: string;
@@ -29,33 +30,32 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
29
30
  storeID: string;
30
31
  storeName: string;
31
32
  };
32
- paymentGateway: "MACAU_PASS";
33
33
  } | {
34
+ paymentGateway: "DIGIO";
34
35
  config: {
35
36
  merchantId: string;
36
37
  cardMerchantId: string;
37
38
  };
38
- paymentGateway: "DIGIO";
39
39
  } | {
40
+ paymentGateway: "ADYEN";
40
41
  config: {
41
42
  hmacKey?: string | null | undefined;
43
+ clientKey: string;
42
44
  merchantAccount: string;
43
45
  username: string;
44
46
  apiKey: string;
45
- clientKey: string;
46
47
  endpoint: string;
47
48
  };
48
- paymentGateway: "ADYEN";
49
49
  } | {
50
+ paymentGateway: "KSHER";
50
51
  config: {
51
52
  appId: string;
52
53
  privateKey: string;
53
54
  };
54
- paymentGateway: "KSHER";
55
55
  })[] | null | undefined;
56
56
  ref?: any;
57
57
  status: "NEW" | "PENDING" | "APPROVED";
58
- _id: string;
58
+ notifyUrl: string;
59
59
  store: {
60
60
  bank?: {
61
61
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
@@ -63,27 +63,23 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
63
63
  holderName?: string | null | undefined;
64
64
  name: string;
65
65
  } | null | undefined;
66
- ssm?: string | null | undefined;
67
66
  bankStatement?: string | null | undefined;
67
+ ssm?: string | null | undefined;
68
68
  exteriorPhoto?: string | null | undefined;
69
69
  keyPerson?: {
70
+ email: string;
70
71
  name: string;
71
72
  phone: string;
72
- email: string;
73
73
  } | null | undefined;
74
74
  id: string;
75
75
  event: "ORDERING" | "MARKETING";
76
76
  };
77
- notifyUrl: string;
77
+ _id: string;
78
78
  methods: {
79
79
  rate?: {
80
80
  amount: number;
81
81
  precision: number;
82
82
  } | null | undefined;
83
- minimumFee?: {
84
- amount: number;
85
- precision: number;
86
- } | null | undefined;
87
83
  tPlus?: number | null | undefined;
88
84
  issuer: "MACAU_PASS" | "FEEDME" | "OTHER" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "CASH" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "KBANK";
89
85
  variant: string;
@@ -93,21 +89,22 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
93
89
  } & import("pinia").PiniaCustomStateProperties<PayoutAccountState>) => {
94
90
  enable?: boolean | null | undefined;
95
91
  gateways?: ({
92
+ paymentGateway: "REVENUE_MONSTER";
96
93
  config: {
97
94
  clientId: string;
98
95
  clientPrivateKey: string;
99
96
  clientSecret: string;
100
97
  storeId: string;
101
98
  };
102
- paymentGateway: "REVENUE_MONSTER";
103
99
  } | {
100
+ paymentGateway: "RAZER_MERCHANT_SERVICE";
104
101
  config: {
105
102
  merchantId: string;
106
103
  secretKey: string;
107
104
  verifyKey: string;
108
105
  };
109
- paymentGateway: "RAZER_MERCHANT_SERVICE";
110
106
  } | {
107
+ paymentGateway: "MACAU_PASS";
111
108
  config: {
112
109
  merchantId: string;
113
110
  merchantName: string;
@@ -115,33 +112,32 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
115
112
  storeID: string;
116
113
  storeName: string;
117
114
  };
118
- paymentGateway: "MACAU_PASS";
119
115
  } | {
116
+ paymentGateway: "DIGIO";
120
117
  config: {
121
118
  merchantId: string;
122
119
  cardMerchantId: string;
123
120
  };
124
- paymentGateway: "DIGIO";
125
121
  } | {
122
+ paymentGateway: "ADYEN";
126
123
  config: {
127
124
  hmacKey?: string | null | undefined;
125
+ clientKey: string;
128
126
  merchantAccount: string;
129
127
  username: string;
130
128
  apiKey: string;
131
- clientKey: string;
132
129
  endpoint: string;
133
130
  };
134
- paymentGateway: "ADYEN";
135
131
  } | {
132
+ paymentGateway: "KSHER";
136
133
  config: {
137
134
  appId: string;
138
135
  privateKey: string;
139
136
  };
140
- paymentGateway: "KSHER";
141
137
  })[] | null | undefined;
142
138
  ref?: any;
143
139
  status: "NEW" | "PENDING" | "APPROVED";
144
- _id: string;
140
+ notifyUrl: string;
145
141
  store: {
146
142
  bank?: {
147
143
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
@@ -149,27 +145,23 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
149
145
  holderName?: string | null | undefined;
150
146
  name: string;
151
147
  } | null | undefined;
152
- ssm?: string | null | undefined;
153
148
  bankStatement?: string | null | undefined;
149
+ ssm?: string | null | undefined;
154
150
  exteriorPhoto?: string | null | undefined;
155
151
  keyPerson?: {
152
+ email: string;
156
153
  name: string;
157
154
  phone: string;
158
- email: string;
159
155
  } | null | undefined;
160
156
  id: string;
161
157
  event: "ORDERING" | "MARKETING";
162
158
  };
163
- notifyUrl: string;
159
+ _id: string;
164
160
  methods: {
165
161
  rate?: {
166
162
  amount: number;
167
163
  precision: number;
168
164
  } | null | undefined;
169
- minimumFee?: {
170
- amount: number;
171
- precision: number;
172
- } | null | undefined;
173
165
  tPlus?: number | null | undefined;
174
166
  issuer: "MACAU_PASS" | "FEEDME" | "OTHER" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "CASH" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY" | "KBANK";
175
167
  variant: string;