@feedmepos/mf-payment 1.0.17 → 1.0.18-beta.2

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 (54) hide show
  1. package/dist/{PayoutAccount-B4_FlpNy.js → PayoutAccount-CAYmccd8.js} +4 -3
  2. package/dist/{PayoutAccount-C1F4nzhY.js → PayoutAccount-Dani-Vcr.js} +83 -115
  3. package/dist/PayoutAccountSetting-BRqq3Euz.js +426 -0
  4. package/dist/{Restaurant-TCSbQjCj.js → Restaurant-Ct9uX3tK.js} +4 -4
  5. package/dist/{RestaurantSetting-D_dNcxQd.js → RestaurantSetting-IiVR10w-.js} +137 -115
  6. package/dist/{Settlement-BQe2JW-Q.js → Settlement-8sL3n7Uy.js} +3 -3
  7. package/dist/Settlement-CCS9qXIt.js +447 -0
  8. package/dist/{SettlementTransactions-9sVg8_eQ.js → SettlementTransactions-BpPwk2N9.js} +4 -4
  9. package/dist/{SettlementTransactions-DD6wLd4W.js → SettlementTransactions-Dm451RW9.js} +4 -4
  10. package/dist/Terminal-x4zVgQ2R.js +435 -0
  11. package/dist/{TerminalSetting-CNjiW8AS.js → TerminalSetting-DjdcFvhb.js} +43 -41
  12. package/dist/{TerminalTransaction-BHdUR8kU.js → TerminalTransaction-UbAK46sL.js} +205 -194
  13. package/dist/TerminalTransaction-lvSBz4Ot.js +269 -0
  14. package/dist/{Transaction-Sq0Vy8K5.js → Transaction-B3ezRLvG.js} +6 -6
  15. package/dist/Transaction-CaNDLxgb.js +247 -0
  16. package/dist/{TransactionOld-DgFEZ8lO.js → TransactionOld-DhxmQHjI.js} +4 -4
  17. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js → TransactionTable.vue_vue_type_script_setup_true_lang-CVph-0nh.js} +2 -2
  18. package/dist/api/index.d.ts +1 -1
  19. package/dist/api/settlement/index.d.ts +5 -1
  20. package/dist/api/terminal/index.d.ts +1 -0
  21. package/dist/api/terminal-transaction/index.d.ts +2 -2
  22. package/dist/{app-DSs9frsP.js → app-BxUUto4C.js} +228 -228
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-isbnAWcO.js → assets-QgVyUzRm.js} +1 -1
  25. package/dist/grafana-lRpmiuMV.js +54 -0
  26. package/dist/{index-zuIHTzhv.js → index-BDetj-K3.js} +1 -1
  27. package/dist/{index-C-YBzOUs.js → index-C5jJz7Uy.js} +31 -23
  28. package/dist/{index-CRJ6lKaL.js → index-C_vfSMMT.js} +2 -2
  29. package/dist/index-Ccrw_vQ0.js +52 -0
  30. package/dist/{index-CMfikq5P.js → index-DSCiBD0w.js} +27 -20
  31. package/dist/{index-_cvebzIU.js → index-DeIxOALB.js} +1 -1
  32. package/dist/{index-M-Xwbigf.js → index-DuGQ8IfZ.js} +1 -1
  33. package/dist/{index.vue_vue_type_script_setup_true_lang-atP7HnX3.js → index.vue_vue_type_script_setup_true_lang-C8bhf2iY.js} +1 -1
  34. package/dist/package.json +2 -2
  35. package/dist/{payout-account-DcBR5HoD.js → payout-account-Bzs57EEq.js} +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/{transaction-3qMvkl2b.js → transaction-CaOomCoW.js} +21 -12
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
  40. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
  41. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
  42. package/package.json +2 -2
  43. package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js +0 -110
  44. package/dist/PayoutAccountSetting-BEw1XNuX.js +0 -758
  45. package/dist/Settlement-DTA0SdZc.js +0 -145
  46. package/dist/Terminal-Dd2OGvH_.js +0 -404
  47. package/dist/TerminalTransaction-BDye71lK.js +0 -819
  48. package/dist/Transaction-EmgoD2xm.js +0 -145
  49. package/dist/grafana-Bf4L47IF.js +0 -49
  50. package/dist/index-B7mrn8cQ.js +0 -47
  51. package/dist/index-DuemQbuN.js +0 -28
  52. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
  53. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
  54. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,145 +0,0 @@
1
- import { defineComponent as Y, ref as E, onMounted as b, watch as T, resolveComponent as y, openBlock as w, createBlock as D, withCtx as x, createElementVNode as _, createVNode as n, unref as o, isRef as m } from "vue";
2
- import { t as V, a as F } from "./transaction-3qMvkl2b.js";
3
- import { _ as d, u as I } from "./index-CRJ6lKaL.js";
4
- import { _ as M } from "./TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js";
5
- import { h as g } from "./moment-h96o7c8I.js";
6
- import { useCoreStore as O } from "@feedmepos/mf-common";
7
- import { _ as P } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
- import { u as $ } from "./index-_cvebzIU.js";
9
- import { _ as k } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
10
- import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
- import { _ as B } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
12
- import { _ as J } from "./PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js";
13
- const K = { class: "flex justify-between mb-6 items-center" }, j = { class: "flex space-x-8 items-start" }, q = { class: "flex space-x-4 self-center" }, G = { class: "flex space-x-12 mb-6" }, re = /* @__PURE__ */ Y({
14
- __name: "Transaction",
15
- setup(Q) {
16
- const { dateRange: r, searchKey: l, accountId: s, status: t } = $({
17
- accountId: "",
18
- searchKey: "",
19
- status: [d.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS],
20
- dateRange: {
21
- startDate: g().startOf("day").format("YYYY-MM-DD"),
22
- endDate: g().endOf("day").format("YYYY-MM-DD")
23
- }
24
- }), { isLoading: C, startAsyncCall: h } = I(!0), { currentBusiness: R } = O(), u = E([]), c = E([]);
25
- async function S() {
26
- s.value && await h(async () => {
27
- const { startDate: f, endDate: e } = r.value, i = await V.readAccountTransactions({
28
- status: t.value,
29
- accountId: s.value,
30
- start: f,
31
- end: e
32
- });
33
- if (u.value = F(i), c.value = u.value, l.value > "") {
34
- var v = new RegExp(l.value, "i");
35
- c.value = u.value.filter((a) => {
36
- const U = JSON.stringify(a);
37
- return v.test(U);
38
- });
39
- }
40
- });
41
- }
42
- function A() {
43
- S();
44
- }
45
- b(A), T(R, A), T([s, r, t], S);
46
- let p;
47
- T(l, async () => {
48
- p && clearTimeout(p), p = setTimeout(() => {
49
- var f = new RegExp(l.value, "i");
50
- c.value = u.value.filter((e) => {
51
- const i = JSON.stringify(e);
52
- return f.test(i);
53
- });
54
- }, 700);
55
- });
56
- const N = [
57
- {
58
- label: "Success",
59
- value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.SUCCESS
60
- },
61
- {
62
- label: "Refunded",
63
- value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED
64
- },
65
- {
66
- label: "Process",
67
- value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING
68
- },
69
- {
70
- label: "Failed",
71
- value: d.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED
72
- }
73
- ];
74
- return (f, e) => {
75
- const i = y("FmSearch"), v = y("FmSelect");
76
- return w(), D(P, {
77
- title: "Online Transactions",
78
- description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
79
- loading: !1
80
- }, {
81
- default: x(() => [
82
- _("div", K, [
83
- _("div", j, [
84
- n(i, {
85
- "model-value": o(l),
86
- "onUpdate:modelValue": e[0] || (e[0] = (a) => m(l) ? l.value = a : null),
87
- class: "mr-8",
88
- label: "Search",
89
- placeholder: "Search Transactions ..."
90
- }, null, 8, ["model-value"]),
91
- n(v, {
92
- modelValue: o(t),
93
- "onUpdate:modelValue": e[2] || (e[2] = (a) => m(t) ? t.value = a : null),
94
- class: "mr-6 w-[300px]",
95
- label: "Status",
96
- "label-mark": "required",
97
- multiselect: "",
98
- items: N
99
- }, {
100
- "prepend-menu": x(() => [
101
- n(L, {
102
- modelValue: o(t),
103
- "onUpdate:modelValue": e[1] || (e[1] = (a) => m(t) ? t.value = a : null),
104
- items: N
105
- }, null, 8, ["modelValue"])
106
- ]),
107
- _: 1
108
- }, 8, ["modelValue"])
109
- ]),
110
- _("div", q, [
111
- n(k, {
112
- button: {
113
- appendIcon: "file_download",
114
- variant: "primary",
115
- label: "Export"
116
- },
117
- handler: async () => {
118
- await o(V).downloadPortalTransactionReport(u.value);
119
- }
120
- }, null, 8, ["handler"])
121
- ])
122
- ]),
123
- _("div", G, [
124
- n(J, {
125
- modelValue: o(s),
126
- "onUpdate:modelValue": e[3] || (e[3] = (a) => m(s) ? s.value = a : null)
127
- }, null, 8, ["modelValue"]),
128
- n(B, {
129
- modelValue: o(r),
130
- "onUpdate:modelValue": e[4] || (e[4] = (a) => m(r) ? r.value = a : null)
131
- }, null, 8, ["modelValue"])
132
- ]),
133
- n(M, {
134
- loading: o(C),
135
- data: c.value
136
- }, null, 8, ["loading", "data"])
137
- ]),
138
- _: 1
139
- });
140
- };
141
- }
142
- });
143
- export {
144
- re as default
145
- };
@@ -1,49 +0,0 @@
1
- import { e as p } from "./index-CRJ6lKaL.js";
2
- import { useCoreStore as m } from "@feedmepos/mf-common";
3
- import { h as i } from "./moment-h96o7c8I.js";
4
- const y = "https://grafana.feedme.farm/explore?schemaVersion=1", f = (o, r, s) => ({
5
- apq: {
6
- datasource: "P214B5B846CF3925F",
7
- queries: [
8
- {
9
- refId: "A",
10
- datasource: {
11
- type: "tempo",
12
- uid: "P214B5B846CF3925F"
13
- },
14
- queryType: "traceql",
15
- limit: 100,
16
- tableType: "spans",
17
- query: o,
18
- spss: 1,
19
- step: ""
20
- }
21
- ],
22
- range: {
23
- from: r,
24
- to: s
25
- }
26
- }
27
- }), b = (o, r) => {
28
- const t = {
29
- "resource.service.name": "payment-backend",
30
- "resource.cluster": "production",
31
- "resource.namespace": "apps-" + (m().currentCountry.value ?? p.F_COUNTRY.enum.MY).toLowerCase()
32
- };
33
- o.forEach((e) => {
34
- t[`${e.type}.${e.queryKey}`] = e.queryValue;
35
- });
36
- const c = `{
37
- ${Object.keys(t).map((e) => `${e}="${t[e]}"`).join("&&")}
38
- }`;
39
- let n = "now", a = "now-1d";
40
- if (r) {
41
- const e = +i(r).toDate();
42
- a = `${e}`, n = `${e + 24 * 60 * 60 * 1e3}`;
43
- }
44
- const u = f(c, a, n);
45
- return y + `&panes=${encodeURIComponent(JSON.stringify(u))}&orgId=1`;
46
- };
47
- export {
48
- b as g
49
- };
@@ -1,47 +0,0 @@
1
- import { a as s, b as e, g as t, c as r } from "./index-CRJ6lKaL.js";
2
- const m = {
3
- async create(a) {
4
- return s(
5
- await e().post("/payments/terminals", a)
6
- );
7
- },
8
- async read(a) {
9
- return s(
10
- await e().get("/payments/terminals", {
11
- params: { ...a }
12
- })
13
- );
14
- },
15
- async readById(a) {
16
- return t(await e().get(`/payments/terminals/${a}`));
17
- },
18
- async updateById(a, n) {
19
- return t(
20
- await e().put(`/payments/terminals/${a}`, n)
21
- );
22
- },
23
- async getBindCode(a) {
24
- const { code: n } = t(
25
- await e().get(`/payments/terminals/${a}/code`)
26
- );
27
- return n;
28
- },
29
- async unbind(a) {
30
- return t(
31
- await e().delete(`/payments/terminals/${a}/unbind`)
32
- );
33
- },
34
- /**
35
- * Relying on the payout account so need pass in the restaurant id from the payout account
36
- */
37
- async getTerminals(a) {
38
- return t(
39
- await e().get(
40
- `restaurants/${a}/terminals?deviceType=${r.FdoTerminalDeviceType.Enum.TERMINAL}`
41
- )
42
- );
43
- }
44
- };
45
- export {
46
- m as t
47
- };
@@ -1,28 +0,0 @@
1
- import { g as e, b as n } from "./index-CRJ6lKaL.js";
2
- const r = {
3
- async get(a) {
4
- return e(
5
- await n().get(
6
- `restaurants/${a}/payment-gateway`
7
- )
8
- );
9
- },
10
- async upsert(a, t) {
11
- return e(
12
- await n().post(
13
- `restaurants/${a}/payment-gateway`,
14
- { data: t }
15
- )
16
- );
17
- },
18
- async delete(a, t) {
19
- return e(
20
- await n().delete(
21
- `restaurants/${a}/payment-gateway/${t}`
22
- )
23
- );
24
- }
25
- };
26
- export {
27
- r as p
28
- };
@@ -1,7 +0,0 @@
1
- import { type Row } from '@feedmepos/ui-library';
2
- type __VLS_Props = {
3
- row: Row<any>;
4
- data: unknown;
5
- };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,81 +0,0 @@
1
- import { type PropType } from 'vue';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- payoutAccount: {
4
- type: PropType<{
5
- enable?: boolean | null | undefined;
6
- ref?: any;
7
- status: "NEW" | "PENDING" | "APPROVED";
8
- _id: string;
9
- store: {
10
- bank?: {
11
- type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
12
- accountNumber?: string | null | undefined;
13
- holderName?: string | null | undefined;
14
- name: string;
15
- } | null | undefined;
16
- ssm?: string | null | undefined;
17
- bankStatement?: string | null | undefined;
18
- exteriorPhoto?: string | null | undefined;
19
- keyPerson?: {
20
- name: string;
21
- phone: string;
22
- email: string;
23
- } | null | undefined;
24
- id: string;
25
- event: "ORDERING" | "MARKETING";
26
- };
27
- notifyUrl: string;
28
- methods: {
29
- rate?: {
30
- amount: number;
31
- precision: number;
32
- } | null | undefined;
33
- tPlus?: number | null | undefined;
34
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
35
- variant: string;
36
- }[];
37
- businessId: string;
38
- }>;
39
- required: true;
40
- };
41
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
- payoutAccount: {
43
- type: PropType<{
44
- enable?: boolean | null | undefined;
45
- ref?: any;
46
- status: "NEW" | "PENDING" | "APPROVED";
47
- _id: string;
48
- store: {
49
- bank?: {
50
- type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
51
- accountNumber?: string | null | undefined;
52
- holderName?: string | null | undefined;
53
- name: string;
54
- } | null | undefined;
55
- ssm?: string | null | undefined;
56
- bankStatement?: string | null | undefined;
57
- exteriorPhoto?: string | null | undefined;
58
- keyPerson?: {
59
- name: string;
60
- phone: string;
61
- email: string;
62
- } | null | undefined;
63
- id: string;
64
- event: "ORDERING" | "MARKETING";
65
- };
66
- notifyUrl: string;
67
- methods: {
68
- rate?: {
69
- amount: number;
70
- precision: number;
71
- } | null | undefined;
72
- tPlus?: number | null | undefined;
73
- issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
74
- variant: string;
75
- }[];
76
- businessId: string;
77
- }>;
78
- required: true;
79
- };
80
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
81
- export default _default;
@@ -1,7 +0,0 @@
1
- type __VLS_Props = {
2
- createdAt: string;
3
- transactionAt: string;
4
- refundedAt: string;
5
- };
6
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;