src/test/java/com/squareup/connect/api/RefundsApiTest.java
@Test
    public void refundPaymentTest() throws ApiException {
        RefundPaymentRequest body = null;
        RefundPaymentResponse response = api.refundPayment(body);

        // TODO: test validations
    }
/**
     * RefundPayment
     *
     * Refunds a payment. You can refund the entire payment amount or a  portion of it. For more information, see  [Payments and Refunds Overview](/payments-api/overview).
     *
     * @throws ApiException
     *          if the Api call fails
     */
RefundPayment
Refunds a payment. You can refund the entire payment amount or a  portion of it. For more information, see  [Payments and Refunds Overview](/payments-api/overview).

@throws ApiException
if the Api call fails
RefundPayment Refunds a payment . You can refund the entire payment amount or a portion of it . For more information see [ Payments and Refunds Overview ] ( / payments - api / overview ) . @throws ApiException if the Api call fails
@Test
    public void refundPaymentTest() throws ApiException {
        RefundPaymentRequest body = null;
        RefundPaymentResponse response = api.refundPayment(body);
    }
@ Test public void refundPaymentTest ( ) throws ApiException { RefundPaymentRequest body = null ; RefundPaymentResponse response = api . refundPayment ( body ) ; }
RefundPayment
 Refunds a payment.
RefundPayment Refunds a payment .
// TODO: test validations