Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the UpsertQuoteRequest class.
 /// </summary>
 public UpsertQuoteRequest(QuoteId quoteId, MetricValue metricValue, QuoteLineage quoteLineage, System.DateTimeOffset?effectiveAt = default(System.DateTimeOffset?))
 {
     QuoteId      = quoteId;
     MetricValue  = metricValue;
     QuoteLineage = quoteLineage;
     EffectiveAt  = effectiveAt;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the Quote class.
 /// </summary>
 public Quote(QuoteId quoteId, MetricValue metricValue, QuoteLineage quoteLineage, System.DateTimeOffset?effectiveAtDate = default(System.DateTimeOffset?), System.DateTimeOffset?asAtDate = default(System.DateTimeOffset?))
 {
     QuoteId         = quoteId;
     MetricValue     = metricValue;
     QuoteLineage    = quoteLineage;
     EffectiveAtDate = effectiveAtDate;
     AsAtDate        = asAtDate;
     CustomInit();
 }
Esempio n. 3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (QuoteId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "QuoteId");
     }
     if (QuoteId != null)
     {
         QuoteId.Validate();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (QuoteId == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "QuoteId");
     }
     if (MetricValue == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "MetricValue");
     }
     if (QuoteLineage == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "QuoteLineage");
     }
     if (QuoteId != null)
     {
         QuoteId.Validate();
     }
     if (QuoteLineage != null)
     {
         QuoteLineage.Validate();
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the DeleteQuoteRequest class.
 /// </summary>
 public DeleteQuoteRequest(QuoteId quoteId, System.DateTimeOffset effectiveAt)
 {
     QuoteId     = quoteId;
     EffectiveAt = effectiveAt;
     CustomInit();
 }