/// <summary>
 /// Invokes NetSuite's initialize(..) method.
 /// </summary>
 /// <param name="record">The record to be initialized.</param>
 /// <returns>Response from the WebService.</returns>
 public virtual ReadResponse Initialize(InitializeRecord record)
 {
     return(InvokeService <ReadResponse>(record, "initialize"));
 }
        public virtual async System.Threading.Tasks.Task <ReadResponse> initializeAsync(InitializeRecord initializeRecord)
        {
            var request = new initializeRequest()
            {
                passport         = passport,
                tokenPassport    = tokenPassport,
                applicationInfo  = applicationInfo,
                partnerInfo      = partnerInfo,
                preferences      = preferences,
                initializeRecord = initializeRecord,
            };
            var response = await((NetSuitePortType)this).initializeAsync(request);

            return(response.readResponse);
        }