All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.global.api.terminals.abstractions.IDeviceInterface Maven / Gradle / Ivy

There is a newer version: 14.2.3
Show newest version
package com.global.api.terminals.abstractions;

import com.global.api.entities.PrintData;
import com.global.api.entities.ScanData;
import com.global.api.entities.enums.*;
import com.global.api.entities.exceptions.ApiException;
import com.global.api.entities.exceptions.UnsupportedTransactionException;
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.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.RegisterPOS;
import com.global.api.terminals.upa.subgroups.SignatureData;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.TimeZone;

public interface IDeviceInterface extends IDisposable {
    void setOnMessageSent(IMessageSentInterface onMessageSent);

    void setOnMessageReceived(IMessageSentInterface onMessageReceived);

    // admin calls
    IDeviceResponse addLineItem(String leftText, String rightText) throws ApiException; // UPA

    IDeviceResponse addLineItem(String leftText, String rightText, String runningLeftText, String runningRightText) throws ApiException;

    void cancel() throws ApiException;

    void cancel(Integer cancelParams) throws ApiException; // UPA

    IDeviceResponse closeLane() throws ApiException;

    IDeviceResponse disableHostResponseBeep() throws ApiException;

    ISignatureResponse getSignatureFile() throws ApiException;

    IInitializeResponse initialize() throws ApiException;

    IDeviceResponse openLane() throws ApiException;

    IDeviceResponse ping() throws ApiException; // UPA

    IDeviceResponse getAppInfo() throws ApiException; //UPA

    IDeviceResponse clearDataLake() throws ApiException; //UPA

    IDeviceResponse returnToIdle() throws ApiException;

    IDeviceResponse loadUDDataFile(UDData udData) throws ApiException;

    IDeviceResponse removeUDDataFile(UDData udData) throws ApiException, UnsupportedOperationException;

    IDeviceResponse Scan(ScanData scanData) throws ApiException;

    IDeviceResponse Print(PrintData printData) throws ApiException;

    IDeviceResponse setTimeZone(TimeZone timezone) throws ApiException; //UPA

    IDeviceResponse getParams(ArrayList parameters) throws ApiException; //UPA

    void sendReady() throws ApiException; //UPA

    IDeviceResponse registerPOS(RegisterPOS data) throws ApiException; //UPA

    IDeviceResponse setDebugLevel(DebugLevel[] debugLevels, Enum logToConsole) throws ApiException;

    IDeviceResponse getDebugLevel() throws ApiException;

    IDeviceResponse getDebugInfo(Enum logFile) throws ApiException;

    IDeviceResponse broadcastConfiguration(boolean enable) throws ApiException;

    IDeviceResponse executeUDDataFile(UDData udData) throws ApiException;

    IDeviceResponse injectUDDataFile(UDData udData) throws ApiException, IOException;

    IDeviceResponse getConfigContents(TerminalConfigType configType) throws UnsupportedTransactionException, ApiException;

    IDeviceResponse printReceipt(PrintData data) throws ApiException;//UPA

    String getParams() throws ApiException; //UPA

    ISignatureResponse promptForSignature() throws ApiException;

    ISignatureResponse promptForSignature(String transactionId) throws ApiException;

    IDeviceResponse reboot() throws ApiException;

    IDeviceResponse reset() throws ApiException;

    IDeviceResponse sendFile(SendFileType fileType, String filePath) throws ApiException;

    ISAFResponse sendStoreAndForward() throws ApiException;

    IDeviceResponse setStoreAndForwardMode(boolean enabled) throws ApiException;

    IDeviceResponse setStoreAndForwardMode(SafMode safMode) throws ApiException;

    IDeviceResponse startCard(PaymentMethodType paymentMethodType) throws ApiException;

    TerminalManageBuilder reverse() throws ApiException;

    ISignatureResponse getSignatureFile(SignatureData data) throws ApiException;

    IDeviceResponse deleteImage(String fileName) throws ApiException;

    IDeviceResponse updateResource(UpdateResourceFileType fileType, byte[] fileData, boolean isHttpDeviceConnectionMode) throws ApiException;


    // batch calls
    IBatchCloseResponse batchClose() throws ApiException;

    IEODResponse endOfDay() throws ApiException;

    SAFUploadResponse safUpload(SafUpload safUploadIndicator) throws ApiException;

    SAFDeleteResponse safDelete(SafDelete safDeleteIndicator) throws ApiException;

    // credit calls
    TerminalAuthBuilder creditAuth(BigDecimal amount) throws ApiException;

    TerminalManageBuilder creditCapture(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder creditRefund(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder creditSale(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder creditAuth() throws ApiException;

    TerminalManageBuilder creditCapture() throws ApiException;

    TerminalAuthBuilder creditRefund() throws ApiException;

    TerminalAuthBuilder creditSale() throws ApiException;

    TerminalAuthBuilder creditVerify() throws ApiException;

    TerminalManageBuilder creditVoid() throws ApiException;

    TerminalManageBuilder voidRefund() throws ApiException;

    TerminalManageBuilder tipAdjust(BigDecimal amount) throws ApiException;

    // debit calls
    TerminalAuthBuilder debitSale(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder debitRefund(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder debitSale() throws ApiException;

    TerminalAuthBuilder debitRefund() throws ApiException;

    TerminalManageBuilder debitVoid() throws ApiException;

    // gift calls
    TerminalAuthBuilder giftSale(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder giftSale() throws ApiException;

    TerminalAuthBuilder giftAddValue() throws ApiException;

    TerminalAuthBuilder giftAddValue(BigDecimal amount) throws ApiException;

    TerminalManageBuilder giftVoid() throws ApiException;

    TerminalAuthBuilder giftBalance() throws ApiException;

    // ebt calls
    TerminalAuthBuilder ebtBalance() throws ApiException;

    TerminalAuthBuilder ebtPurchase() throws ApiException;

    TerminalAuthBuilder ebtPurchase(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder ebtRefund() throws ApiException;

    TerminalAuthBuilder ebtRefund(BigDecimal amount) throws ApiException;

    TerminalAuthBuilder ebtWithdrawal() throws ApiException;

    TerminalAuthBuilder ebtWithdrawal(BigDecimal amount) throws ApiException;

    // report calls
    SAFSummaryReport safSummaryReport(SafReportSummary safReportIndicator) throws ApiException;

    IBatchReportResponse getBatchSummary() throws ApiException;

    IBatchReportResponse getBatchSummary(String batchId) throws ApiException;

    IBatchReportResponse getBatchDetails() throws ApiException;

    IBatchReportResponse getBatchDetails(String batchId) throws ApiException;

    IBatchReportResponse getBatchDetails(String batchId, boolean printReport) throws ApiException;

    IBatchReportResponse getOpenTabDetails() throws ApiException;

    IBatchReportResponse findBatches() throws ApiException;

    ISAFResponse safDelete(String referenceNumber, String transactionNumber) throws ApiException;

    TerminalResponse getTransactionDetails(TransactionType transactionType, String transactionId, TransactionIdType transactionIdType) throws ApiException;

    TerminalManageBuilder refundById(BigDecimal amount) throws ApiException;

    TerminalManageBuilder refundById() throws ApiException;

    ISAFResponse safSummaryReport(String printData, String reportData) throws ApiException;

    TerminalReportBuilder localDetailReport() throws ApiException;

    TerminalManageBuilder increasePreAuth(BigDecimal amount) throws ApiException;

    TerminalManageBuilder deletePreAuth() throws ApiException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy