paypalnvp.fields
Class MassPayItem
java.lang.Object
paypalnvp.fields.MassPayItem
- All Implemented Interfaces:
- java.io.Serializable, RequestFields
public final class MassPayItem
- extends java.lang.Object
- implements RequestFields
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getNewEmailMassPayItem
public static MassPayItem getNewEmailMassPayItem(java.lang.String email,
java.lang.String amount)
throws java.lang.IllegalArgumentException
- Parameters:
email
- Email address of recipient. Character length and
limitations: 127 single-byte characters maximum.amount
- Payment amount.
- Returns:
-
- Throws:
java.lang.IllegalArgumentException
getNewReceiverIdMassPayItem
public static MassPayItem getNewReceiverIdMassPayItem(java.lang.String receiverId,
java.lang.String amount)
throws java.lang.IllegalArgumentException
- Parameters:
receiverId
- Unique PayPal customer account number. This value
corresponds to the value of PayerID returned by
GetTransactionDetails.
Character length and limitations: 17 single-byte
characters maximum.amount
- Payment amount.
- Returns:
-
- Throws:
java.lang.IllegalArgumentException
setUniqueId
public void setUniqueId(java.lang.String id)
throws java.lang.IllegalArgumentException
- Parameters:
id
- Transaction-specific identification number for tracking in
an accounting system. Character length and limitations:
30 single-byte characters. No whitespace allowed.
- Throws:
java.lang.IllegalArgumentException
setNote
public void setNote(java.lang.String note)
throws java.lang.IllegalArgumentException
- Parameters:
note
- Custom note for each recipient. Character length and
limitations: 4,000 single-byte alphanumeric characters.
- Throws:
java.lang.IllegalArgumentException
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object