/// <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 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.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, string ExternalSystemUrl = 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.ExternalSystemUrl = ExternalSystemUrl;



            this.ModifyDate = ModifyDate;



            this.CreateDate = CreateDate;



            this.Trustor = Trustor;



            this.ExternalDataSources = ExternalDataSources;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ExternalContact" /> class.
        /// </summary>



        /// <param name="FirstName">The first name of the contact. (required).</param>



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



        /// <param name="LastName">The last name of the contact. (required).</param>



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



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



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



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



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



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



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



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



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



        /// <param name="Address">Address.</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="ExternalOrganization">ExternalOrganization.</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 ExternalContact(string FirstName = null, string MiddleName = null, string LastName = null, string Salutation = null, string Title = null, PhoneNumber WorkPhone = null, PhoneNumber CellPhone = null, PhoneNumber HomePhone = null, PhoneNumber OtherPhone = null, string WorkEmail = null, string PersonalEmail = null, string OtherEmail = null, ContactAddress Address = null, TwitterId TwitterId = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, ExternalOrganization ExternalOrganization = null, List <ExternalDataSource> ExternalDataSources = null)
        {
            // to ensure "FirstName" is required (not null)
            if (FirstName == null)
            {
                throw new InvalidDataException("FirstName is a required property for ExternalContact and cannot be null");
            }
            else
            {
                this.FirstName = FirstName;
            }



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



            this.MiddleName = MiddleName;



            this.Salutation = Salutation;



            this.Title = Title;



            this.WorkPhone = WorkPhone;



            this.CellPhone = CellPhone;



            this.HomePhone = HomePhone;



            this.OtherPhone = OtherPhone;



            this.WorkEmail = WorkEmail;



            this.PersonalEmail = PersonalEmail;



            this.OtherEmail = OtherEmail;



            this.Address = Address;



            this.TwitterId = TwitterId;



            this.ModifyDate = ModifyDate;



            this.CreateDate = CreateDate;



            this.ExternalOrganization = ExternalOrganization;



            this.ExternalDataSources = ExternalDataSources;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ExternalContact" /> class.
 /// </summary>
 /// <param name="FirstName">The first name of the contact. (required).</param>
 /// <param name="MiddleName">MiddleName.</param>
 /// <param name="LastName">The last name of the contact. (required).</param>
 /// <param name="Salutation">Salutation.</param>
 /// <param name="Title">Title.</param>
 /// <param name="WorkPhone">WorkPhone.</param>
 /// <param name="CellPhone">CellPhone.</param>
 /// <param name="HomePhone">HomePhone.</param>
 /// <param name="OtherPhone">OtherPhone.</param>
 /// <param name="WorkEmail">WorkEmail.</param>
 /// <param name="PersonalEmail">PersonalEmail.</param>
 /// <param name="OtherEmail">OtherEmail.</param>
 /// <param name="Address">Address.</param>
 /// <param name="TwitterId">TwitterId.</param>
 /// <param name="LineId">LineId.</param>
 /// <param name="WhatsAppId">WhatsAppId.</param>
 /// <param name="FacebookId">FacebookId.</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="ExternalOrganization">ExternalOrganization.</param>
 /// <param name="SurveyOptOut">SurveyOptOut.</param>
 /// <param name="ExternalSystemUrl">A string that identifies an external system-of-record resource that may have more detailed information on the contact. 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="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 ExternalContact(string FirstName = null, string MiddleName = null, string LastName = null, string Salutation = null, string Title = null, PhoneNumber WorkPhone = null, PhoneNumber CellPhone = null, PhoneNumber HomePhone = null, PhoneNumber OtherPhone = null, string WorkEmail = null, string PersonalEmail = null, string OtherEmail = null, ContactAddress Address = null, TwitterId TwitterId = null, LineId LineId = null, WhatsAppId WhatsAppId = null, FacebookId FacebookId = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, ExternalOrganization ExternalOrganization = null, bool?SurveyOptOut = null, string ExternalSystemUrl = null, List <ExternalDataSource> ExternalDataSources = null)
 {
     this.FirstName            = FirstName;
     this.MiddleName           = MiddleName;
     this.LastName             = LastName;
     this.Salutation           = Salutation;
     this.Title                = Title;
     this.WorkPhone            = WorkPhone;
     this.CellPhone            = CellPhone;
     this.HomePhone            = HomePhone;
     this.OtherPhone           = OtherPhone;
     this.WorkEmail            = WorkEmail;
     this.PersonalEmail        = PersonalEmail;
     this.OtherEmail           = OtherEmail;
     this.Address              = Address;
     this.TwitterId            = TwitterId;
     this.LineId               = LineId;
     this.WhatsAppId           = WhatsAppId;
     this.FacebookId           = FacebookId;
     this.ModifyDate           = ModifyDate;
     this.CreateDate           = CreateDate;
     this.ExternalOrganization = ExternalOrganization;
     this.SurveyOptOut         = SurveyOptOut;
     this.ExternalSystemUrl    = ExternalSystemUrl;
     this.ExternalDataSources  = ExternalDataSources;
 }
Exemplo n.º 4
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="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.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, string ExternalSystemUrl = null, DateTime?ModifyDate = null, DateTime?CreateDate = null, Trustor Trustor = null, List <ExternalDataSource> ExternalDataSources = 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.ExternalDataSources = ExternalDataSources;
 }