paypalnvp.fields
Class PayerInformation

java.lang.Object
  extended by paypalnvp.fields.PayerInformation
All Implemented Interfaces:
java.io.Serializable, RequestFields

public final class PayerInformation
extends java.lang.Object
implements RequestFields

Payer Information Fields

See Also:
Serialized Form

Nested Class Summary
static class PayerInformation.PayerStatus
          Status of payer
 
Constructor Summary
PayerInformation()
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
          Creates and returns part of the nvp (name value pair) request containing request values
 void setBusinessName(java.lang.String name)
          Payer's business name.
 void setCountry(Country country)
          Payer's country of residence
 void setEmail(java.lang.String email)
          Email address of payer.
 void setPayerId(java.lang.String payerId)
          Unique PayPal customer account identification number.
 void setPayerStatus(PayerInformation.PayerStatus status)
          Sets status of payer
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PayerInformation

public PayerInformation()
Method Detail

getNVPRequest

public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Description copied from interface: RequestFields
Creates and returns part of the nvp (name value pair) request containing request values

Specified by:
getNVPRequest in interface RequestFields
Returns:
part of the nvp request as a Map

setEmail

public void setEmail(java.lang.String email)
              throws java.lang.IllegalArgumentException
Email address of payer. Email address has to be valid and cannot exceed 127 characters, otherwise exception is thrown.

Parameters:
email - Character length and limitations: 127 single-byte characters.
Throws:
java.lang.IllegalArgumentException

setPayerId

public void setPayerId(java.lang.String payerId)
                throws java.lang.IllegalArgumentException
Unique PayPal customer account identification number. Character length and limitations:13 single-byte alphanumeric characters.

Parameters:
payerId -
Throws:
java.lang.IllegalArgumentException

setPayerStatus

public void setPayerStatus(PayerInformation.PayerStatus status)
Sets status of payer

Parameters:
status -

setCountry

public void setCountry(Country country)
Payer's country of residence

Parameters:
country -

setBusinessName

public void setBusinessName(java.lang.String name)
                     throws java.lang.IllegalArgumentException
Payer's business name. Throws exception if name is null or exceeds 127 characters.

Parameters:
name - Character length and limitations: 127 single-byte characters
Throws:
java.lang.IllegalArgumentException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object