MambuPy.api.mambuproduct
MambuProduct entity: a MambuEntity struct for Products.
Classes
|
MambuProduct entity |
- class MambuPy.api.mambuproduct.MambuProduct(**kwargs)[source]
Bases:
MambuEntity
,MambuEntityWritable
,MambuEntityAttachable
,MambuEntityCommentable
MambuProduct entity
- __abstractmethods__ = frozenset({})
- __module__ = 'MambuPy.api.mambuproduct'
- _abc_impl = <_abc_data object>
- _filter_keys = []
allowed filters for get_all filtering
- _ownerType = 'LOAN_PRODUCT'
owner type of this entity
- _prefix = 'loanproducts'
prefix constant for connections to Mambu
- _sortBy_fields = ['creationDate', 'lastModifiedDate', 'id', 'productName']
allowed fields for get_all sorting
- classmethod get(entid, get_entities=False, **kwargs)[source]
get, a single entity, identified by its entid.
- classmethod get_all(filters=None, offset=None, limit=None, paginationDetails='OFF', sortBy=None)[source]
get_all, several entities, filtering allowed
- Parameters:
filters (dict) – key-value filters, dependes on each entity (keys must be one of the _filter_keys)
offset (int) – pagination, index to start searching
limit (int) – pagination, number of elements to retrieve
paginationDetails (str ON/OFF) – ask for details on pagination
sortBy (str) –
field1:ASC,field2:DESC
, sorting criteria for results (fields must be one of the _sortBy_fields)
- Returns:
list of instances of an entity with data from Mambu