Source code for MambuPy.api.vos
"""Mambu Value Objects
.. autosummary::
:nosignatures:
:toctree: _autosummary
"""
from .mambustruct import MambuStruct
[docs]class MambuValueObject(MambuStruct):
"""A Mambu object with some schema but that you won't interact directly
with in Mambu web, but through some entity."""
[docs]class MambuIDDocument(MambuValueObject):
"""ID Document"""
_ownerType = "ID_DOCUMENT"
"""owner type of this entity"""
[docs]class MambuGroupMember(MambuValueObject):
"""Group member"""
_vos = [("roles", "MambuGroupRole")]
"""2-tuples of elements and Value Objects"""
_entities = [("clientKey", "mambuclient.MambuClient", "client")]
"""3-tuples of elements and Mambu Entities"""
[docs]class MambuDisbursementLoanTransactionInput(MambuValueObject):
"""Disbursment Loan Transaction body"""
_schema_fields = [
"amount",
"bookingDate",
"externalId",
"firstRepaymentDate",
"notes",
"originalCurrencyCode",
"shiftAdjustableInterestPeriods",
"valueDate",
]
"""List of schema fields for a loan disbursement transaction."""
[docs]class MambuRepaymentLoanTransactionInput(MambuValueObject):
"""Repayment Loan Transaction body"""
_schema_fields = [
"amount",
"bookingDate",
"externalId",
"installmentEncodedKey",
"notes",
"originalCurrencyCode",
"prepaymentRecalculationMethod",
"valueDate",
"transactionDetails",
]
"""List of schema fields for a loan repayment transaction."""
[docs]class MambuLoanTransactionDetailsInput(MambuValueObject):
"""Loan Transaction Details body"""
_schema_fields = [
"transactionChannelId",
"transactionChannelKey",
]
"""List of schema fields for a loan repayment transaction."""
[docs]class MambuFeeLoanTransactionInput(MambuValueObject):
"""Repayment Loan Transaction body"""
_schema_fields = [
"amount",
"bookingDate",
"externalId",
"fisrtRepaymentDate",
"installmentNumber",
"notes",
"predefinedFeeKey",
"valueDate",
]
"""List of schema fields for a loan fee transaction."""