Class SepaAmount
Inheritance
System.Object
SepaAmount
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)
Assembly: Subsembly.Sepa.dll
Syntax
public sealed class SepaAmount : SepaObject
Constructors
SepaAmount()
Declaration
SepaAmount(String, SepaAmountCreditDebitIndicatorConstraint)
Declaration
public SepaAmount(string sTagName, SepaAmountCreditDebitIndicatorConstraint nCdtDbtIndConstraint)
Parameters
SepaAmount(String, SepaAmountCreditDebitIndicatorConstraint, Boolean)
Declaration
public SepaAmount(string sTagName, SepaAmountCreditDebitIndicatorConstraint nCdtDbtIndConstraint, bool fIsMandatory)
Parameters
Fields
CRDT
Declaration
public const string CRDT = "CRDT"
Field Value
Type |
Description |
System.String |
|
DBIT
Declaration
public const string DBIT = "DBIT"
Field Value
Type |
Description |
System.String |
|
Properties
Amount
Declaration
public decimal Amount { get; set; }
Property Value
Type |
Description |
System.Decimal |
For SEPA payments the value must be in the range from 0.00 through 999,999,999.99.
The initial value is zero.
|
Exceptions
Type |
Condition |
System.ArgumentOutOfRangeException |
An attempt was made to set a negative value.
|
CreditDebitIndicator
Credit debit indicator of the amount.
Declaration
public SepaCreditDebitIndicator CreditDebitIndicator { get; set; }
Property Value
Exceptions
Type |
Condition |
System.InvalidOperationException |
Is thrown if this method is invoked on an instance that does not support the
CreditDebitIndicator.
|
See Also
CreditDebitIndicatorCode
Credit debit indicator as a four letter code string.
Declaration
public string CreditDebitIndicatorCode { get; set; }
Property Value
Exceptions
Type |
Condition |
System.ArgumentException |
An attempt was made to set a string value that was neither "CRDT" nor "DBIT".
|
System.InvalidOperationException |
Is thrown if this method is invoked on an instance that does not support the
CreditDebitIndicator.
|
See Also
Currency
The currency code of the amount. According to the XSD the use of this attribute
is required.
Declaration
public string Currency { get; set; }
Property Value
Type |
Description |
System.String |
The initial value of this property is null . It is possible to set this
property to null if you want to just reset this amount.
|
Exceptions
Type |
Condition |
System.ArgumentException |
An attempt was made to set a value that is not a syntactically valid currency code.
|
IsDebit
Declaration
public bool IsDebit { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsEmpty
Declaration
public override bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Value
Provides the signed value of the amount.
Declaration
public decimal Value { get; }
Property Value
Methods
Clear()
Declaration
public override void Clear()
Overrides
Clone()
Declaration
public SepaAmount Clone()
Returns
OnReadObjectXml(XmlReader, SepaMessageInfo, String)
Declaration
protected override bool OnReadObjectXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo, string sTagName)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
aXmlReader |
|
SepaMessageInfo |
aMessageInfo |
|
System.String |
sTagName |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Exceptions
OnReadXml(XmlReader, SepaMessageInfo)
Declaration
protected override void OnReadXml(XmlReader aXmlReader, SepaMessageInfo aMessageInfo)
Parameters
Type |
Name |
Description |
System.Xml.XmlReader |
aXmlReader |
|
SepaMessageInfo |
aMessageInfo |
|
Overrides
Exceptions
Type |
Condition |
System.NotImplementedException |
|
OnValidate(ICollection<SepaException>, String)
Declaration
protected override void OnValidate(ICollection<SepaException> vErrors, string sPath)
Parameters
Type |
Name |
Description |
System.Collections.Generic.ICollection<SepaException> |
vErrors |
|
System.String |
sPath |
|
Overrides
OnWriteObjectXml(XmlWriter, SepaMessageInfo, String)
Declaration
protected override void OnWriteObjectXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo, string sTagName)
Parameters
Type |
Name |
Description |
System.Xml.XmlWriter |
aXmlWriter |
|
SepaMessageInfo |
aMessageInfo |
|
System.String |
sTagName |
|
Overrides
OnWriteXml(XmlWriter, SepaMessageInfo)
Declaration
protected override void OnWriteXml(XmlWriter aXmlWriter, SepaMessageInfo aMessageInfo)
Parameters
Type |
Name |
Description |
System.Xml.XmlWriter |
aXmlWriter |
|
SepaMessageInfo |
aMessageInfo |
|
Overrides
Exceptions
Type |
Condition |
System.NotImplementedException |
|
SetValue(Decimal)
Declaration
public void SetValue(decimal nValue)
Parameters
Type |
Name |
Description |
System.Decimal |
nValue |
Signed decimal value. The Amount will be set to the unsigned absolute
amount of this value.
|
See Also
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()