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
companyNamestringThe company name.
firstNamestringThe account administrator first name.
lastNamestringThe account administrator last name.
resellerNamestringThe reseller name.
fleetSizeintThe number of vehicle in the company fleet.
commentsstringFree text field.
signUpForNewboolSign-up to receive news about new telematics products, events and promotions.
phoneNumberstringThe account administrator phone number.
industryGuid?The company industry.
requireTrainingRequireTraining?Sign-up administrator to be contacted for on-boarding training.
registrationDomainstringName of the domain where database is registered.
jurisdictionJurisdiction?The jurisdiction to register the database in.
timeZoneIdstringThe IANA Timezone Id used to determine local work times. This is typically the "home location" of the admin user. Default ["America/New_York"].
companyPhoneNumberstringThe company phone number. Default [null].
countrystringThe company's office country. Default [null].
statestringThe company's office state. Default [null].
citystringThe company's office city. Default [null].
websitestringThe company website. Default [null].
accountIdstringThe account id of the company that database should be created for. Default [null].
brandingTypestringThe branding type: co-branding, whitelabel, geotab. Default [null].
brandingNamestringThe branding name. Default [null].
emailstringThe primary contact email address. Default [null].
languagestringThe 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()