using Sepehr.ApiGateway.Partners.Contracts.Flight.Refund.V3.GetPenalty.RequestModel;
using Sepehr.ApiGateway.Partners.Contracts.Flight.Refund.V3.GetPenalty.ResponseModel;
using SepehrFlightApiSampleClient.BuiltinTypeExtensions;

namespace SepehrFlightApiSampleClient.Refund.WebApi
{
    public class GetPenaltyV3Api
    {
        public static Response Post(string url, Request request)
        {
            var response = HttpClientHelper.Post(
                    $"{url}/api/Partners/Flight/Refund/V3/GetPenalty",
                    request.SerializeToJson());

            return response.DeserializeFromJson<Response>();
        }
    }
}
