new PaywallAmount(amount)
PaywallAmount is a help class to display invoiced amount in specified unit.
With this object it is possible to easy display convert invoiced amount
in specified unit.
Parameters:
Name | Type | Description |
---|---|---|
amount |
object | json object from invoice. |
- Source:
Methods
(static) as(unit) → {number}
Method to retrieve the specified amount in specified unit, currently is only BTCUnit enum values specified.
Parameters:
Name | Type | Description |
---|---|---|
unit |
the unit that the amount should be displayed as. Currently is only BTCUnit defined units supported |
- Source:
- See:
Returns:
the amount in specified unit.
- Type
- number