@@ -1550,14 +1550,14 @@ class ClassifyReturn(object):
15501550 :attr list[ContractAmts] contract_amounts: (optional) The monetary amounts that
15511551 identify the total amount of the contract that needs to be paid from one party to
15521552 another.
1553- :attr list[TerminationDates] termination_dates: (optional) The date or dates on which
1554- the document is to be terminated.
1555- :attr list[ContractTypes] contract_types: (optional) The document's contract type or
1556- types as declared in the document.
1557- :attr list[ContractTerms] contract_terms: (optional) The duration or durations of the
1558- contract .
1559- :attr list[PaymentTerms] payment_terms : (optional) The document's payment duration or
1560- durations .
1553+ :attr list[TerminationDates] termination_dates: (optional) The dates on which the
1554+ document is to be terminated.
1555+ :attr list[ContractTypes] contract_types: (optional) The contract type as declared in
1556+ the document.
1557+ :attr list[ContractTerms] contract_terms: (optional) The durations of the contract.
1558+ :attr list[PaymentTerms] payment_terms: (optional) The document's payment durations .
1559+ :attr list[ContractCurrencies] contract_currencies : (optional) The contract currencies
1560+ as declared in the document .
15611561 :attr list[Tables] tables: (optional) Definition of tables identified in the input
15621562 document.
15631563 :attr DocStructure document_structure: (optional) The structure of the input document.
@@ -1578,7 +1578,9 @@ def __init__(self,
15781578 termination_dates = None ,
15791579 contract_types = None ,
15801580 contract_terms = None ,
1581- payment_terms = None ):
1581+ payment_terms = None ,
1582+ contract_currencies = None ,
1583+ ):
15821584 """
15831585 Initialize a ClassifyReturn object.
15841586
@@ -1595,14 +1597,16 @@ def __init__(self,
15951597 :param list[ContractAmts] contract_amounts: (optional) The monetary amounts that
15961598 identify the total amount of the contract that needs to be paid from one party to
15971599 another.
1598- :param list[TerminationDates] termination_dates: (optional) The date or dates on
1599- which the document is to be terminated.
1600- :param list[ContractTypes] contract_types: (optional) The document's contract type
1601- or types as declared in the document.
1602- :param list[ContractTerms] contract_terms: (optional) The duration or durations of
1603- the contract.
1600+ :param list[TerminationDates] termination_dates: (optional) The dates on which the
1601+ document is to be terminated.
1602+ :param list[ContractTypes] contract_types: (optional) The contract type as
1603+ declared in the document.
1604+ :param list[ContractTerms] contract_terms: (optional) The durations of the
1605+ contract.
16041606 :param list[PaymentTerms] payment_terms: (optional) The document's payment
1605- duration or durations.
1607+ durations.
1608+ :param list[ContractCurrencies] contract_currencies: (optional) The contract
1609+ currencies as declared in the document.
16061610 :param list[Tables] tables: (optional) Definition of tables identified in the
16071611 input document.
16081612 :param DocStructure document_structure: (optional) The structure of the input
@@ -1620,6 +1624,7 @@ def __init__(self,
16201624 self .contract_types = contract_types
16211625 self .contract_terms = contract_terms
16221626 self .payment_terms = payment_terms
1627+ self .contract_currencies = contract_currencies
16231628 self .tables = tables
16241629 self .document_structure = document_structure
16251630 self .parties = parties
@@ -1631,8 +1636,8 @@ def _from_dict(cls, _dict):
16311636 validKeys = [
16321637 'document' , 'model_id' , 'model_version' , 'elements' ,
16331638 'effective_dates' , 'contract_amounts' , 'termination_dates' ,
1634- 'contract_types' , 'contract_terms' , 'payment_terms' , 'tables' ,
1635- 'document_structure' , 'parties'
1639+ 'contract_types' , 'contract_terms' , 'payment_terms' ,
1640+ 'contract_currencies' , 'tables' , ' document_structure' , 'parties'
16361641 ]
16371642 badKeys = set (_dict .keys ()) - set (validKeys )
16381643 if badKeys :
@@ -1678,6 +1683,11 @@ def _from_dict(cls, _dict):
16781683 args ['payment_terms' ] = [
16791684 PaymentTerms ._from_dict (x ) for x in (_dict .get ('payment_terms' ))
16801685 ]
1686+ if 'contract_currencies' in _dict :
1687+ args ['contract_currencies' ] = [
1688+ ContractCurrencies ._from_dict (x )
1689+ for x in (_dict .get ('contract_currencies' ))
1690+ ]
16811691 if 'tables' in _dict :
16821692 args ['tables' ] = [
16831693 Tables ._from_dict (x ) for x in (_dict .get ('tables' ))
@@ -1727,6 +1737,12 @@ def _to_dict(self):
17271737 ]
17281738 if hasattr (self , 'payment_terms' ) and self .payment_terms is not None :
17291739 _dict ['payment_terms' ] = [x ._to_dict () for x in self .payment_terms ]
1740+ if hasattr (
1741+ self ,
1742+ 'contract_currencies' ) and self .contract_currencies is not None :
1743+ _dict ['contract_currencies' ] = [
1744+ x ._to_dict () for x in self .contract_currencies
1745+ ]
17301746 if hasattr (self , 'tables' ) and self .tables is not None :
17311747 _dict ['tables' ] = [x ._to_dict () for x in self .tables ]
17321748 if hasattr (
0 commit comments