Class CapturePreAuthResponse
java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.CapturePreAuthResponse
Response object for a payment capture request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the field valueGet the field valuelongGet the field valuevoidsetAmount(long amount) Set the field valuevoidsetPaymentId(String paymentId) Set the field valuevoidsetTipAmount(long tipAmount) Set the field valueMethods inherited from class com.clover.remote.client.messages.BaseResponse
getMessage, getReason, getResult, isSuccess, setMessage, setReason, setResult, setSuccess
-
Constructor Details
-
CapturePreAuthResponse
Constructor- Parameters:
success- If true then the requested operation succeededresult- The result of the requested operation
-
-
Method Details
-
getPaymentId
Get the field value- Returns:
- ID of the pre-auth payment being captured
-
setPaymentId
Set the field value- Parameters:
paymentId- Id of the pre-auth payment being captured
-
getAmount
Get the field value- Returns:
- the base amount of the capture
-
setAmount
public void setAmount(long amount) Set the field value- Parameters:
amount- the base amount of the capture
-
getTipAmount
public long getTipAmount()Get the field value- Returns:
- additional tip amount for the capture
-
setTipAmount
public void setTipAmount(long tipAmount) Set the field value- Parameters:
tipAmount- additional tip amount for the capture
-