Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the
 /// OBWriteInternationalScheduledResponse3DataExchangeRateInformation
 /// 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="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="rateType">Specifies the type used to complete the
 /// currency exchange. Possible values include: 'Actual', 'Agreed',
 /// 'Indicative'</param>
 /// <param name="contractIdentification">Unique and unambiguous
 /// reference to the foreign exchange contract agreed between the
 /// initiating party/creditor and the debtor agent.</param>
 /// <param name="expirationDateTime">Specified date and time the
 /// exchange rate agreement will expire.All dates in the JSON payloads
 /// are represented in ISO 8601 date-time format.
 /// All date-time fields in responses must include the timezone. An
 /// example is below:
 /// 2017-04-05T10:43:07+00:00</param>
 public OBWriteInternationalScheduledResponse3DataExchangeRateInformation(string unitCurrency, double exchangeRate, OBWriteInternationalScheduledResponse3DataExchangeRateInformationRateTypeEnum rateType, string contractIdentification = default(string), System.DateTimeOffset?expirationDateTime = default(System.DateTimeOffset?))
 {
     UnitCurrency           = unitCurrency;
     ExchangeRate           = exchangeRate;
     RateType               = rateType;
     ContractIdentification = contractIdentification;
     ExpirationDateTime     = expirationDateTime;
     CustomInit();
 }
Beispiel #2
0
        internal static string ToSerializedValue(this OBWriteInternationalScheduledResponse3DataExchangeRateInformationRateTypeEnum value)
        {
            switch (value)
            {
            case OBWriteInternationalScheduledResponse3DataExchangeRateInformationRateTypeEnum.Actual:
                return("Actual");

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

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