Interface CalculateRefunds


public interface CalculateRefunds
Resource collection API of CalculateRefunds.
  • Method Details

    • postWithResponse

      com.azure.core.http.rest.Response<CalculateRefundResponse> postWithResponse(String reservationOrderId, CalculateRefundRequest body, com.azure.core.util.Context context)
      Calculate the refund amount of a reservation order. Calculate price for returning `Reservations` if there are no policy errors.
      Parameters:
      reservationOrderId - Order Id of the reservation.
      body - Information needed for calculating refund of a reservation.
      context - The context to associate with this operation.
      Returns:
      the response of calculate refund containing refund information of reservation along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • post

      CalculateRefundResponse post(String reservationOrderId, CalculateRefundRequest body)
      Calculate the refund amount of a reservation order. Calculate price for returning `Reservations` if there are no policy errors.
      Parameters:
      reservationOrderId - Order Id of the reservation.
      body - Information needed for calculating refund of a reservation.
      Returns:
      the response of calculate refund containing refund information of reservation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.