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 GetPenaltyApi
    {
        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>();
        }
    }
}
