Class PaymentResponse
java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.PaymentResponse
- Direct Known Subclasses:
AuthResponse,IncrementPreauthResponse,PreAuthResponse,SaleResponse,VoidPaymentResponse
Base reponse use for callbacks that contain
payments. Sale, Auth & PreAuth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.clover.sdk.v3.payments.PaymentGet the field valuecom.clover.common2.Signature2Get the field valuebooleanisAuth()Check to see if the payment was processed as an authbooleanCheck to see if the payment was processed as a pre-authbooleanisSale()Check to see if the payment was processed as a salevoidsetPayment(com.clover.sdk.v3.payments.Payment payment) Set the field valuevoidsetSignature(com.clover.common2.Signature2 signature) Set the field valueMethods inherited from class com.clover.remote.client.messages.BaseResponse
getMessage, getReason, getResult, isSuccess, setMessage, setReason, setResult, setSuccess
-
Constructor Details
-
PaymentResponse
Constructor- Parameters:
success- If true then the requested operation succeededresult- The result of the requested operation
-
-
Method Details
-
setPayment
public void setPayment(com.clover.sdk.v3.payments.Payment payment) Set the field value- Parameters:
payment- The payment from the sale
-
getPayment
public com.clover.sdk.v3.payments.Payment getPayment()Get the field value- Returns:
- The payment from the sale
-
isSale
public boolean isSale()Check to see if the payment was processed as a sale- Returns:
- true if processed as a sale
-
isAuth
public boolean isAuth()Check to see if the payment was processed as an auth- Returns:
- true if processed as an auth
-
isPreAuth
public boolean isPreAuth()Check to see if the payment was processed as a pre-auth- Returns:
- true if processed as a pre-auth
-
setSignature
public void setSignature(com.clover.common2.Signature2 signature) Set the field value- Parameters:
signature- signature collected for the payment
-
getSignature
public com.clover.common2.Signature2 getSignature()Get the field value- Returns:
- signature collected for the payment
-