Class Paypal
- java.lang.Object
-
- com.broadleafcommerce.paypal.micro.gateway.domain.orders.Paypal
-
- All Implemented Interfaces:
Serializable
public class Paypal extends Object implements Serializable
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Paypal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Paypal
emailAddress(String emailAddress)
Paypal
experienceContext(ExperienceContext experienceContext)
String
getAccountId()
The PayPal-assigned ID for the PayPal account holder.AddressPortable
getAddress()
The address of the PayPal account holder.String
getBirthDate()
The birth date of the PayPal account holder in "YYYY-MM-DD" format.String
getEmailAddress()
The email address of the PayPal account holder.ExperienceContext
getExperienceContext()
Customizes the payer experience during the approval process for the payment.Name
getName()
The name of the PayPal account holder.Phone
getPhoneNumber()
The phone number, in its canonical international E.164 numbering plan format.String
getPhoneType()
The phone type.TaxInfo
getTaxInfo()
The tax information of the PayPal account holder.void
setAccountId(String accountId)
The PayPal-assigned ID for the PayPal account holder.void
setAddress(AddressPortable address)
The address of the PayPal account holder.void
setBirthDate(String birthDate)
The birth date of the PayPal account holder in "YYYY-MM-DD" format.void
setEmailAddress(String emailAddress)
The email address of the PayPal account holder.void
setExperienceContext(ExperienceContext experienceContext)
Customizes the payer experience during the approval process for the payment.void
setName(Name name)
The name of the PayPal account holder.void
setPhoneNumber(Phone phoneNumber)
The phone number, in its canonical international E.164 numbering plan format.void
setPhoneType(String phoneType)
The phone type.void
setTaxInfo(TaxInfo taxInfo)
The tax information of the PayPal account holder.
-
-
-
Method Detail
-
experienceContext
public Paypal experienceContext(ExperienceContext experienceContext)
-
setAccountId
public void setAccountId(String accountId)
The PayPal-assigned ID for the PayPal account holder.
-
setAddress
public void setAddress(AddressPortable address)
The address of the PayPal account holder. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties. Also referred to as the billing address of the customer.
-
setBirthDate
public void setBirthDate(String birthDate)
The birth date of the PayPal account holder in "YYYY-MM-DD" format.
-
setEmailAddress
public void setEmailAddress(String emailAddress)
The email address of the PayPal account holder.
-
setName
public void setName(Name name)
The name of the PayPal account holder. Supports only the "given_name" and "surname" properties.
-
setPhoneNumber
public void setPhoneNumber(Phone phoneNumber)
The phone number, in its canonical international E.164 numbering plan format. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant's PayPal account. Supports only the "national_number" property.
-
setPhoneType
public void setPhoneType(String phoneType)
The phone type. The possible values are:- FAX. A fax machine.
- HOME. A home phone.
- MOBILE. A mobile phone.
- OTHER. Other.
- PAGER. A pager.
- WORK. A work phone.
-
setExperienceContext
public void setExperienceContext(ExperienceContext experienceContext)
Customizes the payer experience during the approval process for the payment.
-
setTaxInfo
public void setTaxInfo(TaxInfo taxInfo)
The tax information of the PayPal account holder. Required only for Brazilian PayPal account holder's. Both tax_id and tax_id_type are required.
-
getAccountId
public String getAccountId()
The PayPal-assigned ID for the PayPal account holder.
-
getAddress
public AddressPortable getAddress()
The address of the PayPal account holder. Supports only the "address_line_1", "address_line_2", "admin_area_1", "admin_area_2", "postal_code", and "country_code" properties. Also referred to as the billing address of the customer.
-
getBirthDate
public String getBirthDate()
The birth date of the PayPal account holder in "YYYY-MM-DD" format.
-
getEmailAddress
public String getEmailAddress()
The email address of the PayPal account holder.
-
getName
public Name getName()
The name of the PayPal account holder. Supports only the "given_name" and "surname" properties.
-
getPhoneNumber
public Phone getPhoneNumber()
The phone number, in its canonical international E.164 numbering plan format. Available only when you enable the Contact Telephone Number option in the Profile & Settings for the merchant's PayPal account. Supports only the "national_number" property.
-
getPhoneType
public String getPhoneType()
The phone type. The possible values are:- FAX. A fax machine.
- HOME. A home phone.
- MOBILE. A mobile phone.
- OTHER. Other.
- PAGER. A pager.
- WORK. A work phone.
-
getExperienceContext
public ExperienceContext getExperienceContext()
Customizes the payer experience during the approval process for the payment.
-
getTaxInfo
public TaxInfo getTaxInfo()
The tax information of the PayPal account holder. Required only for Brazilian PayPal account holder's. Both tax_id and tax_id_type are required.
-
-