@feedmepos/mf-payment 0.0.0-beta.8 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/PayoutAccount-DZaKHWcy.js +612 -0
  6. package/dist/{PayoutAccount-CpatyqJa.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
  7. package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
  8. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  9. package/dist/Settlement-Bx3zAkIw.js +195 -0
  10. package/dist/Settlement-mwnO-iYH.js +150 -0
  11. package/dist/{SettlementTransactions-DT1A_tI5.js → SettlementTransactions-AaYyTH96.js} +99 -105
  12. package/dist/{SettlementTransactions-CkU0gCHb.js → SettlementTransactions-D_SVuKyR.js} +117 -130
  13. package/dist/Terminal-68OQnhM3.js +372 -0
  14. package/dist/TerminalSetting-DEFim0xg.js +379 -0
  15. package/dist/TerminalTransaction-CQjNdffr.js +426 -0
  16. package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
  17. package/dist/Transaction-68L7JzIk.js +242 -0
  18. package/dist/Transaction-a1VfiCP_.js +405 -0
  19. package/dist/api/index.d.ts +14 -0
  20. package/dist/api/pagination.d.ts +20 -0
  21. package/dist/api/payment-gateway/index.d.ts +9 -0
  22. package/dist/api/settlement/index.d.ts +12 -13
  23. package/dist/api/terminal/index.d.ts +13 -1
  24. package/dist/api/terminal-transaction/index.d.ts +12 -1
  25. package/dist/api/transaction/index.d.ts +7 -2
  26. package/dist/app-C9FRsUfb.js +6343 -0
  27. package/dist/app.js +3 -198
  28. package/dist/assets-Bji7O2YD.js +45 -0
  29. package/dist/clipboard-4jh1WteU.js +10 -0
  30. package/dist/components/AsyncButton.vue.d.ts +21 -0
  31. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  32. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  33. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  34. package/dist/components/RouteCell.vue.d.ts +8 -0
  35. package/dist/helpers/assets.d.ts +2 -0
  36. package/dist/index-Bt_OgDYn.js +56107 -0
  37. package/dist/index-CLYePgWW.js +47 -0
  38. package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
  39. package/dist/index-DSuZG0l6.js +52 -0
  40. package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
  41. package/dist/index-_0TroOJr.js +127 -0
  42. package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
  43. package/dist/model/transaction.d.ts +2 -1
  44. package/dist/package.json +4 -4
  45. package/dist/payout-account-BWcq7OJy.js +1805 -0
  46. package/dist/stores/payoutAccount.d.ts +4 -4
  47. package/dist/transaction-DqrhM5jB.js +87 -0
  48. package/dist/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/validator-D5jtpt9A.js +2877 -0
  50. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  51. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  52. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  53. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  55. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  56. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  57. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  58. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  59. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  60. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  61. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  62. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  63. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  64. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  65. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  66. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  67. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  68. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  69. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  70. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  71. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  72. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  73. package/package.json +4 -4
  74. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  75. package/dist/PayoutAccount-C0xyoyTa.js +0 -3485
  76. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  77. package/dist/Settlement-BVGACeme.js +0 -136
  78. package/dist/Settlement-Ce48KHrc.js +0 -132
  79. package/dist/Terminal-ByKV2Rof.js +0 -204
  80. package/dist/TerminalTransaction-ClhuAOOF.js +0 -240
  81. package/dist/Transaction-BYq9Ymp_.js +0 -242
  82. package/dist/Transaction-Doq11qIf.js +0 -241
  83. package/dist/api/auth/index.d.ts +0 -7
  84. package/dist/assets-Dg26uQOf.js +0 -1756
  85. package/dist/index-Coz5aeIO.js +0 -61
  86. package/dist/index-DCPNrUDq.js +0 -40075
  87. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  88. package/dist/mascot-side-D5UubCy7.js +0 -8
  89. package/dist/payout-account-D2Ftjrss.js +0 -3317
  90. package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,241 +0,0 @@
1
- import { defineComponent as _, resolveComponent as s, openBlock as g, createBlock as f, normalizeClass as D, withCtx as R, createElementVNode as w, toDisplayString as O, unref as i, ref as N, h as F, onMounted as C, watch as b, createVNode as T, isRef as E } from "vue";
2
- import { t as K, a as V } from "./transaction-vRrBf3FN.js";
3
- import { e as A, u as k } from "./index-DCPNrUDq.js";
4
- import "@feedmepos/ui-library";
5
- import "./dinero-CIVmXLL-.js";
6
- import { h as I } from "./moment-h96o7c8I.js";
7
- import { g as P, a as B } from "./assets-Dg26uQOf.js";
8
- import { useCoreStore as L } from "@feedmepos/mf-common";
9
- import { _ as M } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
10
- import { u as U } from "./index-Bmka-1lQ.js";
11
- const $ = /* @__PURE__ */ _({
12
- __name: "Status",
13
- props: {
14
- row: {},
15
- data: {}
16
- },
17
- setup(l) {
18
- const t = l;
19
- function a() {
20
- return t.data === A.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : t.data === A.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : t.data === A.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
21
- }
22
- return (r, u) => {
23
- const d = s("FmBadge");
24
- return g(), f(d, {
25
- inline: "",
26
- class: D(a())
27
- }, {
28
- default: R(() => [
29
- w("div", null, O(r.data), 1)
30
- ]),
31
- _: 1
32
- }, 8, ["class"]);
33
- };
34
- }
35
- }), G = /* @__PURE__ */ _({
36
- __name: "Gateway",
37
- props: {
38
- row: {},
39
- data: {}
40
- },
41
- setup(l) {
42
- return (t, a) => {
43
- const r = s("FmThumbnail");
44
- return g(), f(r, {
45
- src: i(P)(t.row.original.gateway),
46
- class: "mr-2 border-transparent w-[32px] h-[32px]"
47
- }, null, 8, ["src"]);
48
- };
49
- }
50
- }), Y = /* @__PURE__ */ _({
51
- __name: "Method",
52
- props: {
53
- row: {},
54
- data: {}
55
- },
56
- setup(l) {
57
- return (t, a) => {
58
- const r = s("FmThumbnail");
59
- return g(), f(r, {
60
- src: i(B)(t.row.original.method.issuer),
61
- class: "mr-2 border-transparent w-[32px] h-[32px]"
62
- }, null, 8, ["src"]);
63
- };
64
- }
65
- }), q = /* @__PURE__ */ _({
66
- __name: "TransactionTable",
67
- props: {
68
- data: {
69
- type: Array,
70
- required: !0
71
- },
72
- loading: {
73
- type: Boolean,
74
- required: !0
75
- }
76
- },
77
- emits: ["row-click"],
78
- setup(l, { emit: t }) {
79
- const a = l, r = t, u = N(""), d = [
80
- {
81
- header: () => "Transaction ID",
82
- accessorKey: "id"
83
- },
84
- {
85
- header: () => "Pay ID",
86
- accessorKey: "payId"
87
- },
88
- {
89
- header: () => "Gateway",
90
- accessorKey: "gateway",
91
- meta: {
92
- textAlign: "center"
93
- },
94
- cell: ({ cell: n, row: e }) => e.original.method ? F(G, { row: e, data: n.getValue() }) : ""
95
- },
96
- {
97
- header: () => "Method",
98
- accessorKey: "method",
99
- meta: {
100
- textAlign: "center"
101
- },
102
- cell: ({ cell: n, row: e }) => e.original.method ? F(Y, { row: e, data: n.getValue() }) : ""
103
- },
104
- {
105
- header: () => "Type",
106
- accessorKey: "type",
107
- meta: {
108
- textAlign: "center"
109
- },
110
- cell: ({ row: n }) => {
111
- if (!n.original.method)
112
- return "";
113
- const e = n.original.method.variant;
114
- return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
115
- }
116
- },
117
- {
118
- header: () => "Status",
119
- accessorKey: "status",
120
- cell: ({ cell: n, row: e }) => F($, { row: e, data: n.getValue() })
121
- },
122
- {
123
- header: () => "Transaction At",
124
- accessorKey: "transactionAt",
125
- meta: {
126
- width: "180px"
127
- }
128
- },
129
- {
130
- header: () => "Sales Amount",
131
- accessorKey: "amount"
132
- },
133
- {
134
- header: () => "Fee",
135
- accessorKey: "fee"
136
- },
137
- {
138
- header: () => "Settlement Amount",
139
- accessorKey: "payout"
140
- }
141
- ];
142
- return (n, e) => {
143
- const h = s("FmTable");
144
- return g(), f(h, {
145
- modelValue: u.value,
146
- "onUpdate:modelValue": e[0] || (e[0] = (c) => u.value = c),
147
- "column-defs": d,
148
- "row-data": a.data,
149
- loading: a.loading,
150
- onRowClick: e[1] || (e[1] = (c) => r("row-click", a.data.at(c.index)))
151
- }, null, 8, ["modelValue", "row-data", "loading"]);
152
- };
153
- }
154
- }), J = { class: "flex justify-between mb-6 items-center" }, j = { class: "flex space-x-4" }, z = { class: "flex space-x-4" }, oe = /* @__PURE__ */ _({
155
- __name: "Transaction",
156
- setup(l) {
157
- const { dateRange: t, searchKey: a } = U({
158
- searchKey: "",
159
- dateRange: {
160
- startDate: I().startOf("day").toISOString(),
161
- endDate: I().endOf("day").toISOString()
162
- }
163
- }), { isLoading: r, startAsyncCall: u } = k(!0), { currentRestaurant: d } = L(), n = N([]), e = N([]);
164
- async function h() {
165
- await u(async () => {
166
- const { startDate: y, endDate: o } = t.value, m = await K.readRestaurantTransactions({
167
- start: y,
168
- end: o
169
- });
170
- if (n.value = V(m), e.value = n.value, a.value > "") {
171
- var v = new RegExp(a.value, "i");
172
- e.value = n.value.filter((S) => {
173
- const p = JSON.stringify(S);
174
- return v.test(p);
175
- });
176
- }
177
- });
178
- }
179
- function c() {
180
- h();
181
- }
182
- C(c), b(d, c);
183
- let x;
184
- return b(a, async () => {
185
- x && clearTimeout(x), x = setTimeout(() => {
186
- var y = new RegExp(a.value, "i");
187
- e.value = n.value.filter((o) => {
188
- const m = JSON.stringify(o);
189
- return y.test(m);
190
- });
191
- }, 700);
192
- }), (y, o) => {
193
- const m = s("FmSearch"), v = s("FmDateRangePicker"), S = s("FmButton");
194
- return g(), f(M, {
195
- title: "Transactions",
196
- description: "Transactions are purchases or payments made over the internet using electronic methods like cards or digital wallets.",
197
- loading: i(r)
198
- }, {
199
- default: R(() => [
200
- w("div", J, [
201
- w("div", j, [
202
- T(m, {
203
- "model-value": i(a),
204
- "onUpdate:modelValue": o[0] || (o[0] = (p) => E(a) ? a.value = p : null),
205
- class: "mr-8",
206
- label: "Search",
207
- placeholder: "Search Transactions ..."
208
- }, null, 8, ["model-value"]),
209
- T(v, {
210
- modelValue: i(t),
211
- "onUpdate:modelValue": [
212
- o[1] || (o[1] = (p) => E(t) ? t.value = p : null),
213
- h
214
- ],
215
- compare: "",
216
- "show-predefined-range": ""
217
- }, null, 8, ["modelValue"])
218
- ]),
219
- w("div", z, [
220
- T(S, {
221
- "append-icon": "file_download",
222
- variant: "primary",
223
- label: "Export",
224
- onClick: () => {
225
- }
226
- })
227
- ])
228
- ]),
229
- T(q, {
230
- loading: i(r),
231
- data: e.value
232
- }, null, 8, ["loading", "data"])
233
- ]),
234
- _: 1
235
- }, 8, ["loading"]);
236
- };
237
- }
238
- });
239
- export {
240
- oe as default
241
- };
@@ -1,7 +0,0 @@
1
- declare function getCustomToken(token: string): Promise<any>;
2
- declare function getIdToken(customToken: string): Promise<any>;
3
- export declare const AuthApi: {
4
- getCustomToken: typeof getCustomToken;
5
- getIdToken: typeof getIdToken;
6
- };
7
- export {};