E - generic class of the transaction fieldpublic interface ITransactionField<E>
Java interface describes a transaction field, i.e. a field accessible from a
charged transaction set, an entry in a charged transaction set,
a charged transaction, or a rated transaction.| Modifier and Type | Method and Description |
|---|---|
E |
get(ChargedTransactionSet set,
ChargedTransactionSet.ChargedTransactionSetEntry entry,
ChargedTransaction chargedTransaction,
Transaction transaction)
Retrieves, whether from a
charged transaction set, a charged transaction set entry,
a charged transaction or a transaction the value of a transaction field and returns it. |
java.lang.Object |
getFlag(ChargedTransactionSet set,
ChargedTransactionSet.ChargedTransactionSetEntry entry,
ChargedTransaction chargedTransaction,
Transaction transaction)
Returns an object to be used as flag for later processing if needed.
|
com.highdeal.pnr.domain.TransactionFieldType |
getType()
The type of the transaction field; Transaction field type cannot be
null. |
E get(ChargedTransactionSet set, ChargedTransactionSet.ChargedTransactionSetEntry entry, ChargedTransaction chargedTransaction, Transaction transaction) throws ITransactionField.BadFieldException
charged transaction set, a charged transaction set entry,
a charged transaction or a transaction the value of a transaction field and returns it.set - The charged transaction setentry - The charged transaction set entrychargedTransaction - The charged transactiontransaction - The rated transactionITransactionField.MissingMandatoryArgumentException - this exception is thrown if a field, mandatory to retrieve the value of targeted field, is missing.ITransactionField.BadFieldException - this exception is thrown if failure is not caused by a mandatory field missing or an empty field.java.lang.Object getFlag(ChargedTransactionSet set, ChargedTransactionSet.ChargedTransactionSetEntry entry, ChargedTransaction chargedTransaction, Transaction transaction) throws ITransactionField.BadFieldException
set - The charged transaction setentry - The charged transaction set entrychargedTransaction - The charged transactiontransaction - The rated transactionnull if no such flag is neededITransactionField.BadFieldException - this exception is thrown if the flag cannot be computedcom.highdeal.pnr.domain.TransactionFieldType getType()
null.