|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Payment
public class Payment
| Constructor Summary | |
|---|---|
Payment()
Default Constructor |
|
Payment(String intent,
Payer payer)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
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 |
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 |
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 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 |
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 |
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 |
String |
toJSON()
Returns a JSON string corresponding to object state |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Payment()
public Payment(String intent,
Payer payer)
| 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 Payment setId(String id)
public String getId()
public Payment setCreateTime(String createTime)
public String getCreateTime()
public Payment setUpdateTime(String updateTime)
public String getUpdateTime()
public Payment setIntent(String intent)
public String getIntent()
public String getExperienceProfileId()
public void setExperienceProfileId(String experienceProfileId)
public Payment setPayer(Payer payer)
public Payer getPayer()
public Payment setCart(Object cart)
public Object getCart()
public Payment setTransactions(List<Transaction> transactions)
public List<Transaction> getTransactions()
public Payment setState(String state)
public String getState()
public Payment setRedirectUrls(RedirectUrls redirectUrls)
public RedirectUrls getRedirectUrls()
public Payment setLinks(List<Links> links)
public List<Links> getLinks()
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 - String
PayPalRESTException
public static Payment get(APIContext apiContext,
String paymentId)
throws PayPalRESTException
apiContext - APIContext used for the API call.paymentId - String
PayPalRESTException
public Payment execute(String accessToken,
PaymentExecution paymentExecution)
throws PayPalRESTException
accessToken - Access Token used for the API call.paymentExecution - PaymentExecution
PayPalRESTException
public Payment execute(APIContext apiContext,
PaymentExecution paymentExecution)
throws PayPalRESTException
apiContext - APIContext used for the API call.paymentExecution - PaymentExecution
PayPalRESTException
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 - MapPayPalRESTExceptionpublic 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 | |||||||||