Package org.cyclos.entities.banking
Class PaymentRequest
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.banking.Transaction
-
- org.cyclos.entities.banking.InternalTransaction
-
- org.cyclos.entities.banking.PaymentRequest
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasExpirationDate,Trans,HasNetwork,ProcessableForProxying,EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>,HasTransactionNumber,HasTransactionStatus<PaymentRequestStatus>,IEntity,HasAmount
@Entity public class PaymentRequest extends InternalTransaction implements HasTransactionStatus<PaymentRequestStatus>, HasExpirationDate
A payment request is sent from a user or system to another user or system. Once accepted, aTransaction(either aPayment,ScheduledPaymentorRecurringPayment) is generated, and the payment is processed.
-
-
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.InternalTransaction
installments
-
Fields inherited from class org.cyclos.entities.banking.Transaction
authorizationStatus, authorizationType, creationType, expirationDate, nextAuthorizationLevel, receivedBy, showToReceiver, status, transaction
-
-
Constructor Summary
Constructors Constructor Description PaymentRequest()
-
Method Summary
-
Methods inherited from class org.cyclos.entities.banking.InternalTransaction
getToOwner, getVoucherTransaction, setVoucherTransaction
-
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
-
getComments
public String getComments()
-
getExpirationDate
public Date getExpirationDate()
- Specified by:
getExpirationDatein interfaceHasExpirationDate
-
getExpirationDateComments
public String getExpirationDateComments()
-
getLocation
public Location getLocation()
- Specified by:
getLocationin classTransaction
-
getNature
public TransactionNature getNature()
- Specified by:
getNaturein classTransaction
-
getOccurrenceInterval
public TimeInterval getOccurrenceInterval()
-
getProcessDate
public Date getProcessDate()
Description copied from class:TransactionReturns the date the transaction was actually processed- Specified by:
getProcessDatein classTransaction
-
getScheduling
public SchedulingType getScheduling()
-
getSchedulingCount
public Integer getSchedulingCount()
-
getSmsCode
public String getSmsCode()
Returns the SMS code. This code is used to identify a payment request sent by SMS. With this code a user can deny or accept (by SMS) the payment request.
-
getStatus
public PaymentRequestStatus getStatus()
- Specified by:
getStatusin interfaceHasTransactionStatus<PaymentRequestStatus>
-
getTransaction
public BasePayment getTransaction()
-
isFirstSchedulingIsImmediate
public boolean isFirstSchedulingIsImmediate()
-
setComments
public void setComments(String comments)
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
- Specified by:
setExpirationDatein interfaceHasExpirationDate
-
setExpirationDateComments
public void setExpirationDateComments(String expirationDateComments)
-
setFirstSchedulingIsImmediate
public void setFirstSchedulingIsImmediate(Boolean firstSchedulingIsImmediate)
-
setOccurrenceInterval
public void setOccurrenceInterval(TimeInterval occurrenceInterval)
-
setProcessDate
public void setProcessDate(Date processDate)
-
setScheduling
public void setScheduling(SchedulingType scheduling)
-
setSchedulingCount
public void setSchedulingCount(Integer schedulingCount)
-
setSmsCode
public void setSmsCode(String smsCode)
-
setStatus
public void setStatus(PaymentRequestStatus status)
- Specified by:
setStatusin interfaceHasTransactionStatus<PaymentRequestStatus>
-
setTransaction
public void setTransaction(BasePayment transaction)
-
-