@feedmepos/mf-payment 0.0.0-beta.24 → 0.0.0-beta.25
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-BjGdteR8.js → PayoutAccount-CKuBCVJ6.js} +5 -5
- package/dist/{PayoutAccount-CdKAjUed.js → PayoutAccount-DzDH-rd3.js} +3 -3
- package/dist/{PayoutAccountSetting-DsqjVlIu.js → PayoutAccountSetting-BJCAWFF-.js} +3 -3
- package/dist/{Settlement-DTE8p3LA.js → Settlement-CVNM8xH5.js} +3 -3
- package/dist/{Settlement-CY0-gXn5.js → Settlement-DftIb8e-.js} +3 -3
- package/dist/{SettlementTransactions-C4tIk6nO.js → SettlementTransactions-BuTUEwmz.js} +4 -4
- package/dist/{SettlementTransactions-BJlBWR1G.js → SettlementTransactions-CvrLIufc.js} +4 -4
- package/dist/{Terminal-C4gOl3zs.js → Terminal-CvlrGww3.js} +4 -4
- package/dist/TerminalSetting-DUGN_vKj.js +181 -0
- package/dist/{TerminalTransaction-BUT01dUv.js → TerminalTransaction-BF7-4t_i.js} +5 -5
- package/dist/{TerminalTransaction-CCdbfxx0.js → TerminalTransaction-Bo03hqWL.js} +5 -5
- package/dist/{Transaction-CoCZaBfu.js → Transaction-DoHY9CsI.js} +4 -4
- package/dist/{Transaction-60yViCMI.js → Transaction-mXvzcE0S.js} +4 -4
- package/dist/app.js +13 -13
- package/dist/{assets-BmFExmpA.js → assets-BTfeymI6.js} +1 -1
- package/dist/{index-_qikPh5K.js → index-AaEoCouS.js} +4786 -4781
- package/dist/{index-DeF94ACV.js → index-BF1LGMW9.js} +1 -1
- package/dist/{index-Bvb4T6xz.js → index-Bnxf-Ewh.js} +1 -1
- package/dist/{index-Df0izARr.js → index-D1eDPMI5.js} +1 -1
- package/dist/{index-Jtghafz6.js → index-DgQ79Owz.js} +1 -1
- package/dist/{index-CDgQhs3k.js → index-l4or-k_f.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CfU6stly.js → index.vue_vue_type_script_setup_true_lang-ByHFK12s.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CRgYpkAs.js → payout-account-BIRwEZLJ.js} +292 -292
- package/dist/{transaction-B5QUg556.js → transaction-hIlfGn-e.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -12
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +6 -12
- package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +7 -13
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -12
- package/package.json +2 -2
- package/dist/TerminalSetting-DC9NBozT.js +0 -176
@@ -9,12 +9,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
applicationCode?: string | null | undefined;
|
13
|
-
offlineSecret?: string | null | undefined;
|
14
12
|
uniqueId: string;
|
15
|
-
|
16
|
-
secretKey: string;
|
17
|
-
verifyKey: string;
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
18
14
|
} | null | undefined;
|
19
15
|
gateway: "Fiuu";
|
20
16
|
} | {
|
@@ -23,9 +19,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
23
19
|
status: "Active" | "Inactive";
|
24
20
|
_id: string;
|
25
21
|
createdAt: string;
|
26
|
-
updatedAt: string;
|
27
22
|
referenceId: string;
|
28
23
|
securityCode: string;
|
24
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
25
|
+
updatedAt: string;
|
29
26
|
}>;
|
30
27
|
};
|
31
28
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -38,12 +35,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
38
35
|
token?: string | null | undefined;
|
39
36
|
gateways?: ({
|
40
37
|
config?: {
|
41
|
-
applicationCode?: string | null | undefined;
|
42
|
-
offlineSecret?: string | null | undefined;
|
43
38
|
uniqueId: string;
|
44
|
-
|
45
|
-
secretKey: string;
|
46
|
-
verifyKey: string;
|
39
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
47
40
|
} | null | undefined;
|
48
41
|
gateway: "Fiuu";
|
49
42
|
} | {
|
@@ -52,9 +45,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
52
45
|
status: "Active" | "Inactive";
|
53
46
|
_id: string;
|
54
47
|
createdAt: string;
|
55
|
-
updatedAt: string;
|
56
48
|
referenceId: string;
|
57
49
|
securityCode: string;
|
50
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
51
|
+
updatedAt: string;
|
58
52
|
}>;
|
59
53
|
};
|
60
54
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
@@ -7,12 +7,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
token?: string | null | undefined;
|
8
8
|
gateways?: ({
|
9
9
|
config?: {
|
10
|
-
applicationCode?: string | null | undefined;
|
11
|
-
offlineSecret?: string | null | undefined;
|
12
10
|
uniqueId: string;
|
13
|
-
|
14
|
-
secretKey: string;
|
15
|
-
verifyKey: string;
|
11
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
16
12
|
} | null | undefined;
|
17
13
|
gateway: "Fiuu";
|
18
14
|
} | {
|
@@ -21,9 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
17
|
status: "Active" | "Inactive";
|
22
18
|
_id: string;
|
23
19
|
createdAt: string;
|
24
|
-
updatedAt: string;
|
25
20
|
referenceId: string;
|
26
21
|
securityCode: string;
|
22
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
23
|
+
updatedAt: string;
|
27
24
|
};
|
28
25
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
29
26
|
link: () => any;
|
@@ -38,12 +35,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
35
|
token?: string | null | undefined;
|
39
36
|
gateways?: ({
|
40
37
|
config?: {
|
41
|
-
applicationCode?: string | null | undefined;
|
42
|
-
offlineSecret?: string | null | undefined;
|
43
38
|
uniqueId: string;
|
44
|
-
|
45
|
-
secretKey: string;
|
46
|
-
verifyKey: string;
|
39
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
47
40
|
} | null | undefined;
|
48
41
|
gateway: "Fiuu";
|
49
42
|
} | {
|
@@ -52,9 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
45
|
status: "Active" | "Inactive";
|
53
46
|
_id: string;
|
54
47
|
createdAt: string;
|
55
|
-
updatedAt: string;
|
56
48
|
referenceId: string;
|
57
49
|
securityCode: string;
|
50
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
51
|
+
updatedAt: string;
|
58
52
|
};
|
59
53
|
}> & Readonly<{
|
60
54
|
onLink?: (() => any) | undefined;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
1
|
+
import { type FdoTerminal } from '@feedmepos/payment-entity';
|
2
2
|
import { type PropType } from 'vue';
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
4
4
|
terminal: {
|
@@ -10,12 +10,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
10
10
|
token?: string | null | undefined;
|
11
11
|
gateways?: ({
|
12
12
|
config?: {
|
13
|
-
applicationCode?: string | null | undefined;
|
14
|
-
offlineSecret?: string | null | undefined;
|
15
13
|
uniqueId: string;
|
16
|
-
|
17
|
-
secretKey: string;
|
18
|
-
verifyKey: string;
|
14
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
19
15
|
} | null | undefined;
|
20
16
|
gateway: "Fiuu";
|
21
17
|
} | {
|
@@ -24,9 +20,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
24
20
|
status: "Active" | "Inactive";
|
25
21
|
_id: string;
|
26
22
|
createdAt: string;
|
27
|
-
updatedAt: string;
|
28
23
|
referenceId: string;
|
29
24
|
securityCode: string;
|
25
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
26
|
+
updatedAt: string;
|
30
27
|
}>;
|
31
28
|
required: true;
|
32
29
|
};
|
@@ -44,12 +41,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
44
41
|
token?: string | null | undefined;
|
45
42
|
gateways?: ({
|
46
43
|
config?: {
|
47
|
-
applicationCode?: string | null | undefined;
|
48
|
-
offlineSecret?: string | null | undefined;
|
49
44
|
uniqueId: string;
|
50
|
-
|
51
|
-
secretKey: string;
|
52
|
-
verifyKey: string;
|
45
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
53
46
|
} | null | undefined;
|
54
47
|
gateway: "Fiuu";
|
55
48
|
} | {
|
@@ -58,9 +51,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
58
51
|
status: "Active" | "Inactive";
|
59
52
|
_id: string;
|
60
53
|
createdAt: string;
|
61
|
-
updatedAt: string;
|
62
54
|
referenceId: string;
|
63
55
|
securityCode: string;
|
56
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
57
|
+
updatedAt: string;
|
64
58
|
}>;
|
65
59
|
required: true;
|
66
60
|
};
|
@@ -9,12 +9,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
applicationCode?: string | null | undefined;
|
13
|
-
offlineSecret?: string | null | undefined;
|
14
12
|
uniqueId: string;
|
15
|
-
|
16
|
-
secretKey: string;
|
17
|
-
verifyKey: string;
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
18
14
|
} | null | undefined;
|
19
15
|
gateway: "Fiuu";
|
20
16
|
} | {
|
@@ -23,9 +19,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
23
19
|
status: "Active" | "Inactive";
|
24
20
|
_id: string;
|
25
21
|
createdAt: string;
|
26
|
-
updatedAt: string;
|
27
22
|
referenceId: string;
|
28
23
|
securityCode: string;
|
24
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
25
|
+
updatedAt: string;
|
29
26
|
}>;
|
30
27
|
required: true;
|
31
28
|
};
|
@@ -39,12 +36,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
39
36
|
token?: string | null | undefined;
|
40
37
|
gateways?: ({
|
41
38
|
config?: {
|
42
|
-
applicationCode?: string | null | undefined;
|
43
|
-
offlineSecret?: string | null | undefined;
|
44
39
|
uniqueId: string;
|
45
|
-
|
46
|
-
secretKey: string;
|
47
|
-
verifyKey: string;
|
40
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
48
41
|
} | null | undefined;
|
49
42
|
gateway: "Fiuu";
|
50
43
|
} | {
|
@@ -53,9 +46,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
53
46
|
status: "Active" | "Inactive";
|
54
47
|
_id: string;
|
55
48
|
createdAt: string;
|
56
|
-
updatedAt: string;
|
57
49
|
referenceId: string;
|
58
50
|
securityCode: string;
|
51
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
52
|
+
updatedAt: string;
|
59
53
|
}>;
|
60
54
|
required: true;
|
61
55
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@feedmepos/mf-payment",
|
3
|
-
"version": "0.0.0-beta.
|
3
|
+
"version": "0.0.0-beta.25",
|
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.5-
|
36
|
+
"@feedmepos/payment-entity": "^0.0.5-demo5",
|
37
37
|
"@feedmepos/ui-library": "^1.2.44",
|
38
38
|
"axios": "^0.27.2",
|
39
39
|
"buffer": "^6.0.3",
|
@@ -1,176 +0,0 @@
|
|
1
|
-
import { defineComponent as k, openBlock as y, createElementBlock as K, Fragment as C, createElementVNode as s, createTextVNode as w, toDisplayString as F, ref as f, onMounted as T, resolveComponent as c, createBlock as V, withCtx as U, createVNode as d, computed as D, unref as p, isRef as N, resolveDynamicComponent as E, normalizeProps as $, mergeProps as L, createCommentVNode as M } from "vue";
|
2
|
-
import { u as P } from "./index-_qikPh5K.js";
|
3
|
-
import { useRouter as j } from "vue-router";
|
4
|
-
import { t as I } from "./index-Jtghafz6.js";
|
5
|
-
import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
6
|
-
import { u as O } from "./index-Bvb4T6xz.js";
|
7
|
-
import { useSnackbar as R } from "@feedmepos/ui-library";
|
8
|
-
import { u as z } from "./error-K1CakhA9.js";
|
9
|
-
const G = /* @__PURE__ */ k({
|
10
|
-
__name: "Information",
|
11
|
-
props: {
|
12
|
-
terminal: {
|
13
|
-
type: Object,
|
14
|
-
required: !0
|
15
|
-
}
|
16
|
-
},
|
17
|
-
setup(l) {
|
18
|
-
return (o, e) => (y(), K(C, null, [
|
19
|
-
e[0] || (e[0] = s("b", null, "Name", -1)),
|
20
|
-
w(": " + F(l.terminal.name), 1),
|
21
|
-
e[1] || (e[1] = s("br", null, null, -1)),
|
22
|
-
e[2] || (e[2] = s("b", null, "Status", -1)),
|
23
|
-
w(": " + F(l.terminal.status), 1),
|
24
|
-
e[3] || (e[3] = s("br", null, null, -1)),
|
25
|
-
e[4] || (e[4] = s("b", null, "Device ID", -1)),
|
26
|
-
w(": " + F(l.terminal.deviceId ?? "-"), 1),
|
27
|
-
e[5] || (e[5] = s("br", null, null, -1))
|
28
|
-
], 64));
|
29
|
-
}
|
30
|
-
}), Q = /* @__PURE__ */ k({
|
31
|
-
__name: "Fiuu",
|
32
|
-
props: {
|
33
|
-
terminal: {
|
34
|
-
type: Object,
|
35
|
-
required: !0
|
36
|
-
},
|
37
|
-
onUpdate: {
|
38
|
-
type: Function,
|
39
|
-
required: !0
|
40
|
-
}
|
41
|
-
},
|
42
|
-
setup(l) {
|
43
|
-
const o = l, e = f(), v = f(!0), n = f({
|
44
|
-
uniqueId: "",
|
45
|
-
merchantId: "",
|
46
|
-
secretKey: "",
|
47
|
-
verifyKey: ""
|
48
|
-
});
|
49
|
-
return T(() => {
|
50
|
-
if (!o.terminal.gateways)
|
51
|
-
return;
|
52
|
-
const u = o.terminal.gateways.find((t) => t && t.gateway && t.gateway === "Fiuu");
|
53
|
-
u && u.gateway === "Fiuu" && u.config && (v.value = !1, n.value = u.config);
|
54
|
-
}), (u, t) => {
|
55
|
-
const r = c("FmTextField"), g = c("FmButton"), b = c("FmForm");
|
56
|
-
return y(), V(b, {
|
57
|
-
ref: e.value,
|
58
|
-
class: "flex flex-col gap-16 w-[500px]",
|
59
|
-
onValidationSuccess: t[4] || (t[4] = () => {
|
60
|
-
l.terminal.gateways[0] = { gateway: "Fiuu", config: n.value }, o.onUpdate(l.terminal);
|
61
|
-
})
|
62
|
-
}, {
|
63
|
-
default: U(() => [
|
64
|
-
d(r, {
|
65
|
-
modelValue: n.value.uniqueId,
|
66
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => n.value.uniqueId = a),
|
67
|
-
label: "Unique ID"
|
68
|
-
}, null, 8, ["modelValue"]),
|
69
|
-
d(r, {
|
70
|
-
modelValue: n.value.merchantId,
|
71
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => n.value.merchantId = a),
|
72
|
-
label: "Merchant ID"
|
73
|
-
}, null, 8, ["modelValue"]),
|
74
|
-
d(r, {
|
75
|
-
modelValue: n.value.secretKey,
|
76
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => n.value.secretKey = a),
|
77
|
-
label: "Secret Key"
|
78
|
-
}, null, 8, ["modelValue"]),
|
79
|
-
d(r, {
|
80
|
-
modelValue: n.value.verifyKey,
|
81
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => n.value.verifyKey = a),
|
82
|
-
label: "Verify key"
|
83
|
-
}, null, 8, ["modelValue"]),
|
84
|
-
d(g, {
|
85
|
-
type: "submit",
|
86
|
-
label: "Save"
|
87
|
-
})
|
88
|
-
]),
|
89
|
-
_: 1
|
90
|
-
}, 512);
|
91
|
-
};
|
92
|
-
}
|
93
|
-
}), ee = /* @__PURE__ */ k({
|
94
|
-
__name: "TerminalSetting",
|
95
|
-
props: {
|
96
|
-
terminalId: {
|
97
|
-
type: String,
|
98
|
-
required: !0
|
99
|
-
}
|
100
|
-
},
|
101
|
-
setup(l) {
|
102
|
-
const o = l, { tab: e } = O({
|
103
|
-
tab: "information"
|
104
|
-
}), { isLoading: v, startAsyncCall: n } = P(!0), u = j(), t = R(), r = f();
|
105
|
-
async function g(i) {
|
106
|
-
try {
|
107
|
-
await I.updateById(
|
108
|
-
o.terminalId,
|
109
|
-
{
|
110
|
-
name: i.name,
|
111
|
-
status: i.status,
|
112
|
-
gateway: i.gateways[0]
|
113
|
-
}
|
114
|
-
), r.value = await I.readById(o.terminalId), t.open({
|
115
|
-
type: "success",
|
116
|
-
message: "Terminal updated successfully"
|
117
|
-
});
|
118
|
-
} catch (m) {
|
119
|
-
t.open({
|
120
|
-
type: "error",
|
121
|
-
title: "Error occurs when update terminal",
|
122
|
-
message: z(m)
|
123
|
-
});
|
124
|
-
}
|
125
|
-
}
|
126
|
-
async function b() {
|
127
|
-
n(async () => {
|
128
|
-
r.value = await I.readById(o.terminalId);
|
129
|
-
});
|
130
|
-
}
|
131
|
-
T(b);
|
132
|
-
const a = [
|
133
|
-
{
|
134
|
-
label: "Information",
|
135
|
-
value: "information",
|
136
|
-
icon: "overview",
|
137
|
-
render: G
|
138
|
-
},
|
139
|
-
{
|
140
|
-
label: "Fiuu",
|
141
|
-
value: "fiuu",
|
142
|
-
icon: "payment",
|
143
|
-
render: Q
|
144
|
-
}
|
145
|
-
], x = D(() => {
|
146
|
-
var i;
|
147
|
-
return (i = a.find((m) => m.value === e.value)) == null ? void 0 : i.render;
|
148
|
-
});
|
149
|
-
return (i, m) => {
|
150
|
-
var B;
|
151
|
-
const q = c("FmTabs");
|
152
|
-
return y(), V(A, {
|
153
|
-
title: `Terminal (${(B = r.value) == null ? void 0 : B._id})`,
|
154
|
-
loading: p(v),
|
155
|
-
onBack: p(u).back
|
156
|
-
}, {
|
157
|
-
default: U(() => [
|
158
|
-
d(q, {
|
159
|
-
"model-value": p(e),
|
160
|
-
"onUpdate:modelValue": m[0] || (m[0] = (S) => N(e) ? e.value = S : null),
|
161
|
-
class: "mb-6",
|
162
|
-
items: a
|
163
|
-
}, null, 8, ["model-value"]),
|
164
|
-
p(e) ? (y(), V(E(x.value), $(L({ key: 0 }, {
|
165
|
-
terminal: r.value,
|
166
|
-
onUpdate: g
|
167
|
-
})), null, 16)) : M("", !0)
|
168
|
-
]),
|
169
|
-
_: 1
|
170
|
-
}, 8, ["title", "loading", "onBack"]);
|
171
|
-
};
|
172
|
-
}
|
173
|
-
});
|
174
|
-
export {
|
175
|
-
ee as default
|
176
|
-
};
|