Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 8934d56

Browse files
committed
cria exemplo de transferencia pix via dados bancários apenas pela conta_pagamento
1 parent f59ddc5 commit 8934d56

3 files changed

+73
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"numeroRequisicao": 11488,
3+
"estadoRequisicao": 3,
4+
"quantidadeTransferencias": 1,
5+
"valorTransferencias": 15.5,
6+
"quantidadeTransferenciasValidas": 0,
7+
"valorTransferenciasValidas": 0,
8+
"listaTransferencias": [
9+
{
10+
"identificadorPagamento": 90011488731030000,
11+
"data": 30012024,
12+
"valor": 15.5,
13+
"documentoDebito": 0,
14+
"documentoCredito": 0,
15+
"descricaoPagamento": "Uma transfer\u00fdncia via dados banc\u00fdrios",
16+
"descricaoPagamentoInstantaneo": "",
17+
"formaIdentificacao": 5,
18+
"dddTelefone": 0,
19+
"telefone": 0,
20+
"email": "",
21+
"cpf": 28779295827,
22+
"cnpj": 0,
23+
"identificacaoAleatoria": "",
24+
"numeroCOMPE": 0,
25+
"numeroISPB": 360305,
26+
"tipoConta": 1,
27+
"agencia": 0,
28+
"conta": 0,
29+
"digitoVerificadorConta": "",
30+
"contaPagamento": "12345678",
31+
"indicadorMovimentoAceito": "N",
32+
"erros": [
33+
1
34+
]
35+
}
36+
]
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import os
2+
from datetime import date
3+
4+
from examples.utils import dump_response
5+
6+
from bb_wrapper.wrapper import PagamentoLoteBBWrapper
7+
8+
c = PagamentoLoteBBWrapper(cert=("./certs/cert.pem", "./certs/key.pem"))
9+
10+
11+
today = date.today()
12+
bb_fmt = "%d%m%Y"
13+
14+
15+
lote_data = {
16+
"n_requisicao": 11488,
17+
"agencia": 1607,
18+
"conta": 99738672,
19+
"dv_conta": "X",
20+
}
21+
22+
transferencia_data = {
23+
"data_transferencia": today.strftime(bb_fmt),
24+
"valor_transferencia": 15.50,
25+
"descricao": "Uma transferência via dados bancários",
26+
"tipo_conta_favorecido": 1,
27+
"numero_ispb": "360305",
28+
"conta_pagamento": 12345678,
29+
"documento": "28779295827",
30+
}
31+
32+
response = c.criar_transferencia_por_dados_bancarios_pix(
33+
**lote_data, **transferencia_data
34+
)
35+
dump_response(response, os.path.realpath(__file__))

Diff for: examples/lotes_pagamento/transferencia_pix_dados_bancarios.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"agencia_favorecido": 1234,
2828
"conta_favorecido": 12345,
2929
"digito_verificador_conta": "X",
30-
"numeroISPB": "360305",
30+
"numero_ispb": "360305",
3131
"documento": "28779295827",
3232
}
3333

0 commit comments

Comments
 (0)