pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.shop.checkout
Class PayPalPaymentData

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.shop.checkout.PaymentData
          extended by org.torweg.pulse.component.shop.checkout.PayPalPaymentData
All Implemented Interfaces:
java.io.Serializable

public class PayPalPaymentData
extends PaymentData

The PayPalPaymentData.

Version:
$Revision$
Author:
Christian Schatt
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.component.shop.checkout.PaymentData
PaymentData.PaymentStatus
 
Constructor Summary
PayPalPaymentData()
          The no-argument constructor.
 
Method Summary
 java.lang.String getEmailAddress()
          Returns the email address.
 java.lang.String getGiropayRedirectURL()
          Returns the giropay redirect URL.
 java.lang.String getPayerId()
          Returns the payer id.
 java.lang.String getPaymentRedirectURL()
          Returns the payment redirect URL.
 java.lang.String getToken()
          Returns the token received from PayPal.
 boolean isRedirectRequired()
          Returns the redirect-required-flag, indicating whether a redirect is required.
 void reinitialize()
          Reinitializes the PayPalPaymentData.
 void setEmailAddress(java.lang.String ea)
          Sets the email address.
 void setGiropayRedirectURL(java.lang.String gru)
          Sets the giropay redirect URL.
 void setPayerId(java.lang.String pid)
          Sets the payer id.
 void setPaymentRedirectURL(java.lang.String pru)
          Sets the payment redirect URL.
 void setRedirectRequired(boolean rrf)
          Sets the redirect-required-flag, indicating whether a redirect is required.
 void setToken(java.lang.String t)
          Sets the token received from PayPal.
 
Methods inherited from class org.torweg.pulse.component.shop.checkout.PaymentData
getAmount, getAuthorizationCanceledAction, getAuthorizationFailedAction, getAuthorizationFinishedAction, getCaptureCanceledAction, getCaptureFailedAction, getCaptureFinishedAction, getCurrency, getPaymentDate, getPaymentMethod, getProviderTransactionId, getStatus, getTransactionId, newInstance, setAmount, setCurrency, setPaymentDate, setProviderTransactionId, setStatus, setTransactionId
 
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

PayPalPaymentData

public PayPalPaymentData()
The no-argument constructor.

Method Detail

getToken

public final java.lang.String getToken()
Returns the token received from PayPal.

Returns:
the token.

setToken

public final void setToken(java.lang.String t)
Sets the token received from PayPal.

Parameters:
t - the token to set.

getPayerId

public final java.lang.String getPayerId()
Returns the payer id.

Returns:
the payer id.

setPayerId

public final void setPayerId(java.lang.String pid)
Sets the payer id.

Parameters:
pid - the payer id to set.

isRedirectRequired

public final boolean isRedirectRequired()
Returns the redirect-required-flag, indicating whether a redirect is required.

Returns:
the redirect-required-flag.

setRedirectRequired

public final void setRedirectRequired(boolean rrf)
Sets the redirect-required-flag, indicating whether a redirect is required.

Parameters:
rrf - the redirect-required-flag to set.

getEmailAddress

public final java.lang.String getEmailAddress()
Returns the email address.

Returns:
the email address.

setEmailAddress

public final void setEmailAddress(java.lang.String ea)
Sets the email address.

Parameters:
ea - the email address to set.

getPaymentRedirectURL

public final java.lang.String getPaymentRedirectURL()
Returns the payment redirect URL.

Returns:
the payment redirect URL.

setPaymentRedirectURL

public final void setPaymentRedirectURL(java.lang.String pru)
Sets the payment redirect URL.

Parameters:
pru - the payment redirect URL to set.

getGiropayRedirectURL

public final java.lang.String getGiropayRedirectURL()
Returns the giropay redirect URL.

Returns:
the giropay redirect URL.

setGiropayRedirectURL

public final void setGiropayRedirectURL(java.lang.String gru)
Sets the giropay redirect URL.

Parameters:
gru - the giropay redirect URL to set.

reinitialize

public void reinitialize()
Reinitializes the PayPalPaymentData.

Overrides:
reinitialize in class PaymentData
Throws:
java.lang.IllegalStateException - if the PaymentStatus of the PayPalPaymentData is CAPTURED, PENDING or BOOKED_BACK.