|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.shop.checkout.PaymentData
@Entity(name="checkout_PaymentData") public class PaymentData
The PaymentData.
| Nested Class Summary | |
|---|---|
static class |
PaymentData.PaymentStatus
|
| Constructor Summary | |
|---|---|
PaymentData()
The no-argument constructor. |
|
| Method Summary | |
|---|---|
java.math.BigDecimal |
getAmount()
Returns the amount. |
java.lang.String |
getAuthorizationCanceledAction()
Returns the name of the action the payment controller is supposed to redirect to, if the authorization has been canceled. |
java.lang.String |
getAuthorizationFailedAction()
Returns the name of the action the payment controller is supposed to redirect to, if the authorization has failed. |
java.lang.String |
getAuthorizationFinishedAction()
Returns the name of the action the payment controller is supposed to redirect to, after the authorization has been finished. |
java.lang.String |
getCaptureCanceledAction()
Returns the name of the action the payment controller is supposed to redirect to, if the capture has been canceled. |
java.lang.String |
getCaptureFailedAction()
Returns the name of the action the payment controller is supposed to redirect to, if the capture has failed. |
java.lang.String |
getCaptureFinishedAction()
Returns the name of the action the payment controller is supposed to redirect to, after the capture has been finished. |
java.util.Currency |
getCurrency()
Returns the Currency. |
java.util.Date |
getPaymentDate()
Returns the Date of the payment. |
PaymentMethod |
getPaymentMethod()
Returns the PaymentMethod. |
java.lang.String |
getProviderTransactionId()
Returns the transaction id used by the payment provider. |
PaymentData.PaymentStatus |
getStatus()
Returns the PaymentStatus. |
java.lang.String |
getTransactionId()
Returns the transaction id. |
static PaymentData |
newInstance(PaymentConfiguration config)
Creates a new PaymentData from the given
PaymentConfiguration. |
void |
reinitialize()
Reinitializes this PaymentData. |
void |
setAmount(java.math.BigDecimal a)
Sets the amount. |
void |
setCurrency(java.util.Currency c)
Sets the Currency. |
void |
setPaymentDate(java.util.Date pd)
Sets the Date of the payment. |
void |
setProviderTransactionId(java.lang.String ptid)
Sets the transaction id used by the payment provider. |
void |
setStatus(PaymentData.PaymentStatus s)
Sets the PaymentStatus. |
void |
setTransactionId(java.lang.String tid)
Sets the transaction id. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PaymentData()
| Method Detail |
|---|
public final PaymentMethod getPaymentMethod()
PaymentMethod.
PaymentMethod.public final java.math.BigDecimal getAmount()
public final void setAmount(java.math.BigDecimal a)
a - the amount to set.public final java.util.Currency getCurrency()
Currency.
Currency.public final void setCurrency(java.util.Currency c)
Currency.
c - the Currency to set.public final java.lang.String getTransactionId()
public final void setTransactionId(java.lang.String tid)
tid - the transaction id to set.public final java.lang.String getProviderTransactionId()
public final void setProviderTransactionId(java.lang.String ptid)
ptid - the transaction id to set.public final PaymentData.PaymentStatus getStatus()
PaymentStatus.
PaymentStatus.public final void setStatus(PaymentData.PaymentStatus s)
PaymentStatus.
s - the PaymentStatus to set.
java.lang.IllegalArgumentException - if the given PaymentStatus is null.public final java.util.Date getPaymentDate()
Date of the payment.
Date.public final void setPaymentDate(java.util.Date pd)
Date of the payment.
pd - the Date to set.public final java.lang.String getAuthorizationFinishedAction()
public final java.lang.String getAuthorizationCanceledAction()
public final java.lang.String getAuthorizationFailedAction()
public final java.lang.String getCaptureFinishedAction()
public final java.lang.String getCaptureCanceledAction()
public final java.lang.String getCaptureFailedAction()
public void reinitialize()
this PaymentData.
Attention: this method is supposed to be overridden by extending classes.
java.lang.IllegalStateException - if the PaymentStatus of the PaymentData is
CAPTURED, PENDING or BOOKED_BACK.public static final PaymentData newInstance(PaymentConfiguration config)
PaymentData from the given
PaymentConfiguration.
config - the PaymentConfiguration.
PaymentData.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||