Skip to content

Commit

Permalink
Merge pull request #1 from gerencianet/TZSD_729-SDK-com-Settle
Browse files Browse the repository at this point in the history
TZSD_729-SDK-com-Settle:Foi adicionado dois endpoints
  • Loading branch information
Thiagogresende authored Dec 27, 2018
2 parents 5d17187 + d5e375f commit 06f5355
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 1.0.10

- Added: new endpoint (settle charge)
- Added: new endpoint (settle parcel carnet)

# 1.0.9

- Added: new endpoint (create charge balance sheet)
Expand Down
14 changes: 14 additions & 0 deletions examples/settle_carnet_parcel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# encoding: utf-8

from gerencianet import Gerencianet
from credentials import CREDENTIALS

gn = Gerencianet(CREDENTIALS)

params = {
'id': 1,
'parcel': 1
}

response = gn.settle_carnet_parcel(params=params)
print(response)
13 changes: 13 additions & 0 deletions examples/settle_charge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# encoding: utf-8

from gerencianet import Gerencianet
from credentials import CREDENTIALS

gn = Gerencianet(CREDENTIALS)

params = {
'id': 1
}

response = gn.settle_charge.py(params=params)
print(response)
8 changes: 8 additions & 0 deletions gerencianet/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,13 @@ class Constants(object):
'create_charge_balance_sheet': {
'route': '/charge/:id/balance_sheet',
'method': 'post'
},
'settle_charge': {
'route': '/charge/:id/settle',
'method': 'put'
},
'settle_carnet_parcel': {
'route': '/carnet/:id/parcel/:parcel/settle',
'method': 'put'
}
}
2 changes: 1 addition & 1 deletion gerencianet/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# encoding: utf-8

VERSION = '1.0.9'
VERSION = '1.0.10'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
setup(
name='gerencianet',

version='1.0.9',
version='1.0.10',

description='Module for integration with Gerencianet API',
long_description=long_description,
Expand Down

0 comments on commit 06f5355

Please sign in to comment.