-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathIDeviceInterface.java
More file actions
268 lines (148 loc) · 9.05 KB
/
IDeviceInterface.java
File metadata and controls
268 lines (148 loc) · 9.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
package com.global.api.terminals.abstractions;
import com.global.api.entities.PrintData;
import com.global.api.entities.ScanData;
import com.global.api.entities.UpaConfigContent;
import com.global.api.entities.enums.*;
import com.global.api.entities.exceptions.ApiException;
import com.global.api.terminals.TerminalResponse;
import com.global.api.terminals.builders.TerminalAuthBuilder;
import com.global.api.terminals.builders.TerminalManageBuilder;
import com.global.api.terminals.builders.TerminalReportBuilder;
import com.global.api.terminals.genius.enums.TransactionIdType;
import com.global.api.terminals.messaging.IMessageReceivedInterface;
import com.global.api.terminals.messaging.IMessageSentInterface;
import com.global.api.terminals.pax.responses.SAFDeleteResponse;
import com.global.api.terminals.pax.responses.SAFSummaryReport;
import com.global.api.terminals.pax.responses.SAFUploadResponse;
import com.global.api.terminals.upa.subgroups.SignatureData;
import com.global.api.terminals.upa.subgroups.UpaSafReportParams;
import java.io.IOException;
import java.math.BigDecimal;
public interface IDeviceInterface extends IDisposable {
String getEcrId();
void setEcrId(String ecrId);
void setOnMessageSent(IMessageSentInterface onMessageSent);
void setOnMessageReceived(IMessageReceivedInterface onMessageReceived);
//<editor-fold description="ADMIN CALLS">
IDeviceResponse broadcastConfiguration(boolean enable) throws ApiException;
IDeviceResponse cancel() throws ApiException;
// void cancel(Integer cancelParams) throws ApiException; // UPA
// IDeviceResponse clearDataLake() throws ApiException; //UPA
IDeviceResponse closeLane() throws ApiException;
IDeviceResponse deleteImage(String fileName) throws ApiException;
// IDeviceResponse disableHostResponseBeep() throws ApiException;
IDeviceResponse executeUDDataFile(UDData udData) throws ApiException;
// IDeviceResponse getAppInfo() throws ApiException; //UPA
IDeviceResponse getConfigContents(TerminalConfigType configType) throws ApiException;
IDeviceResponse getDebugInfo(Enum logFile) throws ApiException;
IDeviceResponse getDebugLevel() throws ApiException;
String getParams() throws ApiException; //UPA
// IDeviceResponse getParams(ArrayList<String> parameters) throws ApiException; //UPA
ISignatureResponse getSignatureFile() throws ApiException;
ISignatureResponse getSignatureFile(SignatureData data) throws ApiException;
IInitializeResponse initialize() throws ApiException;
IDeviceResponse injectUDDataFile(UDData udData) throws ApiException, IOException;
IDeviceResponse lineItem(String leftText, String rightText) throws ApiException;
IDeviceResponse lineItem(String leftText, String rightText, String runningLeftText, String runningRightText) throws ApiException;
IDeviceResponse loadUDDataFile(UDData udData) throws ApiException;
IDeviceResponse openLane() throws ApiException;
// IDeviceResponse ping() throws ApiException; // UPA
@Deprecated
IDeviceResponse Print(PrintData printData) throws ApiException;
IDeviceResponse print(PrintData printData) throws ApiException;
// IDeviceResponse printReceipt(PrintData data) throws ApiException; //UPA
ISignatureResponse promptForSignature() throws ApiException;
ISignatureResponse promptForSignature(String transactionId) throws ApiException;
IDeviceResponse reboot() throws ApiException;
//IDeviceResponse registerPOS(RegisterPOS data) throws ApiException; //UPA
IDeviceResponse removeUDDataFile(UDData udData) throws ApiException, UnsupportedOperationException;
IDeviceResponse reset() throws ApiException;
IDeviceResponse returnToIdle() throws ApiException;
@Deprecated
IDeviceResponse Scan(ScanData scanData) throws ApiException;
IDeviceResponse scan(ScanData scanData) throws ApiException;
IDeviceResponse sendFile(SendFileType fileType, String filePath) throws ApiException;
void sendReady() throws ApiException; //UPA
IDeviceResponse setDebugLevel(DebugLevel[] debugLevels, Enum logToConsole) throws ApiException;
//IDeviceResponse setTimeZone(TimeZone timezone) throws ApiException; //UPA
IDeviceResponse startCard(PaymentMethodType paymentMethodType) throws ApiException;
IDeviceResponse updateResource(UpdateResourceFileType fileType, byte[] fileData, boolean isHttpDeviceConnectionMode) throws ApiException;
//</editor-fold>
//<editor-fold description="BATCHING">
IBatchCloseResponse batchClose() throws ApiException;
IEODResponse endOfDay() throws ApiException;
IBatchReportResponse findBatches() throws ApiException;
IBatchReportResponse getBatchDetails() throws ApiException;
IBatchReportResponse getBatchDetails(String batchId) throws ApiException;
IBatchReportResponse getBatchDetails(String batchId, boolean printReport) throws ApiException;
TerminalReportBuilder getBatchReport() throws ApiException;
//</editor-fold>
//<editor-fold description="STORE AND FORWARD">
SAFDeleteResponse safDelete(SafDelete safDeleteIndicator) throws ApiException;
ISAFResponse safDelete(String referenceNumber, String transactionNumber) throws ApiException;
SAFSummaryReport safSummaryReport(SafReportSummary safReportIndicator) throws ApiException;
ISAFResponse safSummaryReport(String printData, String reportData) throws ApiException;
ISAFResponse safSummaryReportInBackground(UpaSafReportParams reportParams) throws ApiException;
SAFUploadResponse safUpload(SafUpload safUploadIndicator) throws ApiException;
ISAFResponse sendStoreAndForward() throws ApiException;
IDeviceResponse setStoreAndForwardMode(boolean enabled) throws ApiException;
IDeviceResponse setStoreAndForwardMode(SafMode safMode) throws ApiException;
//</editor-fold>
//<editor-fold description="GIFT">
@Deprecated
TerminalAuthBuilder giftAddValue() throws ApiException;
@Deprecated
TerminalAuthBuilder giftAddValue(BigDecimal amount) throws ApiException;
//</editor-fold>
//<editor-fold description="EBT">
@Deprecated
TerminalAuthBuilder ebtPurchase() throws ApiException;
@Deprecated
TerminalAuthBuilder ebtPurchase(BigDecimal amount) throws ApiException;
@Deprecated
TerminalAuthBuilder ebtWithdrawal() throws ApiException;
@Deprecated
TerminalAuthBuilder ebtWithdrawal(BigDecimal amount) throws ApiException;
//</editor-fold>
//<editor-fold description="REPORTING">
IBatchReportResponse getOpenTabDetails() throws ApiException;
TerminalResponse getTransactionDetails(TransactionType transactionType, String transactionId, TransactionIdType transactionIdType) throws ApiException;
TerminalManageBuilder increasePreAuth(BigDecimal amount) throws ApiException;
TerminalReportBuilder localDetailReport() throws ApiException;
//</editor-fold>
//<editor-fold description="PROCESSING">
TerminalAuthBuilder addValue() throws ApiException;
TerminalAuthBuilder addValue(BigDecimal amount) throws ApiException;
TerminalAuthBuilder authorize(BigDecimal amount) throws ApiException;
TerminalAuthBuilder balance() throws ApiException;
TerminalManageBuilder capture() throws ApiException;
TerminalManageBuilder capture(BigDecimal amount) throws ApiException;
@Deprecated
TerminalAuthBuilder debitRefund(BigDecimal amount) throws ApiException;
@Deprecated
TerminalAuthBuilder debitRefund() throws ApiException;
TerminalManageBuilder deletePreAuth() throws ApiException;
TerminalAuthBuilder purchase() throws ApiException;
TerminalAuthBuilder purchase(BigDecimal amount) throws ApiException;
TerminalAuthBuilder refund() throws ApiException;
TerminalAuthBuilder refund(BigDecimal amount) throws ApiException;
TerminalManageBuilder refundById() throws ApiException;
TerminalManageBuilder refundById(BigDecimal amount) throws ApiException;
TerminalManageBuilder reverse() throws ApiException;
TerminalAuthBuilder sale(BigDecimal amount) throws ApiException;
TerminalAuthBuilder startTransaction(BigDecimal amount, TransactionType transactionType) throws ApiException;
TerminalManageBuilder tipAdjust(BigDecimal amount) throws ApiException;
TerminalAuthBuilder verify() throws ApiException;
@Deprecated
TerminalManageBuilder Void() throws ApiException;
TerminalManageBuilder voidTransaction() throws ApiException;
TerminalAuthBuilder withdrawal() throws ApiException;
TerminalAuthBuilder withdrawal(BigDecimal amount) throws ApiException;
TerminalManageBuilder updateTaxInfo(BigDecimal amount) throws ApiException; //UPA
IDeviceResponse communicationCheck() throws ApiException; //UPA
IDeviceResponse logOn() throws ApiException;
TerminalManageBuilder updateLodgingDetails(BigDecimal amount) throws ApiException;
IDeviceResponse saveConfigFile(UpaConfigContent upaConfigContent) throws ApiException;
IDeviceResponse setLogoCarouselInterval(int intervalTime,boolean isFullScreen) throws ApiException;
IDeviceResponse getBatteryPercentage() throws ApiException;
}