Class NcAmountType
A data type for an amount of money.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcAmountType : IEquatable<NcAmountType>
Properties
Amount
An amount of money. NIEM reference is nc:Amount
Declaration
[DataMember(Name = "amount")]
public List<NiemXsdecimal> Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsdecimal> | An amount of money. NIEM reference is nc:Amount |
Context
ncAmountType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcAmountType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcAmountType.ContextEnum> | ncAmountType JSON-LD context |
Currency
A unit of money or exchange. NIEM reference is nc:CurrencyText
Declaration
[DataMember(Name = "currency")]
public List<NcTextType> Currency { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A unit of money or exchange. NIEM reference is nc:CurrencyText |
CurrencyCode
A unit of money or exchange. NIEM reference is nc:CurrencyCode
Declaration
[DataMember(Name = "currencyCode")]
public List<Iso4217CurrencyCodeType> CurrencyCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Iso4217CurrencyCodeType> | A unit of money or exchange. NIEM reference is nc:CurrencyCode |
Methods
Equals(NcAmountType)
Returns true if NcAmountType instances are equal
Declaration
public bool Equals(NcAmountType other)
Parameters
Type | Name | Description |
---|---|---|
NcAmountType | other | Instance of NcAmountType to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NcAmountType, NcAmountType)
Declaration
public static bool operator ==(NcAmountType left, NcAmountType right)
Parameters
Type | Name | Description |
---|---|---|
NcAmountType | left | |
NcAmountType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcAmountType, NcAmountType)
Declaration
public static bool operator !=(NcAmountType left, NcAmountType right)
Parameters
Type | Name | Description |
---|---|---|
NcAmountType | left | |
NcAmountType | right |
Returns
Type | Description |
---|---|
System.Boolean |