@feedmepos/mf-payment 0.0.0-beta.27 → 0.0.0-beta.29
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-HqgNEg9p.js → PayoutAccount-CRpuF7oc.js} +5 -5
- package/dist/{PayoutAccount-BJgDJvdu.js → PayoutAccount-DGZmraWC.js} +3 -3
- package/dist/{PayoutAccountSetting-BMK0lEkA.js → PayoutAccountSetting-B0WUvW2T.js} +3 -3
- package/dist/{Settlement-DJ5zBwg1.js → Settlement-BfzE6GRq.js} +3 -3
- package/dist/{Settlement-BbcLipkK.js → Settlement-DL852BAW.js} +3 -3
- package/dist/{SettlementTransactions-DiJ0UH3a.js → SettlementTransactions-B-PmdVmd.js} +4 -4
- package/dist/{SettlementTransactions-Dj-9ol4g.js → SettlementTransactions-Bns4JiYa.js} +4 -4
- package/dist/{Terminal-BhpnHoj_.js → Terminal-BJfw9jQn.js} +4 -4
- package/dist/TerminalSetting-DJ-_DZr_.js +254 -0
- package/dist/{TerminalTransaction-vQZGUaOJ.js → TerminalTransaction-DuVyCu0j.js} +5 -5
- package/dist/{TerminalTransaction-BGVuNPnK.js → TerminalTransaction-F3kzj60e.js} +5 -5
- package/dist/{Transaction-BTW34WyR.js → Transaction-BV3f9JLh.js} +4 -4
- package/dist/{Transaction-qdl0CHSg.js → Transaction-sG5VLrZG.js} +4 -4
- package/dist/api/terminal/index.d.ts +4 -0
- package/dist/app.js +13 -13
- package/dist/{assets-DKVuXT4S.js → assets-Bj5ToWoP.js} +1 -1
- package/dist/{index-CR0eMJfk.js → index-BYz1HdLk.js} +1 -1
- package/dist/{index-1GmRoAc1.js → index-BmrM-GfD.js} +1 -1
- package/dist/{index-CdC19Yvv.js → index-BvPakrCi.js} +1 -1
- package/dist/{index-Dse1Vzxp.js → index-CTWoVKkI.js} +3 -3
- package/dist/index-DvBq8FZH.js +47 -0
- package/dist/{index-BI8e-rBi.js → index-dVGYvcJH.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CvDyAU7Z.js → index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DiyvYQYd.js → payout-account-BT8stlNQ.js} +256 -256
- package/dist/{transaction-tPLgGZ6z.js → transaction-LP1p6TuS.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +4 -2
- package/package.json +2 -2
- package/dist/TerminalSetting-DfCZX4d1.js +0 -240
- package/dist/index-D8P4a4hn.js +0 -37
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
12
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
13
13
|
uniqueId: string;
|
14
14
|
} | null | undefined;
|
15
15
|
gateway: "Fiuu";
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
38
38
|
token?: string | null | undefined;
|
39
39
|
gateways?: ({
|
40
40
|
config?: {
|
41
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
41
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
42
42
|
uniqueId: string;
|
43
43
|
} | null | undefined;
|
44
44
|
gateway: "Fiuu";
|
@@ -7,7 +7,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
7
7
|
token?: string | null | undefined;
|
8
8
|
gateways?: ({
|
9
9
|
config?: {
|
10
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
10
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
11
11
|
uniqueId: string;
|
12
12
|
} | null | undefined;
|
13
13
|
gateway: "Fiuu";
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
token?: string | null | undefined;
|
39
39
|
gateways?: ({
|
40
40
|
config?: {
|
41
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
41
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
42
42
|
uniqueId: string;
|
43
43
|
} | null | undefined;
|
44
44
|
gateway: "Fiuu";
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
10
10
|
token?: string | null | undefined;
|
11
11
|
gateways?: ({
|
12
12
|
config?: {
|
13
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
14
14
|
uniqueId: string;
|
15
15
|
} | null | undefined;
|
16
16
|
gateway: "Fiuu";
|
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
21
21
|
gateway: "Terminal";
|
22
22
|
})[] | null | undefined;
|
23
23
|
status: "Active" | "Inactive";
|
24
|
-
_id: string;
|
24
|
+
_id: string;
|
25
25
|
referenceId: string;
|
26
26
|
securityCode: string;
|
27
27
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
@@ -44,7 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
44
44
|
token?: string | null | undefined;
|
45
45
|
gateways?: ({
|
46
46
|
config?: {
|
47
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
47
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
48
48
|
uniqueId: string;
|
49
49
|
} | null | undefined;
|
50
50
|
gateway: "Fiuu";
|
@@ -55,7 +55,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
55
55
|
gateway: "Terminal";
|
56
56
|
})[] | null | undefined;
|
57
57
|
status: "Active" | "Inactive";
|
58
|
-
_id: string;
|
58
|
+
_id: string;
|
59
59
|
referenceId: string;
|
60
60
|
securityCode: string;
|
61
61
|
deviceType: "KIOSK" | "TERMINAL" | "POS";
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
9
9
|
token?: string | null | undefined;
|
10
10
|
gateways?: ({
|
11
11
|
config?: {
|
12
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
12
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
13
13
|
uniqueId: string;
|
14
14
|
} | null | undefined;
|
15
15
|
gateway: "Fiuu";
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
39
39
|
token?: string | null | undefined;
|
40
40
|
gateways?: ({
|
41
41
|
config?: {
|
42
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
42
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
43
43
|
uniqueId: string;
|
44
44
|
} | null | undefined;
|
45
45
|
gateway: "Fiuu";
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
10
10
|
token?: string | null | undefined;
|
11
11
|
gateways?: ({
|
12
12
|
config?: {
|
13
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
13
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
14
14
|
uniqueId: string;
|
15
15
|
} | null | undefined;
|
16
16
|
gateway: "Fiuu";
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
21
21
|
gateway: "Terminal";
|
22
22
|
})[] | null | undefined;
|
23
23
|
status: "Active" | "Inactive";
|
24
|
+
/**__VLS_emit,__VLS_9,validation-success*/
|
24
25
|
_id: string;
|
25
26
|
referenceId: string;
|
26
27
|
securityCode: string;
|
@@ -44,7 +45,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
44
45
|
token?: string | null | undefined;
|
45
46
|
gateways?: ({
|
46
47
|
config?: {
|
47
|
-
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.
|
48
|
+
packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
|
48
49
|
uniqueId: string;
|
49
50
|
} | null | undefined;
|
50
51
|
gateway: "Fiuu";
|
@@ -55,6 +56,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
55
56
|
gateway: "Terminal";
|
56
57
|
})[] | null | undefined;
|
57
58
|
status: "Active" | "Inactive";
|
59
|
+
/**__VLS_emit,__VLS_9,validation-success*/
|
58
60
|
_id: string;
|
59
61
|
referenceId: string;
|
60
62
|
securityCode: string;
|
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.29",
|
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-demo8",
|
37
37
|
"@feedmepos/ui-library": "^1.2.44",
|
38
38
|
"axios": "^0.27.2",
|
39
39
|
"buffer": "^6.0.3",
|
@@ -1,240 +0,0 @@
|
|
1
|
-
import { defineComponent as F, openBlock as v, createElementBlock as D, Fragment as C, createElementVNode as p, createTextVNode as T, toDisplayString as x, ref as c, onMounted as V, resolveComponent as m, createBlock as I, withCtx as q, createVNode as g, computed as N, unref as w, isRef as E, resolveDynamicComponent as M, normalizeProps as $, mergeProps as G, createCommentVNode as L } from "vue";
|
2
|
-
import { u as O } from "./index-Dse1Vzxp.js";
|
3
|
-
import { useRouter as P } from "vue-router";
|
4
|
-
import { t as k } from "./index-D8P4a4hn.js";
|
5
|
-
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
6
|
-
import { u as A } from "./index-CR0eMJfk.js";
|
7
|
-
import { useSnackbar as R } from "@feedmepos/ui-library";
|
8
|
-
import { u as _ } from "./error-K1CakhA9.js";
|
9
|
-
const z = /* @__PURE__ */ F({
|
10
|
-
__name: "Information",
|
11
|
-
props: {
|
12
|
-
terminal: {
|
13
|
-
type: Object,
|
14
|
-
required: !0
|
15
|
-
}
|
16
|
-
},
|
17
|
-
setup(t) {
|
18
|
-
return (l, a) => (v(), D(C, null, [
|
19
|
-
a[0] || (a[0] = p("b", null, "Name", -1)),
|
20
|
-
T(": " + x(t.terminal.name), 1),
|
21
|
-
a[1] || (a[1] = p("br", null, null, -1)),
|
22
|
-
a[2] || (a[2] = p("b", null, "Status", -1)),
|
23
|
-
T(": " + x(t.terminal.status), 1),
|
24
|
-
a[3] || (a[3] = p("br", null, null, -1)),
|
25
|
-
a[4] || (a[4] = p("b", null, "Device ID", -1)),
|
26
|
-
T(": " + x(t.terminal.deviceId ?? "-"), 1),
|
27
|
-
a[5] || (a[5] = p("br", null, null, -1))
|
28
|
-
], 64));
|
29
|
-
}
|
30
|
-
}), Q = /* @__PURE__ */ F({
|
31
|
-
__name: "TerminalGateway",
|
32
|
-
props: {
|
33
|
-
terminal: {
|
34
|
-
type: Object,
|
35
|
-
required: !0
|
36
|
-
},
|
37
|
-
onUpdate: {
|
38
|
-
type: Function,
|
39
|
-
required: !0
|
40
|
-
}
|
41
|
-
},
|
42
|
-
setup(t) {
|
43
|
-
const l = t, a = c(), s = c(-1), u = c({
|
44
|
-
terminalId: ""
|
45
|
-
});
|
46
|
-
return V(() => {
|
47
|
-
if (!l.terminal.gateways)
|
48
|
-
return;
|
49
|
-
const r = l.terminal.gateways.findIndex((e) => e && e.gateway && e.gateway === "Terminal");
|
50
|
-
if (r === -1)
|
51
|
-
return;
|
52
|
-
s.value = r;
|
53
|
-
const n = l.terminal.gateways.at(r);
|
54
|
-
n.gateway === "Terminal" && n.config && (u.value = {
|
55
|
-
terminalId: n.config.terminalId
|
56
|
-
});
|
57
|
-
}), (r, n) => {
|
58
|
-
const e = m("FmTextField"), i = m("FmButton"), d = m("FmForm");
|
59
|
-
return v(), I(d, {
|
60
|
-
ref: a.value,
|
61
|
-
class: "flex flex-col gap-16 w-[500px]",
|
62
|
-
onValidationSuccess: n[1] || (n[1] = () => {
|
63
|
-
s.value > -1 ? t.terminal.gateways[s.value] = { gateway: "Terminal", config: u.value } : (t.terminal.gateways || (t.terminal.gateways = []), t.terminal.gateways.push({ gateway: "Terminal", config: u.value })), l.onUpdate(t.terminal);
|
64
|
-
})
|
65
|
-
}, {
|
66
|
-
default: q(() => [
|
67
|
-
g(e, {
|
68
|
-
modelValue: u.value.terminalId,
|
69
|
-
"onUpdate:modelValue": n[0] || (n[0] = (y) => u.value.terminalId = y),
|
70
|
-
label: "Terminal ID"
|
71
|
-
}, null, 8, ["modelValue"]),
|
72
|
-
g(i, {
|
73
|
-
type: "submit",
|
74
|
-
label: "Save"
|
75
|
-
})
|
76
|
-
]),
|
77
|
-
_: 1
|
78
|
-
}, 512);
|
79
|
-
};
|
80
|
-
}
|
81
|
-
}), H = /* @__PURE__ */ F({
|
82
|
-
__name: "FiuuGateway",
|
83
|
-
props: {
|
84
|
-
terminal: {
|
85
|
-
type: Object,
|
86
|
-
required: !0
|
87
|
-
},
|
88
|
-
onUpdate: {
|
89
|
-
type: Function,
|
90
|
-
required: !0
|
91
|
-
}
|
92
|
-
},
|
93
|
-
setup(t) {
|
94
|
-
const l = t, a = [
|
95
|
-
{
|
96
|
-
label: "Fiuu Malaysia",
|
97
|
-
value: "cc.feedme.payment.rms"
|
98
|
-
},
|
99
|
-
{
|
100
|
-
label: "Fiuu Malaysia V2",
|
101
|
-
value: "cc.feedme.payment.fiuu_my"
|
102
|
-
},
|
103
|
-
{
|
104
|
-
label: "Fiuu Singapore",
|
105
|
-
value: "cc.feedme.payment.fiuu_sg"
|
106
|
-
}
|
107
|
-
], s = c(), u = c(-1), r = c({
|
108
|
-
packageId: "",
|
109
|
-
uniqueId: ""
|
110
|
-
});
|
111
|
-
return V(() => {
|
112
|
-
if (!l.terminal.gateways)
|
113
|
-
return;
|
114
|
-
const n = l.terminal.gateways.findIndex((i) => i && i.gateway && i.gateway === "Fiuu");
|
115
|
-
if (n === -1)
|
116
|
-
return;
|
117
|
-
u.value = n;
|
118
|
-
const e = l.terminal.gateways.at(n);
|
119
|
-
e.gateway === "Fiuu" && e.config && (r.value = {
|
120
|
-
packageId: e.config.packageId,
|
121
|
-
uniqueId: e.config.uniqueId
|
122
|
-
});
|
123
|
-
}), (n, e) => {
|
124
|
-
const i = m("FmSelect"), d = m("FmTextField"), y = m("FmButton"), b = m("FmForm");
|
125
|
-
return v(), I(b, {
|
126
|
-
ref: s.value,
|
127
|
-
class: "flex flex-col gap-16 w-[500px]",
|
128
|
-
onValidationSuccess: e[2] || (e[2] = () => {
|
129
|
-
u.value > -1 ? t.terminal.gateways[u.value] = { gateway: "Fiuu", config: r.value } : (t.terminal.gateways || (t.terminal.gateways = []), t.terminal.gateways.push({ gateway: "Fiuu", config: r.value })), l.onUpdate(t.terminal);
|
130
|
-
})
|
131
|
-
}, {
|
132
|
-
default: q(() => [
|
133
|
-
g(i, {
|
134
|
-
modelValue: r.value.packageId,
|
135
|
-
"onUpdate:modelValue": e[0] || (e[0] = (o) => r.value.packageId = o),
|
136
|
-
label: "Package ID",
|
137
|
-
items: a
|
138
|
-
}, null, 8, ["modelValue"]),
|
139
|
-
g(d, {
|
140
|
-
modelValue: r.value.uniqueId,
|
141
|
-
"onUpdate:modelValue": e[1] || (e[1] = (o) => r.value.uniqueId = o),
|
142
|
-
label: "Unique ID"
|
143
|
-
}, null, 8, ["modelValue"]),
|
144
|
-
g(y, {
|
145
|
-
type: "submit",
|
146
|
-
label: "Save"
|
147
|
-
})
|
148
|
-
]),
|
149
|
-
_: 1
|
150
|
-
}, 512);
|
151
|
-
};
|
152
|
-
}
|
153
|
-
}), ae = /* @__PURE__ */ F({
|
154
|
-
__name: "TerminalSetting",
|
155
|
-
props: {
|
156
|
-
terminalId: {
|
157
|
-
type: String,
|
158
|
-
required: !0
|
159
|
-
}
|
160
|
-
},
|
161
|
-
setup(t) {
|
162
|
-
const l = t, { tab: a } = A({
|
163
|
-
tab: "information"
|
164
|
-
}), { isLoading: s, startAsyncCall: u } = O(!0), r = P(), n = R(), e = c();
|
165
|
-
async function i(o) {
|
166
|
-
try {
|
167
|
-
await k.updateById(
|
168
|
-
l.terminalId,
|
169
|
-
{
|
170
|
-
name: o.name,
|
171
|
-
status: o.status,
|
172
|
-
gateway: o.gateways[0]
|
173
|
-
}
|
174
|
-
), e.value = await k.readById(l.terminalId), n.open({
|
175
|
-
type: "success",
|
176
|
-
message: "Terminal updated successfully"
|
177
|
-
});
|
178
|
-
} catch (f) {
|
179
|
-
n.open({
|
180
|
-
type: "error",
|
181
|
-
title: "Error occurs when update terminal",
|
182
|
-
message: _(f)
|
183
|
-
});
|
184
|
-
}
|
185
|
-
}
|
186
|
-
const d = [
|
187
|
-
{
|
188
|
-
label: "Information",
|
189
|
-
value: "information",
|
190
|
-
icon: "overview",
|
191
|
-
render: z
|
192
|
-
},
|
193
|
-
{
|
194
|
-
label: "Fiuu",
|
195
|
-
value: "fiuu",
|
196
|
-
icon: "payment",
|
197
|
-
render: H
|
198
|
-
}
|
199
|
-
], y = N(() => {
|
200
|
-
var o;
|
201
|
-
return (o = d.find((f) => f.value === a.value)) == null ? void 0 : o.render;
|
202
|
-
});
|
203
|
-
async function b() {
|
204
|
-
u(async () => {
|
205
|
-
e.value = await k.readById(l.terminalId), e.value.deviceType !== "TERMINAL" && d.push({
|
206
|
-
label: "Terminal",
|
207
|
-
value: "terminal",
|
208
|
-
icon: "shopping_cart_checkout",
|
209
|
-
render: Q
|
210
|
-
});
|
211
|
-
});
|
212
|
-
}
|
213
|
-
return V(b), (o, f) => {
|
214
|
-
var B;
|
215
|
-
const S = m("FmTabs");
|
216
|
-
return v(), I(j, {
|
217
|
-
title: `Terminal (${(B = e.value) == null ? void 0 : B._id})`,
|
218
|
-
loading: w(s),
|
219
|
-
onBack: w(r).back
|
220
|
-
}, {
|
221
|
-
default: q(() => [
|
222
|
-
g(S, {
|
223
|
-
"model-value": w(a),
|
224
|
-
"onUpdate:modelValue": f[0] || (f[0] = (U) => E(a) ? a.value = U : null),
|
225
|
-
class: "mb-6",
|
226
|
-
items: d
|
227
|
-
}, null, 8, ["model-value"]),
|
228
|
-
w(a) ? (v(), I(M(y.value), $(G({ key: 0 }, {
|
229
|
-
terminal: e.value,
|
230
|
-
onUpdate: i
|
231
|
-
})), null, 16)) : L("", !0)
|
232
|
-
]),
|
233
|
-
_: 1
|
234
|
-
}, 8, ["title", "loading", "onBack"]);
|
235
|
-
};
|
236
|
-
}
|
237
|
-
});
|
238
|
-
export {
|
239
|
-
ae as default
|
240
|
-
};
|
package/dist/index-D8P4a4hn.js
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
import { a as s, b as t, g as e } from "./index-Dse1Vzxp.js";
|
2
|
-
const i = {
|
3
|
-
async create(a) {
|
4
|
-
return s(
|
5
|
-
await t().post("/payments/terminals", a)
|
6
|
-
);
|
7
|
-
},
|
8
|
-
async read(a) {
|
9
|
-
return s(
|
10
|
-
await t().get("/payments/terminals", {
|
11
|
-
params: { ...a }
|
12
|
-
})
|
13
|
-
);
|
14
|
-
},
|
15
|
-
async readById(a) {
|
16
|
-
return e(await t().get(`/payments/terminals/${a}`));
|
17
|
-
},
|
18
|
-
async updateById(a, n) {
|
19
|
-
return e(
|
20
|
-
await t().put(`/payments/terminals/${a}`, n)
|
21
|
-
);
|
22
|
-
},
|
23
|
-
async getBindCode(a) {
|
24
|
-
const { code: n } = e(
|
25
|
-
await t().get(`/payments/terminals/${a}/code`)
|
26
|
-
);
|
27
|
-
return n;
|
28
|
-
},
|
29
|
-
async unbind(a) {
|
30
|
-
return e(
|
31
|
-
await t().delete(`/payments/terminals/${a}/unbind`)
|
32
|
-
);
|
33
|
-
}
|
34
|
-
};
|
35
|
-
export {
|
36
|
-
i as t
|
37
|
-
};
|