public class Payment extends PayPalResource
| Constructor and Description |
|---|
Payment()
Default Constructor
|
Payment(String intent,
Payer payer)
Parameterized Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Payment |
create(APIContext apiContext)
Creates (and processes) a new Payment Resource.
|
Payment |
create(String accessToken)
Creates (and processes) a new Payment Resource.
|
Payment |
execute(APIContext apiContext,
PaymentExecution paymentExecution)
Executes the payment (after approved by the Payer) associated with this resource when the payment method is PayPal.
|
Payment |
execute(String accessToken,
PaymentExecution paymentExecution)
Executes the payment (after approved by the Payer) associated with this resource when the payment method is PayPal.
|
static Payment |
get(APIContext apiContext,
String paymentId)
Obtain the Payment resource for the given identifier.
|
static Payment |
get(String accessToken,
String paymentId)
Obtain the Payment resource for the given identifier.
|
Object |
getCart()
Getter for cart
|
String |
getCreateTime()
Getter for createTime
|
String |
getExperienceProfileId()
Getter for Experience Profile ID
|
String |
getId()
Getter for id
|
String |
getIntent()
Getter for intent
|
List<Links> |
getLinks()
Getter for links
|
Payee |
getPayee() |
Payer |
getPayer()
Getter for payer
|
RedirectUrls |
getRedirectUrls()
Getter for redirectUrls
|
String |
getState()
Getter for state
|
List<Transaction> |
getTransactions()
Getter for transactions
|
String |
getUpdateTime()
Getter for updateTime
|
static PaymentHistory |
list(APIContext apiContext,
Map<String,String> containerMap)
Retrieves a list of Payment resources.
|
static PaymentHistory |
list(String accessToken,
Map<String,String> containerMap)
Retrieves a list of Payment resources.
|
Payment |
setCart(Object cart)
Setter for cart
|
Payment |
setCreateTime(String createTime)
Setter for createTime
|
void |
setExperienceProfileId(String experienceProfileId)
Setter for Experience Profile ID
|
Payment |
setId(String id)
Setter for id
|
Payment |
setIntent(String intent)
Setter for intent
|
Payment |
setLinks(List<Links> links)
Setter for links
|
Payment |
setPayee(Payee payee) |
Payment |
setPayer(Payer payer)
Setter for payer
|
Payment |
setRedirectUrls(RedirectUrls redirectUrls)
Setter for redirectUrls
|
Payment |
setState(String state)
Setter for state
|
Payment |
setTransactions(List<Transaction> transactions)
Setter for transactions
|
Payment |
setUpdateTime(String updateTime)
Setter for updateTime
|
void |
update(APIContext apiContext,
List<Patch> patchRequest)
Partially update a payment resource by by passing the payment_id in the request URI.
|
void |
update(String accessToken,
List<Patch> patchRequest)
Partially update a payment resource by by passing the payment_id in the request URI.
|
configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientID, getClientSecret, getConfigurations, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaultequals, hashCode, toJSON, toStringpublic Payee getPayee()
public String getId()
public String getCreateTime()
public String getUpdateTime()
public String getIntent()
public String getExperienceProfileId()
public void setExperienceProfileId(String experienceProfileId)
public Payer getPayer()
public Object getCart()
public Payment setTransactions(List<Transaction> transactions)
public List<Transaction> getTransactions()
public String getState()
public Payment setRedirectUrls(RedirectUrls redirectUrls)
public RedirectUrls getRedirectUrls()
public Payment create(String accessToken) throws PayPalRESTException
accessToken - Access Token used for the API call.PayPalRESTExceptionpublic Payment create(APIContext apiContext) throws PayPalRESTException
apiContext - APIContext used for the API call.PayPalRESTExceptionpublic static Payment get(String accessToken, String paymentId) throws PayPalRESTException
accessToken - Access Token used for the API call.paymentId - StringPayPalRESTExceptionpublic static Payment get(APIContext apiContext, String paymentId) throws PayPalRESTException
apiContext - APIContext used for the API call.paymentId - StringPayPalRESTExceptionpublic Payment execute(String accessToken, PaymentExecution paymentExecution) throws PayPalRESTException
accessToken - Access Token used for the API call.paymentExecution - PaymentExecutionPayPalRESTExceptionpublic Payment execute(APIContext apiContext, PaymentExecution paymentExecution) throws PayPalRESTException
apiContext - APIContext used for the API call.paymentExecution - PaymentExecutionPayPalRESTExceptionpublic void update(String accessToken, List<Patch> patchRequest) throws PayPalRESTException
accessToken - Access Token used for the API call.patchRequest - ListPayPalRESTExceptionpublic void update(APIContext apiContext, List<Patch> patchRequest) throws PayPalRESTException
apiContext - APIContext used for the API call.patchRequest - ListPayPalRESTExceptionpublic static PaymentHistory list(String accessToken, Map<String,String> containerMap) throws PayPalRESTException
accessToken - Access Token used for the API call.containerMap - MapPayPalRESTExceptionpublic static PaymentHistory list(APIContext apiContext, Map<String,String> containerMap) throws PayPalRESTException
apiContext - APIContext used for the API call.containerMap - MapPayPalRESTExceptionCopyright © 2015. All Rights Reserved.