new module:model/Money()
- Source:
Constructs a new Money
.
Describes information about the total
of a payment.
Members
(inner) amountInBaseUnit :String
- Source:
Type:
- String
(inner) currency :String
- Source:
Type:
- String
(inner) displayAmount :String
- Source:
Type:
- String
Methods
(static) constructFromObject(data, obj) → {module:model/Money}
- Source:
Constructs a Money
from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data
to obj
if supplied or a new instance if not.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | The plain JavaScript object bearing properties of interest. |
obj |
module:model/Money | Optional instance to populate. |
Returns:
The populated Money
instance.
- Type
- module:model/Money