Class SwiftStatementOfHoldings

Namespace
Subsembly.Swift
Assembly
Subsembly.Sepa.dll

Repesents and manages SWIFT MT-535 / MT-571 Customer Statement of Holdings messages.

public sealed class SwiftStatementOfHoldings : IList, ICollection, IEnumerable
Inheritance
SwiftStatementOfHoldings
Implements
Inherited Members

Remarks

The primary purpose of the SwiftStatementOfHoldings class is convenient reading (and later creating, too) of SWIFT MT-535 / MT-571 messages. MT-535: Currently all the constant fields (field 20C "sender's reference", field 23G "function of message", field 22F ("type of the statement"), etc. ) are not validated. MT-571: Currently field 72 ("Additional information on all holdings in the message") will not be parsed and therefore items are not accessible.

Constructors

SwiftStatementOfHoldings()

public SwiftStatementOfHoldings()

Properties

ContinuationIndicator

The "Statement of Holdings" continuation indicator.

public SwiftStatementOfHoldingsContinuationIndicator ContinuationIndicator { get; set; }

Property Value

SwiftStatementOfHoldingsContinuationIndicator

The continuation indicator is part of field 28 (MT 571) / field 28E (MT 535).

this[int]

Direct access to the contained SwiftStatementOfHoldingsFinancialInstrument objects.

public SwiftStatementOfHoldingsFinancialInstrument this[int nIndex] { get; }

Parameters

nIndex int

Property Value

SwiftStatementOfHoldingsFinancialInstrument

NumberOfFinancialInstruments

Number of financial instruments embedded within the Statement of Holdings message.

public int NumberOfFinancialInstruments { get; }

Property Value

int

PageNumber

The "Statement of Holdings" page number.

public int PageNumber { get; set; }

Property Value

int

The page number is a subfield of field 28 (MT 571) / field 28E (MT 535).

PreparationDate

The "Statement of Holdings" date when the statement was prepared.

public SwiftDate PreparationDate { get; set; }

Property Value

SwiftDate

The Preparation Date corresponds with field 30 (MT 571) / field 98a PREP (MT 535). Both fields are optional.

PreparationTime

The "Statement of Holdings" time when the statement was prepared.

public SwiftTime PreparationTime { get; set; }

Property Value

SwiftTime

Is part of field 98C PREP (MT 535). There's no corresponding field in MT 571 messages.

SecuritiesAccountNumber

The "Statement of Holdings" safekeeping account's number.

public string SecuritiesAccountNumber { get; set; }

Property Value

string

The Securities Account Number corresponds with field 83C (MT 571) / field 97A (MT 535).

SecuritiesBankCode

The "Statement of Holdings" safekeeping account's bank code.

public string SecuritiesBankCode { get; set; }

Property Value

string

The Securities Bank Code corresponds with field 83C (MT 571) / field 97A (MT 535).

StatementDate

The "Statement of Holdings" date of the statement.

public SwiftDate StatementDate { get; set; }

Property Value

SwiftDate

The Date of the Statement corresponds with field 67A (MT 571) / field 98a STAT (MT 535) and is mandatory.

StatementTime

The "Statement of Holdings" time of the statement.

public SwiftTime StatementTime { get; set; }

Property Value

SwiftTime

The Time of the Statement is part of field 98C STATE (MT 535). There's no corresponding field in MT 571.

TotalValue

Total value of the portofolio inventories of the message.

public decimal TotalValue { get; set; }

Property Value

decimal

Corresponds with field 34E (MT 571) / field 19A (MT 535). if TotalValueCurrency equals null, there's no TotalValue available!

TotalValueCurrency

Currency of the total value of the portofolio inventories of the message.

public string TotalValueCurrency { get; set; }

Property Value

string

Corresponds with field 34E (MT 571) / field 19A (MT 535). If TotalValueCurrency equals null, there's no TotalValue available!

Methods

AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument)

public void AddFinancialInstrument(SwiftStatementOfHoldingsFinancialInstrument aFinancialInstrument)

Parameters

aFinancialInstrument SwiftStatementOfHoldingsFinancialInstrument

IsCompleteField19A()

public bool IsCompleteField19A()

Returns

bool

IsCompleteField28E()

public bool IsCompleteField28E()

Returns

bool

IsCompleteField98a(string, SwiftDate, SwiftTime)

public static bool IsCompleteField98a(string sQualifier, SwiftDate tDate, SwiftTime tTime)

Parameters

sQualifier string
tDate SwiftDate
tTime SwiftTime

Returns

bool

Load(Stream, int)

public static SwiftStatementOfHoldings Load(Stream aStream, int nMT)

Parameters

aStream Stream
nMT int

Returns

SwiftStatementOfHoldings

Load(TextReader, int)

public static SwiftStatementOfHoldings Load(TextReader aReader, int nMT)

Parameters

aReader TextReader
nMT int

Returns

SwiftStatementOfHoldings

Load(string, int)

public static SwiftStatementOfHoldings Load(string sFilename, int nMT)

Parameters

sFilename string
nMT int

Returns

SwiftStatementOfHoldings

Read(int, SwiftReader)

Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.

public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader)

Parameters

nMT int

Either 535 (for MT-535) or 571 (for MT-571).

aReader SwiftReader

Returns

SwiftStatementOfHoldings

Read(int, SwiftReader, bool)

Reads one or more adjacent SWIFT MT-571/MT-535 messages creating a single new SwiftStatementOfHoldings instance for it.

public static SwiftStatementOfHoldings Read(int nMT, SwiftReader aReader, bool fAll)

Parameters

nMT int
aReader SwiftReader
fAll bool

If true, then any directly adjacent SWIFT messages are automatically merged into the new SwiftStatementOfHoldings instance. This is repeated until the end of the input stream is found. If false, then only the first SWIFT message, terminated by a SWIFT End-Of-Text marker, or the end of the stream is read.

Returns

SwiftStatementOfHoldings

ReadMessage(SwiftStatementOfHoldingsMT535Reader)

Read a MT-535 message.

public bool ReadMessage(SwiftStatementOfHoldingsMT535Reader aReader)

Parameters

aReader SwiftStatementOfHoldingsMT535Reader

The reader that supplies the MT-535 data. Must not be null.

Returns

bool

ReadMessage(SwiftStatementOfHoldingsMT571Reader)

Read a MT-571 message.

public bool ReadMessage(SwiftStatementOfHoldingsMT571Reader aReader)

Parameters

aReader SwiftStatementOfHoldingsMT571Reader

The reader that supplies the MT-571 data. Must not be null.

Returns

bool

SaveMT535(Stream)

public void SaveMT535(Stream aStream)

Parameters

aStream Stream

SaveMT535(TextWriter)

public void SaveMT535(TextWriter aWriter)

Parameters

aWriter TextWriter

SaveMT535(string)

public void SaveMT535(string sFilename)

Parameters

sFilename string

WriteMT535(SwiftWriter, bool)

public void WriteMT535(SwiftWriter aWriter, bool fUpdateTotalValue = false)

Parameters

aWriter SwiftWriter
fUpdateTotalValue bool