Class CompanyDetails
- Namespace
- Geotab.Checkmate.ObjectModel.Registration
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Company details for registration.
public class CompanyDetails : IDefaultable
- Inheritance
-
CompanyDetails
- Implements
- Inherited Members
Constructors
CompanyDetails()
Initializes a new instance of the CompanyDetails class.
public CompanyDetails()
CompanyDetails(string, string, string, string, int, string, bool, string, Guid?, RequireTraining?, string, Jurisdiction?, string, string?, string?, string?, string?, string?, string?, string?, string?, string?, string?)
Initializes a new instance of the CompanyDetails class.
public CompanyDetails(string companyName, string firstName, string lastName, string resellerName, int fleetSize, string comments, bool signUpForNew, string phoneNumber, Guid? industry, RequireTraining? requireTraining, string registrationDomain, Jurisdiction? jurisdiction, string timeZoneId = "America/New_York", string? companyPhoneNumber = null, string? country = null, string? state = null, string? city = null, string? website = null, string? accountId = null, string? brandingType = null, string? brandingName = null, string? email = null, string? language = null)
Parameters
companyName
stringThe company name.
firstName
stringThe account administrator first name.
lastName
stringThe account administrator last name.
resellerName
stringThe reseller name.
fleetSize
intThe number of vehicle in the company fleet.
comments
stringFree text field.
signUpForNew
boolSign-up to receive news about new telematics products, events and promotions.
phoneNumber
stringThe account administrator phone number.
industry
Guid?The company industry.
requireTraining
RequireTraining?Sign-up administrator to be contacted for on-boarding training.
registrationDomain
stringName of the domain where database is registered.
jurisdiction
Jurisdiction?The jurisdiction to register the database in.
timeZoneId
stringThe IANA Timezone Id used to determine local work times. This is typically the "home location" of the admin user. Default ["America/New_York"].
companyPhoneNumber
stringThe company phone number. Default [null].
country
stringThe company's office country. Default [null].
state
stringThe company's office state. Default [null].
city
stringThe company's office city. Default [null].
website
stringThe company website. Default [null].
accountId
stringThe account id of the company that database should be created for. Default [null].
brandingType
stringThe branding type: co-branding, whitelabel, geotab. Default [null].
brandingName
stringThe branding name. Default [null].
email
stringThe primary contact email address. Default [null].
language
stringThe primary contact language. Default [null].
Fields
MaxBrandingNameLength
Maximum BrandingName length that can be inserted into the MyAdmin db without truncation. This field maps to dbBrandingName.
public const int MaxBrandingNameLength = 30
Field Value
MaxCityLength
Maximum City name length.
public const int MaxCityLength = 256
Field Value
MaxCommentsLength
Maximum Comments length that can be inserted into the MyAdmin db without truncation. This field maps to sComments.
public const int MaxCommentsLength = 1000
Field Value
MaxCompanyNameLength
Maximum CompanyName length that can be inserted into the MyAdmin db without truncation. This field maps to sCompanyName.
public const int MaxCompanyNameLength = 256
Field Value
MaxFullNameLength
Maximum FullName length that can be inserted into the MyAdmin db without truncation. This field maps to sAdminName.
public const int MaxFullNameLength = 100
Field Value
MaxPhoneNumberLength
Maximum PhoneNumber length that can be inserted into the MyAdmin db without truncation. This field maps to sAdminContactNo.
public const int MaxPhoneNumberLength = 16
Field Value
MaxResellerNameLength
Maximum ResellerName length that can be inserted into the MyAdmin db without truncation. This field maps to sDealerName.
public const int MaxResellerNameLength = 50
Field Value
MaxStateLength
Maximum State name length.
public const int MaxStateLength = 256
Field Value
Properties
AccountId
Gets or sets the company account id.
public string? AccountId { get; set; }
Property Value
BrandingName
Gets or sets the branding name. Maximum length [50].
public string? BrandingName { get; set; }
Property Value
BrandingType
Gets or sets the branding type: Co-Branding, Whitelabel.
public string? BrandingType { get; set; }
Property Value
City
Gets or sets the city where company office is located. Maximum length [256].
public string? City { get; set; }
Property Value
Comments
Gets or sets free text field. Maximum length [1000].
public string? Comments { get; set; }
Property Value
CompanyName
Gets or sets the company name. Maximum length [256].
public string? CompanyName { get; set; }
Property Value
CompanyPhoneNumber
Gets or sets the company phone number. Maximum length [50].
public string? CompanyPhoneNumber { get; set; }
Property Value
Country
Gets or sets the 2-letter ISO country code where company office is located. Maximum length [2].
public string? Country { get; set; }
Property Value
Gets or sets the primary contact email.
public string? Email { get; set; }
Property Value
FirstName
Gets or sets the account administrator's first name. Maximum length [100] is shared between FirstName, one added space, and LastName.
public string? FirstName { get; set; }
Property Value
FleetSize
Gets or sets the number of vehicles in the company fleet.
public int? FleetSize { get; set; }
Property Value
FullName
Gets the account administrator's first and last name.
public string FullName { get; }
Property Value
Industry
Gets or sets the company industry guid the same as SystemSettings Industry property.
public Guid? Industry { get; set; }
Property Value
Jurisdiction
Gets or sets the Jurisdiction for data residency purposes.
public Jurisdiction? Jurisdiction { get; set; }
Property Value
Language
Gets or sets the 2-letter ISO primary contact language code with 2-letter region code. For instance: "en-US" for English.
public string? Language { get; set; }
Property Value
LastName
Gets or sets the account administrator's last name. Maximum length [100] is shared between FirstName, one added space, and LastName.
public string? LastName { get; set; }
Property Value
PhoneNumber
Gets or sets the account administrator's phone number. Maximum length [50].
public string? PhoneNumber { get; set; }
Property Value
RegistrationDomain
Gets or sets the registration domain name where database is created.
public string? RegistrationDomain { get; set; }
Property Value
RequireTraining
Gets or sets whether administrator required training or not.
public RequireTraining? RequireTraining { get; set; }
Property Value
ResellerName
Gets or sets the reseller name. Maximum length [50].
public string? ResellerName { get; set; }
Property Value
SignUpForNews
Gets or sets a value indicating whether sign-up to receive news about new telematics products, events and promotions.
public bool? SignUpForNews { get; set; }
Property Value
State
Gets or sets the state where company office is located. Maximum length [256].
public string? State { get; set; }
Property Value
SubIndustry
Gets or sets the company sub industry guid.
public Guid? SubIndustry { get; set; }
Property Value
TimeZoneId
Gets or sets the IANA Timezone Id of the device used to determine local work times. This is typically the "home location" of the admin user.
public string? TimeZoneId { get; set; }
Property Value
Remarks
Retrieve a list of valid timezone Id's by querying "GetTimeZones".
Website
Gets or sets the company website. Maximum length [256].
public string? Website { get; set; }
Property Value
Methods
PopulateDefaults()
Populate non-required empty (null) properties with default values.
public void PopulateDefaults()
SetSubIndustry()
Sets the sub industry based on the industry.
public void SetSubIndustry()
ValidateForMyAdminDb()
Throws if any of the CompanyDetails string fields are too long for the MyAdmin database.
public void ValidateForMyAdminDb()
ValidateForNewFlowMyAdminDb()
Throws if any of the CompanyDetails string fields that are required in new registration flow are invalid for the MyAdmin database.
public void ValidateForNewFlowMyAdminDb()