|
||||||||||
| 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(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(APIContext apiContext)
Voids (cancels) an Authorization. |
Authorization |
doVoid(String accessToken)
Voids (cancels) an Authorization. |
static Authorization |
get(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 |
getPaymentMode()
Getter for paymentMode |
String |
getProtectionEligibility()
Getter for protectionEligibility |
String |
getProtectionEligibilityType()
Getter for protectionEligibilityType |
String |
getState()
Getter for state |
String |
getUpdateTime()
Getter for updateTime |
String |
getValidUntil()
Getter for validUntil |
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 |
Authorization |
reauthorize(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 |
setPaymentMode(String paymentMode)
Setter for paymentMode |
Authorization |
setProtectionEligibility(String protectionEligibility)
Setter for protectionEligibility |
Authorization |
setProtectionEligibilityType(String protectionEligibilityType)
Setter for protectionEligibilityType |
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 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 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 setPaymentMode(String paymentMode)
public String getPaymentMode()
public Authorization setState(String state)
public String getState()
public Authorization setProtectionEligibility(String protectionEligibility)
public String getProtectionEligibility()
public Authorization setProtectionEligibilityType(String protectionEligibilityType)
public String getProtectionEligibilityType()
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 PayPalRESTException
accessToken - Access Token used for the API call.authorizationId - String
PayPalRESTException
public static Authorization get(APIContext apiContext,
String authorizationId)
throws PayPalRESTException
apiContext - APIContext used for the API call.authorizationId - String
PayPalRESTException
public Capture capture(String accessToken,
Capture capture)
throws PayPalRESTException
accessToken - Access Token used for the API call.capture - Capture
PayPalRESTException
public Capture capture(APIContext apiContext,
Capture capture)
throws PayPalRESTException
apiContext - APIContext used for the API call.capture - Capture
PayPalRESTException
public Authorization doVoid(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public Authorization doVoid(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
PayPalRESTException
public Authorization reauthorize(String accessToken)
throws PayPalRESTException
accessToken - Access Token used for the API call.
PayPalRESTException
public Authorization reauthorize(APIContext apiContext)
throws PayPalRESTException
apiContext - APIContext used for the API call.
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 | |||||||||