Skip to content

Commit 1fb6589

Browse files
committed
feat(Compare and Comply): Add importance property to Parties model
1 parent e874d4f commit 1fb6589

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

watson_developer_cloud/compare_comply_v1.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3626,24 +3626,33 @@ class Parties(object):
36263626
identified.
36273627
36283628
:attr str party: (optional) A string identifying the party.
3629+
:attr str importance: (optional) A string that identifies the importance of the party.
36293630
:attr str role: (optional) A string identifying the party's role.
36303631
:attr list[Address] addresses: (optional) List of the party's address or addresses.
36313632
:attr list[Contact] contacts: (optional) List of the names and roles of contacts
36323633
identified in the input document.
36333634
"""
36343635

3635-
def __init__(self, party=None, role=None, addresses=None, contacts=None):
3636+
def __init__(self,
3637+
party=None,
3638+
importance=None,
3639+
role=None,
3640+
addresses=None,
3641+
contacts=None):
36363642
"""
36373643
Initialize a Parties object.
36383644
36393645
:param str party: (optional) A string identifying the party.
3646+
:param str importance: (optional) A string that identifies the importance of the
3647+
party.
36403648
:param str role: (optional) A string identifying the party's role.
36413649
:param list[Address] addresses: (optional) List of the party's address or
36423650
addresses.
36433651
:param list[Contact] contacts: (optional) List of the names and roles of contacts
36443652
identified in the input document.
36453653
"""
36463654
self.party = party
3655+
self.importance = importance
36473656
self.role = role
36483657
self.addresses = addresses
36493658
self.contacts = contacts
@@ -3654,6 +3663,8 @@ def _from_dict(cls, _dict):
36543663
args = {}
36553664
if 'party' in _dict:
36563665
args['party'] = _dict.get('party')
3666+
if 'importance' in _dict:
3667+
args['importance'] = _dict.get('importance')
36573668
if 'role' in _dict:
36583669
args['role'] = _dict.get('role')
36593670
if 'addresses' in _dict:
@@ -3671,6 +3682,8 @@ def _to_dict(self):
36713682
_dict = {}
36723683
if hasattr(self, 'party') and self.party is not None:
36733684
_dict['party'] = self.party
3685+
if hasattr(self, 'importance') and self.importance is not None:
3686+
_dict['importance'] = self.importance
36743687
if hasattr(self, 'role') and self.role is not None:
36753688
_dict['role'] = self.role
36763689
if hasattr(self, 'addresses') and self.addresses is not None:

0 commit comments

Comments
 (0)