Skip to content

Commit

Permalink
Added keywords resource to the client
Browse files Browse the repository at this point in the history
  • Loading branch information
nanorepublica committed Nov 10, 2015
1 parent 076c2ff commit 48a0234
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion duedil/resources/pro/company/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
from .registered_address import RegisteredAddress
from .service_address import ServiceAddress
from .shareholder import Shareholder
from .company_keywords import Keywords

__all__ = ['AccountDetailsFinancial', 'AccountDetailsGAAP',
'AccountDetailsIFRS', 'AccountDetailsInsurance',
'AccountDetailsStatutory', 'BankAccount',
'Company', 'Director', 'Directorship', 'Document',
'Industry', 'Mortgage',
'Industry', 'Mortgage', 'Keywords',
'PreviousCompanyName', 'RegisteredAddress',
'ServiceAddress', 'Shareholder']
1 change: 1 addition & 0 deletions duedil/resources/pro/company/company.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ class Company(RelatedResourceMixin, ProResource):
'bank-accounts': 'resources.pro.company.BankAccount',
'mortgages': 'resources.pro.company.Mortgage',
'subsidiaries': 'resources.pro.company.Company',
'keywords': 'resources.pro.company.Keywords',
}

range_filters = [
Expand Down
14 changes: 14 additions & 0 deletions duedil/resources/pro/company/company_keywords.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from ... import (Resource)


class Keywords(Resource):

attribute_names = [
'locale',
'name',
'keywords',
'company_url',
]

0 comments on commit 48a0234

Please sign in to comment.