-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Version 3+ will be structured similarly yo the PHP and Python version of the packages:
- Main component should be object-oriented, so a class should wrap the logic of generating CNPJ.
- Create a class to manage formatter options and apply default values when necessary.
- Options are meant to be changed by using properties assignment, not getters and setters functions anymore.
- Add support to alphanumeric CNPJ ([
cnpj-gen] Update package to support alphanumeric CNPJ #19) - Create custom errors for ALL exepcted errors.
- Validate and parse arguments, when possible, and throw a custom
TypeError. - The following components are now expeced to be exported from the final bundle:
CnpjGenerator(base class)CnpjGeneratorOptionscnpjGen(should be a bound function of thegeneratemethod of a default instance).CnpjGeneratorTypeError(abstract)CnpjGeneratorOptionTypeErrorCnpjGeneratorException(abstract)CnpjGeneratorOptionPrefixLengthExceptionCnpjGeneratorOptionPrefixInvalidException
- Update unit tests
- Update documentation
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Ready