Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
duedil-python / duedil / models / lite_company.py
Size: Mime:
from __future__ import unicode_literals

import six

from .base import Model
from ..search import SearchableModelMeta


class LiteCompany(six.with_metaclass(SearchableModelMeta, Model)):
    path = 'companies'
    search_path = 'search'

    attribute_names = [
        'duedil_url',
        # string the url of the full company profile on duedil.com
        'company_number',
        # string the company number
        'name',
        # string the company name
        'name_formated',
        # string a more readable version of the company name
        'registered_address',
        # obj Holds address information about the company
        'category',
        # string The category of company eg "Public Limited Company"
        'status',
        # string a string describing the status of company eg "In
        # Liquidation"
        'locale',
        # string Either "United Kingdom" or "Republic of Ireland"
        'previous_names',
        # array a collection containing one or more previous name
        # objects
        'sic_codes',
        # array a collection containing one or more SIC code objects
        'incorporation_date',
        # string when the company was incorporated. [YYYY-MM-DD]
        'accounts',
        # obj Information about the most recent accounts
        'returns',
        # obj information about the company's returns
    ]

    term_filters = ['q']

    def __init__(self, company_number=None, **kwargs):
        super(LiteCompany, self).__init__(id=company_number,
                                          **kwargs)