@feedmepos/mf-payment 1.0.4-beta.2 → 1.0.5
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-K-clfaW8.js → PayoutAccount-B6kGeSLY.js} +3 -3
- package/dist/{PayoutAccount-CUcmLnpF.js → PayoutAccount-BwBgS41r.js} +5 -5
- package/dist/{PayoutAccountSetting-B1uLo7gi.js → PayoutAccountSetting-C1yeSNv8.js} +4 -4
- package/dist/Restaurant-B02jty0J.js +262 -0
- package/dist/{RestaurantSetting-Dx0fPDEn.js → RestaurantSetting-CWZAKz1A.js} +4 -4
- package/dist/{Settlement-D0nuXQMV.js → Settlement-BKwie9R8.js} +3 -3
- package/dist/{Settlement-BGueDfpI.js → Settlement-ByPXBNx1.js} +3 -3
- package/dist/{SettlementTransactions-Dsnpidi1.js → SettlementTransactions-BGGqKJgP.js} +4 -4
- package/dist/{SettlementTransactions-DW8-tVPe.js → SettlementTransactions-BPEh0mSi.js} +4 -4
- package/dist/Terminal-DX8v8WpM.js +386 -0
- package/dist/{TerminalSetting-CrpB7DIV.js → TerminalSetting-qklmRz3H.js} +3 -3
- package/dist/{TerminalTransaction-2E_8keFp.js → TerminalTransaction-64Bn6vh0.js} +44 -50
- package/dist/{TerminalTransaction-BGy4ABmm.js → TerminalTransaction-YXcGJ2ne.js} +154 -184
- package/dist/{Transaction-DFqANzFa.js → Transaction-DMw2p-Wq.js} +27 -31
- package/dist/{Transaction-izWqPmdQ.js → Transaction-IDcY01Oi.js} +48 -81
- package/dist/{app-DPCnmmmg.js → app-CjbTCCDJ.js} +229 -229
- package/dist/app.js +1 -1
- package/dist/{assets-NM2zCyV8.js → assets-DjRoCcqv.js} +1 -1
- package/dist/{index-DffVv67M.js → index-BEFlDEyV.js} +1 -1
- package/dist/{index-CZv4Ucw7.js → index-BWFqxSU3.js} +1 -1
- package/dist/{index-BWpuTiNy.js → index-BerQZMQW.js} +1 -1
- package/dist/{index-DfC2cb6i.js → index-Bp_58SiC.js} +1 -1
- package/dist/{index-BpclEVci.js → index-CKyh0nlu.js} +1 -1
- package/dist/{index-BbPdddp2.js → index-CWGSYCJG.js} +1 -1
- package/dist/{index-B5pmhl4r.js → index-DFePh4ct.js} +1 -1
- package/dist/{index-Bl77l-UI.js → index-Dj_LwPBy.js} +8321 -8489
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bm7Wybo3.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +1 -1
- package/dist/model/transaction.d.ts +0 -2
- package/dist/package.json +2 -2
- package/dist/{payout-account-DpAKpX1a.js → payout-account-ByuqS-Ea.js} +2 -2
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/{transaction-13xSmWg9.js → transaction-Cyw84Cks.js} +21 -25
- 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/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 +1 -3
- 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/package.json +2 -2
- package/dist/Restaurant-D5L8pG25.js +0 -305
- package/dist/Terminal-BkhqmKjN.js +0 -404
- package/dist/grafana-CqkYm_ru.js +0 -46
- package/dist/helpers/grafana.d.ts +0 -7
- package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +0 -5
@@ -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-Dj_LwPBy.js";
|
3
3
|
import "@feedmepos/ui-library";
|
4
4
|
const H = ["id"], U = /* @__PURE__ */ I({
|
5
5
|
__name: "FmTableSelection",
|
@@ -4,7 +4,6 @@ export interface PortalPaymentTransaction {
|
|
4
4
|
id: string;
|
5
5
|
payId: string;
|
6
6
|
transactionAt: string;
|
7
|
-
createdAt: string;
|
8
7
|
method: PaymentTransactionDtoOutput["method"];
|
9
8
|
gateway: F_PAYMENT_GATEWAY_KEY;
|
10
9
|
status: string;
|
@@ -12,7 +11,6 @@ export interface PortalPaymentTransaction {
|
|
12
11
|
fdoAmount: FdoDinero;
|
13
12
|
fee: string;
|
14
13
|
payout: string;
|
15
|
-
seqNumber?: string;
|
16
14
|
}
|
17
15
|
declare function toTransaction(trx: PaymentTransactionDtoOutput): PortalPaymentTransaction;
|
18
16
|
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.5",
|
4
4
|
"type": "module",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -33,7 +33,7 @@
|
|
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.
|
36
|
+
"@feedmepos/payment-entity": "^0.0.6",
|
37
37
|
"@feedmepos/ui-library": "^1.2.61",
|
38
38
|
"axios": "^0.27.2",
|
39
39
|
"buffer": "^6.0.3",
|
@@ -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-CjbTCCDJ.js";
|
2
|
+
import { d as at, f as ut, _ as Y, m as ct } from "./index-Dj_LwPBy.js";
|
3
3
|
/**
|
4
4
|
* @license
|
5
5
|
* Copyright 2017 Google LLC
|
@@ -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
|
-
accountNumber?: string | null | undefined;
|
16
15
|
holderName?: string | null | undefined;
|
16
|
+
accountNumber?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "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
|
-
accountNumber?: string | null | undefined;
|
51
50
|
holderName?: string | null | undefined;
|
51
|
+
accountNumber?: 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "DUITNOW" | "PAYNOW" | "FPX" | "DEBITCARD" | "CREDITCARD" | "UNIONPAY" | "ATOME" | "VISA" | "MASTER" | "MYDEBIT";
|
73
73
|
variant: string;
|
74
74
|
}[];
|
75
75
|
businessId: string;
|
@@ -1,53 +1,54 @@
|
|
1
|
-
import { g as a, b as
|
2
|
-
import { h as
|
3
|
-
import { d as
|
1
|
+
import { g as a, b as n, r as o, l as i, i as c } from "./index-Dj_LwPBy.js";
|
2
|
+
import { h as e } from "./moment-h96o7c8I.js";
|
3
|
+
import { d as s } from "./dinero-CIVmXLL-.js";
|
4
4
|
const f = {
|
5
5
|
async readBySettlementId(t) {
|
6
6
|
return a(
|
7
|
-
await
|
7
|
+
await n().get(
|
8
8
|
`/transactions/settlements/${t}`
|
9
9
|
)
|
10
10
|
);
|
11
11
|
},
|
12
12
|
async readTransactions(t) {
|
13
13
|
return a(
|
14
|
-
await
|
14
|
+
await n().get("/transactions", {
|
15
15
|
params: {
|
16
16
|
search: t.search,
|
17
17
|
skip: t.skip,
|
18
18
|
limit: t.limit,
|
19
|
-
start:
|
20
|
-
end:
|
19
|
+
start: e(t.start).startOf("day").toISOString(),
|
20
|
+
end: e(t.end).endOf("day").toISOString()
|
21
21
|
}
|
22
22
|
})
|
23
23
|
);
|
24
24
|
},
|
25
25
|
async removeTransactionFromSettlement(t) {
|
26
26
|
return a(
|
27
|
-
await
|
27
|
+
await n().delete(`/settlements/${t}`)
|
28
28
|
);
|
29
29
|
},
|
30
30
|
async refetchTransaction({
|
31
31
|
transactionId: t
|
32
32
|
}) {
|
33
33
|
return a(
|
34
|
-
await
|
34
|
+
await n().get(`/transactions/refetch/${t}`)
|
35
35
|
);
|
36
36
|
},
|
37
37
|
async refundTransaction(t) {
|
38
|
-
return a(await
|
38
|
+
return a(await n().post("/payments/refund", t));
|
39
39
|
},
|
40
40
|
async renotifyTransaction(t) {
|
41
41
|
return a(
|
42
|
-
await
|
42
|
+
await n().post("/payments/re-notify", { transactionId: t })
|
43
43
|
);
|
44
44
|
},
|
45
45
|
async readRestaurantTransactions(t) {
|
46
46
|
return a(
|
47
47
|
await o().get("/transactions", {
|
48
48
|
params: {
|
49
|
-
|
50
|
-
|
49
|
+
v2: !0,
|
50
|
+
start: e(t.start).startOf("day").toISOString(),
|
51
|
+
end: e(t.end).endOf("day").toISOString()
|
51
52
|
}
|
52
53
|
})
|
53
54
|
);
|
@@ -63,17 +64,14 @@ const f = {
|
|
63
64
|
return i(t, {
|
64
65
|
filename: "transaction-report.xlsx",
|
65
66
|
transformers: {
|
66
|
-
method: (
|
67
|
+
method: (r) => (r == null ? void 0 : r.issuer) ?? ""
|
67
68
|
}
|
68
69
|
});
|
69
70
|
},
|
70
71
|
async downloadTransactionReport(t) {
|
71
72
|
return c(
|
72
|
-
await
|
73
|
-
params:
|
74
|
-
start: n(t.start).startOf("day").toISOString(),
|
75
|
-
end: n(t.end).endOf("day").toISOString()
|
76
|
-
}
|
73
|
+
await n().get("/transactions/report", {
|
74
|
+
params: t
|
77
75
|
}),
|
78
76
|
`transaction-report-${t.start}-${t.end}.xlsx`
|
79
77
|
);
|
@@ -86,13 +84,11 @@ function d(t) {
|
|
86
84
|
method: t.method,
|
87
85
|
gateway: t.gateway,
|
88
86
|
status: t.status,
|
89
|
-
|
90
|
-
transactionAt: n(t.completedAt).format("YYYY-MM-DD hh:mm:ss"),
|
87
|
+
transactionAt: e(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
|
91
88
|
fdoAmount: t.amount,
|
92
|
-
amount:
|
93
|
-
fee:
|
94
|
-
payout:
|
95
|
-
seqNumber: t == null ? void 0 : t.seqNumber
|
89
|
+
amount: s(t.amount).toFormat("$0.00"),
|
90
|
+
fee: s(t.fee).toFormat("$0.00"),
|
91
|
+
payout: s(t.payout).toFormat("$0.00")
|
96
92
|
};
|
97
93
|
}
|
98
94
|
function p(t) {
|