Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.2.0
# 0.2
- New package `face.services` desired to handle and group SOAP available methods by each type:
- service -> generic SOAP service
- `Invoice`
Expand All @@ -16,6 +16,7 @@
- Models that use codes now validates it using the `face.codes` schema validators
- Added official documentation at `/docs`
- `email` where to reach notifications is now configurable thanks to @gdalmau (see #7)
- `InvoiceResponse.organoGestor` now allows `None` value (see #11)

# 0.1.0
- Initial FACe interface
Expand Down
4 changes: 2 additions & 2 deletions face/models/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def create_tramitacion(self, data):
class InvoiceResponse(object):
def __init__(self, **kwargs):
self.numeroRegistro = kwargs.get('numeroRegistro', None)
self.organoGestor = kwargs.get('organoGestor')
self.organoGestor = kwargs.get('organoGestor', None)
self.unidadTramitadora = kwargs.get('unidadTramitadora', None)
self.oficinaContable = kwargs.get('oficinaContable', None)
self.identificadorEmisor = kwargs.get('identificadorEmisor', None)
Expand All @@ -60,7 +60,7 @@ def __getitem__(self, item):

class InvoiceResponseSchema(Schema):
numeroRegistro = fields.Integer(allow_none=True)
organoGestor = fields.String()
organoGestor = fields.String(allow_none=True)
unidadTramitadora = fields.String(allow_none=True)
oficinaContable = fields.String(allow_none=True)
identificadorEmisor = fields.String(allow_none=True)
Expand Down