@feedmepos/mf-payment 1.5.29-dev → 1.5.31-dev

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 (95) hide show
  1. package/dist/Actions.vue_vue_type_script_setup_true_lang-BMLg-uol.js +118 -0
  2. package/dist/{Chargeback-CocH4bON.js → Chargeback-BkVFinyh.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-tGPnCbHL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-3pmwclcO.js} +1 -1
  4. package/dist/{OnboardForm-BLk46c4b.js → OnboardForm-DZ06-081.js} +5 -5
  5. package/dist/{OnboardForm-CqohYc7w.js → OnboardForm-z0g_ff33.js} +5 -5
  6. package/dist/{OnboardSubmission-CIZuFLWF.js → OnboardSubmission-B24Jb79p.js} +2 -2
  7. package/dist/{OnboardSubmission-CNJ-CYki.js → OnboardSubmission-O5wr2kLB.js} +5 -5
  8. package/dist/{PayoutAccount-Qzl0EU8D.js → PayoutAccount-BTV73BZ8.js} +4 -4
  9. package/dist/{PayoutAccount-2vZvDUNZ.js → PayoutAccount-k20BQKug.js} +5 -5
  10. package/dist/{PayoutAccountSetting-DfrRhtcP.js → PayoutAccountSetting-BJljfdwp.js} +4 -4
  11. package/dist/{Restaurant-Ckh7iZ9v.js → Restaurant-DN2_DdKR.js} +4 -4
  12. package/dist/{RestaurantSetting-CeHORT_l.js → RestaurantSetting-f0T5REdJ.js} +3 -3
  13. package/dist/{Settlement-Dkf0_6WU.js → Settlement-DJ6ETp2U.js} +3 -3
  14. package/dist/{Settlement-DWj3kJpX.js → Settlement-SoOQIN8y.js} +3 -3
  15. package/dist/{SettlementTransactions-B_-EF9FQ.js → SettlementTransactions-DF2ybUos.js} +112 -136
  16. package/dist/SettlementTransactions-cYUYH2RJ.js +300 -0
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BRylU6yC.js → Status.vue_vue_type_script_setup_true_lang-B41rO8q8.js} +1 -1
  18. package/dist/{Terminal-CO1Qqx4X.js → Terminal-DuGHgfMp.js} +5 -5
  19. package/dist/{TerminalSetting-14CDkcsr.js → TerminalSetting-iXqUzSSo.js} +3 -3
  20. package/dist/{Transaction-LS_h6ecG.js → Transaction-CWFcreph.js} +151 -176
  21. package/dist/{Transaction-CkZKTFNI.js → Transaction-i64HFmDS.js} +120 -116
  22. package/dist/{TransactionOld-Bivy85L4.js → TransactionOld-DttRuS3v.js} +10 -10
  23. package/dist/{app-DUlTcsCJ.js → app-Cn89JW5_.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/assets-gWQvONT9.js +169 -0
  26. package/dist/{views/settlement/cell/Status.vue.d.ts → components/TransactionStatus.vue.d.ts} +0 -2
  27. package/dist/{grafana-D_fIUdUm.js → grafana-VY3mqepx.js} +1 -1
  28. package/dist/{index-D7IY2VY_.js → index-BGIv1us6.js} +1 -1
  29. package/dist/{index-BganQIV3.js → index-BRhAeH7J.js} +1 -1
  30. package/dist/{index-DGCnviAy.js → index-BcmesiC4.js} +1 -1
  31. package/dist/{index-cOl7pH9_.js → index-CscYwjzM.js} +1 -1
  32. package/dist/{index-DEC3wCyK.js → index-DGqWjywh.js} +1 -1
  33. package/dist/{index-WuRUC8sI.js → index-DhYZ6Ghe.js} +2 -2
  34. package/dist/{index-CsxAKwXK.js → index-Dq4IAN2N.js} +1 -1
  35. package/dist/{index-C87vsLzf.js → index-Q0ELb0wB.js} +1 -1
  36. package/dist/{index-CcCcgcKj.js → index-T2CVm7-_.js} +7343 -7157
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-H0-KLC0F.js → index.vue_vue_type_script_setup_true_lang-CkzD8rQP.js} +1 -1
  38. package/dist/package.json +3 -3
  39. package/dist/{payout-account-DyUwLBkF.js → payout-account-CS-sI0CL.js} +3 -3
  40. package/dist/stores/payoutAccount.d.ts +26 -26
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +8 -8
  43. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +8 -8
  44. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +26 -26
  45. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +48 -48
  46. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +48 -48
  47. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +26 -26
  48. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +26 -26
  49. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +48 -48
  50. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  51. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  52. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
  53. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  55. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  56. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  57. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  58. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  59. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
  60. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  61. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  62. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  63. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +6 -6
  64. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -4
  65. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  66. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  67. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +20 -20
  68. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +20 -20
  69. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +20 -20
  70. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +20 -20
  71. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +20 -20
  72. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +20 -20
  73. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +20 -20
  74. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +20 -20
  75. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +20 -20
  76. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +20 -20
  77. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +20 -20
  78. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +20 -20
  79. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +20 -20
  80. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +20 -20
  81. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +20 -20
  82. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +20 -20
  83. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +20 -20
  84. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +20 -20
  85. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +20 -20
  86. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +52 -52
  87. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +44 -44
  88. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +22 -22
  89. package/package.json +2 -2
  90. package/dist/Actions.vue_vue_type_script_setup_true_lang-DGrZmVUQ.js +0 -144
  91. package/dist/SettlementTransactions-BfDzz9CE.js +0 -324
  92. package/dist/assets-zMyaBFbU.js +0 -144
  93. package/dist/views/admin/settlement/cell/Status.vue.d.ts +0 -7
  94. package/dist/views/admin/transaction/cell/Status.vue.d.ts +0 -7
  95. package/dist/views/transaction/cell/Status.vue.d.ts +0 -7
@@ -1,324 +0,0 @@
1
- import { defineComponent as w, resolveComponent as f, openBlock as F, createBlock as T, normalizeClass as z, withCtx as r, createElementVNode as n, toDisplayString as l, unref as a, ref as b, onMounted as j, watch as M, createVNode as o, createTextVNode as d, h as C } from "vue";
2
- import { e as E, u as G } from "./index-CcCcgcKj.js";
3
- import "@feedmepos/ui-library";
4
- import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as H, a as q, t as J } from "./assets-zMyaBFbU.js";
6
- import { t as Q } from "./index-BganQIV3.js";
7
- import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
8
- import { useRouter as X } from "vue-router";
9
- import { s as Z } from "./index-DGCnviAy.js";
10
- import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
11
- import { h as ae } from "./moment-h96o7c8I.js";
12
- const ne = /* @__PURE__ */ w({
13
- __name: "Status",
14
- props: {
15
- row: {},
16
- data: {}
17
- },
18
- setup(m) {
19
- const e = m;
20
- function g() {
21
- return e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : e.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
22
- }
23
- return (y, $) => {
24
- const N = f("FmBadge");
25
- return F(), T(N, {
26
- inline: "",
27
- class: z(g())
28
- }, {
29
- default: r(() => [
30
- n("div", null, l(m.data), 1)
31
- ]),
32
- _: 1
33
- }, 8, ["class"]);
34
- };
35
- }
36
- }), le = ["src"], oe = /* @__PURE__ */ w({
37
- __name: "Gateway",
38
- props: {
39
- row: {},
40
- data: {}
41
- },
42
- setup(m) {
43
- return (e, g) => {
44
- const y = f("FmTooltip");
45
- return F(), T(y, {
46
- variant: "plain",
47
- placement: "top",
48
- content: m.row.original.gateway,
49
- "hide-arrow": !0
50
- }, {
51
- default: r(() => [
52
- n("img", {
53
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
54
- src: a(H)(m.row.original.gateway)
55
- }, null, 8, le)
56
- ]),
57
- _: 1
58
- }, 8, ["content"]);
59
- };
60
- }
61
- }), se = ["src"], re = /* @__PURE__ */ w({
62
- __name: "Method",
63
- props: {
64
- row: {},
65
- data: {}
66
- },
67
- setup(m) {
68
- return (e, g) => {
69
- const y = f("FmTooltip");
70
- return F(), T(y, {
71
- variant: "plain",
72
- placement: "top",
73
- content: m.row.original.method.issuer,
74
- "hide-arrow": !0
75
- }, {
76
- default: r(() => [
77
- n("img", {
78
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
79
- src: a(q)(m.row.original.method.issuer, m.row.original.method.variant)
80
- }, null, 8, se)
81
- ]),
82
- _: 1
83
- }, 8, ["content"]);
84
- };
85
- }
86
- }), ie = { class: "flex mb-6" }, me = { class: "my-6 w-[240px]" }, xe = /* @__PURE__ */ w({
87
- __name: "SettlementTransactions",
88
- props: {
89
- settlementId: {
90
- type: String,
91
- required: !0
92
- }
93
- },
94
- setup(m) {
95
- const { t: e } = ee(), g = m, { isLoading: y, startAsyncCall: $ } = G(!0), { currentRestaurant: N } = te(), O = X(), u = b(), x = b([]), A = b([]);
96
- async function D(s = !1) {
97
- $(async () => {
98
- s || (u.value = await Z.readRestaurantSettlementById(g.settlementId));
99
- const t = await Q.readRestaurantTransactionsBySettlementId(g.settlementId);
100
- x.value = J(t), A.value = x.value;
101
- });
102
- }
103
- function B() {
104
- D();
105
- }
106
- j(B), M(N, B);
107
- const K = b(""), Y = [
108
- {
109
- header: () => e("payment.settlements.dialog.feedme.id"),
110
- accessorKey: "id"
111
- },
112
- {
113
- header: () => e("payment.settlements.dialog.feedme.pay_id"),
114
- accessorKey: "payId"
115
- },
116
- {
117
- header: () => e("payment.settlements.dialog.feedme.gateway"),
118
- accessorKey: "gateway",
119
- meta: {
120
- textAlign: "center"
121
- },
122
- cell: ({ cell: s, row: t }) => t.original.method ? C(oe, { row: t, data: s.getValue() }) : ""
123
- },
124
- {
125
- header: () => e("payment.settlements.dialog.feedme.method"),
126
- accessorKey: "method",
127
- meta: {
128
- textAlign: "center"
129
- },
130
- cell: ({ cell: s, row: t }) => t.original.method ? C(re, { row: t, data: s.getValue() }) : ""
131
- },
132
- {
133
- header: () => e("payment.settlements.dialog.feedme.payFor"),
134
- accessorKey: "payFor"
135
- },
136
- {
137
- header: () => e("payment.settlements.dialog.feedme.type"),
138
- accessorKey: "type",
139
- meta: {
140
- textAlign: "center"
141
- },
142
- cell: ({ row: s }) => {
143
- if (!s.original.method)
144
- return "";
145
- const t = s.original.method.variant;
146
- return t.includes("_ONLINE") ? "ONLINE" : t.includes("_OFFLINE") ? "OFFLINE" : t;
147
- }
148
- },
149
- {
150
- header: () => e("payment.settlements.dialog.feedme.status"),
151
- accessorKey: "status",
152
- cell: ({ cell: s, row: t }) => C(ne, { row: t, data: s.getValue() })
153
- },
154
- {
155
- header: () => e("payment.settlements.dialog.feedme.transaction_at"),
156
- accessorKey: "transactionAt",
157
- meta: {
158
- width: "180px"
159
- }
160
- },
161
- {
162
- header: () => e("payment.settlements.dialog.feedme.sales_amount"),
163
- accessorKey: "amount"
164
- },
165
- {
166
- header: () => e("payment.settlements.dialog.feedme.fee"),
167
- accessorKey: "fee"
168
- },
169
- {
170
- header: () => e("payment.settlements.dialog.feedme.settlement_amount"),
171
- accessorKey: "payout"
172
- }
173
- ], h = b("");
174
- let S;
175
- return M(h, async () => {
176
- S && clearTimeout(S), S = setTimeout(() => {
177
- var s = new RegExp(h.value, "i");
178
- A.value = x.value.filter((t) => {
179
- const v = JSON.stringify(t);
180
- return s.test(v);
181
- });
182
- }, 700);
183
- }), (s, t) => {
184
- var V, R;
185
- const v = f("FmCardHeader"), _ = f("FmCardSection"), I = f("FmCard"), P = f("FmSearch"), U = f("FmTable");
186
- return F(), T(W, {
187
- title: `${a(e)("payment.settlements.dialog.title")} (${(V = u.value) == null ? void 0 : V._id})`,
188
- description: `${a(e)("payment.settlements.dialog.date")}: ${a(ae)((R = u.value) == null ? void 0 : R.createdAt).format("YYYY-MM-DD")}`,
189
- loading: a(y),
190
- onBack: a(O).back
191
- }, {
192
- default: r(() => [
193
- n("div", ie, [
194
- o(I, {
195
- horizontal: "",
196
- class: "flex-1 p-6",
197
- variant: "elevated"
198
- }, {
199
- default: r(() => [
200
- o(_, { class: "flex flex-col gap-16 justify-between" }, {
201
- default: r(() => [
202
- o(v, {
203
- class: "p-0",
204
- title: a(e)("payment.settlements.dialog.info.transaction.title"),
205
- subtitle: ""
206
- }, null, 8, ["title"]),
207
- o(_, { class: "p-0" }, {
208
- default: r(() => {
209
- var i, c, p, L;
210
- return [
211
- n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.for")), 1),
212
- d(": " + l((c = (i = u.value) == null ? void 0 : i.store) == null ? void 0 : c.event) + " ", 1),
213
- t[2] || (t[2] = n("br", null, null, -1)),
214
- n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.reference")), 1),
215
- d(": " + l((L = (p = u.value) == null ? void 0 : p.store) == null ? void 0 : L.id), 1),
216
- t[3] || (t[3] = n("br", null, null, -1)),
217
- n("b", null, l(a(e)("payment.settlements.dialog.info.transaction.count")), 1),
218
- d(": " + l(x.value.length), 1)
219
- ];
220
- }),
221
- _: 1
222
- })
223
- ]),
224
- _: 1
225
- })
226
- ]),
227
- _: 1
228
- }),
229
- o(I, {
230
- horizontal: "",
231
- class: "flex-1 p-6 mx-6",
232
- variant: "elevated"
233
- }, {
234
- default: r(() => [
235
- o(_, { class: "flex flex-col gap-16 justify-between" }, {
236
- default: r(() => [
237
- o(v, {
238
- class: "p-0",
239
- title: a(e)("payment.settlements.dialog.info.bank.title"),
240
- subtitle: ""
241
- }, null, 8, ["title"]),
242
- o(_, { class: "p-0" }, {
243
- default: r(() => {
244
- var i, c, p;
245
- return [
246
- n("b", null, l(a(e)("payment.settlements.dialog.info.bank.for")), 1),
247
- d(": " + l((i = u.value) == null ? void 0 : i.beneficiaryBank.name), 1),
248
- t[4] || (t[4] = n("br", null, null, -1)),
249
- n("b", null, l(a(e)("payment.settlements.dialog.info.bank.name")), 1),
250
- d(": " + l((c = u.value) == null ? void 0 : c.beneficiaryBank.holderName), 1),
251
- t[5] || (t[5] = n("br", null, null, -1)),
252
- n("b", null, l(a(e)("payment.settlements.dialog.info.bank.number")), 1),
253
- d(": " + l((p = u.value) == null ? void 0 : p.beneficiaryBank.accountNumber), 1)
254
- ];
255
- }),
256
- _: 1
257
- })
258
- ]),
259
- _: 1
260
- })
261
- ]),
262
- _: 1
263
- }),
264
- o(I, {
265
- horizontal: "",
266
- class: "flex-1 p-6",
267
- variant: "elevated"
268
- }, {
269
- default: r(() => [
270
- o(_, { class: "flex flex-col gap-16 justify-between" }, {
271
- default: r(() => [
272
- o(v, {
273
- class: "p-0",
274
- title: a(e)("payment.settlements.dialog.info.payout.title"),
275
- subtitle: ""
276
- }, null, 8, ["title"]),
277
- o(_, { class: "p-0" }, {
278
- default: r(() => {
279
- var i, c, p;
280
- return [
281
- n("b", null, l(a(e)("payment.settlements.dialog.info.payout.amount")), 1),
282
- d(": " + l(a(k)((i = u.value) == null ? void 0 : i.totalAmount).toFormat("$0.00")), 1),
283
- t[6] || (t[6] = n("br", null, null, -1)),
284
- n("b", null, l(a(e)("payment.settlements.dialog.info.payout.fee")), 1),
285
- d(": " + l(a(k)((c = u.value) == null ? void 0 : c.totalFee).toFormat("$0.00")), 1),
286
- t[7] || (t[7] = n("br", null, null, -1)),
287
- n("b", null, l(a(e)("payment.settlements.dialog.info.payout.payout")), 1),
288
- d(": " + l(a(k)((p = u.value) == null ? void 0 : p.totalPayout).toFormat("$0.00")), 1)
289
- ];
290
- }),
291
- _: 1
292
- })
293
- ]),
294
- _: 1
295
- })
296
- ]),
297
- _: 1
298
- })
299
- ]),
300
- n("div", me, [
301
- o(P, {
302
- modelValue: h.value,
303
- "onUpdate:modelValue": t[0] || (t[0] = (i) => h.value = i),
304
- placeholder: a(e)("payment.settlements.dialog.search")
305
- }, null, 8, ["modelValue", "placeholder"])
306
- ]),
307
- o(U, {
308
- modelValue: K.value,
309
- "onUpdate:modelValue": t[1] || (t[1] = (i) => K.value = i),
310
- "shrink-at": !1,
311
- "search-value": h.value,
312
- "row-data": A.value,
313
- "column-defs": Y,
314
- loading: a(y)
315
- }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
316
- ]),
317
- _: 1
318
- }, 8, ["title", "description", "loading", "onBack"]);
319
- };
320
- }
321
- });
322
- export {
323
- xe as default
324
- };