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

[FIX] Adapts the endpoints according to the api url. #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/erpbrasil/bank/inter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ def boleto_inclui(self, boleto):
"""
result = self._call(
requests.post,
url=self._api,
url=self._api + "boletos",
data=json.dumps(boleto),
)
return result.content and result.json() or result.ok

def consulta_boleto_detalhado(self, nosso_numero=False):
"""
"""
GET https://cdpj.partners.bancointer.com.br/cobranca/v2/boletos/{nossoNumero}
"""
if not nosso_numero:
Expand Down Expand Up @@ -153,7 +153,7 @@ def boleto_pdf(self, nosso_numero):
:param nosso_numero:
:return:
"""
url = '{}/{}/pdf'.format(
url = '{}boletos/{}/pdf'.format(
self._api,
nosso_numero
)
Expand Down