Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro no README, resposta da cobrança #1

Open
dekonunes opened this issue Apr 16, 2018 · 0 comments
Open

Erro no README, resposta da cobrança #1

dekonunes opened this issue Apr 16, 2018 · 0 comments

Comments

@dekonunes
Copy link

Estou implementando o SDK e identifiquei uma inconsistência na documentação com o SDK.

No código:

Payer payer = new Payer();
payer.setName("Pagador teste - SDK Java");
payer.setCpfCnpj("11122233300");

Charge charge = new Charge();
charge.setDescription("Cobrança teste gerada pelo SDK Java");
charge.setAmount(BigDecimal.valueOf(123.45));
charge.setPayer(payer);

ChargeResponse response = boletoFacil.issueCharge(charge);
if (response.isSuccess()) {
	for (Charge c : response.getData().getCharges()) {
		System.out.println(c);
	}
}

Quando coloquei esse código no meu sistema a linha
if (response.isSuccess()) { deu erro, a função isSuccess() não tem no objeto response, observando as opções e o objetivo desta função acredito que o correto e atual é o uso do método getSuccess(), estou correto?

stachera pushed a commit that referenced this issue Sep 12, 2019
Merge changes from source to this fork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant