@feedmepos/mf-payment 1.1.6 → 1.1.7-beta.3

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 (39) hide show
  1. package/dist/{PayoutAccount-CBGLfBag.js → PayoutAccount-CnTCZExr.js} +5 -5
  2. package/dist/{PayoutAccount-Bl2-Th-5.js → PayoutAccount-Crwu1h-c.js} +3 -3
  3. package/dist/{PayoutAccountSetting-DiMwWLwY.js → PayoutAccountSetting-PyIESuN8.js} +3 -3
  4. package/dist/{Restaurant-CdB7D9zA.js → Restaurant-BF1J35Ic.js} +4 -4
  5. package/dist/{RestaurantSetting-CQyXjYux.js → RestaurantSetting-Dg7cfqKF.js} +3 -3
  6. package/dist/Settlement-B-TQCdB4.js +219 -0
  7. package/dist/{Settlement-7WRCiiQ4.js → Settlement-BPrjfDMN.js} +3 -3
  8. package/dist/{SettlementTransactions-CymvVBh8.js → SettlementTransactions-C13T6n0z.js} +3 -3
  9. package/dist/{SettlementTransactions-B1dUvxhz.js → SettlementTransactions-CpRADd8a.js} +20 -16
  10. package/dist/{Terminal-DRKD8BO1.js → Terminal-DgKJ9zSL.js} +6 -6
  11. package/dist/TerminalSetting-Boh1fu6s.js +489 -0
  12. package/dist/{Transaction-DQQI8kOT.js → Transaction-BvvhqS95.js} +52 -47
  13. package/dist/{Transaction-DcQQ_4ku.js → Transaction-CsAF2AXj.js} +6 -6
  14. package/dist/{TransactionOld-DJJIQo-i.js → TransactionOld-DsC0R1Qe.js} +5 -5
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-C_3J1G8_.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtrMBxwz.js} +7 -3
  16. package/dist/api/settlement/index.d.ts +1 -1
  17. package/dist/api/terminal/index.d.ts +4 -0
  18. package/dist/api/transaction/index.d.ts +1 -1
  19. package/dist/{app-B1ZoKtpx.js → app-D6rd6uvO.js} +392 -388
  20. package/dist/app.d.ts +4 -0
  21. package/dist/app.js +1 -1
  22. package/dist/{assets-ZXvnCE72.js → assets-B41ScDuA.js} +80 -73
  23. package/dist/{grafana-tSaEG-rZ.js → grafana-CdozbaJn.js} +7 -7
  24. package/dist/{index-D1dXyrdm.js → index-3u2VZ6Ni.js} +29 -26
  25. package/dist/{index-DlvE9K3G.js → index-BIObbzAP.js} +9 -1
  26. package/dist/{index-DEEbas1_.js → index-CCBZtmwy.js} +1 -1
  27. package/dist/{index-kEMG4SWc.js → index-CEU5ybp0.js} +1 -1
  28. package/dist/{index-CGBOgV3E.js → index-Cnf4HsQx.js} +1 -1
  29. package/dist/{index-DQcz6kdU.js → index-D1_hIXoR.js} +813 -813
  30. package/dist/{index.vue_vue_type_script_setup_true_lang-CwHVO04q.js → index.vue_vue_type_script_setup_true_lang-i3Lcf2Mj.js} +1 -1
  31. package/dist/model/transaction.d.ts +3 -0
  32. package/dist/package.json +1 -1
  33. package/dist/{payout-account-BtTgqm7Q.js → payout-account-C80nPFWJ.js} +2 -2
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
  36. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
  37. package/package.json +1 -1
  38. package/dist/Settlement-BA09mDyG.js +0 -218
  39. package/dist/TerminalSetting-DUVbknAn.js +0 -389
@@ -0,0 +1,87 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ terminal: {
4
+ type: PropType<{
5
+ name?: string | null | undefined;
6
+ secretKey?: string | null | undefined;
7
+ gateways?: ({
8
+ config?: {
9
+ uniqueId: string;
10
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
11
+ } | null | undefined;
12
+ gateway: "Fiuu";
13
+ } | {
14
+ config?: any;
15
+ gateway: "ScanPay";
16
+ })[] | null | undefined;
17
+ deviceId?: string | null | undefined;
18
+ bindCode?: string | null | undefined;
19
+ token?: string | null | undefined;
20
+ ecrs?: ({
21
+ config?: {
22
+ terminalId: string;
23
+ } | null | undefined;
24
+ gateway: "FeedMe";
25
+ } | {
26
+ config?: {
27
+ merchantId: string;
28
+ terminalId: string;
29
+ privateKey: string;
30
+ } | null | undefined;
31
+ gateway: "Ghl";
32
+ })[] | null | undefined;
33
+ deletedAt?: string | null | undefined;
34
+ status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ referenceId: string;
38
+ updatedAt: string;
39
+ securityCode: string;
40
+ deviceType: "TERMINAL" | "POS" | "KIOSK";
41
+ }>;
42
+ required: true;
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ terminal: {
46
+ type: PropType<{
47
+ name?: string | null | undefined;
48
+ secretKey?: string | null | undefined;
49
+ gateways?: ({
50
+ config?: {
51
+ uniqueId: string;
52
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
53
+ } | null | undefined;
54
+ gateway: "Fiuu";
55
+ } | {
56
+ config?: any;
57
+ gateway: "ScanPay";
58
+ })[] | null | undefined;
59
+ deviceId?: string | null | undefined;
60
+ bindCode?: string | null | undefined;
61
+ token?: string | null | undefined;
62
+ ecrs?: ({
63
+ config?: {
64
+ terminalId: string;
65
+ } | null | undefined;
66
+ gateway: "FeedMe";
67
+ } | {
68
+ config?: {
69
+ merchantId: string;
70
+ terminalId: string;
71
+ privateKey: string;
72
+ } | null | undefined;
73
+ gateway: "Ghl";
74
+ })[] | null | undefined;
75
+ deletedAt?: string | null | undefined;
76
+ status: "Active" | "Inactive";
77
+ _id: string;
78
+ createdAt: string;
79
+ referenceId: string;
80
+ updatedAt: string;
81
+ securityCode: string;
82
+ deviceType: "TERMINAL" | "POS" | "KIOSK";
83
+ }>;
84
+ required: true;
85
+ };
86
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
+ export default _default;
@@ -0,0 +1,87 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ terminal: {
4
+ type: PropType<{
5
+ name?: string | null | undefined;
6
+ secretKey?: string | null | undefined;
7
+ gateways?: ({
8
+ config?: {
9
+ uniqueId: string;
10
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
11
+ } | null | undefined;
12
+ gateway: "Fiuu";
13
+ } | {
14
+ config?: any;
15
+ gateway: "ScanPay";
16
+ })[] | null | undefined;
17
+ deviceId?: string | null | undefined;
18
+ bindCode?: string | null | undefined;
19
+ token?: string | null | undefined;
20
+ ecrs?: ({
21
+ config?: {
22
+ terminalId: string;
23
+ } | null | undefined;
24
+ gateway: "FeedMe";
25
+ } | {
26
+ config?: {
27
+ merchantId: string;
28
+ terminalId: string;
29
+ privateKey: string;
30
+ } | null | undefined;
31
+ gateway: "Ghl";
32
+ })[] | null | undefined;
33
+ deletedAt?: string | null | undefined;
34
+ status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ referenceId: string;
38
+ updatedAt: string;
39
+ securityCode: string;
40
+ deviceType: "TERMINAL" | "POS" | "KIOSK";
41
+ }>;
42
+ required: true;
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ terminal: {
46
+ type: PropType<{
47
+ name?: string | null | undefined;
48
+ secretKey?: string | null | undefined;
49
+ gateways?: ({
50
+ config?: {
51
+ uniqueId: string;
52
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
53
+ } | null | undefined;
54
+ gateway: "Fiuu";
55
+ } | {
56
+ config?: any;
57
+ gateway: "ScanPay";
58
+ })[] | null | undefined;
59
+ deviceId?: string | null | undefined;
60
+ bindCode?: string | null | undefined;
61
+ token?: string | null | undefined;
62
+ ecrs?: ({
63
+ config?: {
64
+ terminalId: string;
65
+ } | null | undefined;
66
+ gateway: "FeedMe";
67
+ } | {
68
+ config?: {
69
+ merchantId: string;
70
+ terminalId: string;
71
+ privateKey: string;
72
+ } | null | undefined;
73
+ gateway: "Ghl";
74
+ })[] | null | undefined;
75
+ deletedAt?: string | null | undefined;
76
+ status: "Active" | "Inactive";
77
+ _id: string;
78
+ createdAt: string;
79
+ referenceId: string;
80
+ updatedAt: string;
81
+ securityCode: string;
82
+ deviceType: "TERMINAL" | "POS" | "KIOSK";
83
+ }>;
84
+ required: true;
85
+ };
86
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.6",
3
+ "version": "1.1.7-beta.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,218 +0,0 @@
1
- import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
2
- import { u as A } from "./index-DQcz6kdU.js";
3
- import { h as S } from "./moment-h96o7c8I.js";
4
- import { s as _ } from "./index-D1dXyrdm.js";
5
- import { useSnackbar as U } from "@feedmepos/ui-library";
6
- import { d as w } from "./dinero-CIVmXLL-.js";
7
- import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
- import { useRouter as J } from "vue-router";
9
- import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as z } from "./index-DEEbas1_.js";
11
- import { u as G } from "./error-K1CakhA9.js";
12
- import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
- const H = /* @__PURE__ */ M({
14
- __name: "SettlementTable",
15
- props: {
16
- data: {
17
- type: Array,
18
- required: !0
19
- },
20
- loading: {
21
- type: Boolean,
22
- required: !0
23
- }
24
- },
25
- emits: ["row-click"],
26
- setup(D, { emit: p }) {
27
- const m = D, f = p, n = h(""), u = [
28
- {
29
- header: () => "Settlement ID",
30
- accessorKey: "id",
31
- cell: ({ cell: a }) => E(q, { data: a.getValue() })
32
- },
33
- {
34
- header: () => "Created At",
35
- accessorKey: "transactionAt",
36
- meta: {
37
- width: "180px"
38
- }
39
- },
40
- {
41
- header: () => "Sales Amount",
42
- accessorKey: "amount"
43
- },
44
- {
45
- header: () => "Fee",
46
- accessorKey: "fee"
47
- },
48
- {
49
- header: () => "Settlement Amount",
50
- accessorKey: "payout"
51
- }
52
- ], y = T(() => m.data.map((a) => ({
53
- id: a._id,
54
- transactionAt: S(a.createdAt).format("YYYY-MM-DD"),
55
- amount: w(a.totalAmount).toFormat("$0.00"),
56
- fee: w(a.totalFee).toFormat("$0.00"),
57
- payout: w(a.totalPayout).toFormat("$0.00")
58
- })));
59
- return (a, e) => {
60
- const l = d("FmTable");
61
- return F(), Y(l, {
62
- modelValue: n.value,
63
- "onUpdate:modelValue": e[0] || (e[0] = (s) => n.value = s),
64
- "row-data": y.value,
65
- "shrink-at": !1,
66
- "column-defs": u,
67
- loading: m.loading,
68
- onRowClick: e[1] || (e[1] = (s) => f("row-click", m.data.at(s.index)))
69
- }, null, 8, ["modelValue", "row-data", "loading"]);
70
- };
71
- }
72
- }), W = { class: "flex justify-between items-center mb-6" }, X = { class: "flex space-x-4 items-end" }, Z = { class: "flex space-x-4" }, pe = /* @__PURE__ */ M({
73
- __name: "Settlement",
74
- setup(D) {
75
- const { isLoading: p, startAsyncCall: m } = A(!0), f = A(!1), n = h([]), u = h([]), y = J(), a = U(), { dateRange: e, searchKey: l } = z({
76
- searchKey: "",
77
- dateRange: {
78
- startDate: S().startOf("day").format("YYYY-MM-DD"),
79
- endDate: S().endOf("day").format("YYYY-MM-DD")
80
- }
81
- });
82
- C(e, x);
83
- let s;
84
- C(l, async () => {
85
- s && clearTimeout(s), s = setTimeout(() => {
86
- var v = new RegExp(l.value, "i");
87
- u.value = n.value.filter((o) => {
88
- const c = JSON.stringify(o);
89
- return v.test(c);
90
- });
91
- }, 700);
92
- });
93
- async function x() {
94
- await m(async () => {
95
- const v = await _.readByDate(
96
- {
97
- start: e.value.startDate,
98
- end: e.value.endDate
99
- }
100
- );
101
- if (n.value = v, u.value = n.value, l.value > "") {
102
- var o = new RegExp(l.value, "i");
103
- u.value = n.value.filter((c) => {
104
- const b = JSON.stringify(c);
105
- return o.test(b);
106
- });
107
- }
108
- });
109
- }
110
- function V() {
111
- x();
112
- }
113
- L(V);
114
- const B = [
115
- {
116
- label: "Audit Report",
117
- sublabel: "Full transactions details report from each payment providers.",
118
- icon: "file_download",
119
- value: "auditReport",
120
- onClick: () => _.downloadSettlementReport({
121
- start: e.value.startDate,
122
- end: e.value.endDate
123
- })
124
- },
125
- {
126
- label: "Summary Report",
127
- sublabel: "Summarized settlement information for each payout accounts.",
128
- icon: "account_balance",
129
- value: "summaryReport",
130
- onClick: () => _.downloadSummaryReport(n.value, {
131
- start: e.value.startDate,
132
- end: e.value.endDate
133
- })
134
- },
135
- {
136
- label: "Bank Instruction File",
137
- sublabel: "Generate bank instruction file based on bank formats.",
138
- icon: "description",
139
- value: "bankInstructionFile",
140
- onClick: () => _.downloadBankInstructionFile(n.value)
141
- }
142
- ];
143
- return (v, o) => {
144
- const c = d("FmSearch"), b = d("FmButton"), I = d("FmMenuItem"), $ = d("FmMenu");
145
- return F(), Y(j, {
146
- title: "Settlements",
147
- loading: r(p)
148
- }, {
149
- default: g(() => [
150
- k("div", W, [
151
- k("div", X, [
152
- i(c, {
153
- "model-value": r(l),
154
- "onUpdate:modelValue": o[0] || (o[0] = (t) => R(l) ? l.value = t : null),
155
- class: "mr-8",
156
- label: "Search",
157
- placeholder: "Search Settlements ..."
158
- }, null, 8, ["model-value"]),
159
- i(Q, {
160
- modelValue: r(e),
161
- "onUpdate:modelValue": o[1] || (o[1] = (t) => R(e) ? e.value = t : null)
162
- }, null, 8, ["modelValue"])
163
- ]),
164
- k("div", Z, [
165
- i($, { trigger: "click" }, {
166
- "menu-button": g(() => [
167
- i(b, {
168
- variant: "primary",
169
- "append-icon": "arrow_drop_down",
170
- label: "Actions",
171
- loading: r(f).isLoading.value
172
- }, null, 8, ["loading"])
173
- ]),
174
- default: g(() => [
175
- (F(), N(O, null, P(B, (t) => i(I, {
176
- key: t.value,
177
- label: t.label,
178
- icon: t.icon,
179
- sublabel: t.sublabel,
180
- selectable: !0,
181
- onClick: (ee) => {
182
- r(f).startAsyncCall(async () => {
183
- try {
184
- await t.onClick();
185
- } catch (K) {
186
- r(a).open({
187
- type: "error",
188
- title: "Error",
189
- message: r(G)(K)
190
- });
191
- }
192
- });
193
- }
194
- }, null, 8, ["label", "icon", "sublabel", "onClick"])), 64))
195
- ]),
196
- _: 1
197
- })
198
- ])
199
- ]),
200
- i(H, {
201
- loading: r(p),
202
- data: u.value,
203
- onRowClick: o[2] || (o[2] = (t) => r(y).push({
204
- name: "mf-payment-admin.settlement-transaction",
205
- params: {
206
- settlementId: t._id
207
- }
208
- }))
209
- }, null, 8, ["loading", "data"])
210
- ]),
211
- _: 1
212
- }, 8, ["loading"]);
213
- };
214
- }
215
- });
216
- export {
217
- pe as default
218
- };