com.paypal.api.payments
Class Refund

java.lang.Object
  extended by com.paypal.api.payments.Refund

public class Refund
extends Object


Constructor Summary
Refund()
          Default Constructor
 
Method Summary
static Refund get(APIContext apiContext, String refundId)
          Obtain the Refund transaction resource for the given identifier.
static Refund get(String accessToken, String refundId)
          Obtain the Refund transaction resource for the given identifier.
 Amount getAmount()
          Getter for amount
 String getCaptureId()
          Getter for captureId
 String getCreateTime()
          Getter for createTime
 String getDescription()
          Getter for description
 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 getSaleId()
          Getter for saleId
 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 setAmount(Amount amount)
          Setter for amount
 Refund setCaptureId(String captureId)
          Setter for captureId
 Refund setCreateTime(String createTime)
          Setter for createTime
 Refund setDescription(String description)
          Setter for description
 Refund setId(String id)
          Setter for id
 Refund setLinks(List<Links> links)
          Setter for links
 Refund setParentPayment(String parentPayment)
          Setter for parentPayment
 Refund setSaleId(String saleId)
          Setter for saleId
 Refund setState(String state)
          Setter for state
 Refund 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

Refund

public Refund()
Default Constructor

Method Detail

getLastRequest

public static String getLastRequest()
Returns the last request sent to the Service

Returns:
Last request sent to the server

getLastResponse

public static String getLastResponse()
Returns the last response returned by the Service

Returns:
Last response got from the Service

initConfig

public static OAuthTokenCredential initConfig(InputStream is)
                                       throws PayPalRESTException
Initialize using InputStream(of a Properties file)

Parameters:
is - InputStream
Returns:
OAuthTokenCredential instance using client ID and client secret loaded from configuration.
Throws:
PayPalRESTException

initConfig

public static OAuthTokenCredential initConfig(File file)
                                       throws PayPalRESTException
Initialize using a File(Properties file)

Parameters:
file - File object of a properties entity
Returns:
OAuthTokenCredential instance using client ID and client secret loaded from configuration.
Throws:
PayPalRESTException

initConfig

public static OAuthTokenCredential initConfig(Properties properties)
Initialize using Properties

Parameters:
properties - Properties object
Returns:
OAuthTokenCredential instance using client ID and client secret loaded from configuration.

setId

public Refund setId(String id)
Setter for id


getId

public String getId()
Getter for id


setCreateTime

public Refund setCreateTime(String createTime)
Setter for createTime


getCreateTime

public String getCreateTime()
Getter for createTime


setUpdateTime

public Refund setUpdateTime(String updateTime)
Setter for updateTime


getUpdateTime

public String getUpdateTime()
Getter for updateTime


setAmount

public Refund setAmount(Amount amount)
Setter for amount


getAmount

public Amount getAmount()
Getter for amount


setState

public Refund setState(String state)
Setter for state


getState

public String getState()
Getter for state


setSaleId

public Refund setSaleId(String saleId)
Setter for saleId


getSaleId

public String getSaleId()
Getter for saleId


setCaptureId

public Refund setCaptureId(String captureId)
Setter for captureId


getCaptureId

public String getCaptureId()
Getter for captureId


setParentPayment

public Refund setParentPayment(String parentPayment)
Setter for parentPayment


getParentPayment

public String getParentPayment()
Getter for parentPayment


setDescription

public Refund setDescription(String description)
Setter for description


getDescription

public String getDescription()
Getter for description


setLinks

public Refund setLinks(List<Links> links)
Setter for links


getLinks

public List<Links> getLinks()
Getter for links


get

public static Refund get(String accessToken,
                         String refundId)
                  throws PayPalRESTException
Obtain the Refund transaction resource for the given identifier.

Parameters:
accessToken - Access Token used for the API call.
refundId - String
Returns:
Refund
Throws:
PayPalRESTException

get

public static Refund get(APIContext apiContext,
                         String refundId)
                  throws PayPalRESTException
Obtain the Refund transaction resource for the given identifier.

Parameters:
apiContext - APIContext used for the API call.
refundId - String
Returns:
Refund
Throws:
PayPalRESTException

toJSON

public String toJSON()
Returns a JSON string corresponding to object state

Returns:
JSON representation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All Rights Reserved.