@feedmepos/mf-payment 0.0.0-beta.24 → 0.0.0-beta.26
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-CdKAjUed.js → PayoutAccount-DLx1vtHX.js} +3 -3
- package/dist/{PayoutAccount-BjGdteR8.js → PayoutAccount-ka6Aj3dZ.js} +5 -5
- package/dist/{PayoutAccountSetting-DsqjVlIu.js → PayoutAccountSetting-BMK0lEkA.js} +3 -3
- package/dist/{Settlement-DTE8p3LA.js → Settlement-BbcLipkK.js} +3 -3
- package/dist/{Settlement-CY0-gXn5.js → Settlement-DJ5zBwg1.js} +3 -3
- package/dist/{SettlementTransactions-BJlBWR1G.js → SettlementTransactions-DiJ0UH3a.js} +4 -4
- package/dist/{SettlementTransactions-C4tIk6nO.js → SettlementTransactions-Dj-9ol4g.js} +4 -4
- package/dist/{Terminal-C4gOl3zs.js → Terminal-BhpnHoj_.js} +4 -4
- package/dist/TerminalSetting-DOA2yti9.js +240 -0
- package/dist/{TerminalTransaction-CCdbfxx0.js → TerminalTransaction-BGVuNPnK.js} +5 -5
- package/dist/{TerminalTransaction-BUT01dUv.js → TerminalTransaction-vQZGUaOJ.js} +5 -5
- package/dist/{Transaction-CoCZaBfu.js → Transaction-BTW34WyR.js} +4 -4
- package/dist/{Transaction-60yViCMI.js → Transaction-qdl0CHSg.js} +4 -4
- package/dist/app.js +13 -13
- package/dist/{assets-BmFExmpA.js → assets-DKVuXT4S.js} +1 -1
- package/dist/{index-Df0izARr.js → index-1GmRoAc1.js} +1 -1
- package/dist/{index-DeF94ACV.js → index-BI8e-rBi.js} +1 -1
- package/dist/{index-Bvb4T6xz.js → index-CR0eMJfk.js} +1 -1
- package/dist/{index-CDgQhs3k.js → index-CdC19Yvv.js} +1 -1
- package/dist/{index-Jtghafz6.js → index-D8P4a4hn.js} +1 -1
- package/dist/{index-_qikPh5K.js → index-Dse1Vzxp.js} +5592 -5613
- package/dist/{index.vue_vue_type_script_setup_true_lang-CfU6stly.js → index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CRgYpkAs.js → payout-account-BHfPuvHs.js} +111 -111
- package/dist/{transaction-B5QUg556.js → transaction-tPLgGZ6z.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -18
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/{Fiuu.vue.d.ts → FiuuGateway.vue.d.ts} +19 -19
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +72 -0
- package/package.json +2 -2
- package/dist/TerminalSetting-DC9NBozT.js +0 -176
@@ -3,58 +3,58 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3
3
|
terminal: {
|
4
4
|
type: PropType<{
|
5
5
|
name?: string | null | undefined;
|
6
|
-
secretKey?: string | null | undefined;
|
7
6
|
deviceId?: string | null | undefined;
|
8
7
|
bindCode?: string | null | undefined;
|
8
|
+
secretKey?: string | null | undefined;
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
|
13
|
-
offlineSecret?: string | null | undefined;
|
12
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
14
13
|
uniqueId: string;
|
15
|
-
merchantId: string;
|
16
|
-
secretKey: string;
|
17
|
-
verifyKey: string;
|
18
14
|
} | null | undefined;
|
19
15
|
gateway: "Fiuu";
|
20
16
|
} | {
|
21
|
-
|
17
|
+
config?: {
|
18
|
+
terminalId: string;
|
19
|
+
} | null | undefined;
|
20
|
+
gateway: "Terminal";
|
22
21
|
})[] | null | undefined;
|
23
22
|
status: "Active" | "Inactive";
|
24
23
|
_id: string;
|
25
|
-
createdAt: string;
|
26
|
-
updatedAt: string;
|
27
24
|
referenceId: string;
|
28
25
|
securityCode: string;
|
26
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
27
|
+
createdAt: string;
|
28
|
+
updatedAt: string;
|
29
29
|
}>;
|
30
30
|
};
|
31
31
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
32
32
|
terminal: {
|
33
33
|
type: PropType<{
|
34
34
|
name?: string | null | undefined;
|
35
|
-
secretKey?: string | null | undefined;
|
36
35
|
deviceId?: string | null | undefined;
|
37
36
|
bindCode?: string | null | undefined;
|
37
|
+
secretKey?: string | null | undefined;
|
38
38
|
token?: string | null | undefined;
|
39
39
|
gateways?: ({
|
40
40
|
config?: {
|
41
|
-
|
42
|
-
offlineSecret?: string | null | undefined;
|
41
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
43
42
|
uniqueId: string;
|
44
|
-
merchantId: string;
|
45
|
-
secretKey: string;
|
46
|
-
verifyKey: string;
|
47
43
|
} | null | undefined;
|
48
44
|
gateway: "Fiuu";
|
49
45
|
} | {
|
50
|
-
|
46
|
+
config?: {
|
47
|
+
terminalId: string;
|
48
|
+
} | null | undefined;
|
49
|
+
gateway: "Terminal";
|
51
50
|
})[] | null | undefined;
|
52
51
|
status: "Active" | "Inactive";
|
53
52
|
_id: string;
|
54
|
-
createdAt: string;
|
55
|
-
updatedAt: string;
|
56
53
|
referenceId: string;
|
57
54
|
securityCode: string;
|
55
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
56
|
+
createdAt: string;
|
57
|
+
updatedAt: string;
|
58
58
|
}>;
|
59
59
|
};
|
60
60
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
@@ -1,29 +1,29 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
2
|
data: {
|
3
3
|
name?: string | null | undefined;
|
4
|
-
secretKey?: string | null | undefined;
|
5
4
|
deviceId?: string | null | undefined;
|
6
5
|
bindCode?: string | null | undefined;
|
6
|
+
secretKey?: string | null | undefined;
|
7
7
|
token?: string | null | undefined;
|
8
8
|
gateways?: ({
|
9
9
|
config?: {
|
10
|
-
|
11
|
-
offlineSecret?: string | null | undefined;
|
10
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
12
11
|
uniqueId: string;
|
13
|
-
merchantId: string;
|
14
|
-
secretKey: string;
|
15
|
-
verifyKey: string;
|
16
12
|
} | null | undefined;
|
17
13
|
gateway: "Fiuu";
|
18
14
|
} | {
|
19
|
-
|
15
|
+
config?: {
|
16
|
+
terminalId: string;
|
17
|
+
} | null | undefined;
|
18
|
+
gateway: "Terminal";
|
20
19
|
})[] | null | undefined;
|
21
20
|
status: "Active" | "Inactive";
|
22
21
|
_id: string;
|
23
|
-
createdAt: string;
|
24
|
-
updatedAt: string;
|
25
22
|
referenceId: string;
|
26
23
|
securityCode: string;
|
24
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
25
|
+
createdAt: string;
|
26
|
+
updatedAt: string;
|
27
27
|
};
|
28
28
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
29
29
|
link: () => any;
|
@@ -32,29 +32,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<{
|
33
33
|
data: {
|
34
34
|
name?: string | null | undefined;
|
35
|
-
secretKey?: string | null | undefined;
|
36
35
|
deviceId?: string | null | undefined;
|
37
36
|
bindCode?: string | null | undefined;
|
37
|
+
secretKey?: string | null | undefined;
|
38
38
|
token?: string | null | undefined;
|
39
39
|
gateways?: ({
|
40
40
|
config?: {
|
41
|
-
|
42
|
-
offlineSecret?: string | null | undefined;
|
41
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
43
42
|
uniqueId: string;
|
44
|
-
merchantId: string;
|
45
|
-
secretKey: string;
|
46
|
-
verifyKey: string;
|
47
43
|
} | null | undefined;
|
48
44
|
gateway: "Fiuu";
|
49
45
|
} | {
|
50
|
-
|
46
|
+
config?: {
|
47
|
+
terminalId: string;
|
48
|
+
} | null | undefined;
|
49
|
+
gateway: "Terminal";
|
51
50
|
})[] | null | undefined;
|
52
51
|
status: "Active" | "Inactive";
|
53
52
|
_id: string;
|
54
|
-
createdAt: string;
|
55
|
-
updatedAt: string;
|
56
53
|
referenceId: string;
|
57
54
|
securityCode: string;
|
55
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
56
|
+
createdAt: string;
|
57
|
+
updatedAt: string;
|
58
58
|
};
|
59
59
|
}> & Readonly<{
|
60
60
|
onLink?: (() => any) | undefined;
|
@@ -1,32 +1,32 @@
|
|
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: {
|
5
5
|
type: PropType<{
|
6
6
|
name?: string | null | undefined;
|
7
|
-
secretKey?: string | null | undefined;
|
8
7
|
deviceId?: string | null | undefined;
|
9
8
|
bindCode?: string | null | undefined;
|
9
|
+
secretKey?: string | null | undefined;
|
10
10
|
token?: string | null | undefined;
|
11
11
|
gateways?: ({
|
12
12
|
config?: {
|
13
|
-
|
14
|
-
offlineSecret?: string | null | undefined;
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
15
14
|
uniqueId: string;
|
16
|
-
merchantId: string;
|
17
|
-
secretKey: string;
|
18
|
-
verifyKey: string;
|
19
15
|
} | null | undefined;
|
20
16
|
gateway: "Fiuu";
|
21
17
|
} | {
|
22
|
-
|
18
|
+
config?: {
|
19
|
+
terminalId: string;
|
20
|
+
} | null | undefined;
|
21
|
+
gateway: "Terminal";
|
23
22
|
})[] | null | undefined;
|
24
23
|
status: "Active" | "Inactive";
|
25
24
|
_id: string;
|
26
|
-
createdAt: string;
|
27
|
-
updatedAt: string;
|
28
25
|
referenceId: string;
|
29
26
|
securityCode: string;
|
27
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
28
|
+
createdAt: string;
|
29
|
+
updatedAt: string;
|
30
30
|
}>;
|
31
31
|
required: true;
|
32
32
|
};
|
@@ -38,29 +38,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
38
38
|
terminal: {
|
39
39
|
type: PropType<{
|
40
40
|
name?: string | null | undefined;
|
41
|
-
secretKey?: string | null | undefined;
|
42
41
|
deviceId?: string | null | undefined;
|
43
42
|
bindCode?: string | null | undefined;
|
43
|
+
secretKey?: string | null | undefined;
|
44
44
|
token?: string | null | undefined;
|
45
45
|
gateways?: ({
|
46
46
|
config?: {
|
47
|
-
|
48
|
-
offlineSecret?: string | null | undefined;
|
47
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
49
48
|
uniqueId: string;
|
50
|
-
merchantId: string;
|
51
|
-
secretKey: string;
|
52
|
-
verifyKey: string;
|
53
49
|
} | null | undefined;
|
54
50
|
gateway: "Fiuu";
|
55
51
|
} | {
|
56
|
-
|
52
|
+
config?: {
|
53
|
+
terminalId: string;
|
54
|
+
} | null | undefined;
|
55
|
+
gateway: "Terminal";
|
57
56
|
})[] | null | undefined;
|
58
57
|
status: "Active" | "Inactive";
|
59
58
|
_id: string;
|
60
|
-
createdAt: string;
|
61
|
-
updatedAt: string;
|
62
59
|
referenceId: string;
|
63
60
|
securityCode: string;
|
61
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
62
|
+
createdAt: string;
|
63
|
+
updatedAt: string;
|
64
64
|
}>;
|
65
65
|
required: true;
|
66
66
|
};
|
@@ -3,29 +3,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
3
3
|
terminal: {
|
4
4
|
type: PropType<{
|
5
5
|
name?: string | null | undefined;
|
6
|
-
secretKey?: string | null | undefined;
|
7
6
|
deviceId?: string | null | undefined;
|
8
7
|
bindCode?: string | null | undefined;
|
8
|
+
secretKey?: string | null | undefined;
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
|
13
|
-
offlineSecret?: string | null | undefined;
|
12
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
14
13
|
uniqueId: string;
|
15
|
-
merchantId: string;
|
16
|
-
secretKey: string;
|
17
|
-
verifyKey: string;
|
18
14
|
} | null | undefined;
|
19
15
|
gateway: "Fiuu";
|
20
16
|
} | {
|
21
|
-
|
17
|
+
config?: {
|
18
|
+
terminalId: string;
|
19
|
+
} | null | undefined;
|
20
|
+
gateway: "Terminal";
|
22
21
|
})[] | null | undefined;
|
23
22
|
status: "Active" | "Inactive";
|
24
23
|
_id: string;
|
25
|
-
createdAt: string;
|
26
|
-
updatedAt: string;
|
27
24
|
referenceId: string;
|
28
25
|
securityCode: string;
|
26
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
27
|
+
createdAt: string;
|
28
|
+
updatedAt: string;
|
29
29
|
}>;
|
30
30
|
required: true;
|
31
31
|
};
|
@@ -33,29 +33,29 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
33
33
|
terminal: {
|
34
34
|
type: PropType<{
|
35
35
|
name?: string | null | undefined;
|
36
|
-
secretKey?: string | null | undefined;
|
37
36
|
deviceId?: string | null | undefined;
|
38
37
|
bindCode?: string | null | undefined;
|
38
|
+
secretKey?: string | null | undefined;
|
39
39
|
token?: string | null | undefined;
|
40
40
|
gateways?: ({
|
41
41
|
config?: {
|
42
|
-
|
43
|
-
offlineSecret?: string | null | undefined;
|
42
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
44
43
|
uniqueId: string;
|
45
|
-
merchantId: string;
|
46
|
-
secretKey: string;
|
47
|
-
verifyKey: string;
|
48
44
|
} | null | undefined;
|
49
45
|
gateway: "Fiuu";
|
50
46
|
} | {
|
51
|
-
|
47
|
+
config?: {
|
48
|
+
terminalId: string;
|
49
|
+
} | null | undefined;
|
50
|
+
gateway: "Terminal";
|
52
51
|
})[] | null | undefined;
|
53
52
|
status: "Active" | "Inactive";
|
54
53
|
_id: string;
|
55
|
-
createdAt: string;
|
56
|
-
updatedAt: string;
|
57
54
|
referenceId: string;
|
58
55
|
securityCode: string;
|
56
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
57
|
+
createdAt: string;
|
58
|
+
updatedAt: string;
|
59
59
|
}>;
|
60
60
|
required: true;
|
61
61
|
};
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { type FdoTerminal } from '@feedmepos/payment-entity';
|
2
|
+
import { type PropType } from 'vue';
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
4
|
+
terminal: {
|
5
|
+
type: PropType<{
|
6
|
+
name?: string | null | undefined;
|
7
|
+
deviceId?: string | null | undefined;
|
8
|
+
bindCode?: string | null | undefined;
|
9
|
+
secretKey?: string | null | undefined;
|
10
|
+
token?: string | null | undefined;
|
11
|
+
gateways?: ({
|
12
|
+
config?: {
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
14
|
+
uniqueId: string;
|
15
|
+
} | null | undefined;
|
16
|
+
gateway: "Fiuu";
|
17
|
+
} | {
|
18
|
+
config?: {
|
19
|
+
terminalId: string;
|
20
|
+
} | null | undefined;
|
21
|
+
gateway: "Terminal";
|
22
|
+
})[] | null | undefined;
|
23
|
+
status: "Active" | "Inactive";
|
24
|
+
_id: string;
|
25
|
+
referenceId: string;
|
26
|
+
securityCode: string;
|
27
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
28
|
+
createdAt: string;
|
29
|
+
updatedAt: string;
|
30
|
+
}>;
|
31
|
+
required: true;
|
32
|
+
};
|
33
|
+
onUpdate: {
|
34
|
+
type: PropType<(account: FdoTerminal) => Promise<void>>;
|
35
|
+
required: true;
|
36
|
+
};
|
37
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
38
|
+
terminal: {
|
39
|
+
type: PropType<{
|
40
|
+
name?: string | null | undefined;
|
41
|
+
deviceId?: string | null | undefined;
|
42
|
+
bindCode?: string | null | undefined;
|
43
|
+
secretKey?: string | null | undefined;
|
44
|
+
token?: string | null | undefined;
|
45
|
+
gateways?: ({
|
46
|
+
config?: {
|
47
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu" | "cc.feedme.payment.sg.fiuu";
|
48
|
+
uniqueId: string;
|
49
|
+
} | null | undefined;
|
50
|
+
gateway: "Fiuu";
|
51
|
+
} | {
|
52
|
+
config?: {
|
53
|
+
terminalId: string;
|
54
|
+
} | null | undefined;
|
55
|
+
gateway: "Terminal";
|
56
|
+
})[] | null | undefined;
|
57
|
+
status: "Active" | "Inactive";
|
58
|
+
_id: string;
|
59
|
+
referenceId: string;
|
60
|
+
securityCode: string;
|
61
|
+
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
62
|
+
createdAt: string;
|
63
|
+
updatedAt: string;
|
64
|
+
}>;
|
65
|
+
required: true;
|
66
|
+
};
|
67
|
+
onUpdate: {
|
68
|
+
type: PropType<(account: FdoTerminal) => Promise<void>>;
|
69
|
+
required: true;
|
70
|
+
};
|
71
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
72
|
+
export default _default;
|
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.26",
|
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-demo6",
|
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
|
-
};
|