@feedmepos/mf-payment 1.0.5 → 1.0.7-beta.1
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.
- package/dist/{PayoutAccount-BwBgS41r.js → PayoutAccount-BWu1OEyp.js} +5 -5
- package/dist/{PayoutAccount-B6kGeSLY.js → PayoutAccount-BxdMH0pl.js} +3 -3
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-BiUxmjU6.js +110 -0
- package/dist/{PayoutAccountSetting-C1yeSNv8.js → PayoutAccountSetting-Zah_ik81.js} +4 -4
- package/dist/Restaurant-DJ01O5GW.js +305 -0
- package/dist/{RestaurantSetting-CWZAKz1A.js → RestaurantSetting-BD_aUt1i.js} +4 -4
- package/dist/{Settlement-BKwie9R8.js → Settlement-CTLIBeZ3.js} +3 -3
- package/dist/{Settlement-ByPXBNx1.js → Settlement-GGdPYvXy.js} +3 -3
- package/dist/{SettlementTransactions-BGGqKJgP.js → SettlementTransactions-C5j-0Qbw.js} +4 -4
- package/dist/{SettlementTransactions-BPEh0mSi.js → SettlementTransactions-D35tIT61.js} +4 -4
- package/dist/Terminal-Cwj4vJ6A.js +404 -0
- package/dist/{TerminalSetting-qklmRz3H.js → TerminalSetting-CACWRHic.js} +3 -3
- package/dist/TerminalTransaction-B15ICpAD.js +819 -0
- package/dist/{TerminalTransaction-YXcGJ2ne.js → TerminalTransaction-BTHSxX6X.js} +184 -154
- package/dist/Transaction-BZqqi5qu.js +145 -0
- package/dist/{Transaction-IDcY01Oi.js → Transaction-tcV33ufA.js} +81 -48
- package/dist/TransactionOld-CgJdUs7l.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-qZA8uWSK.js +151 -0
- package/dist/api/terminal-transaction/index.d.ts +2 -1
- package/dist/api/transaction/index.d.ts +8 -1
- package/dist/{app-CjbTCCDJ.js → app-DdZ90tIN.js} +504 -491
- package/dist/app.js +1 -1
- package/dist/{assets-DjRoCcqv.js → assets-D-ueIWdy.js} +1 -1
- package/dist/components/PayoutAccountSelector.vue.d.ts +23 -0
- package/dist/grafana-BRDqWauv.js +49 -0
- package/dist/helpers/grafana.d.ts +7 -0
- package/dist/{index-DFePh4ct.js → index-BhsQ9z_N.js} +1 -1
- package/dist/{index-BWFqxSU3.js → index-Bm9-P-jw.js} +1 -1
- package/dist/{index-BEFlDEyV.js → index-CJe9qD5G.js} +1 -1
- package/dist/{index-CWGSYCJG.js → index-CUCDe-b5.js} +1 -1
- package/dist/{index-Bp_58SiC.js → index-DNxicJBc.js} +1 -1
- package/dist/{index-Dj_LwPBy.js → index-DQsvadHF.js} +8489 -8321
- package/dist/{index-BerQZMQW.js → index-NnxZlW-g.js} +1 -1
- package/dist/{index-CKyh0nlu.js → index-ocpyheIn.js} +13 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js → index.vue_vue_type_script_setup_true_lang-CoiUD4O5.js} +1 -1
- package/dist/model/transaction.d.ts +2 -0
- package/dist/package.json +3 -3
- package/dist/{payout-account-ByuqS-Ea.js → payout-account-DwUA_Nmx.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-D4S3PvuQ.js +118 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +8 -8
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +5 -0
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +8 -8
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -1
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/transaction/TransactionOld.vue.d.ts +2 -0
- package/package.json +3 -3
- package/dist/Restaurant-B02jty0J.js +0 -262
- package/dist/Terminal-DX8v8WpM.js +0 -386
- package/dist/TerminalTransaction-64Bn6vh0.js +0 -261
- package/dist/Transaction-DMw2p-Wq.js +0 -238
- package/dist/transaction-Cyw84Cks.js +0 -101
@@ -0,0 +1,151 @@
|
|
1
|
+
import { defineComponent as n, resolveComponent as p, openBlock as s, createBlock as _, normalizeClass as f, withCtx as T, createElementVNode as w, toDisplayString as A, createElementBlock as g, unref as h, ref as N, h as u } from "vue";
|
2
|
+
import "@feedmepos/ui-library";
|
3
|
+
import { e as m } from "./index-DQsvadHF.js";
|
4
|
+
import "./dinero-CIVmXLL-.js";
|
5
|
+
import "./moment-h96o7c8I.js";
|
6
|
+
import { g as x, a as E } from "./assets-D-ueIWdy.js";
|
7
|
+
const S = /* @__PURE__ */ n({
|
8
|
+
__name: "Status",
|
9
|
+
props: {
|
10
|
+
row: {},
|
11
|
+
data: {}
|
12
|
+
},
|
13
|
+
setup(o) {
|
14
|
+
const t = o;
|
15
|
+
function r() {
|
16
|
+
return t.data === m.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : t.data === m.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : t.data === m.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
17
|
+
}
|
18
|
+
return (c, l) => {
|
19
|
+
const i = p("FmBadge");
|
20
|
+
return s(), _(i, {
|
21
|
+
inline: "",
|
22
|
+
class: f(r())
|
23
|
+
}, {
|
24
|
+
default: T(() => [
|
25
|
+
w("div", null, A(c.data), 1)
|
26
|
+
]),
|
27
|
+
_: 1
|
28
|
+
}, 8, ["class"]);
|
29
|
+
};
|
30
|
+
}
|
31
|
+
}), F = ["src"], I = /* @__PURE__ */ n({
|
32
|
+
__name: "Gateway",
|
33
|
+
props: {
|
34
|
+
row: {},
|
35
|
+
data: {}
|
36
|
+
},
|
37
|
+
setup(o) {
|
38
|
+
return (t, r) => (s(), g("img", {
|
39
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
40
|
+
src: h(x)(t.row.original.gateway)
|
41
|
+
}, null, 8, F));
|
42
|
+
}
|
43
|
+
}), b = ["src"], K = /* @__PURE__ */ n({
|
44
|
+
__name: "Method",
|
45
|
+
props: {
|
46
|
+
row: {},
|
47
|
+
data: {}
|
48
|
+
},
|
49
|
+
setup(o) {
|
50
|
+
return (t, r) => (s(), g("img", {
|
51
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
52
|
+
src: h(E)(t.row.original.method.issuer)
|
53
|
+
}, null, 8, b));
|
54
|
+
}
|
55
|
+
}), v = /* @__PURE__ */ n({
|
56
|
+
__name: "TransactionTable",
|
57
|
+
props: {
|
58
|
+
data: {
|
59
|
+
type: Array,
|
60
|
+
required: !0
|
61
|
+
},
|
62
|
+
loading: {
|
63
|
+
type: Boolean,
|
64
|
+
required: !0
|
65
|
+
}
|
66
|
+
},
|
67
|
+
emits: ["row-click"],
|
68
|
+
setup(o, { emit: t }) {
|
69
|
+
const r = o, c = t, l = N(""), i = [
|
70
|
+
{
|
71
|
+
header: () => "Transaction ID",
|
72
|
+
accessorKey: "id"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
header: () => "Pay ID",
|
76
|
+
accessorKey: "payId"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
header: () => "Bill Seq No",
|
80
|
+
accessorKey: "seqNumber"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
header: () => "Gateway",
|
84
|
+
accessorKey: "gateway",
|
85
|
+
meta: {
|
86
|
+
textAlign: "center"
|
87
|
+
},
|
88
|
+
cell: ({ cell: a, row: e }) => e.original.method ? u(I, { row: e, data: a.getValue() }) : ""
|
89
|
+
},
|
90
|
+
{
|
91
|
+
header: () => "Method",
|
92
|
+
accessorKey: "method",
|
93
|
+
meta: {
|
94
|
+
textAlign: "center"
|
95
|
+
},
|
96
|
+
cell: ({ cell: a, row: e }) => e.original.method ? u(K, { row: e, data: a.getValue() }) : ""
|
97
|
+
},
|
98
|
+
{
|
99
|
+
header: () => "Type",
|
100
|
+
accessorKey: "type",
|
101
|
+
meta: {
|
102
|
+
textAlign: "center"
|
103
|
+
},
|
104
|
+
cell: ({ row: a }) => {
|
105
|
+
if (!a.original.method)
|
106
|
+
return "";
|
107
|
+
const e = a.original.method.variant;
|
108
|
+
return e.includes("_ONLINE") ? "ONLINE" : e.includes("_OFFLINE") ? "OFFLINE" : e;
|
109
|
+
}
|
110
|
+
},
|
111
|
+
{
|
112
|
+
header: () => "Status",
|
113
|
+
accessorKey: "status",
|
114
|
+
cell: ({ cell: a, row: e }) => u(S, { row: e, data: a.getValue() })
|
115
|
+
},
|
116
|
+
{
|
117
|
+
header: () => "Transaction At",
|
118
|
+
accessorKey: "transactionAt",
|
119
|
+
meta: {
|
120
|
+
width: "180px"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
{
|
124
|
+
header: () => "Sales Amount",
|
125
|
+
accessorKey: "amount"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
header: () => "Fee",
|
129
|
+
accessorKey: "fee"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
header: () => "Settlement Amount",
|
133
|
+
accessorKey: "payout"
|
134
|
+
}
|
135
|
+
];
|
136
|
+
return (a, e) => {
|
137
|
+
const y = p("FmTable");
|
138
|
+
return s(), _(y, {
|
139
|
+
modelValue: l.value,
|
140
|
+
"onUpdate:modelValue": e[0] || (e[0] = (d) => l.value = d),
|
141
|
+
"column-defs": i,
|
142
|
+
"row-data": r.data,
|
143
|
+
loading: r.loading,
|
144
|
+
onRowClick: e[1] || (e[1] = (d) => c("row-click", r.data.at(d.index)))
|
145
|
+
}, null, 8, ["modelValue", "row-data", "loading"]);
|
146
|
+
};
|
147
|
+
}
|
148
|
+
});
|
149
|
+
export {
|
150
|
+
v as _
|
151
|
+
};
|
@@ -10,7 +10,8 @@ export declare const terminalTransactionApi: {
|
|
10
10
|
limit: number;
|
11
11
|
cursor: string;
|
12
12
|
}): Promise<PaginatedResult<FdoTerminalTransaction>>;
|
13
|
-
|
13
|
+
readAccountTransactions(payload: {
|
14
|
+
accountId: string;
|
14
15
|
status: F_TERMINAL_TRANSACTION_ACTION[];
|
15
16
|
searchKey: string;
|
16
17
|
start: string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { PortalPaymentTransaction } from "@/model/transaction";
|
2
2
|
import { PaymentRefundByTransactionIdDto, type PaymentTransactionDtoOutput } from "@feedmepos/payment-entity";
|
3
|
+
import type { F_PAYMENT_TRANSACTION_STATUS } from "@feedmepos/payment-entity/common/enum";
|
3
4
|
export declare const transactionApi: {
|
4
5
|
readBySettlementId(settlementId: string): Promise<PaymentTransactionDtoOutput[]>;
|
5
6
|
readTransactions(params: {
|
@@ -19,8 +20,14 @@ export declare const transactionApi: {
|
|
19
20
|
start: string;
|
20
21
|
end: string;
|
21
22
|
}): Promise<PaymentTransactionDtoOutput[]>;
|
23
|
+
readAccountTransactions(params: {
|
24
|
+
status: F_PAYMENT_TRANSACTION_STATUS[];
|
25
|
+
accountId: string;
|
26
|
+
start: string;
|
27
|
+
end: string;
|
28
|
+
}): Promise<PaymentTransactionDtoOutput[]>;
|
22
29
|
readRestaurantTransactionsBySettlementId(settlementId: string): Promise<PaymentTransactionDtoOutput[]>;
|
23
|
-
|
30
|
+
downloadPortalTransactionReport(data: PortalPaymentTransaction[]): Promise<void>;
|
24
31
|
downloadTransactionReport(date: {
|
25
32
|
start: string;
|
26
33
|
end: string;
|