/// <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(); }
/// <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(); }
/// <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(); } }
/// <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(); } }
/// <summary> /// Initializes a new instance of the DeleteQuoteRequest class. /// </summary> public DeleteQuoteRequest(QuoteId quoteId, System.DateTimeOffset effectiveAt) { QuoteId = quoteId; EffectiveAt = effectiveAt; CustomInit(); }