Package org.cyclos.entities.banking
Class ExternalPayment
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.banking.Transaction
-
- org.cyclos.entities.banking.ExternalPayment
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasExpirationDate,Trans,HasNetwork,ProcessableForProxying,EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>,HasTransactionNumber,HasTransactionStatus<ExternalPaymentStatus>,IEntity,HasAmount
@Entity public class ExternalPayment extends Transaction implements HasTransactionStatus<ExternalPaymentStatus>, HasExpirationDate
A payment to an external user
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
-
Fields inherited from class org.cyclos.entities.banking.Transaction
authorizationStatus, authorizationType, creationType, expirationDate, nextAuthorizationLevel, receivedBy, showToReceiver, status, transaction
-
-
Constructor Summary
Constructors Constructor Description ExternalPayment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalPaymentAmountReservationgetAmountDereservation()ExternalPaymentAmountReservationgetAmountReservation()Set<ExternalPaymentAmountReservation>getAmountReservations()StringgetComments()DategetExpirationDate()LocationgetLocation()TransactionNaturegetNature()PaymentgetPayment()DategetProcessDate()Returns the date the transaction was actually processedExternalPaymentStatusgetStatus()StringgetToken()AccountOwnergetToOwner()PrincipalTypegetToPrincipalType()StringgetToPrincipalValue()voidsetComments(String comments)voidsetExpirationDate(Date expirationDate)voidsetPayment(Payment payment)voidsetStatus(ExternalPaymentStatus status)voidsetToken(String token)voidsetToPrincipalType(PrincipalType toPrincipalType)voidsetToPrincipalValue(String toPrincipalValue)-
Methods inherited from class org.cyclos.entities.banking.Transaction
getAccessClient, getAmount, getBy, getChannel, getCurrency, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDate, getDescription, getFrom, getFromBasicUser, getFromName, getNetwork, getPerformer, getPrincipalType, getReceiver, getRelatedName, getTo, getToBasicUser, getToName, getToUser, getTransactionNumber, getType, isPendingNotification, setAccessClient, setAmount, setBy, setChannel, setCustomValues, setDate, setDescription, setFrom, setFromName, setPendingNotification, setPrincipalType, setTo, setToName, setTransactionNumber, setType
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
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
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getCustomValuesForExport, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwnerOrType, getToType, getTransactionNumberOrId, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Method Detail
-
getAmountDereservation
public ExternalPaymentAmountReservation getAmountDereservation()
-
getAmountReservation
public ExternalPaymentAmountReservation getAmountReservation()
-
getAmountReservations
public Set<ExternalPaymentAmountReservation> getAmountReservations()
-
getComments
public String getComments()
-
getExpirationDate
public Date getExpirationDate()
- Specified by:
getExpirationDatein interfaceHasExpirationDate
-
getLocation
public Location getLocation()
- Specified by:
getLocationin classTransaction
-
getNature
public TransactionNature getNature()
- Specified by:
getNaturein classTransaction
-
getPayment
public Payment getPayment()
-
getProcessDate
public Date getProcessDate()
Description copied from class:TransactionReturns the date the transaction was actually processed- Specified by:
getProcessDatein classTransaction
-
getStatus
public ExternalPaymentStatus getStatus()
- Specified by:
getStatusin interfaceHasTransactionStatus<ExternalPaymentStatus>
-
getToken
public String getToken()
-
getToOwner
public AccountOwner getToOwner()
- Specified by:
getToOwnerin interfaceTrans
-
getToPrincipalType
public PrincipalType getToPrincipalType()
-
getToPrincipalValue
public String getToPrincipalValue()
-
setComments
public void setComments(String comments)
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
- Specified by:
setExpirationDatein interfaceHasExpirationDate
-
setPayment
public void setPayment(Payment payment)
-
setStatus
public void setStatus(ExternalPaymentStatus status)
- Specified by:
setStatusin interfaceHasTransactionStatus<ExternalPaymentStatus>
-
setToken
public void setToken(String token)
-
setToPrincipalType
public void setToPrincipalType(PrincipalType toPrincipalType)
-
setToPrincipalValue
public void setToPrincipalValue(String toPrincipalValue)
-
-