Interface CalculateRefundsClient
public interface CalculateRefundsClient
An instance of this class provides access to all the operations defined in CalculateRefundsClient.
-
Method Summary
Modifier and TypeMethodDescriptionpost
(String reservationOrderId, CalculateRefundRequest body) Calculate the refund amount of a reservation order.com.azure.core.http.rest.Response
<CalculateRefundResponseInner> postWithResponse
(String reservationOrderId, CalculateRefundRequest body, com.azure.core.util.Context context) Calculate the refund amount of a reservation order.
-
Method Details
-
postWithResponse
com.azure.core.http.rest.Response<CalculateRefundResponseInner> 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
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.
-