Models

Schemas and models module.

class vater.models.Company(company_name, first_name, last_name, nip, pesel)

Bases: object

Class representing company in vat payers register.

class vater.models.CompanySchema(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)

Bases: marshmallow.schema.Schema

Schema for company entity.

make_company(data, **kwargs)

Create a company instance.

Return type:Company
opts = <marshmallow.schema.SchemaOpts object>
class vater.models.Subject(name, nip, status_vat, regon, pesel, krs, residence_address, working_address, representatives, authorized_clerks, partners, registration_legal_date, registration_denial_basis, registration_denial_date, restoration_basis, restoration_date, removal_basis, removal_date, account_numbers, has_virtual_accounts)

Bases: object

Class representing subject in vat payers register.

class vater.models.SubjectSchema(*, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)

Bases: marshmallow.schema.Schema

Schema for subject entity.

make_subject(data, **kwargs)

Create a subject instance.

Return type:Subject
opts = <marshmallow.schema.SchemaOpts object>