@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/README.md +11 -1
  2. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  3. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  4. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  5. package/dist/Modal-DB8M9o1T.js +13 -0
  6. package/dist/PayoutAccount-Ce_7sGf-.js +613 -0
  7. package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-ip4hKBE0.js} +96 -83
  8. package/dist/PayoutAccountSetting-kUQLeAcb.js +780 -0
  9. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  10. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
  11. package/dist/Settlement-Crdfq22j.js +149 -0
  12. package/dist/Settlement-JHOJNkhd.js +194 -0
  13. package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-BxuLXUR-.js} +99 -105
  14. package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-daWMAmtz.js} +117 -130
  15. package/dist/Terminal-gxGnjFGc.js +372 -0
  16. package/dist/TerminalSetting--ZAJJ_Hf.js +379 -0
  17. package/dist/TerminalTransaction-B2RjE2Y0.js +435 -0
  18. package/dist/TerminalTransaction-CCfrLWpi.js +259 -0
  19. package/dist/Transaction-8LlOLPeZ.js +404 -0
  20. package/dist/Transaction-DRQ_uZ30.js +241 -0
  21. package/dist/api/index.d.ts +14 -0
  22. package/dist/api/pagination.d.ts +20 -0
  23. package/dist/api/payment-gateway/index.d.ts +9 -0
  24. package/dist/api/settlement/index.d.ts +12 -13
  25. package/dist/api/terminal/index.d.ts +13 -1
  26. package/dist/api/terminal-transaction/index.d.ts +12 -1
  27. package/dist/api/transaction/index.d.ts +7 -2
  28. package/dist/app-DQNKrzQz.js +6356 -0
  29. package/dist/app.js +3 -198
  30. package/dist/assets-NrCec-W0.js +45 -0
  31. package/dist/clipboard-4jh1WteU.js +10 -0
  32. package/dist/components/AsyncButton.vue.d.ts +21 -0
  33. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  34. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  35. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  36. package/dist/components/RouteCell.vue.d.ts +8 -0
  37. package/dist/components/SelectAll.vue.d.ts +57 -0
  38. package/dist/helpers/assets.d.ts +2 -0
  39. package/dist/{index-Bmka-1lQ.js → index-7KNaibcq.js} +1 -1
  40. package/dist/index-BWUtjGg7.js +47 -0
  41. package/dist/{index-CF56zGyu.js → index-BwcJZFsi.js} +1 -1
  42. package/dist/index-CWaKb7bG.js +56107 -0
  43. package/dist/index-CojhNtuG.js +127 -0
  44. package/dist/index-DbJpbpSs.js +52 -0
  45. package/dist/index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js +167 -0
  46. package/dist/model/transaction.d.ts +2 -1
  47. package/dist/package.json +5 -5
  48. package/dist/payout-account-DVoSXsW7.js +1805 -0
  49. package/dist/router/index.d.ts +1 -0
  50. package/dist/stores/payoutAccount.d.ts +4 -4
  51. package/dist/transaction-CQiT7Y_s.js +87 -0
  52. package/dist/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/validator-D5jtpt9A.js +2877 -0
  54. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  55. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  56. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  57. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  58. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  59. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  60. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  61. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  62. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  63. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  64. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  65. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  66. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  67. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  68. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  69. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  70. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  71. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  72. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  73. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  74. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  75. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  76. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  77. package/package.json +5 -5
  78. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  79. package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
  80. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  81. package/dist/Settlement-BVGACeme.js +0 -136
  82. package/dist/Settlement-Ce48KHrc.js +0 -132
  83. package/dist/Terminal-ByKV2Rof.js +0 -204
  84. package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
  85. package/dist/Transaction-CYo-uLQi.js +0 -241
  86. package/dist/Transaction-Cjw9WwX8.js +0 -242
  87. package/dist/api/auth/index.d.ts +0 -7
  88. package/dist/assets-BuLGUMIx.js +0 -472
  89. package/dist/index-Coz5aeIO.js +0 -61
  90. package/dist/index-DCPNrUDq.js +0 -40075
  91. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  92. package/dist/mascot-side-3VXskf9y.js +0 -4
  93. package/dist/payout-account-iAM7HPtG.js +0 -3317
  94. package/dist/transaction-vRrBf3FN.js +0 -64
@@ -2,6 +2,7 @@ import merchantRoutes from "./merchant";
2
2
  import adminRoutes from "./admin";
3
3
  declare module "vue-router" {
4
4
  interface RouteMeta {
5
+ parent?: string;
5
6
  sidebarDisplay?: string;
6
7
  }
7
8
  }
@@ -12,8 +12,8 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"pay
12
12
  store: {
13
13
  bank?: {
14
14
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
15
- accountNumber?: string | 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<"pay
34
34
  precision: number;
35
35
  } | null | undefined;
36
36
  tPlus?: number | null | undefined;
37
- issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "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;
@@ -47,8 +47,8 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"pay
47
47
  store: {
48
48
  bank?: {
49
49
  type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
50
- accountNumber?: string | 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<"pay
69
69
  precision: number;
70
70
  } | null | undefined;
71
71
  tPlus?: number | null | undefined;
72
- issuer: "OTHER" | "FEEDME" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "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;
@@ -0,0 +1,87 @@
1
+ import { g as a, b as n, r, l as o, i } from "./index-CWaKb7bG.js";
2
+ import { d as s } from "./dinero-CIVmXLL-.js";
3
+ import { h as c } from "./moment-h96o7c8I.js";
4
+ const p = {
5
+ async readBySettlementId(t) {
6
+ return a(
7
+ await n().get(
8
+ `/transactions/settlements/${t}`
9
+ )
10
+ );
11
+ },
12
+ async readTransactions(t) {
13
+ return a(await n().get("/transactions", { params: t }));
14
+ },
15
+ async removeTransactionFromSettlement(t) {
16
+ return a(
17
+ await n().delete(`/settlements/${t}`)
18
+ );
19
+ },
20
+ async refetchTransaction({
21
+ transactionId: t
22
+ }) {
23
+ return a(
24
+ await n().get(`/transactions/refetch/${t}`)
25
+ );
26
+ },
27
+ async refundTransaction(t) {
28
+ return a(await n().post("/payments/refund", t));
29
+ },
30
+ async renotifyTransaction(t) {
31
+ return a(
32
+ await n().post("/payments/re-notify", { transactionId: t })
33
+ );
34
+ },
35
+ async readRestaurantTransactions(t) {
36
+ return a(
37
+ await r().get("/transactions", {
38
+ params: t
39
+ })
40
+ );
41
+ },
42
+ async readRestaurantTransactionsBySettlementId(t) {
43
+ return a(
44
+ await r().get(
45
+ `/transactions/settlements/${t}`
46
+ )
47
+ );
48
+ },
49
+ async downloadRestaurantTransactionReport(t) {
50
+ return o(t, {
51
+ filename: "transaction-report.xlsx",
52
+ transformers: {
53
+ method: (e) => (e == null ? void 0 : e.issuer) ?? ""
54
+ }
55
+ });
56
+ },
57
+ async downloadTransactionReport(t) {
58
+ return i(
59
+ await n().get("/transactions/report", {
60
+ params: t
61
+ }),
62
+ `transaction-report-${t.start}-${t.end}.xlsx`
63
+ );
64
+ }
65
+ };
66
+ function m(t) {
67
+ return {
68
+ id: t._id,
69
+ payId: t.payId,
70
+ method: t.method,
71
+ gateway: t.gateway,
72
+ status: t.status,
73
+ transactionAt: c(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
74
+ fdoAmount: t.amount,
75
+ amount: s(t.amount).toFormat("$0.00"),
76
+ fee: s(t.fee).toFormat("$0.00"),
77
+ payout: s(t.payout).toFormat("$0.00")
78
+ };
79
+ }
80
+ function f(t) {
81
+ return t.map(m);
82
+ }
83
+ export {
84
+ f as a,
85
+ m as b,
86
+ p as t
87
+ };