CompoundAmount#
- class CompoundAmount[source]#
Compound amount (e.g.
1.00 # 10.00 USD).- property number_per: Optional[decimal.Decimal]#
- property number_total: Optional[decimal.Decimal]#
- property raw_number_per: Optional[NumberExpr]#
- property raw_number_total: Optional[NumberExpr]#
- property raw_spacing_after: Sequence[RawTokenModel]#
- property raw_spacing_before: Sequence[RawTokenModel]#
- classmethod from_children(number_per: Optional[NumberExpr], number_total: Optional[NumberExpr], currency: Currency) Self[source]#
- classmethod from_value(number_per: Optional[decimal.Decimal], number_total: Optional[decimal.Decimal], currency: str) Self[source]#