paypalnvp.profile
Class BaseProfile.Builder

java.lang.Object
  extended by paypalnvp.profile.BaseProfile.Builder
Enclosing class:
BaseProfile

public static class BaseProfile.Builder
extends java.lang.Object

Builder class that constructs instance of BaseProfile class. Example: BaseProfile usr = new BaseProfile.Builder(userName, pass).signature(sign).build();


Constructor Summary
BaseProfile.Builder(java.lang.String userName, java.lang.String password)
          Required parameters
 
Method Summary
 BaseProfile build()
          Returns instance of BaseProfile class
 BaseProfile.Builder signature(java.lang.String val)
          Optional parameter If you use an API certificate, do not include this parameter
 BaseProfile.Builder subject(java.lang.String val)
          Optional parameter Email address of a PayPal account that has granted you permission to make this call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseProfile.Builder

public BaseProfile.Builder(java.lang.String userName,
                           java.lang.String password)
Required parameters

Parameters:
userName - user name obtained from paypal
password - password obtained from paypal
Method Detail

signature

public BaseProfile.Builder signature(java.lang.String val)
Optional parameter If you use an API certificate, do not include this parameter

Parameters:
val - signature
Returns:

subject

public BaseProfile.Builder subject(java.lang.String val)
Optional parameter Email address of a PayPal account that has granted you permission to make this call. Set this parameter only if you are calling an API on a different user’s behalf

Parameters:
val - subject
Returns:

build

public BaseProfile build()
Returns instance of BaseProfile class

Returns: