Ejemplo n.º 1
0
 public ContactWS(ContactWS other) {
   setId(other.getId());
   setOrganizationName(other.getOrganizationName());
   setAddress1(other.getAddress1());
   setAddress2(other.getAddress2());
   setCity(other.getCity());
   setStateProvince(other.getStateProvince());
   setPostalCode(other.getPostalCode());
   setCountryCode(other.getCountryCode());
   setLastName(other.getLastName());
   setFirstName(other.getFirstName());
   setInitial(other.getInitial());
   setTitle(other.getTitle());
   setPhoneCountryCode(other.getPhoneCountryCode());
   setPhoneAreaCode(other.getPhoneAreaCode());
   setPhoneNumber(other.getPhoneNumber());
   setFaxCountryCode(other.getFaxCountryCode());
   setFaxAreaCode(other.getFaxAreaCode());
   setFaxNumber(other.getFaxNumber());
   setEmail(other.getEmail());
   setCreateDate(other.getCreateDate());
   setDeleted(other.getDeleted());
   setInclude(other.getInclude());
 }
 /**
  * To Create Customer Contact
  *
  * @param email
  * @return
  */
 public static ContactWS createCustomerContact(String email) {
   ContactWS contact = new ContactWS();
   contact.setEmail(email);
   // rest of the fields are not mandatory
   return contact;
 }