Ejemplo n.º 1
0
 // CreateCustomerProfileForDeposit
 public static long CreateCustomerProfileForDeposit(long user_id, string email, string descr)
 {
     LastError = String.Empty;
     CustomerProfileWS.CustomerProfileType m_new_cust = new CustomerProfileWS.CustomerProfileType();
     m_new_cust.merchantCustomerId = user_id.ToString();
     m_new_cust.email       = email;
     m_new_cust.description = descr;
     CustomerProfileWS.CreateCustomerProfileResponseType response = SoapAPIUtilities.Service.CreateCustomerProfile(SoapAPIUtilities.MerchantAuthentication, m_new_cust, CustomerProfileWS.ValidationModeEnum.none);
     if (response.resultCode == Vauction.CustomerProfileWS.MessageTypeEnum.Error)
     {
         SetLastError(response.messages);
     }
     return(response.customerProfileId);
 }
Ejemplo n.º 2
0
 // CreateCustomerProfile
 public static long CreateCustomerProfile(long user_id, string email, string lots)
 {
     LastError = String.Empty;
     CustomerProfileWS.CustomerProfileType m_new_cust = new CustomerProfileWS.CustomerProfileType();
     m_new_cust.merchantCustomerId = user_id.ToString();
     m_new_cust.email       = email;
     m_new_cust.description = String.Format("Payment for lot#: {0} ({1})", lots, DateTime.Now.ToString());
     CustomerProfileWS.CreateCustomerProfileResponseType response = SoapAPIUtilities.Service.CreateCustomerProfile(SoapAPIUtilities.MerchantAuthentication, m_new_cust, CustomerProfileWS.ValidationModeEnum.none);
     if (response.resultCode == Vauction.CustomerProfileWS.MessageTypeEnum.Error)
     {
         SetLastError(response.messages);
     }
     return(response.customerProfileId);
 }