using Sepehr.ApiGateway.Partners.Contracts.Flight.RetrieveBooking.V3.GetStatus.RequestModel;
using Sepehr.ApiGateway.Partners.Contracts.Flight.RetrieveBooking.V3.GetStatus.ResponseModel;
using SepehrFlightApiSampleClient.BuiltinTypeExtensions;

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

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