@feedmepos/mf-payment 1.2.11 → 1.2.13

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 (44) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-XC4V0tsX.js +40 -0
  2. package/dist/{PayoutAccount-BPD8f21N.js → PayoutAccount-BallFJB0.js} +5 -5
  3. package/dist/{PayoutAccount-DLhT0cgm.js → PayoutAccount-d7sLsB5J.js} +6 -6
  4. package/dist/{PayoutAccountSetting-Cc2XkDvW.js → PayoutAccountSetting-wKE68NqB.js} +3 -3
  5. package/dist/{Restaurant-QmZ5m6aX.js → Restaurant-CA3nbrzh.js} +5 -5
  6. package/dist/{RestaurantSetting-D0GFUJAg.js → RestaurantSetting-CJdlyxX7.js} +3 -3
  7. package/dist/{Settlement-MJFzi4Zt.js → Settlement-BEXf60UK.js} +4 -4
  8. package/dist/{Settlement-BIk63DvT.js → Settlement-Cnbk9m6D.js} +4 -4
  9. package/dist/SettlementTransactions-D-lWN15V.js +362 -0
  10. package/dist/SettlementTransactions-Pto6c_3v.js +323 -0
  11. package/dist/{Terminal-DYkp1mv0.js → Terminal-B3S_wOTA.js} +5 -5
  12. package/dist/{TerminalSetting-DmPRtCsa.js → TerminalSetting-tSDETEOb.js} +3 -3
  13. package/dist/{Transaction-CimYTaB8.js → Transaction-BY4EF2Z2.js} +125 -94
  14. package/dist/{Transaction-Bh_Psoae.js → Transaction-DsYgbjyl.js} +7 -7
  15. package/dist/{TransactionOld-CiWIwxJ7.js → TransactionOld-BY_4OAOA.js} +4 -4
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-2FzzyKdR.js → TransactionTable.vue_vue_type_script_setup_true_lang-C02jC4yj.js} +115 -93
  17. package/dist/{app-ByopJolk.js → app-BiKLWpiD.js} +347 -347
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-DfdrUzgm.js → assets-C4cUIo0F.js} +3 -2
  20. package/dist/components/AutoCopyCell.vue.d.ts +1 -0
  21. package/dist/{grafana-ey8F5lgL.js → grafana-DRHro6WQ.js} +1 -1
  22. package/dist/{index-GqLxFyy5.js → index-0_vl4Euu.js} +1 -1
  23. package/dist/{index-tX_6kqCz.js → index-4QkP1zBY.js} +1 -1
  24. package/dist/{index-9HYkBEVP.js → index-BTIQHrH_.js} +1 -1
  25. package/dist/{index-D1HPnn1H.js → index-BWaS2Ice.js} +982 -982
  26. package/dist/{index-CxUSH_LL.js → index-Bohmvrj5.js} +1 -1
  27. package/dist/{index-DLoPHbRf.js → index-DJlXGssK.js} +1 -1
  28. package/dist/{index-C9mXyA-9.js → index-DeoktQzV.js} +2 -2
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-xEGnd1Sr.js → index.vue_vue_type_script_setup_true_lang-wZFI0CDi.js} +1 -1
  30. package/dist/model/transaction.d.ts +1 -0
  31. package/dist/package.json +1 -1
  32. package/dist/{payout-account-B7N8ePXF.js → payout-account-CtfOQFPT.js} +3 -3
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +1 -1
  35. package/dist/views/admin/settlement/cell/Method.vue.d.ts +1 -1
  36. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
  37. package/dist/views/admin/transaction/cell/Method.vue.d.ts +1 -1
  38. package/dist/views/settlement/cell/Gateway.vue.d.ts +1 -1
  39. package/dist/views/settlement/cell/Method.vue.d.ts +1 -1
  40. package/dist/views/transaction/cell/Gateway.vue.d.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js +0 -39
  43. package/dist/SettlementTransactions-Diz_eig2.js +0 -336
  44. package/dist/SettlementTransactions-MBqrZMZx.js +0 -297
@@ -1,297 +0,0 @@
1
- import { defineComponent as w, resolveComponent as y, openBlock as F, createBlock as M, normalizeClass as z, withCtx as m, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as L, createVNode as o, createTextVNode as u, h as I } from "vue";
2
- import { e as C, u as H } from "./index-D1HPnn1H.js";
3
- import "@feedmepos/ui-library";
4
- import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as q, a as J, t as Q, b as W } from "./assets-DfdrUzgm.js";
6
- import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
- import { useRouter as Z } from "vue-router";
8
- import { s as ee } from "./index-GqLxFyy5.js";
9
- import { useI18n as te, useCoreStore as ae } from "@feedmepos/mf-common";
10
- import { h as ne } from "./moment-h96o7c8I.js";
11
- const le = /* @__PURE__ */ w({
12
- __name: "Status",
13
- props: {
14
- row: {},
15
- data: {}
16
- },
17
- setup(g) {
18
- const e = g;
19
- function p() {
20
- return e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === C.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
21
- }
22
- return (h, k) => {
23
- const T = y("FmBadge");
24
- return F(), M(T, {
25
- inline: "",
26
- class: z(p())
27
- }, {
28
- default: m(() => [
29
- l("div", null, n(h.data), 1)
30
- ]),
31
- _: 1
32
- }, 8, ["class"]);
33
- };
34
- }
35
- }), oe = ["src"], se = /* @__PURE__ */ w({
36
- __name: "Gateway",
37
- props: {
38
- row: {},
39
- data: {}
40
- },
41
- setup(g) {
42
- return (e, p) => (F(), O("img", {
43
- class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
44
- src: a(q)(e.row.original.gateway)
45
- }, null, 8, oe));
46
- }
47
- }), re = ["src"], ie = /* @__PURE__ */ w({
48
- __name: "Method",
49
- props: {
50
- row: {},
51
- data: {}
52
- },
53
- setup(g) {
54
- return (e, p) => (F(), O("img", {
55
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
56
- src: a(J)(e.row.original.method.issuer, e.row.original.method.variant)
57
- }, null, 8, re));
58
- }
59
- }), me = { class: "flex mb-6" }, ue = { class: "my-6 w-[240px]" }, xe = /* @__PURE__ */ w({
60
- __name: "SettlementTransactions",
61
- props: {
62
- settlementId: {
63
- type: String,
64
- required: !0
65
- }
66
- },
67
- setup(g) {
68
- const { t: e } = te(), p = g, { isLoading: h, startAsyncCall: k } = H(!0), { currentRestaurant: T } = ae(), D = Z(), i = v(), x = v([]), N = v([]);
69
- async function Y(s = !1) {
70
- k(async () => {
71
- s || (i.value = await ee.readRestaurantSettlementById(p.settlementId));
72
- const t = await Q.readRestaurantTransactionsBySettlementId(p.settlementId);
73
- x.value = W(t), N.value = x.value;
74
- });
75
- }
76
- function B() {
77
- Y();
78
- }
79
- G(B), L(T, B);
80
- const $ = v(""), P = [
81
- {
82
- header: () => e("payment.settlements.dialog.feedme.id"),
83
- accessorKey: "id"
84
- },
85
- {
86
- header: () => e("payment.settlements.dialog.feedme.pay_id"),
87
- accessorKey: "payId"
88
- },
89
- {
90
- header: () => e("payment.settlements.dialog.feedme.gateway"),
91
- accessorKey: "gateway",
92
- meta: {
93
- textAlign: "center"
94
- },
95
- cell: ({ cell: s, row: t }) => t.original.method ? I(se, { row: t, data: s.getValue() }) : ""
96
- },
97
- {
98
- header: () => e("payment.settlements.dialog.feedme.method"),
99
- accessorKey: "method",
100
- meta: {
101
- textAlign: "center"
102
- },
103
- cell: ({ cell: s, row: t }) => t.original.method ? I(ie, { row: t, data: s.getValue() }) : ""
104
- },
105
- {
106
- header: () => e("payment.settlements.dialog.feedme.payFor"),
107
- accessorKey: "payFor"
108
- },
109
- {
110
- header: () => e("payment.settlements.dialog.feedme.type"),
111
- accessorKey: "type",
112
- meta: {
113
- textAlign: "center"
114
- },
115
- cell: ({ row: s }) => {
116
- if (!s.original.method)
117
- return "";
118
- const t = s.original.method.variant;
119
- return t.includes("_ONLINE") ? "ONLINE" : t.includes("_OFFLINE") ? "OFFLINE" : t;
120
- }
121
- },
122
- {
123
- header: () => e("payment.settlements.dialog.feedme.status"),
124
- accessorKey: "status",
125
- cell: ({ cell: s, row: t }) => I(le, { row: t, data: s.getValue() })
126
- },
127
- {
128
- header: () => e("payment.settlements.dialog.feedme.transaction_at"),
129
- accessorKey: "transactionAt",
130
- meta: {
131
- width: "180px"
132
- }
133
- },
134
- {
135
- header: () => e("payment.settlements.dialog.feedme.sales_amount"),
136
- accessorKey: "amount"
137
- },
138
- {
139
- header: () => e("payment.settlements.dialog.feedme.fee"),
140
- accessorKey: "fee"
141
- },
142
- {
143
- header: () => e("payment.settlements.dialog.feedme.settlement_amount"),
144
- accessorKey: "payout"
145
- }
146
- ], _ = v("");
147
- let A;
148
- return L(_, async () => {
149
- A && clearTimeout(A), A = setTimeout(() => {
150
- var s = new RegExp(_.value, "i");
151
- N.value = x.value.filter((t) => {
152
- const b = JSON.stringify(t);
153
- return s.test(b);
154
- });
155
- }, 700);
156
- }), (s, t) => {
157
- var K, V;
158
- const b = y("FmCardHeader"), f = y("FmCardSection"), S = y("FmCard"), U = y("FmSearch"), j = y("FmTable");
159
- return F(), M(X, {
160
- title: `${a(e)("payment.settlements.dialog.title")} (${(K = i.value) == null ? void 0 : K._id})`,
161
- description: `${a(e)("payment.settlements.dialog.date")}: ${a(ne)((V = i.value) == null ? void 0 : V.createdAt).format("YYYY-MM-DD")}`,
162
- loading: a(h),
163
- onBack: a(D).back
164
- }, {
165
- default: m(() => [
166
- l("div", me, [
167
- o(S, {
168
- horizontal: "",
169
- class: "flex-1 p-6",
170
- variant: "elevated"
171
- }, {
172
- default: m(() => [
173
- o(f, { class: "flex flex-col gap-16 justify-between" }, {
174
- default: m(() => [
175
- o(b, {
176
- class: "p-0",
177
- title: a(e)("payment.settlements.dialog.info.transaction.title"),
178
- subtitle: ""
179
- }, null, 8, ["title"]),
180
- o(f, { class: "p-0" }, {
181
- default: m(() => {
182
- var r, d, c, R;
183
- return [
184
- l("b", null, n(a(e)("payment.settlements.dialog.info.transaction.for")), 1),
185
- u(": " + n((d = (r = i.value) == null ? void 0 : r.store) == null ? void 0 : d.event) + " ", 1),
186
- t[2] || (t[2] = l("br", null, null, -1)),
187
- l("b", null, n(a(e)("payment.settlements.dialog.info.transaction.reference")), 1),
188
- u(": " + n((R = (c = i.value) == null ? void 0 : c.store) == null ? void 0 : R.id), 1),
189
- t[3] || (t[3] = l("br", null, null, -1)),
190
- l("b", null, n(a(e)("payment.settlements.dialog.info.transaction.count")), 1),
191
- u(": " + n(x.value.length), 1)
192
- ];
193
- }),
194
- _: 1
195
- })
196
- ]),
197
- _: 1
198
- })
199
- ]),
200
- _: 1
201
- }),
202
- o(S, {
203
- horizontal: "",
204
- class: "flex-1 p-6 mx-6",
205
- variant: "elevated"
206
- }, {
207
- default: m(() => [
208
- o(f, { class: "flex flex-col gap-16 justify-between" }, {
209
- default: m(() => [
210
- o(b, {
211
- class: "p-0",
212
- title: a(e)("payment.settlements.dialog.info.bank.title"),
213
- subtitle: ""
214
- }, null, 8, ["title"]),
215
- o(f, { class: "p-0" }, {
216
- default: m(() => {
217
- var r, d, c;
218
- return [
219
- l("b", null, n(a(e)("payment.settlements.dialog.info.bank.for")), 1),
220
- u(": " + n((r = i.value) == null ? void 0 : r.beneficiaryBank.name), 1),
221
- t[4] || (t[4] = l("br", null, null, -1)),
222
- l("b", null, n(a(e)("payment.settlements.dialog.info.bank.name")), 1),
223
- u(": " + n((d = i.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
224
- t[5] || (t[5] = l("br", null, null, -1)),
225
- l("b", null, n(a(e)("payment.settlements.dialog.info.bank.number")), 1),
226
- u(": " + n((c = i.value) == null ? void 0 : c.beneficiaryBank.accountNumber), 1)
227
- ];
228
- }),
229
- _: 1
230
- })
231
- ]),
232
- _: 1
233
- })
234
- ]),
235
- _: 1
236
- }),
237
- o(S, {
238
- horizontal: "",
239
- class: "flex-1 p-6",
240
- variant: "elevated"
241
- }, {
242
- default: m(() => [
243
- o(f, { class: "flex flex-col gap-16 justify-between" }, {
244
- default: m(() => [
245
- o(b, {
246
- class: "p-0",
247
- title: a(e)("payment.settlements.dialog.info.payout.title"),
248
- subtitle: ""
249
- }, null, 8, ["title"]),
250
- o(f, { class: "p-0" }, {
251
- default: m(() => {
252
- var r, d, c;
253
- return [
254
- l("b", null, n(a(e)("payment.settlements.dialog.info.payout.amount")), 1),
255
- u(": " + n(a(E)((r = i.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
256
- t[6] || (t[6] = l("br", null, null, -1)),
257
- l("b", null, n(a(e)("payment.settlements.dialog.info.payout.fee")), 1),
258
- u(": " + n(a(E)((d = i.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
259
- t[7] || (t[7] = l("br", null, null, -1)),
260
- l("b", null, n(a(e)("payment.settlements.dialog.info.payout.payout")), 1),
261
- u(": " + n(a(E)((c = i.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
262
- ];
263
- }),
264
- _: 1
265
- })
266
- ]),
267
- _: 1
268
- })
269
- ]),
270
- _: 1
271
- })
272
- ]),
273
- l("div", ue, [
274
- o(U, {
275
- modelValue: _.value,
276
- "onUpdate:modelValue": t[0] || (t[0] = (r) => _.value = r),
277
- placeholder: a(e)("payment.settlements.dialog.search")
278
- }, null, 8, ["modelValue", "placeholder"])
279
- ]),
280
- o(j, {
281
- modelValue: $.value,
282
- "onUpdate:modelValue": t[1] || (t[1] = (r) => $.value = r),
283
- "shrink-at": !1,
284
- "search-value": _.value,
285
- "row-data": N.value,
286
- "column-defs": P,
287
- loading: a(h)
288
- }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
289
- ]),
290
- _: 1
291
- }, 8, ["title", "description", "loading", "onBack"]);
292
- };
293
- }
294
- });
295
- export {
296
- xe as default
297
- };