@feedmepos/mf-payment 1.0.4-beta.1 → 1.0.4

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 (55) hide show
  1. package/dist/{PayoutAccount-DBhxJpFQ.js → PayoutAccount-BnYhJ0R2.js} +5 -5
  2. package/dist/{PayoutAccount-Dy-eEx08.js → PayoutAccount-Cjkghc6L.js} +3 -3
  3. package/dist/{PayoutAccountSetting-BaRtIsKY.js → PayoutAccountSetting-C1yeSNv8.js} +4 -4
  4. package/dist/Restaurant-B02jty0J.js +262 -0
  5. package/dist/{RestaurantSetting-D-cBpybz.js → RestaurantSetting-CWZAKz1A.js} +4 -4
  6. package/dist/{Settlement-B3CKERls.js → Settlement-BKwie9R8.js} +3 -3
  7. package/dist/{Settlement-SSy8FZgq.js → Settlement-ByPXBNx1.js} +3 -3
  8. package/dist/{SettlementTransactions-BkH69jUI.js → SettlementTransactions-DVRoAUYv.js} +4 -4
  9. package/dist/{SettlementTransactions-hB3JKgE5.js → SettlementTransactions-rXQceUoG.js} +4 -4
  10. package/dist/Terminal-DX8v8WpM.js +386 -0
  11. package/dist/{TerminalSetting-BltsUaiq.js → TerminalSetting-qklmRz3H.js} +3 -3
  12. package/dist/{TerminalTransaction-EYjZZ_w_.js → TerminalTransaction-64Bn6vh0.js} +18 -19
  13. package/dist/{TerminalTransaction-DC0asF22.js → TerminalTransaction-YXcGJ2ne.js} +154 -184
  14. package/dist/{Transaction-DJo1HsrU.js → Transaction-BOc0NW9a.js} +27 -31
  15. package/dist/{Transaction-DBGFZ03y.js → Transaction-CqTKm8KP.js} +48 -81
  16. package/dist/{app-D0XKYcX9.js → app-JZYaBz1E.js} +215 -215
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-CtxhVAqn.js → assets-DjRoCcqv.js} +1 -1
  19. package/dist/{index-D-6CKdYb.js → index-BEFlDEyV.js} +1 -1
  20. package/dist/{index-5sP9T4Lq.js → index-BWFqxSU3.js} +1 -1
  21. package/dist/{index-l8-xPUow.js → index-BerQZMQW.js} +1 -1
  22. package/dist/{index-TG70bysm.js → index-Bp_58SiC.js} +1 -1
  23. package/dist/{index-BSWqm4n5.js → index-CKyh0nlu.js} +1 -1
  24. package/dist/{index-6-EWa9pE.js → index-CWGSYCJG.js} +1 -1
  25. package/dist/{index-D2L_rQB_.js → index-DFePh4ct.js} +1 -1
  26. package/dist/{index-BO5zewDS.js → index-Dj_LwPBy.js} +8151 -8295
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-CmDoWsi3.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +1 -1
  28. package/dist/model/payout-account.d.ts +1 -1
  29. package/dist/model/transaction.d.ts +0 -2
  30. package/dist/package.json +2 -2
  31. package/dist/{payout-account-DvLt0SFL.js → payout-account-DWXNiWdx.js} +2 -2
  32. package/dist/stores/payoutAccount.d.ts +6 -6
  33. package/dist/{transaction-DiuoGMjE.js → transaction-Bxl86wzh.js} +20 -25
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +6 -6
  36. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +6 -6
  37. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +6 -6
  38. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +6 -6
  39. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  40. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  41. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  42. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
  43. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
  44. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  45. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
  46. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +1 -3
  47. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  48. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +12 -12
  49. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  50. package/package.json +2 -2
  51. package/dist/Restaurant-CQsEnEZr.js +0 -305
  52. package/dist/Terminal-DaCXiq41.js +0 -404
  53. package/dist/grafana-CqkYm_ru.js +0 -46
  54. package/dist/helpers/grafana.d.ts +0 -7
  55. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +0 -5
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as T, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R } from "vue";
2
- import { u as G } from "./index-BO5zewDS.js";
2
+ import { u as G } from "./index-Dj_LwPBy.js";
3
3
  import "@feedmepos/ui-library";
4
4
  const H = ["id"], U = /* @__PURE__ */ I({
5
5
  __name: "FmTableSelection",
@@ -26,7 +26,7 @@ declare const _default: {
26
26
  groupByStatus: typeof groupByStatus;
27
27
  bankTypeOptions: {
28
28
  label: string;
29
- value: "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | "OTHER";
29
+ value: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT";
30
30
  }[];
31
31
  bankNameOptions: {
32
32
  label: string;
@@ -4,7 +4,6 @@ export interface PortalPaymentTransaction {
4
4
  id: string;
5
5
  payId: string;
6
6
  transactionAt: string;
7
- createdAt: string;
8
7
  method: PaymentTransactionDtoOutput["method"];
9
8
  gateway: F_PAYMENT_GATEWAY_KEY;
10
9
  status: string;
@@ -12,7 +11,6 @@ export interface PortalPaymentTransaction {
12
11
  fdoAmount: FdoDinero;
13
12
  fee: string;
14
13
  payout: string;
15
- seqNumber?: string;
16
14
  }
17
15
  declare function toTransaction(trx: PaymentTransactionDtoOutput): PortalPaymentTransaction;
18
16
  declare function toTransactions(trxs: PaymentTransactionDtoOutput[]): PortalPaymentTransaction[];
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.0.4-beta.1",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -33,7 +33,7 @@
33
33
  "@casl/ability": "^3.2.0",
34
34
  "@feedmepos/core": "^2.6.0",
35
35
  "@feedmepos/mf-common": "^1.8.21",
36
- "@feedmepos/payment-entity": "^0.0.10",
36
+ "@feedmepos/payment-entity": "^0.0.6",
37
37
  "@feedmepos/ui-library": "^1.2.61",
38
38
  "axios": "^0.27.2",
39
39
  "buffer": "^6.0.3",
@@ -1,5 +1,5 @@
1
- import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-D0XKYcX9.js";
2
- import { d as at, f as ut, _ as Y, m as ct } from "./index-BO5zewDS.js";
1
+ import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-JZYaBz1E.js";
2
+ import { d as at, f as ut, _ as Y, m as ct } from "./index-Dj_LwPBy.js";
3
3
  /**
4
4
  * @license
5
5
  * Copyright 2017 Google LLC
@@ -11,9 +11,9 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
11
11
  _id: string;
12
12
  store: {
13
13
  bank?: {
14
- type?: "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | "OTHER" | null | undefined;
15
- accountNumber?: string | null | undefined;
14
+ type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
16
15
  holderName?: string | null | undefined;
16
+ accountNumber?: string | null | undefined;
17
17
  name: string;
18
18
  } | null | undefined;
19
19
  ssm?: string | null | undefined;
@@ -34,7 +34,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
34
34
  precision: number;
35
35
  } | null | undefined;
36
36
  tPlus?: number | null | undefined;
37
- issuer: "OTHER" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "FEEDME" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
37
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
38
38
  variant: string;
39
39
  }[];
40
40
  businessId: string;
@@ -46,9 +46,9 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
46
46
  _id: string;
47
47
  store: {
48
48
  bank?: {
49
- type?: "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | "OTHER" | null | undefined;
50
- accountNumber?: string | null | undefined;
49
+ type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
51
50
  holderName?: string | null | undefined;
51
+ accountNumber?: string | null | undefined;
52
52
  name: string;
53
53
  } | null | undefined;
54
54
  ssm?: string | null | undefined;
@@ -69,7 +69,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
69
69
  precision: number;
70
70
  } | null | undefined;
71
71
  tPlus?: number | null | undefined;
72
- issuer: "OTHER" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "FEEDME" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
72
+ issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
73
73
  variant: string;
74
74
  }[];
75
75
  businessId: string;
@@ -1,53 +1,53 @@
1
- import { g as a, b as e, r as o, l as i, i as c } from "./index-BO5zewDS.js";
2
- import { h as n } from "./moment-h96o7c8I.js";
3
- import { d as r } from "./dinero-CIVmXLL-.js";
1
+ import { g as a, b as n, r as o, l as i, i as c } from "./index-Dj_LwPBy.js";
2
+ import { h as e } from "./moment-h96o7c8I.js";
3
+ import { d as s } from "./dinero-CIVmXLL-.js";
4
4
  const f = {
5
5
  async readBySettlementId(t) {
6
6
  return a(
7
- await e().get(
7
+ await n().get(
8
8
  `/transactions/settlements/${t}`
9
9
  )
10
10
  );
11
11
  },
12
12
  async readTransactions(t) {
13
13
  return a(
14
- await e().get("/transactions", {
14
+ await n().get("/transactions", {
15
15
  params: {
16
16
  search: t.search,
17
17
  skip: t.skip,
18
18
  limit: t.limit,
19
- start: n(t.start).startOf("day").toISOString(),
20
- end: n(t.end).endOf("day").toISOString()
19
+ start: e(t.start).startOf("day").toISOString(),
20
+ end: e(t.end).endOf("day").toISOString()
21
21
  }
22
22
  })
23
23
  );
24
24
  },
25
25
  async removeTransactionFromSettlement(t) {
26
26
  return a(
27
- await e().delete(`/settlements/${t}`)
27
+ await n().delete(`/settlements/${t}`)
28
28
  );
29
29
  },
30
30
  async refetchTransaction({
31
31
  transactionId: t
32
32
  }) {
33
33
  return a(
34
- await e().get(`/transactions/refetch/${t}`)
34
+ await n().get(`/transactions/refetch/${t}`)
35
35
  );
36
36
  },
37
37
  async refundTransaction(t) {
38
- return a(await e().post("/payments/refund", t));
38
+ return a(await n().post("/payments/refund", t));
39
39
  },
40
40
  async renotifyTransaction(t) {
41
41
  return a(
42
- await e().post("/payments/re-notify", { transactionId: t })
42
+ await n().post("/payments/re-notify", { transactionId: t })
43
43
  );
44
44
  },
45
45
  async readRestaurantTransactions(t) {
46
46
  return a(
47
47
  await o().get("/transactions", {
48
48
  params: {
49
- start: n(t.start).startOf("day").toISOString(),
50
- end: n(t.end).endOf("day").toISOString()
49
+ start: e(t.start).startOf("day").toISOString(),
50
+ end: e(t.end).endOf("day").toISOString()
51
51
  }
52
52
  })
53
53
  );
@@ -63,17 +63,14 @@ const f = {
63
63
  return i(t, {
64
64
  filename: "transaction-report.xlsx",
65
65
  transformers: {
66
- method: (s) => (s == null ? void 0 : s.issuer) ?? ""
66
+ method: (r) => (r == null ? void 0 : r.issuer) ?? ""
67
67
  }
68
68
  });
69
69
  },
70
70
  async downloadTransactionReport(t) {
71
71
  return c(
72
- await e().get("/transactions/report", {
73
- params: {
74
- start: n(t.start).startOf("day").toISOString(),
75
- end: n(t.end).endOf("day").toISOString()
76
- }
72
+ await n().get("/transactions/report", {
73
+ params: t
77
74
  }),
78
75
  `transaction-report-${t.start}-${t.end}.xlsx`
79
76
  );
@@ -86,13 +83,11 @@ function d(t) {
86
83
  method: t.method,
87
84
  gateway: t.gateway,
88
85
  status: t.status,
89
- createdAt: n(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
90
- transactionAt: n(t.completedAt).format("YYYY-MM-DD hh:mm:ss"),
86
+ transactionAt: e(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
91
87
  fdoAmount: t.amount,
92
- amount: r(t.amount).toFormat("$0.00"),
93
- fee: r(t.fee).toFormat("$0.00"),
94
- payout: r(t.payout).toFormat("$0.00"),
95
- seqNumber: t == null ? void 0 : t.seqNumber
88
+ amount: s(t.amount).toFormat("$0.00"),
89
+ fee: s(t.fee).toFormat("$0.00"),
90
+ payout: s(t.payout).toFormat("$0.00")
96
91
  };
97
92
  }
98
93
  function p(t) {