using Sepehr.ApiGateway.Partners.Contracts.Generic.V7.CurrentBalance.RequestModel;
using Sepehr.ApiGateway.Partners.Contracts.Generic.V7.CurrentBalance.ResponseModel;
using SepehrFlightApiSampleClient.BuiltinTypeExtensions;

namespace SepehrFlightApiSampleClient.Generic.WebApi
{
    public class CurrentBalanaceApi
    {
        public static Response Post(string url, Request request)
        {
            var response = HttpClientHelper.Post(
                $"{url}/api/Partners/Generic/V7/CurrentBalance",
                request.SerializeToJson());

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