package api.unicore.component;
import static api.util.ComponentConstants.STRING_NULL;
import static api.util.ComponentConstants.STRING_NULL_CODE;
import static org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion.NON_NULL;
import api.UnoComponent;
import api.unicore.component_manual.BrandingProfile;
import api.util.StringFormat;
import com.fortify.annotations.FortifyNotPassword;
import iapp.services.ServerObject;
import iapp.util.audit.AuditHelper;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.FormParam;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* @author CodeGen [Liza Zhydok]
* @company UnitedThinkers
* @since 2016/06/29
*/
@JsonSerialize(include=NON_NULL)
@XmlType(propOrder={"unipayPortalHost", "unipayName", "unichargeName", "unibillName", "unichargeRealtimeProcessingHost", "unichargeBatchProcessingHost", "unichargeRealtimeSpecificationHost", "unichargeBatchSpecificationHost", "unibillProcessingHost", "unibillSpecificationHost", "unipayDocumentationHost", "supportSystemHost", "supportSystemUsername", "supportSystemPassword", "externalOnboardingDocumentationHost", "onboardingContactPhone", "onboardingContactEmail", "merchantServicesPhone", "merchantServicesFax", "merchantServicesEmail", "merchantWorkHours", "supportPhone", "supportFax", "supportEmail", "supportWorkHours"})
@JsonPropertyOrder({"unipayPortalHost", "unipayName", "unichargeName", "unibillName", "unichargeRealtimeProcessingHost", "unichargeBatchProcessingHost", "unichargeRealtimeSpecificationHost", "unichargeBatchSpecificationHost", "unibillProcessingHost", "unibillSpecificationHost", "unipayDocumentationHost", "supportSystemHost", "supportSystemUsername", "supportSystemPassword", "externalOnboardingDocumentationHost", "onboardingContactPhone", "onboardingContactEmail", "merchantServicesPhone", "merchantServicesFax", "merchantServicesEmail", "merchantWorkHours", "supportPhone", "supportFax", "supportEmail", "supportWorkHours"})
@XmlAccessorType(XmlAccessType.NONE)
@XmlSeeAlso(BrandingProfile.class)
public abstract class AbstractBrandingProfile extends UnoComponent<unicore.model.BrandingProfile> {
@FormParam("unipayPortalHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unipayPortalHost;
@FormParam("unipayName")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unipayName;
@FormParam("unichargeName")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unichargeName;
@FormParam("unibillName")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unibillName;
@FormParam("unichargeRealtimeProcessingHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unichargeRealtimeProcessingHost;
@FormParam("unichargeBatchProcessingHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unichargeBatchProcessingHost;
@FormParam("unichargeRealtimeSpecificationHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unichargeRealtimeSpecificationHost;
@FormParam("unichargeBatchSpecificationHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unichargeBatchSpecificationHost;
@FormParam("unibillProcessingHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unibillProcessingHost;
@FormParam("unibillSpecificationHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unibillSpecificationHost;
@FormParam("unipayDocumentationHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String unipayDocumentationHost;
@FormParam("supportSystemHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportSystemHost;
@FormParam("supportSystemUsername")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportSystemUsername;
@FormParam("supportSystemPassword")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
@FortifyNotPassword
protected String supportSystemPassword;
@FormParam("externalOnboardingDocumentationHost")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String externalOnboardingDocumentationHost;
@FormParam("onboardingContactPhone")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String onboardingContactPhone;
@FormParam("onboardingContactEmail")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String onboardingContactEmail;
@FormParam("merchantServicesPhone")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String merchantServicesPhone;
@FormParam("merchantServicesFax")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String merchantServicesFax;
@FormParam("merchantServicesEmail")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String merchantServicesEmail;
@FormParam("merchantWorkHours")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String merchantWorkHours;
@FormParam("supportPhone")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportPhone;
@FormParam("supportFax")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportFax;
@FormParam("supportEmail")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportEmail;
@FormParam("supportWorkHours")
@StringFormat
@DefaultValue(STRING_NULL_CODE)
protected String supportWorkHours;
public AbstractBrandingProfile(){
super();
applyDefaults();
}
public AbstractBrandingProfile(unicore.model.BrandingProfile object){
super(object);
}
private void applyDefaults() {
if (!isProxyObject()) {
unipayPortalHost = STRING_NULL;
unipayName = STRING_NULL;
unichargeName = STRING_NULL;
unibillName = STRING_NULL;
unichargeRealtimeProcessingHost = STRING_NULL;
unichargeBatchProcessingHost = STRING_NULL;
unichargeRealtimeSpecificationHost = STRING_NULL;
unichargeBatchSpecificationHost = STRING_NULL;
unibillProcessingHost = STRING_NULL;
unibillSpecificationHost = STRING_NULL;
unipayDocumentationHost = STRING_NULL;
supportSystemHost = STRING_NULL;
supportSystemUsername = STRING_NULL;
supportSystemPassword = STRING_NULL;
externalOnboardingDocumentationHost = STRING_NULL;
onboardingContactPhone = STRING_NULL;
onboardingContactEmail = STRING_NULL;
merchantServicesPhone = STRING_NULL;
merchantServicesFax = STRING_NULL;
merchantServicesEmail = STRING_NULL;
merchantWorkHours = STRING_NULL;
supportPhone = STRING_NULL;
supportFax = STRING_NULL;
supportEmail = STRING_NULL;
supportWorkHours = STRING_NULL;
}
}
@Override
public void from() {
fromInternal();
super.from();
}
protected abstract void fromInternal();
@Override
public abstract void to();
@Override
public abstract void initializeNew();
@Override
public String toString(){
StringBuilder sb = new StringBuilder();
sb.append("brandingProfile: {");
sb.append("unipayPortalHost: ");
sb.append(unipayPortalHost);
sb.append(',').append(' ');
sb.append("unipayName: ");
sb.append(unipayName);
sb.append(',').append(' ');
sb.append("unichargeName: ");
sb.append(unichargeName);
sb.append(',').append(' ');
sb.append("unibillName: ");
sb.append(unibillName);
sb.append(',').append(' ');
sb.append("unichargeRealtimeProcessingHost: ");
sb.append(unichargeRealtimeProcessingHost);
sb.append(',').append(' ');
sb.append("unichargeBatchProcessingHost: ");
sb.append(unichargeBatchProcessingHost);
sb.append(',').append(' ');
sb.append("unichargeRealtimeSpecificationHost: ");
sb.append(unichargeRealtimeSpecificationHost);
sb.append(',').append(' ');
sb.append("unichargeBatchSpecificationHost: ");
sb.append(unichargeBatchSpecificationHost);
sb.append(',').append(' ');
sb.append("unibillProcessingHost: ");
sb.append(unibillProcessingHost);
sb.append(',').append(' ');
sb.append("unibillSpecificationHost: ");
sb.append(unibillSpecificationHost);
sb.append(',').append(' ');
sb.append("unipayDocumentationHost: ");
sb.append(unipayDocumentationHost);
sb.append(',').append(' ');
sb.append("supportSystemHost: ");
sb.append(supportSystemHost);
sb.append(',').append(' ');
sb.append("supportSystemUsername: ");
sb.append(supportSystemUsername);
sb.append(',').append(' ');
sb.append("supportSystemPassword: ");
sb.append(supportSystemPassword);
sb.append(',').append(' ');
sb.append("externalOnboardingDocumentationHost: ");
sb.append(externalOnboardingDocumentationHost);
sb.append(',').append(' ');
sb.append("onboardingContactPhone: ");
sb.append(onboardingContactPhone);
sb.append(',').append(' ');
sb.append("onboardingContactEmail: ");
sb.append(onboardingContactEmail);
sb.append(',').append(' ');
sb.append("merchantServicesPhone: ");
sb.append(merchantServicesPhone);
sb.append(',').append(' ');
sb.append("merchantServicesFax: ");
sb.append(merchantServicesFax);
sb.append(',').append(' ');
sb.append("merchantServicesEmail: ");
sb.append(merchantServicesEmail);
sb.append(',').append(' ');
sb.append("merchantWorkHours: ");
sb.append(merchantWorkHours);
sb.append(',').append(' ');
sb.append("supportPhone: ");
sb.append(supportPhone);
sb.append(',').append(' ');
sb.append("supportFax: ");
sb.append(supportFax);
sb.append(',').append(' ');
sb.append("supportEmail: ");
sb.append(supportEmail);
sb.append(',').append(' ');
sb.append("supportWorkHours: ");
sb.append(supportWorkHours);
sb.append('}');
return sb.toString();
}
@XmlAttribute(name="unipayPortalHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unipayPortalHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnipayPortalHost(){
return unipayPortalHost;
}
public void setUnipayPortalHost(String value){
this.unipayPortalHost = value;
}
@XmlAttribute(name="unipayName")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unipayName")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnipayName(){
return unipayName;
}
public void setUnipayName(String value){
this.unipayName = value;
}
@XmlAttribute(name="unichargeName")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unichargeName")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnichargeName(){
return unichargeName;
}
public void setUnichargeName(String value){
this.unichargeName = value;
}
@XmlAttribute(name="unibillName")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unibillName")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnibillName(){
return unibillName;
}
public void setUnibillName(String value){
this.unibillName = value;
}
@XmlAttribute(name="unichargeRealtimeProcessingHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unichargeRealtimeProcessingHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnichargeRealtimeProcessingHost(){
return unichargeRealtimeProcessingHost;
}
public void setUnichargeRealtimeProcessingHost(String value){
this.unichargeRealtimeProcessingHost = value;
}
@XmlAttribute(name="unichargeBatchProcessingHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unichargeBatchProcessingHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnichargeBatchProcessingHost(){
return unichargeBatchProcessingHost;
}
public void setUnichargeBatchProcessingHost(String value){
this.unichargeBatchProcessingHost = value;
}
@XmlAttribute(name="unichargeRealtimeSpecificationHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unichargeRealtimeSpecificationHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnichargeRealtimeSpecificationHost(){
return unichargeRealtimeSpecificationHost;
}
public void setUnichargeRealtimeSpecificationHost(String value){
this.unichargeRealtimeSpecificationHost = value;
}
@XmlAttribute(name="unichargeBatchSpecificationHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unichargeBatchSpecificationHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnichargeBatchSpecificationHost(){
return unichargeBatchSpecificationHost;
}
public void setUnichargeBatchSpecificationHost(String value){
this.unichargeBatchSpecificationHost = value;
}
@XmlAttribute(name="unibillProcessingHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unibillProcessingHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnibillProcessingHost(){
return unibillProcessingHost;
}
public void setUnibillProcessingHost(String value){
this.unibillProcessingHost = value;
}
@XmlAttribute(name="unibillSpecificationHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unibillSpecificationHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnibillSpecificationHost(){
return unibillSpecificationHost;
}
public void setUnibillSpecificationHost(String value){
this.unibillSpecificationHost = value;
}
@XmlAttribute(name="unipayDocumentationHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("unipayDocumentationHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getUnipayDocumentationHost(){
return unipayDocumentationHost;
}
public void setUnipayDocumentationHost(String value){
this.unipayDocumentationHost = value;
}
@XmlAttribute(name="supportSystemHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportSystemHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportSystemHost(){
return supportSystemHost;
}
public void setSupportSystemHost(String value){
this.supportSystemHost = value;
}
@XmlAttribute(name="supportSystemUsername")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportSystemUsername")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportSystemUsername(){
return supportSystemUsername;
}
public void setSupportSystemUsername(String value){
this.supportSystemUsername = value;
}
@XmlAttribute(name="supportSystemPassword")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportSystemPassword")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportSystemPassword(){
return supportSystemPassword;
}
public void setSupportSystemPassword(String value){
this.supportSystemPassword = value;
}
@XmlAttribute(name="externalOnboardingDocumentationHost")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("externalOnboardingDocumentationHost")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getExternalOnboardingDocumentationHost(){
return externalOnboardingDocumentationHost;
}
public void setExternalOnboardingDocumentationHost(String value){
this.externalOnboardingDocumentationHost = value;
}
@XmlAttribute(name="onboardingContactPhone")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("onboardingContactPhone")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getOnboardingContactPhone(){
return onboardingContactPhone;
}
public void setOnboardingContactPhone(String value){
this.onboardingContactPhone = value;
}
@XmlAttribute(name="onboardingContactEmail")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("onboardingContactEmail")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getOnboardingContactEmail(){
return onboardingContactEmail;
}
public void setOnboardingContactEmail(String value){
this.onboardingContactEmail = value;
}
@XmlAttribute(name="merchantServicesPhone")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("merchantServicesPhone")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getMerchantServicesPhone(){
return merchantServicesPhone;
}
public void setMerchantServicesPhone(String value){
this.merchantServicesPhone = value;
}
@XmlAttribute(name="merchantServicesFax")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("merchantServicesFax")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getMerchantServicesFax(){
return merchantServicesFax;
}
public void setMerchantServicesFax(String value){
this.merchantServicesFax = value;
}
@XmlAttribute(name="merchantServicesEmail")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("merchantServicesEmail")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getMerchantServicesEmail(){
return merchantServicesEmail;
}
public void setMerchantServicesEmail(String value){
this.merchantServicesEmail = value;
}
@XmlAttribute(name="merchantWorkHours")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("merchantWorkHours")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getMerchantWorkHours(){
return merchantWorkHours;
}
public void setMerchantWorkHours(String value){
this.merchantWorkHours = value;
}
@XmlAttribute(name="supportPhone")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportPhone")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportPhone(){
return supportPhone;
}
public void setSupportPhone(String value){
this.supportPhone = value;
}
@XmlAttribute(name="supportFax")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportFax")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportFax(){
return supportFax;
}
public void setSupportFax(String value){
this.supportFax = value;
}
@XmlAttribute(name="supportEmail")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportEmail")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportEmail(){
return supportEmail;
}
public void setSupportEmail(String value){
this.supportEmail = value;
}
@XmlAttribute(name="supportWorkHours")
@XmlJavaTypeAdapter(value=api.util.StringAdapter.class, type=String.class)
@FormParam("supportWorkHours")
@StringFormat
@JsonDeserialize(using = api.util.StringDeserializer.class)
public String getSupportWorkHours(){
return supportWorkHours;
}
public void setSupportWorkHours(String value){
this.supportWorkHours = value;
}
public void audit(AuditHelper helper, ServerObject object) {
unicore.model.BrandingProfile s_object = (unicore.model.BrandingProfile) object;
helper.audit("unipayPortalHost", unipayPortalHost, s_object.getUnipayPortalUrl());
helper.audit("unipayName", unipayName, s_object.getUnipayName());
helper.audit("unichargeName", unichargeName, s_object.getUnichargeName());
helper.audit("unibillName", unibillName, s_object.getUnibillName());
helper.audit("unichargeRealtimeProcessingHost", unichargeRealtimeProcessingHost, s_object.getUnichargeRealtimeProcessingUrl());
helper.audit("unichargeBatchProcessingHost", unichargeBatchProcessingHost, s_object.getUnichargeBatchProcessingUrl());
helper.audit("unichargeRealtimeSpecificationHost", unichargeRealtimeSpecificationHost, s_object.getUnichargeRealtimeSpecificationHost());
helper.audit("unichargeBatchSpecificationHost", unichargeBatchSpecificationHost, s_object.getUnichargeBatchSpecificationHost());
helper.audit("unibillProcessingHost", unibillProcessingHost, s_object.getUnibillProcessingUrl());
helper.audit("unibillSpecificationHost", unibillSpecificationHost, s_object.getUnibillSpecificationUrl());
helper.audit("unipayDocumentationHost", unipayDocumentationHost, s_object.getUnipayDocumentationUrl());
helper.audit("supportSystemHost", supportSystemHost, s_object.getSupportSystemUrl());
helper.audit("supportSystemUsername", supportSystemUsername, s_object.getSupportSystemUsername());
helper.audit("supportSystemPassword", supportSystemPassword, s_object.getSupportSystemPassword());
helper.audit("externalOnboardingDocumentationHost", externalOnboardingDocumentationHost, s_object.getExternalOnboardingDocumentationUrl());
helper.audit("onboardingContactPhone", onboardingContactPhone, s_object.getOnboardingContactPhone());
helper.audit("onboardingContactEmail", onboardingContactEmail, s_object.getOnboardingContactEmail());
helper.audit("merchantServicesPhone", merchantServicesPhone, s_object.getMerchantServicesPhone());
helper.audit("merchantServicesFax", merchantServicesFax, s_object.getMerchantServicesFax());
helper.audit("merchantServicesEmail", merchantServicesEmail, s_object.getMerchantServicesEmail());
helper.audit("merchantWorkHours", merchantWorkHours, s_object.getMerchantWorkHours());
helper.audit("supportPhone", supportPhone, s_object.getSupportPhone());
helper.audit("supportFax", supportFax, s_object.getSupportFax());
helper.audit("supportEmail", supportEmail, s_object.getSupportEmail());
helper.audit("supportWorkHours", supportWorkHours, s_object.getSupportWorkHours());
}
public static String objectTypeCode(){
return "brandingProfile";
}
}