Interface CalculateExchanges


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

    • post

      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      Returns:
      calculateExchange operation result.
      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

      CalculateExchangeOperationResultResponse post(CalculateExchangeRequest body, com.azure.core.util.Context context)
      Calculates the refund amounts and price of the new purchases. Calculates price for exchanging `Reservations` if there are no policy errors.
      Parameters:
      body - Request containing purchases and refunds that need to be executed.
      context - The context to associate with this operation.
      Returns:
      calculateExchange operation result.
      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.