@feedmepos/mf-payment 1.5.46-dev → 1.5.52-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 (58) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-imtYa6pD.js → Actions.vue_vue_type_script_setup_true_lang-CkvJljZO.js} +1 -1
  2. package/dist/{Chargeback-BAwE_K4Y.js → Chargeback-6iuWBeI2.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-C5ZtdhGx.js → DocumentViewer.vue_vue_type_script_setup_true_lang-OmBpXKer.js} +1 -1
  4. package/dist/{OnboardForm-DjJJDppP.js → OnboardForm-B3vBfHTj.js} +5 -5
  5. package/dist/{OnboardForm-BnOjTX3d.js → OnboardForm-BtslgSp5.js} +5 -5
  6. package/dist/{OnboardSubmission-XoU4v3Ml.js → OnboardSubmission-C1ppdHRu.js} +5 -5
  7. package/dist/OnboardSubmission-D1i7tUeJ.js +222 -0
  8. package/dist/{PayoutAccount-C1XsctKx.js → PayoutAccount-BgcUH3Lk.js} +5 -5
  9. package/dist/{PayoutAccount-DzGBidQR.js → PayoutAccount-TVQGDmi8.js} +4 -4
  10. package/dist/{PayoutAccountSetting-XryMDSqp.js → PayoutAccountSetting-It0MmOKV.js} +4 -4
  11. package/dist/{Restaurant-C7q0wptl.js → Restaurant-BuxwLnR4.js} +4 -4
  12. package/dist/{RestaurantSetting-C22ggesm.js → RestaurantSetting-Dmhzr9be.js} +3 -3
  13. package/dist/{Settlement-CRLtmX9T.js → Settlement-C89j3OZr.js} +3 -3
  14. package/dist/{Settlement-B-33HHZr.js → Settlement-CxsJJQp5.js} +4 -4
  15. package/dist/{SettlementTransactions-BwwtI2Mb.js → SettlementTransactions-oc-sT18u.js} +4 -4
  16. package/dist/{SettlementTransactions-C_Ibz9wJ.js → SettlementTransactions-u27r0h8a.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang--xGDd1jJ.js → Status.vue_vue_type_script_setup_true_lang-BESgeD2u.js} +1 -1
  18. package/dist/{Terminal-DEC4qMAg.js → Terminal-DKMNAvjq.js} +5 -5
  19. package/dist/{TerminalSetting-Bg4cFHZv.js → TerminalSetting-CjbtdTlL.js} +3 -3
  20. package/dist/{Transaction-CJMmMCsK.js → Transaction-BtbTjwIH.js} +5 -5
  21. package/dist/{Transaction-BK4gt-VH.js → Transaction-CC0DaPbH.js} +9 -9
  22. package/dist/{TransactionOld-DtwXOqhV.js → TransactionOld-jcOxo0TN.js} +6 -6
  23. package/dist/api/onboard-submission/index.d.ts +2 -1
  24. package/dist/{app-BE4dnWPA.js → app-BaSrnCcC.js} +36 -24
  25. package/dist/app.js +1 -1
  26. package/dist/{assets-DzfkXhFM.js → assets-z1SFV5YX.js} +2 -2
  27. package/dist/{grafana-Cjaoae5w.js → grafana-DqZQILnD.js} +1 -1
  28. package/dist/{index-CuB75_Ym.js → index-B8KU4_R2.js} +1 -1
  29. package/dist/{index-D4o-xkBR.js → index-BKbdCXBS.js} +1 -1
  30. package/dist/{index-Df8oNJMI.js → index-BdoKrYCJ.js} +1 -1
  31. package/dist/index-BeeoiRHZ.js +38591 -0
  32. package/dist/{index-CTNYHRdm.js → index-BpNXNi7o.js} +1 -1
  33. package/dist/{index-CzCUp2Ef.js → index-BtpGftcM.js} +1 -1
  34. package/dist/{index-CkPyzQ9d.js → index-D2bYJt3H.js} +1 -1
  35. package/dist/{index-CuHYOVxr.js → index-DMhjy8uJ.js} +23 -16
  36. package/dist/{index-Cfss7GMG.js → index-Kpua9F5o.js} +1 -1
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-anWWl6xH.js → index.vue_vue_type_script_setup_true_lang-CL_J8vkd.js} +1 -1
  38. package/dist/model/transaction.d.ts +1 -1
  39. package/dist/package.json +3 -3
  40. package/dist/{payout-account-D03bFzty.js → payout-account-C6Z0yAIR.js} +3 -3
  41. package/dist/stores/payoutAccount.d.ts +26 -26
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
  44. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  45. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +26 -26
  46. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +28 -28
  47. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +28 -28
  48. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +26 -26
  49. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +26 -26
  50. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +28 -28
  51. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  52. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +52 -52
  53. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +76 -76
  54. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +38 -38
  55. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  56. package/package.json +2 -2
  57. package/dist/OnboardSubmission-WnyoWr5v.js +0 -192
  58. package/dist/index-CxJSwrU1.js +0 -56817
@@ -1,4 +1,4 @@
1
- import { g as n, b as e, d as o, h as m, l, f as i, r as f } from "./index-CxJSwrU1.js";
1
+ import { g as n, b as e, d as o, h as m, l, f as i, r as f } from "./index-BeeoiRHZ.js";
2
2
  import { h as a } from "./moment-h96o7c8I.js";
3
3
  const w = {
4
4
  async readBySettlementId(t) {
@@ -1,4 +1,4 @@
1
- import { b as r, g as e } from "./index-CxJSwrU1.js";
1
+ import { b as r, g as e } from "./index-BeeoiRHZ.js";
2
2
  const n = {
3
3
  async readRestaurantById(t) {
4
4
  const a = await r().get(`/restaurants/${t}`);
@@ -1,4 +1,4 @@
1
- import { g as a, b as t, p as r, f as i, d as s } from "./index-CxJSwrU1.js";
1
+ import { g as a, b as t, p as r, f as i, d as s } from "./index-BeeoiRHZ.js";
2
2
  const y = {
3
3
  async create(e) {
4
4
  return s(
@@ -1,6 +1,6 @@
1
- import { g as t, b as a, o as u, d as m } from "./index-CxJSwrU1.js";
1
+ import { g as n, b as a, o as u, d as m } from "./index-BeeoiRHZ.js";
2
2
  import { h as d } from "./moment-h96o7c8I.js";
3
- import { d as b } from "./index-CuB75_Ym.js";
3
+ import { d as b } from "./index-B8KU4_R2.js";
4
4
  const w = {
5
5
  async read(s) {
6
6
  return m(
@@ -10,59 +10,66 @@ const w = {
10
10
  );
11
11
  },
12
12
  async readById(s) {
13
- return t(
13
+ return n(
14
14
  await a().get(`/payments/onboard-submissions/${s}`)
15
15
  );
16
16
  },
17
17
  async previewDocument(s) {
18
- const n = await a().get(
18
+ const t = await a().get(
19
19
  `payments/onboard-submissions/${s}/document`,
20
20
  { responseType: "blob" }
21
21
  );
22
- u(n.data);
22
+ u(t.data);
23
23
  },
24
24
  async sendDocument(s) {
25
- return t(
25
+ return n(
26
26
  await a().post(
27
27
  `payments/onboard-submissions/${s}/send`
28
28
  )
29
29
  );
30
30
  },
31
- async reviewById(s, n) {
32
- return t(
31
+ async reviewById(s, t) {
32
+ return n(
33
33
  await a().put(
34
34
  `/payments/onboard-submissions/${s}`,
35
- n
35
+ t
36
36
  )
37
37
  );
38
38
  },
39
- async getById(s, n) {
40
- return t(
39
+ async getById(s, t) {
40
+ return n(
41
41
  await a().get(
42
- `restaurants/${n}/onboard-submissions/${s}`
42
+ `restaurants/${t}/onboard-submissions/${s}`
43
43
  )
44
44
  );
45
45
  },
46
46
  async getByRestaurant(s) {
47
- return t(
47
+ return n(
48
48
  await a().get(
49
49
  `restaurants/${s}/onboard-submissions`
50
50
  )
51
51
  );
52
52
  },
53
- async uploadDocument(s, n, e) {
53
+ async getOnboardSubmissionTyroAuthUrl(s) {
54
+ return n(
55
+ await a().get(
56
+ `restaurants/${s}/onboard-submissions/tyro/auth`
57
+ )
58
+ );
59
+ },
60
+ async uploadDocument(s, t, e) {
54
61
  var r;
55
62
  const i = d().toISOString(), o = (r = e.name.toLowerCase().match(/\.([a-z0-9]+)$/)) == null ? void 0 : r[1];
56
63
  if (!o)
57
64
  throw new Error("Unable to determine file extension from filename");
58
65
  return await b.upload(
59
- `restaurant/${s}/documents/${n}/${i}.${o}`,
66
+ `restaurant/${s}/documents/${t}/${i}.${o}`,
60
67
  e,
61
68
  s
62
69
  );
63
70
  },
64
71
  async updateSubmission(s) {
65
- return t(
72
+ return n(
66
73
  await a().put(
67
74
  `restaurants/${s.restaurantId}/onboard-submissions`,
68
75
  s
@@ -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-CxJSwrU1.js";
3
+ import { a as y } from "./index-BeeoiRHZ.js";
4
4
  var d = {};
5
5
  (function(s) {
6
6
  (function(c) {
@@ -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-CxJSwrU1.js";
2
+ import { u as J } from "./index-BeeoiRHZ.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const K = ["id"], L = /* @__PURE__ */ U({
5
5
  __name: "FmTableSelection",
@@ -1,5 +1,5 @@
1
- import { FdoDinero } from "@feedmepos/core/entity";
2
1
  import { F_PAYMENT_GATEWAY_KEY, type FdoPaymentTransactionV2Output } from "@feedmepos/payment-entity";
2
+ import type { FdoDinero } from "@feedmepos/payment-entity/payment";
3
3
  export interface PortalPaymentTransaction {
4
4
  id: string;
5
5
  transactionId: string | null | undefined;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.46-dev",
3
+ "version": "1.5.52-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.69",
41
+ "@feedmepos/payment-entity": "0.1.71",
42
42
  "@feedmepos/ui-library": "^1.7.1",
43
43
  "axios": "^0.27.2",
44
44
  "buffer": "^6.0.3",
@@ -107,4 +107,4 @@
107
107
  "vite": "^5.2.11",
108
108
  "vue-tsc": "^2.0.11"
109
109
  }
110
- }
110
+ }
@@ -1,7 +1,7 @@
1
- import { a as st, c as it, p as E, B as at } from "./index-CxJSwrU1.js";
1
+ import { a as st, c as it, p as E, B as at } from "./index-BeeoiRHZ.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
- import { d as H } from "./index-CuB75_Ym.js";
4
- import { _ as ot } from "./app-BE4dnWPA.js";
3
+ import { d as H } from "./index-B8KU4_R2.js";
4
+ import { _ as ot } from "./app-BaSrnCcC.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {
@@ -7,22 +7,21 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
7
7
  businessPayoutAccounts: {
8
8
  enable?: boolean | null | undefined;
9
9
  gateways?: ({
10
- paymentGateway: "REVENUE_MONSTER";
11
10
  config: {
12
11
  clientId: string;
13
12
  clientPrivateKey: string;
14
13
  clientSecret: string;
15
14
  storeId: string;
16
15
  };
16
+ paymentGateway: "REVENUE_MONSTER";
17
17
  } | {
18
- paymentGateway: "RAZER_MERCHANT_SERVICE";
19
18
  config: {
20
19
  merchantId: string;
21
20
  secretKey: string;
22
21
  verifyKey: string;
23
22
  };
23
+ paymentGateway: "RAZER_MERCHANT_SERVICE";
24
24
  } | {
25
- paymentGateway: "MACAU_PASS";
26
25
  config: {
27
26
  merchantId: string;
28
27
  merchantName: string;
@@ -30,14 +29,14 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
30
29
  storeID: string;
31
30
  storeName: string;
32
31
  };
32
+ paymentGateway: "MACAU_PASS";
33
33
  } | {
34
- paymentGateway: "DIGIO";
35
34
  config: {
36
35
  merchantId: string;
37
36
  cardMerchantId: string;
38
37
  };
38
+ paymentGateway: "DIGIO";
39
39
  } | {
40
- paymentGateway: "ADYEN";
41
40
  config: {
42
41
  hmacKey?: string | null | undefined;
43
42
  merchantAccount: string;
@@ -46,16 +45,17 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
46
45
  clientKey: string;
47
46
  endpoint: string;
48
47
  };
48
+ paymentGateway: "ADYEN";
49
49
  } | {
50
- paymentGateway: "KSHER";
51
50
  config: {
52
51
  appId: string;
53
52
  privateKey: string;
54
53
  };
54
+ paymentGateway: "KSHER";
55
55
  })[] | null | undefined;
56
56
  ref?: any;
57
57
  status: "NEW" | "PENDING" | "APPROVED";
58
- notifyUrl: string;
58
+ _id: string;
59
59
  store: {
60
60
  bank?: {
61
61
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
@@ -63,20 +63,20 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
63
63
  holderName?: string | null | undefined;
64
64
  name: string;
65
65
  } | null | undefined;
66
- bankStatement?: string | null | undefined;
67
- ssm?: string | null | undefined;
68
- exteriorPhoto?: string | null | undefined;
69
66
  regNo?: string | null | undefined;
70
67
  companyName?: string | null | undefined;
68
+ ssm?: string | null | undefined;
69
+ bankStatement?: string | null | undefined;
70
+ exteriorPhoto?: string | null | undefined;
71
71
  keyPerson?: {
72
+ email: string;
72
73
  name: string;
73
74
  phone: string;
74
- email: string;
75
75
  } | null | undefined;
76
76
  id: string;
77
77
  event: "ORDERING" | "MARKETING";
78
78
  };
79
- _id: string;
79
+ notifyUrl: string;
80
80
  methods: {
81
81
  rate?: {
82
82
  amount: number;
@@ -87,7 +87,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
87
87
  precision: number;
88
88
  } | null | undefined;
89
89
  tPlus?: number | null | undefined;
90
- issuer: "MACAU_PASS" | "FEEDME" | "OTHER" | "CASH" | "KBANK" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY";
90
+ 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";
91
91
  variant: string;
92
92
  }[];
93
93
  businessId: string;
@@ -95,22 +95,21 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
95
95
  } & import("pinia").PiniaCustomStateProperties<PayoutAccountState>) => {
96
96
  enable?: boolean | null | undefined;
97
97
  gateways?: ({
98
- paymentGateway: "REVENUE_MONSTER";
99
98
  config: {
100
99
  clientId: string;
101
100
  clientPrivateKey: string;
102
101
  clientSecret: string;
103
102
  storeId: string;
104
103
  };
104
+ paymentGateway: "REVENUE_MONSTER";
105
105
  } | {
106
- paymentGateway: "RAZER_MERCHANT_SERVICE";
107
106
  config: {
108
107
  merchantId: string;
109
108
  secretKey: string;
110
109
  verifyKey: string;
111
110
  };
111
+ paymentGateway: "RAZER_MERCHANT_SERVICE";
112
112
  } | {
113
- paymentGateway: "MACAU_PASS";
114
113
  config: {
115
114
  merchantId: string;
116
115
  merchantName: string;
@@ -118,14 +117,14 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
118
117
  storeID: string;
119
118
  storeName: string;
120
119
  };
120
+ paymentGateway: "MACAU_PASS";
121
121
  } | {
122
- paymentGateway: "DIGIO";
123
122
  config: {
124
123
  merchantId: string;
125
124
  cardMerchantId: string;
126
125
  };
126
+ paymentGateway: "DIGIO";
127
127
  } | {
128
- paymentGateway: "ADYEN";
129
128
  config: {
130
129
  hmacKey?: string | null | undefined;
131
130
  merchantAccount: string;
@@ -134,16 +133,17 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
134
133
  clientKey: string;
135
134
  endpoint: string;
136
135
  };
136
+ paymentGateway: "ADYEN";
137
137
  } | {
138
- paymentGateway: "KSHER";
139
138
  config: {
140
139
  appId: string;
141
140
  privateKey: string;
142
141
  };
142
+ paymentGateway: "KSHER";
143
143
  })[] | null | undefined;
144
144
  ref?: any;
145
145
  status: "NEW" | "PENDING" | "APPROVED";
146
- notifyUrl: string;
146
+ _id: string;
147
147
  store: {
148
148
  bank?: {
149
149
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
@@ -151,20 +151,20 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
151
151
  holderName?: string | null | undefined;
152
152
  name: string;
153
153
  } | null | undefined;
154
- bankStatement?: string | null | undefined;
155
- ssm?: string | null | undefined;
156
- exteriorPhoto?: string | null | undefined;
157
154
  regNo?: string | null | undefined;
158
155
  companyName?: string | null | undefined;
156
+ ssm?: string | null | undefined;
157
+ bankStatement?: string | null | undefined;
158
+ exteriorPhoto?: string | null | undefined;
159
159
  keyPerson?: {
160
+ email: string;
160
161
  name: string;
161
162
  phone: string;
162
- email: string;
163
163
  } | null | undefined;
164
164
  id: string;
165
165
  event: "ORDERING" | "MARKETING";
166
166
  };
167
- _id: string;
167
+ notifyUrl: string;
168
168
  methods: {
169
169
  rate?: {
170
170
  amount: number;
@@ -175,7 +175,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
175
175
  precision: number;
176
176
  } | null | undefined;
177
177
  tPlus?: number | null | undefined;
178
- issuer: "MACAU_PASS" | "FEEDME" | "OTHER" | "CASH" | "KBANK" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT" | "AMEX" | "JCB" | "DISCOVER" | "DINERS" | "THAIQR" | "TRUEMONEY" | "LINEPAY";
178
+ 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";
179
179
  variant: string;
180
180
  }[];
181
181
  businessId: string;