paypalnvp.request
Class AddressVerify

java.lang.Object
  extended by paypalnvp.request.AddressVerify
All Implemented Interfaces:
java.io.Serializable, Request

public final class AddressVerify
extends java.lang.Object
implements Request

AddressVerify request. Confirms whether a postal address and postal code match those of the specified PayPal account holder.

See Also:
Serialized Form

Constructor Summary
AddressVerify(java.lang.String email, java.lang.String street, java.lang.String zip)
           
 
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
 java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
          Return response from paypal.
 void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
          Setter for nvp (name value pair) response
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddressVerify

public AddressVerify(java.lang.String email,
                     java.lang.String street,
                     java.lang.String zip)
              throws java.lang.IllegalArgumentException
Parameters:
email - Email address of a PayPal member to verify. Must be valid email with maximum 255 single-byte characters
street - First line of the billing or shipping postal address to verify. The value of Street must match the first three single-byte characters of a postal address on file for the PayPal member. Maximum string length: 35 single-byte characters. Alphanumeric plus - , . ' # \
zip - Postal code to verify. To pass verification, the value of Zip must match the first five single-byte characters of the postal code of the verified postal address for the verified PayPal member. Maximum string length: 16 single-byte characters.
Throws:
java.lang.IllegalArgumentException
Method Detail

getNVPRequest

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

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

setNVPResponse

public void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Description copied from interface: Request
Setter for nvp (name value pair) response

Specified by:
setNVPResponse in interface Request

getNVPResponse

public java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Description copied from interface: Request
Return response from paypal. If response is not set/received returns empty Map.

Specified by:
getNVPResponse in interface Request
Returns:
response from paypal as a Map

toString

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