Class RefundPaymentResponse
java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.RefundPaymentResponse
- Direct Known Subclasses:
VoidPaymentRefundResponse
Response object for a request to refund a payment, either partially or fully
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the field valueGet the field valuecom.clover.sdk.v3.payments.RefundGet the field valuevoidsetOrderId(String orderId) Set the field valuevoidsetPaymentId(String paymentId) Set the field valuevoidsetRefund(com.clover.sdk.v3.payments.Refund refund) Set the field valueMethods inherited from class com.clover.remote.client.messages.BaseResponse
getMessage, getReason, getResult, isSuccess, setMessage, setReason, setResult, setSuccess
-
Constructor Details
-
RefundPaymentResponse
Constructor- Parameters:
success- If true then the requested operation succeededresult- The result of the requested operation
-
-
Method Details
-
getOrderId
Get the field value- Returns:
- unique identifier of the order to be refunded
-
setOrderId
Set the field value- Parameters:
orderId- unique identifier of the order to be refunded
-
getPaymentId
Get the field value- Returns:
- unique identifier of the payment to be refunded
-
setPaymentId
Set the field value- Parameters:
paymentId- unique identifier of the payment to be refunded
-
getRefund
public com.clover.sdk.v3.payments.Refund getRefund()Get the field value- Returns:
- The actual refund made
-
setRefund
public void setRefund(com.clover.sdk.v3.payments.Refund refund) Set the field value- Parameters:
refund- The actual refund made
-