Example #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="userId"></param>
 /// <param name="companyOrOrganization"></param>
 /// <param name="commerceSummary"></param>
 /// <param name="item"></param>
 /// <param name="groups"></param>
 /// <param name="attributes"></param>
 /// <param name="notes"></param>
 /// <param name="acceptsMarketing"></param>
 /// <param name="taxExempt"></param>
 /// <param name="taxId"></param>
 /// <returns></returns>
 public static CustomerAccount GenerateCustomerAccount(string userId, string companyOrOrganization, CommerceSummary commerceSummary,
     CustomerContact item, List<CustomerAttribute> attributes, List<CustomerNote> notes, bool acceptsMarketing,
     bool taxExempt, string taxId)
 {
     return new CustomerAccount()
     {
         UserId = userId,
         CommerceSummary = commerceSummary,
         CompanyOrOrganization = companyOrOrganization,
         Contacts = new List<CustomerContact>() { item },
         Attributes = attributes,
         Notes = notes,
         AcceptsMarketing = acceptsMarketing,
         TaxExempt = taxExempt,
         TaxId = taxId
     };
 }
Example #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="userId"></param>
 /// <param name="item"></param>
 /// <returns></returns>
 public static CustomerAccount GenerateCustomerAccount(string userId, CustomerContact item)
 {
     return new CustomerAccount()
     {
         UserId = userId,
         Contacts = new List<CustomerContact>() { item }
     };
 }