|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.api.payments.Capture
public class Capture
| Constructor Summary | |
|---|---|
Capture()
Default Constructor |
|
Capture(Amount amount)
Parameterized Constructor |
|
| Method Summary | |
|---|---|
static Capture |
get(APIContext apiContext,
String captureId)
Obtain the Capture transaction resource for the given identifier. |
static Capture |
get(String accessToken,
String captureId)
Obtain the Capture transaction resource for the given identifier. |
Amount |
getAmount()
Getter for amount |
String |
getCreateTime()
Getter for createTime |
String |
getId()
Getter for id |
Boolean |
getIsFinalCapture()
Getter for isFinalCapture |
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 |
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 |
Refund |
refund(APIContext apiContext,
Refund refund)
Creates (and processes) a new Refund Transaction added as a related resource. |
Refund |
refund(String accessToken,
Refund refund)
Creates (and processes) a new Refund Transaction added as a related resource. |
Capture |
setAmount(Amount amount)
Setter for amount |
Capture |
setCreateTime(String createTime)
Setter for createTime |
Capture |
setId(String id)
Setter for id |
Capture |
setIsFinalCapture(Boolean isFinalCapture)
Setter for isFinalCapture |
Capture |
setLinks(List<Links> links)
Setter for links |
Capture |
setParentPayment(String parentPayment)
Setter for parentPayment |
Capture |
setState(String state)
Setter for state |
Capture |
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 Capture()
public Capture(Amount amount)
| 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 Capture setId(String id)
public String getId()
public Capture setCreateTime(String createTime)
public String getCreateTime()
public Capture setUpdateTime(String updateTime)
public String getUpdateTime()
public Capture setAmount(Amount amount)
public Amount getAmount()
public Capture setIsFinalCapture(Boolean isFinalCapture)
public Boolean getIsFinalCapture()
public Capture setState(String state)
public String getState()
public Capture setParentPayment(String parentPayment)
public String getParentPayment()
public Capture setLinks(List<Links> links)
public List<Links> getLinks()
public static Capture get(String accessToken,
String captureId)
throws PayPalRESTException
accessToken - Access Token used for the API call.captureId - String
PayPalRESTException
public static Capture get(APIContext apiContext,
String captureId)
throws PayPalRESTException
apiContext - APIContext used for the API call.captureId - String
PayPalRESTException
public Refund refund(String accessToken,
Refund refund)
throws PayPalRESTException
accessToken - Access Token used for the API call.refund - Refund
PayPalRESTException
public Refund refund(APIContext apiContext,
Refund refund)
throws PayPalRESTException
apiContext - APIContext used for the API call.refund - Refund
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 | |||||||||