Package org.cyclos.entities.banking
Class Ticket
-
- All Implemented Interfaces:
Cloneable,HasCurrency,HasCurrencyAmount,HasExpirationDate,Trans,ProcessableForDataTranslation,EntityWithCustomValues<TransactionCustomField,TransactionCustomFieldPossibleValueCategory,TransactionCustomFieldPossibleValue,TransactionCustomFieldValue>,HasTransactionNumber,HasTransactionStatus<TicketStatus>,IEntity,HasAmount
@Entity public class Ticket extends InternalTransaction implements HasTransactionStatus<TicketStatus>, HasExpirationDate
It will generates a payment to a user after confirmation by the payer.
-
-
Field Summary
-
Fields inherited from class org.cyclos.entities.banking.InternalTransaction
installments
-
Fields inherited from class org.cyclos.entities.banking.Transaction
authorizationStatus, authorizationType, expirationDate, nextAuthorizationLevel, received, receivedBy, showToReceiver, status, transaction
-
-
Constructor Summary
Constructors Constructor Description Ticket()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCancelUrl()DategetExpirationDate()LocationgetLocation()TransactionNaturegetNature()StringgetOrderId()UsergetPayee()UsergetPayer()PaymentgetPayment()DategetProcessDate()Returns the date the transaction was actually processedTicketStatusgetStatus()StringgetSuccessUrl()StringgetSuccessWebhookUrl()StringgetTicketNumber()voidsetCancelUrl(String cancelUrl)voidsetExpirationDate(Date expirationDate)voidsetOrderId(String orderId)voidsetPayment(Payment payment)voidsetStatus(TicketStatus status)voidsetSuccessUrl(String successUrl)voidsetSuccessWebhookUrl(String successWebhookUrl)voidsetTicketNumber(String ticketNumber)-
Methods inherited from class org.cyclos.entities.banking.InternalTransaction
getToOwner
-
Methods inherited from class org.cyclos.entities.banking.Transaction
getAccessClient, getAmount, getBy, getChannel, getCurrency, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDate, getDescription, getFrom, getFromName, getNetwork, getPerformer, getPrincipalType, getReceiver, getRelatedName, getTo, getToName, getToUser, getTransactionNumber, getType, setAccessClient, setAmount, setBy, setChannel, setCustomValues, setDate, setDescription, setFrom, setFromName, setPrincipalType, setTo, setToName, setTransactionNumber, setType
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrencyAmount
getCurrencyAmount
-
Methods inherited from interface org.cyclos.entities.banking.Trans
getActualAmount, getFromOwner, getFromOwnerOrType, getFromType, getFromUser, getRelatedAccount, getRelatedOwner, getToOwnerOrType, getToType, isDebit, isFromSystem, isFromUser, isToSystem, isToUser
-
-
-
-
Method Detail
-
getCancelUrl
public String getCancelUrl()
-
getExpirationDate
public Date getExpirationDate()
- Specified by:
getExpirationDatein interfaceHasExpirationDate
-
getLocation
public Location getLocation()
- Specified by:
getLocationin classTransaction
-
getNature
public TransactionNature getNature()
- Specified by:
getNaturein classTransaction
-
getOrderId
public String getOrderId()
-
getPayee
public User getPayee()
-
getPayer
public User getPayer()
-
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 TicketStatus getStatus()
- Specified by:
getStatusin interfaceHasTransactionStatus<TicketStatus>
-
getSuccessUrl
public String getSuccessUrl()
-
getSuccessWebhookUrl
public String getSuccessWebhookUrl()
-
getTicketNumber
public String getTicketNumber()
-
setCancelUrl
public void setCancelUrl(String cancelUrl)
-
setExpirationDate
public void setExpirationDate(Date expirationDate)
- Specified by:
setExpirationDatein interfaceHasExpirationDate
-
setOrderId
public void setOrderId(String orderId)
-
setPayment
public void setPayment(Payment payment)
-
setStatus
public void setStatus(TicketStatus status)
- Specified by:
setStatusin interfaceHasTransactionStatus<TicketStatus>
-
setSuccessUrl
public void setSuccessUrl(String successUrl)
-
setSuccessWebhookUrl
public void setSuccessWebhookUrl(String successWebhookUrl)
-
setTicketNumber
public void setTicketNumber(String ticketNumber)
-
-