public virtual async System.Threading.Tasks.Task <WriteResponse> attachAsync(AttachReference attachReference)
        {
            var request = new attachRequest()
            {
                passport        = passport,
                tokenPassport   = tokenPassport,
                applicationInfo = applicationInfo,
                partnerInfo     = partnerInfo,
                preferences     = preferences,
                attachReference = attachReference,
            };
            var response = await((NetSuitePortType)this).attachAsync(request);

            return(response.writeResponse);
        }
 /// <summary>
 /// Invokes NetSuite's detach(..) method.
 /// </summary>
 /// <param name="attachRef">The attach ref.</param>
 /// <returns></returns>
 public virtual WriteResponse Detach(AttachReference attachRef)
 {
     return(InvokeService <WriteResponse>(attachRef, "detach"));
 }