com.paypal.adaptive.core
Class Receiver

java.lang.Object
  extended by com.paypal.adaptive.core.Receiver

public class Receiver
extends java.lang.Object

Java class for Receiver.


Field Summary
protected  double amount
           
protected  java.lang.String email
           
protected  java.lang.String invoiceId
           
protected  PaymentSubType paymentSubType
           
protected  PaymentType paymentType
           
protected  PhoneNumberType phone
           
protected  boolean primary
           
 
Constructor Summary
Receiver()
           
Receiver(java.util.HashMap<java.lang.String,java.lang.String> params, int index)
           
 
Method Summary
 double getAmount()
           
 java.lang.String getEmail()
           
 java.lang.String getInvoiceId()
           
 PaymentType getPaymentType()
           
 PhoneNumberType getPhone()
           
 boolean isPrimary()
           
 java.lang.String serialize(int index)
           
 void setAmount(double amount)
           
 void setEmail(java.lang.String email)
           
 void setInvoiceId(java.lang.String invoiceId)
           
 void setPaymentType(PaymentType paymentType)
           
 void setPhone(double countryCode, double extension, double phonenumber)
           
 void setPhone(PhoneNumberType phone)
           
 void setPhone(java.lang.String countryCode, java.lang.String extension, java.lang.String phonenumber)
           
 void setPrimary(boolean primary)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

amount

protected double amount

email

protected java.lang.String email

invoiceId

protected java.lang.String invoiceId

paymentType

protected PaymentType paymentType

primary

protected boolean primary

phone

protected PhoneNumberType phone

paymentSubType

protected PaymentSubType paymentSubType
Constructor Detail

Receiver

public Receiver()

Receiver

public Receiver(java.util.HashMap<java.lang.String,java.lang.String> params,
                int index)
Method Detail

setAmount

public void setAmount(double amount)
Parameters:
amount - the amount to set

getAmount

public double getAmount()
Returns:
the amount

setEmail

public void setEmail(java.lang.String email)
Parameters:
email - the email to set

getEmail

public java.lang.String getEmail()
Returns:
the email

setInvoiceId

public void setInvoiceId(java.lang.String invoiceId)
Parameters:
invoidId - the invoiceId to set

getInvoiceId

public java.lang.String getInvoiceId()
Returns:
the invoiceId

setPaymentType

public void setPaymentType(PaymentType paymentType)
Parameters:
paymentType - the paymentType to set

getPaymentType

public PaymentType getPaymentType()
Returns:
the paymentType

setPrimary

public void setPrimary(boolean primary)
Parameters:
primary - the primary to set

isPrimary

public boolean isPrimary()
Returns:
the primary

serialize

public java.lang.String serialize(int index)
                           throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

getPhone

public PhoneNumberType getPhone()

setPhone

public void setPhone(PhoneNumberType phone)

setPhone

public void setPhone(double countryCode,
                     double extension,
                     double phonenumber)

setPhone

public void setPhone(java.lang.String countryCode,
                     java.lang.String extension,
                     java.lang.String phonenumber)

toString

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