|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.paypal.api.payments.Authorization
public class Authorization
| Constructor Summary | |
|---|---|
Authorization()
Default Constructor |
|
| Method Summary | |
|---|---|
Capture |
capture(com.paypal.core.rest.APIContext apiContext,
Capture capture)
Creates (and processes) a new Capture Transaction added as a related resource. |
Capture |
capture(String accessToken,
Capture capture)
Creates (and processes) a new Capture Transaction added as a related resource. |
Authorization |
doVoid(com.paypal.core.rest.APIContext apiContext)
Voids (cancels) an Authorization. |
Authorization |
doVoid(String accessToken)
Voids (cancels) an Authorization. |
static Authorization |
get(com.paypal.core.rest.APIContext apiContext,
String authorizationId)
Obtain the Authorization transaction resource for the given identifier. |
static Authorization |
get(String accessToken,
String authorizationId)
Obtain the Authorization transaction resource for the given identifier. |
Amount |
getAmount()
Getter for amount |
String |
getCreateTime()
Getter for createTime |
String |
getId()
Getter for id |
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 |
getParentPayment()
Getter for parentPayment |
String |
getState()
Getter for state |
String |
getUpdateTime()
Getter for updateTime |
String |
getValidUntil()
Getter for validUntil |
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 |
Authorization |
reauthorize(com.paypal.core.rest.APIContext apiContext)
Reauthorizes an expired Authorization. |
Authorization |
reauthorize(String accessToken)
Reauthorizes an expired Authorization. |
Authorization |
setAmount(Amount amount)
Setter for amount |
Authorization |
setCreateTime(String createTime)
Setter for createTime |
Authorization |
setId(String id)
Setter for id |
Authorization |
setLinks(List<Links> links)
Setter for links |
Authorization |
setParentPayment(String parentPayment)
Setter for parentPayment |
Authorization |
setState(String state)
Setter for state |
Authorization |
setUpdateTime(String updateTime)
Setter for updateTime |
Authorization |
setValidUntil(String validUntil)
Setter for validUntil |
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 Authorization()
| 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 Authorization setId(String id)
public String getId()
public Authorization setCreateTime(String createTime)
public String getCreateTime()
public Authorization setUpdateTime(String updateTime)
public String getUpdateTime()
public Authorization setAmount(Amount amount)
public Amount getAmount()
public Authorization setState(String state)
public String getState()
public Authorization setParentPayment(String parentPayment)
public String getParentPayment()
public Authorization setValidUntil(String validUntil)
public String getValidUntil()
public Authorization setLinks(List<Links> links)
public List<Links> getLinks()
public static Authorization get(String accessToken,
String authorizationId)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.authorizationId - String
com.paypal.core.rest.PayPalRESTException
public static Authorization get(com.paypal.core.rest.APIContext apiContext,
String authorizationId)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.authorizationId - String
com.paypal.core.rest.PayPalRESTException
public Capture capture(String accessToken,
Capture capture)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.capture - Capture
com.paypal.core.rest.PayPalRESTException
public Capture capture(com.paypal.core.rest.APIContext apiContext,
Capture capture)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.capture - Capture
com.paypal.core.rest.PayPalRESTException
public Authorization doVoid(String accessToken)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.
com.paypal.core.rest.PayPalRESTException
public Authorization doVoid(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 Authorization reauthorize(String accessToken)
throws com.paypal.core.rest.PayPalRESTException
accessToken - Access Token used for the API call.
com.paypal.core.rest.PayPalRESTException
public Authorization reauthorize(com.paypal.core.rest.APIContext apiContext)
throws com.paypal.core.rest.PayPalRESTException
apiContext - APIContext used for the API call.
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 | ||||||||