Creates a new Credit instance.
Constructor parameters containing all credit information
Gets the account that was credited
The address/ID of the credited account
Gets the account that was debited
The address/ID of the debited account
Gets the process ID that originated this credit
The process ID
Gets the unique identifier for this credit
The credit ID
Gets the token balance associated with this credit
The TokenBalance representing the credited amount
Gets the transaction date when the credit occurred
The date of the credit transaction
Returns a string representation of the credit
A formatted string containing credit details
Static
fromCreates a Credit from a credit notice and token configuration
The credit notice containing transaction information
The token configuration for the credit
A new Credit instance
Concrete implementation of ICredit for managing financial credit transactions.