Class Amount
Amount represents an Amount container
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: SIX.TimApi
Assembly: TimApi.dll
Syntax
public class Amount
Constructors
Amount()
Declaration
protected Amount()
Amount(Decimal, String)
construct with amount in major decimal currency units
Declaration
public Amount(decimal value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
System.String | currency |
Amount(Decimal, String, Int32)
construct with amount in major decimal currency units
Declaration
public Amount(decimal value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
System.String | currency | |
System.Int32 | exponent |
Amount(Int32, String)
construct with amount in minor currency units
Declaration
public Amount(int value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | |
System.String | currency |
Amount(Int32, String, Int32)
contruct with amount in minor currency units
Declaration
public Amount(int value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | value | |
System.String | currency | |
System.Int32 | exponent |
Amount(Int64, String)
construct with amount in minor currency units
Declaration
public Amount(long value, string currency)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | |
System.String | currency |
Amount(Int64, String, Int32)
construct with amount in minor currency units
Declaration
public Amount(long value, string currency, int exponent)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | value | |
System.String | currency | |
System.Int32 | exponent |
Fields
m_currency
Currency to use for transaction.
Declaration
protected string m_currency
Field Value
Type | Description |
---|---|
System.String |
m_exponent
Exponent.
Declaration
protected int m_exponent
Field Value
Type | Description |
---|---|
System.Int32 |
m_value
Amount in minor units as integer value.
Declaration
protected long m_value
Field Value
Type | Description |
---|---|
System.Int64 |
Properties
Currency
Currency of the specified amount.
Declaration
public string Currency { get; }
Property Value
Type | Description |
---|---|
System.String | The currency. |
DecValue
the amount in major currency units
Declaration
public decimal DecValue { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Exponent
Exponent of the specified amount.
Declaration
public int Exponent { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The exponent. |
Value
the amount in minor currency units
Declaration
public long Value { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
ToString()
String representation of the Amount as Currency and Value e.g. "CHF 3.85"
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The String representation of the Amount |
Overrides
System.Object.ToString()