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.
|
List<BillingAgreementToken> |
getBillingAgreementTokens()
Getter for billingAgreementTokens
|
String |
getCart()
Getter for cart
|
String |
getCreateTime()
Getter for createTime
|
CreditFinancingOffered |
getCreditFinancingOffered()
Getter for creditFinancingOffered
|
String |
getExperienceProfileId()
Getter for experienceProfileId
|
List<Error> |
getFailedTransactions()
Getter for failedTransactions
|
String |
getFailureReason()
Getter for failureReason
|
String |
getId()
Getter for id
|
String |
getIntent()
Getter for intent
|
static String |
getLastRequest()
Returns the last request sent to the Service
|
static String |
getLastResponse()
Returns the last response returned by the Service
|
List<Links> |
getLinks()
Getter for links
|
String |
getNoteToPayer()
Getter for noteToPayer
|
Payee |
getPayee()
Getter for payee
|
Payer |
getPayer()
Getter for payer
|
PaymentInstruction |
getPaymentInstruction()
Getter for paymentInstruction
|
PotentialPayerInfo |
getPotentialPayerInfo()
Getter for potentialPayerInfo
|
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 |
setBillingAgreementTokens(List<BillingAgreementToken> billingAgreementTokens)
Setter for billingAgreementTokens
|
Payment |
setCart(String cart)
Setter for cart
|
Payment |
setCreateTime(String createTime)
Setter for createTime
|
Payment |
setCreditFinancingOffered(CreditFinancingOffered creditFinancingOffered)
Setter for creditFinancingOffered
|
Payment |
setExperienceProfileId(String experienceProfileId)
Setter for experienceProfileId
|
Payment |
setFailedTransactions(List<Error> failedTransactions)
Setter for failedTransactions
|
Payment |
setFailureReason(String failureReason)
Setter for failureReason
|
Payment |
setId(String id)
Setter for id
|
Payment |
setIntent(String intent)
Setter for intent
|
Payment |
setLinks(List<Links> links)
Setter for links
|
Payment |
setNoteToPayer(String noteToPayer)
Setter for noteToPayer
|
Payment |
setPayee(Payee payee)
Setter for payee
|
Payment |
setPayer(Payer payer)
Setter for payer
|
Payment |
setPaymentInstruction(PaymentInstruction paymentInstruction)
Setter for paymentInstruction
|
Payment |
setPotentialPayerInfo(PotentialPayerInfo potentialPayerInfo)
Setter for potentialPayerInfo
|
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, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefault
equals, hashCode, toJSON, toString
public static String getLastRequest()
public static String getLastResponse()
public String getId()
public String getIntent()
public Payer getPayer()
public Payment setPotentialPayerInfo(PotentialPayerInfo potentialPayerInfo)
public PotentialPayerInfo getPotentialPayerInfo()
public Payee getPayee()
public String getCart()
public Payment setTransactions(List<Transaction> transactions)
public List<Transaction> getTransactions()
public Payment setFailedTransactions(List<Error> failedTransactions)
public Payment setBillingAgreementTokens(List<BillingAgreementToken> billingAgreementTokens)
public List<BillingAgreementToken> getBillingAgreementTokens()
public Payment setCreditFinancingOffered(CreditFinancingOffered creditFinancingOffered)
public CreditFinancingOffered getCreditFinancingOffered()
public Payment setPaymentInstruction(PaymentInstruction paymentInstruction)
public PaymentInstruction getPaymentInstruction()
public String getState()
public Payment setExperienceProfileId(String experienceProfileId)
public String getExperienceProfileId()
public String getNoteToPayer()
public Payment setRedirectUrls(RedirectUrls redirectUrls)
public RedirectUrls getRedirectUrls()
public String getFailureReason()
public String getCreateTime()
public String getUpdateTime()
public Payment create(String accessToken) throws PayPalRESTException
accessToken
- Access Token used for the API call.PayPalRESTException
public Payment create(APIContext apiContext) throws PayPalRESTException
apiContext
- APIContext
used for the API call.PayPalRESTException
public static Payment get(String accessToken, String paymentId) throws PayPalRESTException
accessToken
- Access Token used for the API call.paymentId
- StringPayPalRESTException
public static Payment get(APIContext apiContext, String paymentId) throws PayPalRESTException
apiContext
- APIContext
used for the API call.paymentId
- StringPayPalRESTException
public Payment execute(String accessToken, PaymentExecution paymentExecution) throws PayPalRESTException
accessToken
- Access Token used for the API call.paymentExecution
- PaymentExecutionPayPalRESTException
public Payment execute(APIContext apiContext, PaymentExecution paymentExecution) throws PayPalRESTException
apiContext
- APIContext
used for the API call.paymentExecution
- PaymentExecutionPayPalRESTException
public void update(String accessToken, List<Patch> patchRequest) throws PayPalRESTException
accessToken
- Access Token used for the API call.patchRequest
- ListPayPalRESTException
public void update(APIContext apiContext, List<Patch> patchRequest) throws PayPalRESTException
apiContext
- APIContext
used for the API call.patchRequest
- ListPayPalRESTException
public static PaymentHistory list(String accessToken, Map<String,String> containerMap) throws PayPalRESTException
accessToken
- Access Token used for the API call.containerMap
- MapPayPalRESTException
public static PaymentHistory list(APIContext apiContext, Map<String,String> containerMap) throws PayPalRESTException
apiContext
- APIContext
used for the API call.containerMap
- MapPayPalRESTException
Copyright © 2015. All Rights Reserved.