Skip to content

Commit

Permalink
Merge pull request #29 from initios/ft/v1
Browse files Browse the repository at this point in the history
Fix V1 validators
  • Loading branch information
Daniel García Barcala authored Jan 16, 2018
2 parents ee42023 + f81574d commit ba70afa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/aeat/rest_framework/complex_types_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class Package(rf.Serializer):
KinOfPacGS23 = RequiredStr(max_length=2, help_text='Kind of packages')
NumOfPacGS24 = NotRequiredStr(max_length=5, help_text='Number of packages')
NumOfPieGS25 = NotRequiredStr(max_length=5, help_text='Number of pieces')
MarNumOfPacGSL21 = NotRequiredStr(max_length=140,
help_text='Marks & numbers of packages (long)')
MarNumOfPacGS21 = NotRequiredStr(max_length=140, help_text='Marks & numbers of packages')


class PreviousDocument(rf.Serializer):
Expand Down
2 changes: 1 addition & 1 deletion src/aeat/rest_framework/complex_types_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Package(rf.Serializer):
NumOfPieGS25 = NotRequiredStr(max_length=5, help_text='Number of pieces')
MarNumOfPacGSL21 = NotRequiredStr(max_length=140,
help_text='Marks & numbers of packages (long)')
MarNumOfPacGSL21LNG = RequiredStr(help_text='Marks & numbers of packages (long) LNG')
MarNumOfPacGSL21LNG = NotRequiredStr(help_text='Marks & numbers of packages (long) LNG')


class GoodsItem(rf.Serializer):
Expand Down
2 changes: 1 addition & 1 deletion src/aeat/rest_framework/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ENSPresentationValidator(v4.BaseMixin, ValidatorBase):

class ENSModificationValidator(v4.BaseMixin, ValidatorBase):
service_name = 'ens_modification'
NOTPAR670 = v4.NotifyParty(required=True)
NOTPAR670 = v4.NotifyParty(required=False)
MesTypMES20 = fields.NotRequiredStr(default='CC313A', read_only=True,
help_text='Message type. EG CC313A')
HEAHEA = v4.ENSModificationHeader(required=True)
Expand Down

0 comments on commit ba70afa

Please sign in to comment.