Class RefundPaymentResponse

java.lang.Object
com.clover.remote.client.messages.BaseResponse
com.clover.remote.client.messages.RefundPaymentResponse
Direct Known Subclasses:
VoidPaymentRefundResponse

public class RefundPaymentResponse extends BaseResponse
Response object for a request to refund a payment, either partially or fully
  • Constructor Details

    • RefundPaymentResponse

      public RefundPaymentResponse(boolean success, ResultCode result)
      Constructor
      Parameters:
      success - If true then the requested operation succeeded
      result - The result of the requested operation
  • Method Details

    • getOrderId

      public String getOrderId()
      Get the field value
      Returns:
      unique identifier of the order to be refunded
    • setOrderId

      public void setOrderId(String orderId)
      Set the field value
      Parameters:
      orderId - unique identifier of the order to be refunded
    • getPaymentId

      public String getPaymentId()
      Get the field value
      Returns:
      unique identifier of the payment to be refunded
    • setPaymentId

      public void setPaymentId(String paymentId)
      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