/// <summary>
 /// Initializes a new instance of the <see cref="UpsertQuoteRequest" /> class.
 /// </summary>
 /// <param name="quoteId">quoteId (required).</param>
 /// <param name="metricValue">metricValue.</param>
 /// <param name="lineage">Description of the quote&#39;s lineage e.g. &#39;FundAccountant_GreenQuality&#39;..</param>
 /// <param name="scaleFactor">An optional scale factor for non-standard scaling of quotes against the instrument. For example, if you wish the quote&#39;s Value to be scaled down by a factor of 100, enter 100. If not supplied, the default ScaleFactor is 1..</param>
 public UpsertQuoteRequest(QuoteId quoteId = default(QuoteId), MetricValue metricValue = default(MetricValue), string lineage = default(string), decimal?scaleFactor = default(decimal?))
 {
     // to ensure "quoteId" is required (not null)
     this.QuoteId     = quoteId ?? throw new ArgumentNullException("quoteId is a required property for UpsertQuoteRequest and cannot be null");
     this.MetricValue = metricValue;
     this.Lineage     = lineage;
     this.ScaleFactor = scaleFactor;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Quote" /> class.
 /// </summary>
 /// <param name="quoteId">quoteId (required).</param>
 /// <param name="metricValue">metricValue.</param>
 /// <param name="lineage">Description of the quote&#39;s lineage e.g. &#39;FundAccountant_GreenQuality&#39;..</param>
 /// <param name="cutLabel">The cut label that this quote was updated or inserted with..</param>
 /// <param name="uploadedBy">The unique id of the user that updated or inserted the quote. (required).</param>
 /// <param name="asAt">The asAt datetime at which the quote was committed to LUSID. (required).</param>
 /// <param name="scaleFactor">An optional scale factor for non-standard scaling of quotes against the instrument. For example, if you wish the quote&#39;s Value to be scaled down by a factor of 100, enter 100. If not supplied, the default ScaleFactor is 1..</param>
 public Quote(QuoteId quoteId = default(QuoteId), MetricValue metricValue = default(MetricValue), string lineage = default(string), string cutLabel = default(string), string uploadedBy = default(string), DateTimeOffset asAt = default(DateTimeOffset), decimal?scaleFactor = default(decimal?))
 {
     // to ensure "quoteId" is required (not null)
     this.QuoteId = quoteId ?? throw new ArgumentNullException("quoteId is a required property for Quote and cannot be null");
     // to ensure "uploadedBy" is required (not null)
     this.UploadedBy  = uploadedBy ?? throw new ArgumentNullException("uploadedBy is a required property for Quote and cannot be null");
     this.AsAt        = asAt;
     this.MetricValue = metricValue;
     this.Lineage     = lineage;
     this.CutLabel    = cutLabel;
     this.ScaleFactor = scaleFactor;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="UpsertQuoteRequest" /> class.
        /// </summary>
        /// <param name="quoteId">quoteId (required).</param>
        /// <param name="metricValue">metricValue.</param>
        /// <param name="lineage">Description of the quote&#39;s lineage e.g. &#39;FundAccountant_GreenQuality&#39;..</param>
        public UpsertQuoteRequest(QuoteId quoteId = default(QuoteId), MetricValue metricValue = default(MetricValue), string lineage = default(string))
        {
            // to ensure "quoteId" is required (not null)
            if (quoteId == null)
            {
                throw new InvalidDataException("quoteId is a required property for UpsertQuoteRequest and cannot be null");
            }
            else
            {
                this.QuoteId = quoteId;
            }

            this.MetricValue = metricValue;
            this.Lineage     = lineage;
        }
Example #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Quote" /> class.
        /// </summary>
        /// <param name="quoteId">quoteId (required).</param>
        /// <param name="metricValue">metricValue.</param>
        /// <param name="lineage">Description of the quote&#39;s lineage e.g. &#39;FundAccountant_GreenQuality&#39;..</param>
        /// <param name="cutLabel">The cut label that this quote was updated or inserted with..</param>
        /// <param name="uploadedBy">The unique id of the user that updated or inserted the quote. (required).</param>
        /// <param name="asAt">The asAt datetime at which the quote was committed to LUSID. (required).</param>
        /// <param name="scaleFactor">An optional scale factor for non-standard scaling of quotes against the instrument. If not supplied, the default ScaleFactor is 1..</param>
        public Quote(QuoteId quoteId = default(QuoteId), MetricValue metricValue = default(MetricValue), string lineage = default(string), string cutLabel = default(string), string uploadedBy = default(string), DateTimeOffset?asAt = default(DateTimeOffset?), decimal?scaleFactor = default(decimal?))
        {
            // to ensure "quoteId" is required (not null)
            if (quoteId == null)
            {
                throw new InvalidDataException("quoteId is a required property for Quote and cannot be null");
            }
            else
            {
                this.QuoteId = quoteId;
            }

            this.Lineage  = lineage;
            this.CutLabel = cutLabel;
            // to ensure "uploadedBy" is required (not null)
            if (uploadedBy == null)
            {
                throw new InvalidDataException("uploadedBy is a required property for Quote and cannot be null");
            }
            else
            {
                this.UploadedBy = uploadedBy;
            }

            // to ensure "asAt" is required (not null)
            if (asAt == null)
            {
                throw new InvalidDataException("asAt is a required property for Quote and cannot be null");
            }
            else
            {
                this.AsAt = asAt;
            }

            this.ScaleFactor = scaleFactor;
            this.MetricValue = metricValue;
            this.Lineage     = lineage;
            this.CutLabel    = cutLabel;
            this.ScaleFactor = scaleFactor;
        }