|
|||||||||
| 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,
List<Transaction> transactions)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
Payment |
create(com.paypal.core.rest.APIContext apiContext)
Creates (and processes) a new Payment Resource. |
Payment |
create(String accessToken)
Creates (and processes) a new Payment Resource. |
Payment |
execute(com.paypal.core.rest.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 PaymentHistory |
get(com.paypal.core.rest.APIContext apiContext,
Map<String,String> containerMap)
Deprecated. |
static PaymentHistory |
get(com.paypal.core.rest.APIContext apiContext,
com.paypal.core.rest.QueryParameters queryParameters)
Deprecated. |
static Payment |
get(com.paypal.core.rest.APIContext apiContext,
String paymentId)
Obtain the Payment resource for the given identifier. |
static PaymentHistory |
get(String accessToken,
Map<String,String> containerMap)
Deprecated. |
static PaymentHistory |
get(String accessToken,
com.paypal.core.rest.QueryParameters queryParameters)
Deprecated. |
static Payment |
get(String accessToken,
String paymentId)
Obtain the Payment resource for the given identifier. |
String |
getCreateTime()
Getter for createTime |
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 void |
initConfig(File file)
Initialize using a File(Properties file) |
static void |
initConfig(InputStream is)
Initialize using InputStream(of a Properties file) |
static void |
initConfig(Properties properties)
Initialize using Properties |
static PaymentHistory |
list(com.paypal.core.rest.APIContext apiContext,
Map<String,String> containerMap)
Retrieves a list of Payment resources. |
static PaymentHistory |
list(com.paypal.core.rest.APIContext apiContext,
com.paypal.core.rest.QueryParameters queryParameters)
Deprecated. |
static PaymentHistory |
list(String accessToken,
Map<String,String> containerMap)
Retrieves a list of Payment resources. |
static PaymentHistory |
list(String accessToken,
com.paypal.core.rest.QueryParameters queryParameters)
Deprecated. |
Payment |
setCreateTime(String createTime)
Setter for createTime |
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,
List<Transaction> transactions)
| Method Detail |
|---|
public static String getLastRequest()
public static String getLastResponse()
public static void initConfig(InputStream is)
throws com.paypal.core.rest.PayPalRESTException
is - InputStream
com.paypal.core.rest.PayPalRESTException
public static void initConfig(File file)
throws com.paypal.core.rest.PayPalRESTException
file - File object of a properties entity
com.paypal.core.rest.PayPalRESTExceptionpublic static void initConfig(Properties properties)
properties - Properties objectpublic 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 Payment setPayer(Payer payer)
public Payer getPayer()
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 com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.
com.paypal.core.rest.PayPalRESTException
public Payment create(com.paypal.core.rest.APIContext apiContext)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.
com.paypal.core.rest.PayPalRESTException
public static Payment get(String accessToken,
String paymentId)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.paymentId - String
com.paypal.core.rest.PayPalRESTException
public static Payment get(com.paypal.core.rest.APIContext apiContext,
String paymentId)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.paymentId - String
com.paypal.core.rest.PayPalRESTException
public Payment execute(String accessToken,
PaymentExecution paymentExecution)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.paymentExecution - PaymentExecution
com.paypal.core.rest.PayPalRESTException
public Payment execute(com.paypal.core.rest.APIContext apiContext,
PaymentExecution paymentExecution)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.paymentExecution - PaymentExecution
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory list(String accessToken,
Map<String,String> containerMap)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.containerMap - Map containing the query strings with the
following values as keys:
count,
start_id,
start_index,
start_time,
end_time,
payee_id,
sort_by,
sort_order,
All other keys in the map are ignored by the SDK
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory list(com.paypal.core.rest.APIContext apiContext,
Map<String,String> containerMap)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.containerMap - Map containing the query strings with the
following values as keys:
count,
start_id,
start_index,
start_time,
end_time,
payee_id,
sort_by,
sort_order,
All other keys in the map are ignored by the SDK
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory get(String accessToken,
Map<String,String> containerMap)
throws com.paypal.core.rest.PayPalRESTException
accessToken - AccessToken used for the API callcontainerMap - Map containing the query strings with the
following values as keys:
count,
start_id,
start_index,
start_time,
end_time,
payee_id,
sort_by,
sort_order,
All other keys in the map are ignored by the SDK
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory get(com.paypal.core.rest.APIContext apiContext,
Map<String,String> containerMap)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext to be used for the call.containerMap - Map containing the query strings with the
following values as keys:
count,
start_id,
start_index,
start_time,
end_time,
payee_id,
sort_by,
sort_order,
All other keys in the map are ignored by the SDK
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory get(String accessToken,
com.paypal.core.rest.QueryParameters queryParameters)
throws com.paypal.core.rest.PayPalRESTException
accessToken - AccessToken used for the API callqueryParameters - Container for query strings
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory get(com.paypal.core.rest.APIContext apiContext,
com.paypal.core.rest.QueryParameters queryParameters)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext to be used for the call.queryParameters - Container for query strings
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory list(String accessToken,
com.paypal.core.rest.QueryParameters queryParameters)
throws com.paypal.core.rest.PayPalRESTException
com.paypal.core.rest.PayPalRESTException
public static PaymentHistory list(com.paypal.core.rest.APIContext apiContext,
com.paypal.core.rest.QueryParameters queryParameters)
throws com.paypal.core.rest.PayPalRESTException
com.paypal.core.rest.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 | ||||||||