Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Transaction class.
 /// </summary>
 /// <param name="transactionId">Unique transaction identifier</param>
 /// <param name="type">LUSID transaction type code - Buy, Sell,
 /// StockIn, StockOut, etc</param>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="transactionDate">Transaction date</param>
 /// <param name="settlementDate">Settlement date</param>
 /// <param name="units">Quantity of transaction in units of the
 /// instrument</param>
 /// <param name="transactionPrice">Execution price for the
 /// transaction</param>
 /// <param name="totalConsideration">Total value of the transaction in
 /// settlement currency</param>
 /// <param name="source">Where this transaction came from. Possible
 /// values include: 'System', 'Client'</param>
 /// <param name="exchangeRate">Rate between transaction and settle
 /// currency</param>
 /// <param name="transactionCurrency">Transaction currency</param>
 /// <param name="counterpartyId">Counterparty identifier</param>
 public Transaction(string transactionId, string type, string instrumentUid, System.DateTimeOffset transactionDate, System.DateTimeOffset settlementDate, double units, TransactionPrice transactionPrice, CurrencyAndAmount totalConsideration, string source, double?exchangeRate = default(double?), string transactionCurrency = default(string), IList <PerpetualProperty> properties = default(IList <PerpetualProperty>), string counterpartyId = default(string), string nettingSet = default(string))
 {
     TransactionId       = transactionId;
     Type                = type;
     InstrumentUid       = instrumentUid;
     TransactionDate     = transactionDate;
     SettlementDate      = settlementDate;
     Units               = units;
     TransactionPrice    = transactionPrice;
     TotalConsideration  = totalConsideration;
     ExchangeRate        = exchangeRate;
     TransactionCurrency = transactionCurrency;
     Properties          = properties;
     CounterpartyId      = counterpartyId;
     Source              = source;
     NettingSet          = nettingSet;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the OutputTransaction class.
 /// </summary>
 /// <param name="transactionId">Unique transaction identifier</param>
 /// <param name="type">LUSID transaction type code - Buy, Sell,
 /// StockIn, StockOut, etc</param>
 /// <param name="description">LUSID transaction description</param>
 /// <param name="instrumentUid">Unique instrument identifier</param>
 /// <param name="transactionDate">Transaction date</param>
 /// <param name="settlementDate">Settlement date</param>
 /// <param name="units">Quantity of trade in units of the
 /// instrument</param>
 /// <param name="transactionPrice">Execution price for the
 /// transaction</param>
 /// <param name="totalConsideration">Total value of the transaction in
 /// settlement currency</param>
 /// <param name="exchangeRate">Rate between transaction and settlement
 /// currency</param>
 /// <param name="transactionToPortfolioRate">Rate between transaction
 /// and portfolio currency</param>
 /// <param name="transactionCurrency">Transaction currency</param>
 /// <param name="counterpartyId">Counterparty identifier</param>
 /// <param name="source">Where this transaction came from, either
 /// Client or System. Possible values include: 'System',
 /// 'Client'</param>
 /// <param name="transactionStatus">Transaction status (active, amended
 /// or cancelled). Possible values include: 'Active', 'Amended',
 /// 'Cancelled'</param>
 /// <param name="entryDateTime">Date/Time the transaction was booked
 /// into LUSID</param>
 /// <param name="cancelDateTime">Date/Time the cancellation was booked
 /// into LUSID</param>
 /// <param name="realisedGainLoss">Collection of gains or
 /// losses</param>
 public OutputTransaction(string transactionId = default(string), string type = default(string), string description = default(string), string instrumentUid = default(string), System.DateTimeOffset?transactionDate = default(System.DateTimeOffset?), System.DateTimeOffset?settlementDate = default(System.DateTimeOffset?), double?units = default(double?), TransactionPrice transactionPrice = default(TransactionPrice), CurrencyAndAmount totalConsideration = default(CurrencyAndAmount), double?exchangeRate = default(double?), double?transactionToPortfolioRate = default(double?), string transactionCurrency = default(string), IList <PerpetualProperty> properties = default(IList <PerpetualProperty>), string counterpartyId = default(string), string source = default(string), string nettingSet = default(string), string transactionStatus = default(string), System.DateTimeOffset?entryDateTime = default(System.DateTimeOffset?), System.DateTimeOffset?cancelDateTime = default(System.DateTimeOffset?), IList <RealisedGainLoss> realisedGainLoss = default(IList <RealisedGainLoss>))
 {
     TransactionId              = transactionId;
     Type                       = type;
     Description                = description;
     InstrumentUid              = instrumentUid;
     TransactionDate            = transactionDate;
     SettlementDate             = settlementDate;
     Units                      = units;
     TransactionPrice           = transactionPrice;
     TotalConsideration         = totalConsideration;
     ExchangeRate               = exchangeRate;
     TransactionToPortfolioRate = transactionToPortfolioRate;
     TransactionCurrency        = transactionCurrency;
     Properties                 = properties;
     CounterpartyId             = counterpartyId;
     Source                     = source;
     NettingSet                 = nettingSet;
     TransactionStatus          = transactionStatus;
     EntryDateTime              = entryDateTime;
     CancelDateTime             = cancelDateTime;
     RealisedGainLoss           = realisedGainLoss;
     CustomInit();
 }