Package org.cyclos.entities.banking
Class VoucherTransaction
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.VoucherTransaction
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasNetwork,ProcessableForProxying,IEntity,HasAmount
- Direct Known Subclasses:
VoucherChargeback,VoucherRedeem,VoucherTopUp
@Entity public abstract class VoucherTransaction extends NetworkedEntity implements HasCurrencyAmount
A voucher transaction, which either adds or removes amount from a voucher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description VoucherTransaction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description BigDecimalgetAmount()VoucherTransactionAmountReservationgetAmountReservation()BasicUsergetBy()VoucherChargebackgetChargedBackBy()VoucherConfigurationgetConfiguration()CurrencygetCurrency()DategetDate()abstract VoucherTransactionNaturegetNature()NetworkgetNetwork()Returns the network this entity belongs toVoucherPackgetPack()InternalTransactiongetTransaction()VoucherTypegetType()UsergetUser()VouchergetVoucher()voidsetAmount(BigDecimal amount)voidsetAmountReservation(VoucherTransactionAmountReservation amountReservation)voidsetBy(BasicUser by)voidsetChargedBackBy(VoucherChargeback chargedBackBy)voidsetDate(Date date)voidsetTransaction(InternalTransaction transaction)voidsetUser(User user)voidsetVoucher(Voucher voucher)-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getAmount
public BigDecimal getAmount()
-
getAmountReservation
public VoucherTransactionAmountReservation getAmountReservation()
-
getBy
public BasicUser getBy()
-
getChargedBackBy
public VoucherChargeback getChargedBackBy()
-
getConfiguration
public VoucherConfiguration getConfiguration()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getDate
public Date getDate()
-
getNature
public abstract VoucherTransactionNature getNature()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getPack
public VoucherPack getPack()
-
getTransaction
public InternalTransaction getTransaction()
-
getType
public VoucherType getType()
-
getUser
public User getUser()
-
getVoucher
public Voucher getVoucher()
-
setAmount
public void setAmount(BigDecimal amount)
-
setAmountReservation
public void setAmountReservation(VoucherTransactionAmountReservation amountReservation)
-
setBy
public void setBy(BasicUser by)
-
setChargedBackBy
public void setChargedBackBy(VoucherChargeback chargedBackBy)
-
setDate
public void setDate(Date date)
-
setTransaction
public void setTransaction(InternalTransaction transaction)
-
setUser
public void setUser(User user)
-
setVoucher
public void setVoucher(Voucher voucher)
-
-