/// <summary>
 /// Initializes a new instance of the <see cref="WebhookPayload" /> class.
 /// </summary>
 /// <param name="AnalysisUrl">.</param>
 /// <param name="EntriesUrl">.</param>
 /// <param name="NotesUrl">.</param>
 /// <param name="OrderUrl">.</param>
 /// <param name="GuaranteeEligible">.</param>
 /// <param name="Status">Status.</param>
 /// <param name="Uuid">.</param>
 /// <param name="Headline">.</param>
 /// <param name="ReviewDisposition">.</param>
 /// <param name="AssociatedTeam">.</param>
 /// <param name="GetAutoDismiss">.</param>
 /// <param name="GetTeamDismissalDays">.</param>
 /// <param name="OrderId">.</param>
 /// <param name="OrderDate">.</param>
 /// <param name="OrderAmount">.</param>
 /// <param name="CreatedAt">.</param>
 /// <param name="UpdatedAt">nce + investigationId: 1 (number).</param>
 /// <param name="Score">.</param>
 /// <param name="CaseId">.</param>
 /// <param name="GuaranteeDisposition">GuaranteeDisposition.</param>
 public WebhookPayload(string AnalysisUrl = default(string), string EntriesUrl = default(string), string NotesUrl = default(string), string OrderUrl = default(string), bool?GuaranteeEligible = default(bool?), InvestigationStatus Status = default(InvestigationStatus), string Uuid = default(string), string Headline = default(string), string ReviewDisposition = default(string), Team AssociatedTeam = default(Team), bool?GetAutoDismiss = default(bool?), double?GetTeamDismissalDays = default(double?), double?OrderId = default(double?), string OrderDate = default(string), double?OrderAmount = default(double?), string CreatedAt = default(string), string UpdatedAt = default(string), double?Score = default(double?), double?CaseId = default(double?), GuaranteeDisposition GuaranteeDisposition = default(GuaranteeDisposition))
 {
     this.AnalysisUrl       = AnalysisUrl;
     this.EntriesUrl        = EntriesUrl;
     this.NotesUrl          = NotesUrl;
     this.OrderUrl          = OrderUrl;
     this.GuaranteeEligible = GuaranteeEligible;
     this.Status            = Status;
     this.Uuid                 = Uuid;
     this.Headline             = Headline;
     this.ReviewDisposition    = ReviewDisposition;
     this.AssociatedTeam       = AssociatedTeam;
     this.GetAutoDismiss       = GetAutoDismiss;
     this.GetTeamDismissalDays = GetTeamDismissalDays;
     this.OrderId              = OrderId;
     this.OrderDate            = OrderDate;
     this.OrderAmount          = OrderAmount;
     this.CreatedAt            = CreatedAt;
     this.UpdatedAt            = UpdatedAt;
     this.Score                = Score;
     this.CaseId               = CaseId;
     this.GuaranteeDisposition = GuaranteeDisposition;
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ModelCase" /> class.
        /// </summary>
        /// <param name="GuaranteeEligible">boolean value indicating if a guarantee can be requested for this Case.  If a guarantee has already been requested for this case, then this value will be &#39;false&#39;. (required).</param>
        /// <param name="Status">Status (required).</param>
        /// <param name="CaseId">The unique identifier assigned to the case when it is created. (required).</param>
        /// <param name="Score">A value from 0-1000 indicating the likelihood that the order/transaction is fraud. 0 indicates the highest risk, 1000 inidicates the lowest risk. (required).</param>
        /// <param name="Uuid">A universally unique id assigned to the case. (required).</param>
        /// <param name="Headline">The headline (aka name) assigned to the case. (required).</param>
        /// <param name="OrderId">The unique identifier for the order that was provided when the case was created. (required).</param>
        /// <param name="OrderAmount">The total price of the order, including shipping price and taxes. (required).</param>
        /// <param name="AssociatedTeam">The id for the team with which this case is associated. (required).</param>
        /// <param name="ReviewDisposition">ReviewDisposition (required).</param>
        /// <param name="CreatedAt">The date and time when the case was created. (required).</param>
        /// <param name="UpdatedAt">The date and time when the case was last updated. A (required).</param>
        /// <param name="GuaranteeDisposition">GuaranteeDisposition.</param>
        /// <param name="InvestigationId">DEPRECATED.  See caseId..</param>
        /// <param name="OrderDate">The date and time when the order was placed..</param>
        public ModelCase(bool?GuaranteeEligible = default(bool?), CaseStatus Status = default(CaseStatus), double?CaseId = default(double?), double?Score = default(double?), string Uuid = default(string), string Headline = default(string), string OrderId = default(string), double?OrderAmount = default(double?), Team AssociatedTeam = default(Team), ReviewDisposition ReviewDisposition = default(ReviewDisposition), string CreatedAt = default(string), string UpdatedAt = default(string), GuaranteeDisposition GuaranteeDisposition = default(GuaranteeDisposition), double?InvestigationId = default(double?), string OrderDate = default(string))
        {
            // to ensure "GuaranteeEligible" is required (not null)
            if (GuaranteeEligible == null)
            {
                throw new InvalidDataException("GuaranteeEligible is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.GuaranteeEligible = GuaranteeEligible;
            }
            // to ensure "Status" is required (not null)
            this.Status = Status;

            // to ensure "CaseId" is required (not null)
            if (CaseId == null)
            {
                throw new InvalidDataException("CaseId is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.CaseId = CaseId;
            }
            // to ensure "Score" is required (not null)
            if (Score == null)
            {
                throw new InvalidDataException("Score is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.Score = Score;
            }
            // to ensure "Uuid" is required (not null)
            if (Uuid == null)
            {
                throw new InvalidDataException("Uuid is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.Uuid = Uuid;
            }
            // to ensure "Headline" is required (not null)
            if (Headline == null)
            {
                throw new InvalidDataException("Headline is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.Headline = Headline;
            }
            // to ensure "OrderId" is required (not null)
            if (OrderId == null)
            {
                throw new InvalidDataException("OrderId is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.OrderId = OrderId;
            }
            // to ensure "OrderAmount" is required (not null)
            if (OrderAmount == null)
            {
                throw new InvalidDataException("OrderAmount is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.OrderAmount = OrderAmount;
            }
            // to ensure "AssociatedTeam" is required (not null)
            if (AssociatedTeam == null)
            {
                throw new InvalidDataException("AssociatedTeam is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.AssociatedTeam = AssociatedTeam;
            }
            // to ensure "ReviewDisposition" is required (not null)
            this.ReviewDisposition = ReviewDisposition;

            // to ensure "CreatedAt" is required (not null)
            if (CreatedAt == null)
            {
                throw new InvalidDataException("CreatedAt is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.CreatedAt = CreatedAt;
            }
            // to ensure "UpdatedAt" is required (not null)
            if (UpdatedAt == null)
            {
                throw new InvalidDataException("UpdatedAt is a required property for ModelCase and cannot be null");
            }
            else
            {
                this.UpdatedAt = UpdatedAt;
            }
            this.GuaranteeDisposition = GuaranteeDisposition;
            this.InvestigationId      = InvestigationId;
            this.OrderDate            = OrderDate;
        }