All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.active24.client.fred.data.create.contact.ContactCreateRequest Maven / Gradle / Ivy

There is a newer version: 2.50
Show newest version
package cz.active24.client.fred.data.create.contact;

import cz.active24.client.fred.data.EppRequest;
import cz.active24.client.fred.data.common.contact.AddressData;
import cz.active24.client.fred.data.common.contact.DiscloseData;
import cz.active24.client.fred.data.common.contact.IdentificationData;
import cz.active24.client.fred.data.common.contact.PostalInfoData;
import cz.active24.client.fred.data.create.CreateRequest;
import cz.active24.client.fred.eppclient.objectstrategy.ServerObjectType;

import java.io.Serializable;

/**
 * A contact create command is used to register a new contact.
 *
 * 
    *
  • {@link ContactCreateRequest#id} - the contact handle
  • *
  • {@link ContactCreateRequest#postalInfo} - contact’s postal information, see {@link PostalInfoData}
  • *
  • {@link ContactCreateRequest#voice} - telephone number
  • *
  • {@link ContactCreateRequest#fax} - fax number
  • *
  • {@link ContactCreateRequest#email} - a comma-separated list of email addresses
  • *
  • {@link ContactCreateRequest#authInfo} - authorization information (transfer password); if omitted, the password will be generated by the server
  • *
  • {@link ContactCreateRequest#disclose} - contact information disclosure settings, see {@link DiscloseData}
  • *
  • {@link ContactCreateRequest#vat} - VAT-payer identifier
  • *
  • {@link ContactCreateRequest#ident} - identity-document identification, see {@link IdentificationData}
  • *
  • {@link ContactCreateRequest#notifyEmail} - a comma-separated list of notification email address(es)
  • *
  • {@link ContactCreateRequest#mailingAddress} - mailing address extension
  • *
* * @see FRED documentation */ public class ContactCreateRequest extends EppRequest implements Serializable, CreateRequest { private String id; private PostalInfoData postalInfo; private String voice; private String fax; private String email; private String authInfo; private DiscloseData disclose; private String vat; private IdentificationData ident; private String notifyEmail; private AddressData mailingAddress; public ContactCreateRequest(String contactId, PostalInfoData postalInfoData, String email) { setServerObjectType(ServerObjectType.CONTACT); this.setId(contactId); this.setPostalInfo(postalInfoData); this.setEmail(email); } public String getId() { return id; } protected void setId(String id) { this.id = id; } public PostalInfoData getPostalInfo() { return postalInfo; } protected void setPostalInfo(PostalInfoData postalInfo) { this.postalInfo = postalInfo; } public String getVoice() { return voice; } public void setVoice(String voice) { this.voice = voice; } public String getFax() { return fax; } public void setFax(String fax) { this.fax = fax; } public String getEmail() { return email; } protected void setEmail(String email) { this.email = email; } public String getAuthInfo() { return authInfo; } public void setAuthInfo(String authInfo) { this.authInfo = authInfo; } public DiscloseData getDisclose() { return disclose; } public void setDisclose(DiscloseData disclose) { this.disclose = disclose; } public String getVat() { return vat; } public void setVat(String vat) { this.vat = vat; } public IdentificationData getIdent() { return ident; } public void setIdent(IdentificationData ident) { this.ident = ident; } public String getNotifyEmail() { return notifyEmail; } public void setNotifyEmail(String notifyEmail) { this.notifyEmail = notifyEmail; } public AddressData getMailingAddress() { return mailingAddress; } public void setMailingAddress(AddressData mailingAddress) { this.mailingAddress = mailingAddress; } @Override public String toString() { final StringBuffer sb = new StringBuffer("ContactCreateRequest{"); sb.append("id='").append(id).append('\''); sb.append(", postalInfo=").append(postalInfo); sb.append(", voice='").append(voice).append('\''); sb.append(", fax='").append(fax).append('\''); sb.append(", email='").append(email).append('\''); sb.append(", authInfo='").append(authInfo).append('\''); sb.append(", disclose=").append(disclose); sb.append(", vat='").append(vat).append('\''); sb.append(", ident=").append(ident); sb.append(", notifyEmail='").append(notifyEmail).append('\''); sb.append(", mailingAddress=").append(mailingAddress); sb.append('}'); return sb.toString(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy