|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.WebProfile
public class WebProfile
| Constructor Summary | |
|---|---|
WebProfile()
Default Constructor |
|
WebProfile(String name)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
CreateProfileResponse |
create(APIContext apiContext)
Create a web experience profile by passing the name of the profile and other profile details in the request JSON to the request URI. |
CreateProfileResponse |
create(String accessToken)
Create a web experience profile by passing the name of the profile and other profile details in the request JSON to the request URI. |
void |
delete(APIContext apiContext)
Delete an existing web experience profile by passing the profile ID to the request URI. |
void |
delete(String accessToken)
Delete an existing web experience profile by passing the profile ID to the request URI. |
static WebProfile |
get(APIContext apiContext,
String profileId)
Retrieve the details of a particular web experience profile by passing the ID of the profile to the request URI. |
static WebProfile |
get(String accessToken,
String profileId)
Retrieve the details of a particular web experience profile by passing the ID of the profile to the request URI. |
FlowConfig |
getFlowConfig()
Getter for flowConfig |
String |
getId()
Getter for id |
InputFields |
getInputFields()
Getter for inputFields |
static String |
getLastRequest()
Returns the last request sent to the Service |
static String |
getLastResponse()
Returns the last response returned by the Service |
static List<WebProfile> |
getList(APIContext apiContext)
Lists all web experience profiles that exist for a merchant (or subject). |
static List<WebProfile> |
getList(String accessToken)
Lists all web experience profiles that exist for a merchant (or subject). |
String |
getName()
Getter for name |
Presentation |
getPresentation()
Getter for presentation |
static OAuthTokenCredential |
initConfig(File file)
Initialize using a File(Properties file) |
static OAuthTokenCredential |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static OAuthTokenCredential |
initConfig(Properties properties)
Initialize using Properties |
void |
partialUpdate(APIContext apiContext,
PatchRequest patchRequest)
Partially update an existing web experience profile by passing the ID of the profile to the request URI. |
void |
partialUpdate(String accessToken,
PatchRequest patchRequest)
Partially update an existing web experience profile by passing the ID of the profile to the request URI. |
WebProfile |
setFlowConfig(FlowConfig flowConfig)
Setter for flowConfig |
WebProfile |
setId(String id)
Setter for id |
WebProfile |
setInputFields(InputFields inputFields)
Setter for inputFields |
WebProfile |
setName(String name)
Setter for name |
WebProfile |
setPresentation(Presentation presentation)
Setter for presentation |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
void |
update(APIContext apiContext)
Update a web experience profile by passing the ID of the profile to the request URI. |
void |
update(String accessToken)
Update a web experience profile by passing the ID of the profile to the request URI. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebProfile()
public WebProfile(String name)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static OAuthTokenCredential initConfig(InputStream is)
throws PayPalRESTException
is - InputStream
PayPalRESTException
public static OAuthTokenCredential initConfig(File file)
throws PayPalRESTException
file - File object of a properties entity
PayPalRESTExceptionpublic static OAuthTokenCredential initConfig(Properties properties)
properties - Properties object
public WebProfile setId(String id)
public String getId()
public WebProfile setName(String name)
public String getName()
public WebProfile setFlowConfig(FlowConfig flowConfig)
public FlowConfig getFlowConfig()
public WebProfile setInputFields(InputFields inputFields)
public InputFields getInputFields()
public WebProfile setPresentation(Presentation presentation)
public Presentation getPresentation()
public CreateProfileResponse create(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public CreateProfileResponse create(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public void update(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public void update(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public void partialUpdate(String accessToken,
PatchRequest patchRequest)
throws PayPalRESTException
accessToken - Access Token used for the API call.patchRequest - PatchRequest
PayPalRESTException
public void partialUpdate(APIContext apiContext,
PatchRequest patchRequest)
throws PayPalRESTException
apiContext - APIContext used for the API call.patchRequest - PatchRequest
PayPalRESTException
public static WebProfile get(String accessToken,
String profileId)
throws PayPalRESTException
accessToken - Access Token used for the API call.profileId - String
PayPalRESTException
public static WebProfile get(APIContext apiContext,
String profileId)
throws PayPalRESTException
apiContext - APIContext used for the API call.profileId - String
PayPalRESTException
public static List<WebProfile> getList(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public static List<WebProfile> getList(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public void delete(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public void delete(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTExceptionpublic String toJSON()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||