Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformation
 /// class.
 /// </summary>
 /// <param name="unitCurrency">Currency in which the rate of exchange
 /// is expressed in a currency exchange. In the example 1GBP = xxxCUR,
 /// the unit currency is GBP.</param>
 /// <param name="rateType">Specifies the type used to complete the
 /// currency exchange. Possible values include: 'Actual', 'Agreed',
 /// 'Indicative'</param>
 /// <param name="exchangeRate">The factor used for conversion of an
 /// amount from one currency to another. This reflects the price at
 /// which one currency was bought with another currency.</param>
 /// <param name="contractIdentification">Unique and unambiguous
 /// reference to the foreign exchange contract agreed between the
 /// initiating party/creditor and the debtor agent.</param>
 public OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformation(string unitCurrency, OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformationRateTypeEnum rateType, double?exchangeRate = default(double?), string contractIdentification = default(string))
 {
     UnitCurrency           = unitCurrency;
     ExchangeRate           = exchangeRate;
     RateType               = rateType;
     ContractIdentification = contractIdentification;
     CustomInit();
 }
Exemplo n.º 2
0
        internal static string ToSerializedValue(this OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformationRateTypeEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformationRateTypeEnum.Actual:
                return("Actual");

            case OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformationRateTypeEnum.Agreed:
                return("Agreed");

            case OBWriteInternationalScheduledResponse5DataInitiationExchangeRateInformationRateTypeEnum.Indicative:
                return("Indicative");
            }
            return(null);
        }