/// <summary>
 /// Initializes a new instance of the <see cref="ExternalOrganization" /> class.
 /// </summary>
 /// <param name="Id">The globally unique identifier for the object..</param>
 /// <param name="Name">The name of the company. (required).</param>
 /// <param name="CompanyType">CompanyType.</param>
 /// <param name="Industry">Industry.</param>
 /// <param name="PrimaryContactId">PrimaryContactId.</param>
 /// <param name="Address">Address.</param>
 /// <param name="PhoneNumber">PhoneNumber.</param>
 /// <param name="FaxNumber">FaxNumber.</param>
 /// <param name="EmployeeCount">EmployeeCount.</param>
 /// <param name="Revenue">Revenue.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="Websites">Websites.</param>
 /// <param name="Tickers">Tickers.</param>
 /// <param name="TwitterId">TwitterId.</param>
 /// <param name="ExternalSystemUrl">A string that identifies an external system-of-record resource that may have more detailed information on the organization. It should be a valid URL (including the http/https protocol, port, and path [if any]). The value is automatically trimmed of any leading and trailing whitespace..</param>
 /// <param name="ModifyDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="CreateDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="Trustor">Trustor.</param>
 /// <param name="Schema">The schema defining custom fields for this contact.</param>
 /// <param name="CustomFields">Custom fields defined in the schema referenced by schemaId and schemaVersion..</param>
 public ExternalOrganization(string Id = null, string Name = null, string CompanyType = null, string Industry = null, string PrimaryContactId = null, ContactAddress Address = null, PhoneNumber PhoneNumber = null, PhoneNumber FaxNumber = null, long?EmployeeCount = null, long?Revenue = null, List <string> Tags = null, List <string> Websites = null, List <Ticker> Tickers = null, TwitterId TwitterId = null, string ExternalSystemUrl = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, Trustor Trustor = null, DataSchema Schema = null, Dictionary <string, Object> CustomFields = null)
 {
     this.Id                = Id;
     this.Name              = Name;
     this.CompanyType       = CompanyType;
     this.Industry          = Industry;
     this.PrimaryContactId  = PrimaryContactId;
     this.Address           = Address;
     this.PhoneNumber       = PhoneNumber;
     this.FaxNumber         = FaxNumber;
     this.EmployeeCount     = EmployeeCount;
     this.Revenue           = Revenue;
     this.Tags              = Tags;
     this.Websites          = Websites;
     this.Tickers           = Tickers;
     this.TwitterId         = TwitterId;
     this.ExternalSystemUrl = ExternalSystemUrl;
     this.ModifyDate        = ModifyDate;
     this.CreateDate        = CreateDate;
     this.Trustor           = Trustor;
     this.Schema            = Schema;
     this.CustomFields      = CustomFields;
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExternalOrganization" /> class.
        /// </summary>


        /// <param name="Id">The globally unique identifier for the object..</param>



        /// <param name="Name">The name of the company. (required).</param>



        /// <param name="CompanyType">CompanyType.</param>



        /// <param name="Industry">Industry.</param>



        /// <param name="PrimaryContactId">PrimaryContactId.</param>



        /// <param name="Address">Address.</param>



        /// <param name="PhoneNumber">PhoneNumber.</param>



        /// <param name="FaxNumber">FaxNumber.</param>



        /// <param name="EmployeeCount">EmployeeCount.</param>



        /// <param name="Revenue">Revenue.</param>



        /// <param name="Tags">Tags.</param>



        /// <param name="Websites">Websites.</param>



        /// <param name="Tickers">Tickers.</param>



        /// <param name="TwitterId">TwitterId.</param>



        /// <param name="ModifyDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="CreateDate">Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ.</param>



        /// <param name="Trustor">Trustor.</param>



        /// <param name="ExternalDataSources">Links to the sources of data (e.g. one source might be a CRM) that contributed data to this record.  Read-only, and only populated when requested via expand param..</param>



        public ExternalOrganization(string Id = null, string Name = null, string CompanyType = null, string Industry = null, string PrimaryContactId = null, ContactAddress Address = null, PhoneNumber PhoneNumber = null, PhoneNumber FaxNumber = null, long?EmployeeCount = null, long?Revenue = null, List <string> Tags = null, List <string> Websites = null, List <Ticker> Tickers = null, TwitterId TwitterId = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, Trustor Trustor = null, List <ExternalDataSource> ExternalDataSources = null)
        {
            // to ensure "Name" is required (not null)
            if (Name == null)
            {
                throw new InvalidDataException("Name is a required property for ExternalOrganization and cannot be null");
            }
            else
            {
                this.Name = Name;
            }



            this.Id = Id;



            this.CompanyType = CompanyType;



            this.Industry = Industry;



            this.PrimaryContactId = PrimaryContactId;



            this.Address = Address;



            this.PhoneNumber = PhoneNumber;



            this.FaxNumber = FaxNumber;



            this.EmployeeCount = EmployeeCount;



            this.Revenue = Revenue;



            this.Tags = Tags;



            this.Websites = Websites;



            this.Tickers = Tickers;



            this.TwitterId = TwitterId;



            this.ModifyDate = ModifyDate;



            this.CreateDate = CreateDate;



            this.Trustor = Trustor;



            this.ExternalDataSources = ExternalDataSources;
        }