@feedmepos/mf-payment 1.0.5 → 1.0.7
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-C-Po7wZQ.js} +5 -5
- package/dist/{PayoutAccount-B6kGeSLY.js → PayoutAccount-CqXm2KSy.js} +3 -3
- package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-h9qUr6nc.js +110 -0
- package/dist/{PayoutAccountSetting-C1yeSNv8.js → PayoutAccountSetting-NOdLfia7.js} +4 -4
- package/dist/Restaurant-Cc5ASoj_.js +305 -0
- package/dist/{RestaurantSetting-CWZAKz1A.js → RestaurantSetting-tzcFj_o_.js} +4 -4
- package/dist/{Settlement-BKwie9R8.js → Settlement-Dv9GQzck.js} +3 -3
- package/dist/{Settlement-ByPXBNx1.js → Settlement-L1f6JNAd.js} +3 -3
- package/dist/{SettlementTransactions-BPEh0mSi.js → SettlementTransactions-Fh8yTM7U.js} +4 -4
- package/dist/{SettlementTransactions-BGGqKJgP.js → SettlementTransactions-ziBwrrEQ.js} +4 -4
- package/dist/Terminal-oLKt3iaU.js +404 -0
- package/dist/{TerminalSetting-qklmRz3H.js → TerminalSetting-oV-9dQVY.js} +3 -3
- package/dist/{TerminalTransaction-YXcGJ2ne.js → TerminalTransaction-BVbB-doJ.js} +184 -154
- package/dist/TerminalTransaction-G0wYmxod.js +819 -0
- package/dist/Transaction--7lPYDcv.js +145 -0
- package/dist/{Transaction-IDcY01Oi.js → Transaction-CQzsoLWT.js} +81 -48
- package/dist/TransactionOld-rikFgC9l.js +99 -0
- package/dist/TransactionTable.vue_vue_type_script_setup_true_lang-CCetYnFm.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-DbO5UPJK.js} +507 -494
- package/dist/app.js +1 -1
- package/dist/{assets-DjRoCcqv.js → assets-jEPOvQE2.js} +1 -1
- package/dist/components/PayoutAccountSelector.vue.d.ts +23 -0
- package/dist/grafana-DmfGM6nK.js +49 -0
- package/dist/helpers/grafana.d.ts +7 -0
- package/dist/{index-CKyh0nlu.js → index-B98ZyP6o.js} +13 -9
- package/dist/{index-BerQZMQW.js → index-BIXNmtLI.js} +1 -1
- package/dist/{index-BEFlDEyV.js → index-CE-HcYpQ.js} +1 -1
- package/dist/{index-Dj_LwPBy.js → index-CQufO7mO.js} +8489 -8321
- package/dist/{index-DFePh4ct.js → index-D1ImYhk5.js} +1 -1
- package/dist/{index-Bp_58SiC.js → index-D8FF0EPZ.js} +1 -1
- package/dist/{index-BWFqxSU3.js → index-DbvnSo9v.js} +1 -1
- package/dist/{index-CWGSYCJG.js → index-I-TLVlRb.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js → index.vue_vue_type_script_setup_true_lang-BX_GLYKk.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-CM9wUigu.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-1aErD1US.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
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as o, b as i, j as d, l as y, k as f, i as c, r as m } from "./index-
|
1
|
+
import { g as o, b as i, j as d, l as y, k as f, i as c, r as m } from "./index-CQufO7mO.js";
|
2
2
|
import { h as r } from "./moment-h96o7c8I.js";
|
3
3
|
import { d as l } from "./dinero-CIVmXLL-.js";
|
4
4
|
function* p(t, n) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as I, ref as r, resolveComponent as p, openBlock as f, createBlock as L, withCtx as P, createVNode as d, createElementVNode as u, normalizeStyle as T, createElementBlock as M, Fragment as N, renderList as j, computed as C, watch as S, onMounted as E, unref as D, toDisplayString as B, createCommentVNode as O, normalizeClass as R } from "vue";
|
2
|
-
import { u as G } from "./index-
|
2
|
+
import { u as G } from "./index-CQufO7mO.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
const H = ["id"], U = /* @__PURE__ */ I({
|
5
5
|
__name: "FmTableSelection",
|
@@ -4,6 +4,7 @@ export interface PortalPaymentTransaction {
|
|
4
4
|
id: string;
|
5
5
|
payId: string;
|
6
6
|
transactionAt: string;
|
7
|
+
createdAt: string;
|
7
8
|
method: PaymentTransactionDtoOutput["method"];
|
8
9
|
gateway: F_PAYMENT_GATEWAY_KEY;
|
9
10
|
status: string;
|
@@ -11,6 +12,7 @@ export interface PortalPaymentTransaction {
|
|
11
12
|
fdoAmount: FdoDinero;
|
12
13
|
fee: string;
|
13
14
|
payout: string;
|
15
|
+
seqNumber?: string;
|
14
16
|
}
|
15
17
|
declare function toTransaction(trx: PaymentTransactionDtoOutput): PortalPaymentTransaction;
|
16
18
|
declare function toTransactions(trxs: PaymentTransactionDtoOutput[]): PortalPaymentTransaction[];
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@feedmepos/mf-payment",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.7",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -33,8 +33,8 @@
|
|
33
33
|
"@casl/ability": "^3.2.0",
|
34
34
|
"@feedmepos/core": "^2.6.0",
|
35
35
|
"@feedmepos/mf-common": "^1.8.21",
|
36
|
-
"@feedmepos/payment-entity": "^0.0.
|
37
|
-
"@feedmepos/ui-library": "^1.
|
36
|
+
"@feedmepos/payment-entity": "^0.0.13",
|
37
|
+
"@feedmepos/ui-library": "^1.3.5",
|
38
38
|
"axios": "^0.27.2",
|
39
39
|
"buffer": "^6.0.3",
|
40
40
|
"change-case": "^4.1.2",
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-
|
2
|
-
import { d as at, f as ut, _ as Y, m as ct } from "./index-
|
1
|
+
import { _ as Qe, C as et, r as Oe, S as tt, g as re, a as nt, b as rt, c as _e, d as st, F as it, e as ot } from "./app-DbO5UPJK.js";
|
2
|
+
import { d as at, f as ut, _ as Y, m as ct } from "./index-CQufO7mO.js";
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2017 Google LLC
|
package/dist/router/index.d.ts
CHANGED
@@ -12,8 +12,8 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
12
12
|
store: {
|
13
13
|
bank?: {
|
14
14
|
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
|
15
|
-
holderName?: string | null | undefined;
|
16
15
|
accountNumber?: string | null | undefined;
|
16
|
+
holderName?: string | null | undefined;
|
17
17
|
name: string;
|
18
18
|
} | null | undefined;
|
19
19
|
ssm?: string | null | undefined;
|
@@ -34,7 +34,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
34
34
|
precision: number;
|
35
35
|
} | null | undefined;
|
36
36
|
tPlus?: number | null | undefined;
|
37
|
-
issuer: "OTHER" | "FEEDME" | "
|
37
|
+
issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
|
38
38
|
variant: string;
|
39
39
|
}[];
|
40
40
|
businessId: string;
|
@@ -47,8 +47,8 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
47
47
|
store: {
|
48
48
|
bank?: {
|
49
49
|
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | null | undefined;
|
50
|
-
holderName?: string | null | undefined;
|
51
50
|
accountNumber?: string | null | undefined;
|
51
|
+
holderName?: string | null | undefined;
|
52
52
|
name: string;
|
53
53
|
} | null | undefined;
|
54
54
|
ssm?: string | null | undefined;
|
@@ -69,7 +69,7 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
69
69
|
precision: number;
|
70
70
|
} | null | undefined;
|
71
71
|
tPlus?: number | null | undefined;
|
72
|
-
issuer: "OTHER" | "FEEDME" | "
|
72
|
+
issuer: "OTHER" | "FEEDME" | "WECHATPAY" | "ALIPAY" | "BOOST" | "GRABPAY" | "RAZERPAY" | "SHOPEEPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "TOUCHNGO" | "CARD" | "DUITNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "PAYNOW" | "VISA" | "MASTER" | "MYDEBIT";
|
73
73
|
variant: string;
|
74
74
|
}[];
|
75
75
|
businessId: string;
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import { g as n, b as s, r as o, h as i, l as c, i as d } from "./index-CQufO7mO.js";
|
2
|
+
import { h as a } from "./moment-h96o7c8I.js";
|
3
|
+
import { d as r } from "./dinero-CIVmXLL-.js";
|
4
|
+
const l = {
|
5
|
+
async readBySettlementId(t) {
|
6
|
+
return n(
|
7
|
+
await s().get(
|
8
|
+
`/transactions/settlements/${t}`
|
9
|
+
)
|
10
|
+
);
|
11
|
+
},
|
12
|
+
async readTransactions(t) {
|
13
|
+
return n(
|
14
|
+
await s().get("/transactions", {
|
15
|
+
params: {
|
16
|
+
search: t.search,
|
17
|
+
skip: t.skip,
|
18
|
+
limit: t.limit,
|
19
|
+
start: a(t.start).startOf("day").toISOString(),
|
20
|
+
end: a(t.end).endOf("day").toISOString()
|
21
|
+
}
|
22
|
+
})
|
23
|
+
);
|
24
|
+
},
|
25
|
+
async removeTransactionFromSettlement(t) {
|
26
|
+
return n(
|
27
|
+
await s().delete(`/settlements/${t}`)
|
28
|
+
);
|
29
|
+
},
|
30
|
+
async refetchTransaction({
|
31
|
+
transactionId: t
|
32
|
+
}) {
|
33
|
+
return n(
|
34
|
+
await s().get(`/transactions/refetch/${t}`)
|
35
|
+
);
|
36
|
+
},
|
37
|
+
async refundTransaction(t) {
|
38
|
+
return n(await s().post("/payments/refund", t));
|
39
|
+
},
|
40
|
+
async renotifyTransaction(t) {
|
41
|
+
return n(
|
42
|
+
await s().post("/payments/re-notify", { transactionId: t })
|
43
|
+
);
|
44
|
+
},
|
45
|
+
async readRestaurantTransactions(t) {
|
46
|
+
return n(
|
47
|
+
await o().get("/transactions", {
|
48
|
+
params: {
|
49
|
+
v2: !0,
|
50
|
+
start: a(t.start).startOf("day").toISOString(),
|
51
|
+
end: a(t.end).endOf("day").toISOString()
|
52
|
+
}
|
53
|
+
})
|
54
|
+
);
|
55
|
+
},
|
56
|
+
async readAccountTransactions(t) {
|
57
|
+
return n(
|
58
|
+
await i().get("/transactions", {
|
59
|
+
params: {
|
60
|
+
status: t.status,
|
61
|
+
accountId: t.accountId,
|
62
|
+
start: a(t.start).startOf("day").toISOString(),
|
63
|
+
end: a(t.end).endOf("day").toISOString()
|
64
|
+
}
|
65
|
+
})
|
66
|
+
);
|
67
|
+
},
|
68
|
+
async readRestaurantTransactionsBySettlementId(t) {
|
69
|
+
return n(
|
70
|
+
await o().get(
|
71
|
+
`/transactions/settlements/${t}`
|
72
|
+
)
|
73
|
+
);
|
74
|
+
},
|
75
|
+
async downloadPortalTransactionReport(t) {
|
76
|
+
return c(t, {
|
77
|
+
filename: "transaction-report.xlsx",
|
78
|
+
transformers: {
|
79
|
+
method: (e) => (e == null ? void 0 : e.issuer) ?? ""
|
80
|
+
}
|
81
|
+
});
|
82
|
+
},
|
83
|
+
async downloadTransactionReport(t) {
|
84
|
+
return d(
|
85
|
+
await s().get("/transactions/report", {
|
86
|
+
params: {
|
87
|
+
start: a(t.start).startOf("day").toISOString(),
|
88
|
+
end: a(t.end).endOf("day").toISOString()
|
89
|
+
}
|
90
|
+
}),
|
91
|
+
`transaction-report-${t.start}-${t.end}.xlsx`
|
92
|
+
);
|
93
|
+
}
|
94
|
+
};
|
95
|
+
function u(t) {
|
96
|
+
return {
|
97
|
+
id: t._id,
|
98
|
+
payId: t.payId,
|
99
|
+
method: t.method,
|
100
|
+
gateway: t.gateway,
|
101
|
+
status: t.status,
|
102
|
+
createdAt: a(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
|
103
|
+
transactionAt: a(t.completedAt).format("YYYY-MM-DD hh:mm:ss"),
|
104
|
+
fdoAmount: t.amount,
|
105
|
+
amount: r(t.amount).toFormat("$0.00"),
|
106
|
+
fee: r(t.fee).toFormat("$0.00"),
|
107
|
+
payout: r(t.payout).toFormat("$0.00"),
|
108
|
+
seqNumber: t == null ? void 0 : t.seqNumber
|
109
|
+
};
|
110
|
+
}
|
111
|
+
function g(t) {
|
112
|
+
return t.map(u);
|
113
|
+
}
|
114
|
+
export {
|
115
|
+
g as a,
|
116
|
+
u as b,
|
117
|
+
l as t
|
118
|
+
};
|