@@ -1550,14 +1550,14 @@ class ClassifyReturn(object):
1550
1550
:attr list[ContractAmts] contract_amounts: (optional) The monetary amounts that
1551
1551
identify the total amount of the contract that needs to be paid from one party to
1552
1552
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 .
1561
1561
:attr list[Tables] tables: (optional) Definition of tables identified in the input
1562
1562
document.
1563
1563
:attr DocStructure document_structure: (optional) The structure of the input document.
@@ -1578,7 +1578,9 @@ def __init__(self,
1578
1578
termination_dates = None ,
1579
1579
contract_types = None ,
1580
1580
contract_terms = None ,
1581
- payment_terms = None ):
1581
+ payment_terms = None ,
1582
+ contract_currencies = None ,
1583
+ ):
1582
1584
"""
1583
1585
Initialize a ClassifyReturn object.
1584
1586
@@ -1595,14 +1597,16 @@ def __init__(self,
1595
1597
:param list[ContractAmts] contract_amounts: (optional) The monetary amounts that
1596
1598
identify the total amount of the contract that needs to be paid from one party to
1597
1599
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.
1604
1606
: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.
1606
1610
:param list[Tables] tables: (optional) Definition of tables identified in the
1607
1611
input document.
1608
1612
:param DocStructure document_structure: (optional) The structure of the input
@@ -1620,6 +1624,7 @@ def __init__(self,
1620
1624
self .contract_types = contract_types
1621
1625
self .contract_terms = contract_terms
1622
1626
self .payment_terms = payment_terms
1627
+ self .contract_currencies = contract_currencies
1623
1628
self .tables = tables
1624
1629
self .document_structure = document_structure
1625
1630
self .parties = parties
@@ -1631,8 +1636,8 @@ def _from_dict(cls, _dict):
1631
1636
validKeys = [
1632
1637
'document' , 'model_id' , 'model_version' , 'elements' ,
1633
1638
'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'
1636
1641
]
1637
1642
badKeys = set (_dict .keys ()) - set (validKeys )
1638
1643
if badKeys :
@@ -1678,6 +1683,11 @@ def _from_dict(cls, _dict):
1678
1683
args ['payment_terms' ] = [
1679
1684
PaymentTerms ._from_dict (x ) for x in (_dict .get ('payment_terms' ))
1680
1685
]
1686
+ if 'contract_currencies' in _dict :
1687
+ args ['contract_currencies' ] = [
1688
+ ContractCurrencies ._from_dict (x )
1689
+ for x in (_dict .get ('contract_currencies' ))
1690
+ ]
1681
1691
if 'tables' in _dict :
1682
1692
args ['tables' ] = [
1683
1693
Tables ._from_dict (x ) for x in (_dict .get ('tables' ))
@@ -1727,6 +1737,12 @@ def _to_dict(self):
1727
1737
]
1728
1738
if hasattr (self , 'payment_terms' ) and self .payment_terms is not None :
1729
1739
_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
+ ]
1730
1746
if hasattr (self , 'tables' ) and self .tables is not None :
1731
1747
_dict ['tables' ] = [x ._to_dict () for x in self .tables ]
1732
1748
if hasattr (
0 commit comments