Value in currency to express an amount.
For instance $10.34 will be instantiate as the following:
const dollar = new Currency("dollar", 2);const price = new Amount(1034, dollar);
Creates a new Amount;
Amount value.
Amount currency.
Adds two amounts and return results in a new one.
Amount to add.
Updates Args with current currency serialized.
Tests if two amounts are identical.
Check if existent amount is lower than given one.
Amount to check against.
Tests if two amounts are different.
Substracts two amounts and return results in a new one.
Amount to substract.
Returns a new Args containing current currency serialized.
Static
Creates a Result Amount from given argument
Argument to deserialize.
Generated using TypeDoc
Value in currency to express an amount.
For instance $10.34 will be instantiate as the following:
Example