paypalnvp.request
Class MassPay

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

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

Make a payment to one or more PayPal account holders.

See Also:
Serialized Form

Nested Class Summary
static class MassPay.ReceiverType
          Indicates how you identify the recipients of payments in this call to MassPay.
 
Constructor Summary
MassPay(Currency currency, MassPayItem[] items)
           
 
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 setEmailSubject(java.lang.String subject)
           
 void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
          Setter for nvp (name value pair) response
 void setReceiverType(MassPay.ReceiverType receiver)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MassPay

public MassPay(Currency currency,
               MassPayItem[] items)
Method Detail

setEmailSubject

public void setEmailSubject(java.lang.String subject)
                     throws java.lang.IllegalArgumentException
Parameters:
subject - The subject line of the email that PayPal sends when the transaction is completed. The subject line is the same for all recipients. Character length and limitations: 255 single-byte alphanumeric characters.
Throws:
java.lang.IllegalArgumentException

setReceiverType

public void setReceiverType(MassPay.ReceiverType receiver)
Parameters:
receiver - Indicates how you identify the recipients of payments in this call to MassPay.

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