Exemple #1
0
        public void Get_ListaBoletos()
        {
            var inter = new BancoInter.ServiceAsync(StaticParams._numContaCorrente, StaticParams._caminhoCertificado, StaticParams._password);

            var filtro = new FiltroBoleto();

            filtro.dataInicial = new DateTime(2020, 11, 1, 0, 0, 0);
            filtro.dataFinal   = new DateTime(2020, 12, 1, 23, 59, 59);

            var resp = inter.ListaBoletos(filtro);

            var send = resp.Result != null;

            Assert.IsTrue(send);

            var jsonResult = JsonConvert.SerializeObject(resp.Result);

            Console.WriteLine(jsonResult);
        }
Exemple #2
0
        public virtual FiltroBoleto.Response ListaBoletos(FiltroBoleto filtroBoleto)
        {
            var url = GetUrl($"?{QueryString<FiltroBoleto>(filtroBoleto)}");

            return(Get <FiltroBoleto.Response>(url));
        }
Exemple #3
0
        public virtual async Task <FiltroBoleto.Response> ListaBoletos(FiltroBoleto filtroBoleto)
        {
            var url = GetUrl($"?{QueryString<FiltroBoleto>(filtroBoleto)}");

            return(await Get <FiltroBoleto.Response>(url));
        }