blob: fcca5227ed4ed71f326a9b76be284ed466a64a6f [file] [log] [blame]
/*
*
* Copyright (c) 2011 - 2017 - Loetz GmbH & Co KG, 69115 Heidelberg, Germany
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Initial contribution:
* Loetz GmbH & Co. KG
*
*/
package org.eclipse.osbp.ui.api.pos;
import java.nio.ByteBuffer;
/**
* The Interface IZVTTransactionData.
*/
public interface IZVTTransactionData {
/**
* The Enum PaymentType.
*/
static enum PaymentType {
/** offline mode */
OFFLINE,
/** card is checked without authorization */
CARDCHECKED_NOAUTHORIZATION,
/** online mode */
ONLINE,
/** pin mode */
PIN
};
/**
* Parses the.
*
* @param buffer the buffer
* @param position the position
* @param length the length
* @return the int
*/
int parse(ByteBuffer buffer, int position, int length);
/**
* Gets the amount.
*
* @return the amount
*/
double getAmount();
/**
* Sets the amount.
*
* @param amount the new amount
*/
void setAmount(double amount);
/**
* Gets the trace number.
*
* @return the trace number
*/
String getTraceNumber();
/**
* Sets the trace number.
*
* @param traceNumber the new trace number
*/
void setTraceNumber(String traceNumber);
/**
* Gets the original trace number.
*
* @return the original trace number
*/
String getOriginalTraceNumber();
/**
* Sets the original trace number.
*
* @param originalTraceNumber the new original trace number
*/
void setOriginalTraceNumber(String originalTraceNumber);
/**
* Gets the card sequence.
*
* @return the card sequence
*/
int getCardSequence();
/**
* Sets the card sequence.
*
* @param cardSequence the new card sequence
*/
void setCardSequence(int cardSequence);
/**
* Gets the payment type.
*
* @return the payment type
*/
PaymentType getPaymentType();
/**
* Sets the payment type.
*
* @param paymentType the new payment type
*/
void setPaymentType(PaymentType paymentType);
/**
* Gets the pan efid.
*
* @return the pan efid
*/
String getPan_efid();
/**
* Sets the pan efid.
*
* @param pan_efid the new pan efid
*/
void setPan_efid(String pan_efid);
/**
* Gets the terminal id.
*
* @return the terminal id
*/
String getTerminalId();
/**
* Sets the terminal id.
*
* @param terminalId the new terminal id
*/
void setTerminalId(String terminalId);
/**
* Gets the authorization.
*
* @return the authorization
*/
String getAuthorization();
/**
* Sets the authorization.
*
* @param authorization the new authorization
*/
void setAuthorization(String authorization);
/**
* Gets the currency.
*
* @return the currency
*/
int getCurrency();
/**
* Sets the currency.
*
* @param currency the new currency
*/
void setCurrency(int currency);
/**
* Gets the blocked groups.
*
* @return the blocked groups
*/
String getBlockedGroups();
/**
* Sets the blocked groups.
*
* @param blockedGroups the new blocked groups
*/
void setBlockedGroups(String blockedGroups);
/**
* Gets the receipt.
*
* @return the receipt
*/
String getReceipt();
/**
* Sets the receipt.
*
* @param receipt the new receipt
*/
void setReceipt(String receipt);
/**
* Gets the card type.
*
* @return the card type
*/
int getCardType();
/**
* Sets the card type.
*
* @param cardType the new card type
*/
void setCardType(int cardType);
/**
* Gets the card type ID.
*
* @return the card type ID
*/
int getCardTypeID();
/**
* Sets the card type ID.
*
* @param cardTypeID the new card type ID
*/
void setCardTypeID(int cardTypeID);
/**
* Gets the geld karte.
*
* @return the geld karte
*/
String getGeldKarte();
/**
* Sets the geld karte.
*
* @param geldKarte the new geld karte
*/
void setGeldKarte(String geldKarte);
/**
* Gets the authorization parameter.
*
* @return the authorization parameter
*/
String getAuthorizationParameter();
/**
* Sets the authorization parameter.
*
* @param authorizationParameter the new authorization parameter
*/
void setAuthorizationParameter(String authorizationParameter);
/**
* Gets the contract number.
*
* @return the contract number
*/
String getContractNumber();
/**
* Sets the contract number.
*
* @param contractNumber the new contract number
*/
void setContractNumber(String contractNumber);
/**
* Gets the additional text.
*
* @return the additional text
*/
String getAdditionalText();
/**
* Sets the additional text.
*
* @param additionalText the new additional text
*/
void setAdditionalText(String additionalText);
/**
* Gets the result code AS.
*
* @return the result code AS
*/
String getResultCodeAS();
/**
* Sets the result code AS.
*
* @param resultCodeAS the new result code AS
*/
void setResultCodeAS(String resultCodeAS);
/**
* Gets the turnover number.
*
* @return the turnover number
*/
String getTurnoverNumber();
/**
* Sets the turnover number.
*
* @param turnoverNumber the new turnover number
*/
void setTurnoverNumber(String turnoverNumber);
/**
* Gets the card name.
*
* @return the card name
*/
String getCardName();
/**
* Sets the card name.
*
* @param cardName the new card name
*/
void setCardName(String cardName);
/**
* Gets the tlv.
*
* @return the tlv
*/
String getTlv();
/**
* Sets the tlv.
*
* @param tlv the new tlv
*/
void setTlv(String tlv);
/**
* Gets the transaction time.
*
* @return the transaction time
*/
String getTransactionTime();
/**
* Sets the transaction time.
*
* @param time the new transaction time
*/
void setTransactionTime(String time);
/**
* Gets the transaction date.
*
* @return the transaction date
*/
String getTransactionDate();
/**
* Sets the transaction date.
*
* @param date the new transaction date
*/
void setTransactionDate(String date);
/**
* Gets the expiry date.
*
* @return the expiry date
*/
String getExpiry();
/**
* Sets the expiry date.
*
* @param expiry the new expiry date
*/
void setExpiry(String expiry);
}