@feedmepos/mf-payment 1.0.3-beta.1 → 1.0.3
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-DPDYDztu.js → PayoutAccount-DYnycBoi.js} +3 -3
- package/dist/{PayoutAccount-BpTmAq7L.js → PayoutAccount-DxMey5W6.js} +5 -5
- package/dist/{PayoutAccountSetting-Dqj5Ay8_.js → PayoutAccountSetting-C1yeSNv8.js} +4 -4
- package/dist/Restaurant-B02jty0J.js +262 -0
- package/dist/{RestaurantSetting-BeXpe5M9.js → RestaurantSetting-CWZAKz1A.js} +4 -4
- package/dist/{Settlement-BZevkUVD.js → Settlement-BKwie9R8.js} +3 -3
- package/dist/{Settlement-C5S8SCT8.js → Settlement-ByPXBNx1.js} +3 -3
- package/dist/{SettlementTransactions-D2Z-i4tv.js → SettlementTransactions-DVRoAUYv.js} +4 -4
- package/dist/{SettlementTransactions-CNFm-E92.js → SettlementTransactions-rXQceUoG.js} +4 -4
- package/dist/Terminal-DX8v8WpM.js +386 -0
- package/dist/{TerminalSetting-BgxObmZ4.js → TerminalSetting-qklmRz3H.js} +3 -3
- package/dist/{TerminalTransaction-DUAhQ3VJ.js → TerminalTransaction-64Bn6vh0.js} +18 -19
- package/dist/{TerminalTransaction-Buf0yMu-.js → TerminalTransaction-YXcGJ2ne.js} +154 -184
- package/dist/{Transaction-DJ62jUdZ.js → Transaction-BOc0NW9a.js} +4 -4
- package/dist/{Transaction-y9wPMvLS.js → Transaction-CqTKm8KP.js} +54 -83
- package/dist/{app-D9URbI68.js → app-D017JOF7.js} +259 -259
- package/dist/app.js +1 -1
- package/dist/{assets-C_LulpgD.js → assets-DjRoCcqv.js} +1 -1
- package/dist/{index-CKD2hEEa.js → index-BEFlDEyV.js} +1 -1
- package/dist/{index-B74aXBpn.js → index-BWFqxSU3.js} +1 -1
- package/dist/{index-DzBM1rDP.js → index-BerQZMQW.js} +1 -1
- package/dist/{index-CvqYcrBo.js → index-Bp_58SiC.js} +1 -1
- package/dist/{index-DBnMiisv.js → index-CKyh0nlu.js} +1 -1
- package/dist/{index-B6KIJrFV.js → index-CWGSYCJG.js} +1 -1
- package/dist/{index-CuQ0G8FE.js → index-DFePh4ct.js} +1 -1
- package/dist/{index-C1AMSmO9.js → index-Dj_LwPBy.js} +8151 -8295
- package/dist/{index.vue_vue_type_script_setup_true_lang-BmM0EooD.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +1 -1
- package/dist/model/payout-account.d.ts +1 -1
- package/dist/model/transaction.d.ts +0 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CvnI-60K.js → payout-account-BhSP2Imp.js} +2 -2
- package/dist/stores/payoutAccount.d.ts +6 -6
- package/dist/{transaction-DNuE-yMH.js → transaction-Bxl86wzh.js} +15 -19
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +6 -6
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
- 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 +12 -12
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/package.json +2 -2
- package/dist/Restaurant-BouKFsha.js +0 -302
- package/dist/Terminal-D7EMm_un.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",
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
26
26
|
groupByStatus: typeof groupByStatus;
|
27
27
|
bankTypeOptions: {
|
28
28
|
label: string;
|
29
|
-
value: "
|
29
|
+
value: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT";
|
30
30
|
}[];
|
31
31
|
bankNameOptions: {
|
32
32
|
label: string;
|
package/dist/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@feedmepos/mf-payment",
|
3
|
-
"version": "1.0.3
|
3
|
+
"version": "1.0.3",
|
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-D017JOF7.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
|
@@ -11,9 +11,9 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
11
11
|
_id: string;
|
12
12
|
store: {
|
13
13
|
bank?: {
|
14
|
-
type?: "
|
15
|
-
accountNumber?: string | null | undefined;
|
14
|
+
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "
|
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;
|
@@ -46,9 +46,9 @@ export declare const usePayoutAccountStore: import("pinia").StoreDefinition<"mf-
|
|
46
46
|
_id: string;
|
47
47
|
store: {
|
48
48
|
bank?: {
|
49
|
-
type?: "
|
50
|
-
accountNumber?: string | null | undefined;
|
49
|
+
type?: "OTHER" | "CURRENT_ACCOUNT" | "SAVING_ACCOUNT" | 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" | "ALIPAY" | "BOOST" | "GRABPAY" | "MAYBANKQRPAY" | "PRESTOPAY" | "RAZERPAY" | "SHOPEEPAY" | "TOUCHNGO" | "WECHATPAY" | "CARD" | "
|
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,53 @@
|
|
1
|
-
import { g as a, b as
|
2
|
-
import { h 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
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
|
-
start:
|
50
|
-
end:
|
49
|
+
start: e(t.start).startOf("day").toISOString(),
|
50
|
+
end: e(t.end).endOf("day").toISOString()
|
51
51
|
}
|
52
52
|
})
|
53
53
|
);
|
@@ -69,11 +69,8 @@ const f = {
|
|
69
69
|
},
|
70
70
|
async downloadTransactionReport(t) {
|
71
71
|
return c(
|
72
|
-
await
|
73
|
-
params:
|
74
|
-
start: n(t.start).startOf("day").toISOString(),
|
75
|
-
end: n(t.end).endOf("day").toISOString()
|
76
|
-
}
|
72
|
+
await n().get("/transactions/report", {
|
73
|
+
params: t
|
77
74
|
}),
|
78
75
|
`transaction-report-${t.start}-${t.end}.xlsx`
|
79
76
|
);
|
@@ -86,8 +83,7 @@ function d(t) {
|
|
86
83
|
method: t.method,
|
87
84
|
gateway: t.gateway,
|
88
85
|
status: t.status,
|
89
|
-
|
90
|
-
transactionAt: n(t.completedAt).format("YYYY-MM-DD hh:mm:ss"),
|
86
|
+
transactionAt: e(t.createdAt).format("YYYY-MM-DD hh:mm:ss"),
|
91
87
|
fdoAmount: t.amount,
|
92
88
|
amount: s(t.amount).toFormat("$0.00"),
|
93
89
|
fee: s(t.fee).toFormat("$0.00"),
|