Skip to content

Commit 2cecf98

Browse files
Include new endpoints
1 parent 2566fda commit 2cecf98

File tree

8 files changed

+113
-0
lines changed

8 files changed

+113
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
response = gn.pix_list_balance()
9+
print(response)
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
response = gn.pix_list_settings()
9+
print(response)
10+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
body = {
9+
'pix': {
10+
'receberSemChave': True,
11+
'chaves': {
12+
'insira-aqui-sua-chave': {
13+
'recebimento': {
14+
'txidObrigatorio': False,
15+
'qrCodeEstatico': {
16+
'recusarTodos': False
17+
}
18+
}
19+
}
20+
}
21+
}
22+
}
23+
response = gn.pix_update_settings(body=body)
24+
print(response)
25+

examples/gn/key/pix_create_evp.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
response = gn.pix_create_evp()
9+
print(response)
10+

examples/gn/key/pix_delete_evp.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
params = {
9+
'chave': ''
10+
}
11+
12+
response = gn.pix_delete_evp(params=params)
13+
print(response)
14+

examples/gn/key/pix_list_evp.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
response = gn.pix_list_evp()
9+
print(response)
10+

examples/gn/report/create_report.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
body = {
9+
"dataMovimento": "2022-04-24",
10+
"tipoRegistros": {
11+
"pixRecebido": True,
12+
"pixDevolucaoEnviada": False,
13+
"tarifaPixRecebido": True,
14+
"pixEnviadoChave": True,
15+
"pixEnviadoDadosBancarios": False,
16+
"pixDevolucaoRecebida": True
17+
}
18+
}
19+
20+
response = gn.create_report(body=body)
21+
print(response)

examples/gn/report/detail_report.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# encoding: utf-8
2+
3+
from gerencianet import Gerencianet
4+
from ...credentials import credentials
5+
6+
gn = Gerencianet(credentials.CREDENTIALS)
7+
8+
params = {
9+
"id": "085y2253-bb04-48ba-b7d1-961538d0ed77"
10+
}
11+
12+
response = gn.detail_report(params=params)
13+
print(response)

0 commit comments

Comments
 (0)