package com.gpc.tams.model.customer.domain; import com.fasterxml.jackson.annotation.JsonInclude; import com.gpc.tams.sync.customer.*; import java.util.Arrays; import org.codehaus.jackson.annotate.JsonProperty; public class CustomerDomainFeedDetails { private String storeNumber; private String storeDCNumber; private String storeShortNumber; private String mainARStoreNumber; private String alphaDCCode; private int napaAcctDCCode; private Long lastModifiedDateTime; private String globalCustomerId; private Integer customerId; @JsonProperty("Customer") private CustomerDetails customer; @JsonProperty("StatementAddress") private StatementAddress statementAddress; @JsonProperty("Contacts") private Contacts[] contacts; @JsonProperty("Certifications") private Certifications[] certifications; @JsonProperty("CommunicationDirs") private CommunicationDirs[] communicationDirs; @JsonProperty("BlanketPOs") private BlanketPOs[] blanketPOs; @JsonProperty("CustomerAr") private CustomerAR customerAr; @JsonProperty("Delivery") private Delivery delivery; private Integer modifiedByEmployeeNumber; private String modifiedByEmployeeName; private transient String action; private transient String triggerSource; private transient String deletedValue; private transient Attributes attributes; private transient Previous previous; private transient StoreNumberChange storeNumberChange; private transient MainArStoreNumberChange mainArStoreNumberChange; private transient Integer changeQueueId; private transient Integer retryCount; private transient boolean error; private transient Integer exceptionCount; private transient CustomerDomainEventType customerDomainEventType; private transient boolean scoreCardAttributes; private transient DcNumberChange dcNumberChange; private transient Integer scoreCardCount; @JsonInclude(JsonInclude.Include.NON_NULL) private Integer resendCount; public String getStoreNumber() { return storeNumber; } public void setStoreNumber(String storeNumber) { this.storeNumber = storeNumber; } public String getStoreDCNumber() { return storeDCNumber; } public void setStoreDCNumber(String storeDCNumber) { this.storeDCNumber = storeDCNumber; } public String getStoreShortNumber() { return storeShortNumber; } public void setStoreShortNumber(String storeShortNumber) { this.storeShortNumber = storeShortNumber; } public String getAlphaDCCode() { return alphaDCCode; } public void setAlphaDCCode(String alphaDCCode) { this.alphaDCCode = alphaDCCode; } public int getNapaAcctDCCode() { return napaAcctDCCode; } public void setNapaAcctDCCode(int napaAcctDCCode) { this.napaAcctDCCode = napaAcctDCCode; } public Long getLastModifiedDateTime() { return lastModifiedDateTime; } public void setLastModifiedDateTime(Long lastModifiedDateTime) { this.lastModifiedDateTime = lastModifiedDateTime; } public Integer getModifiedByEmployeeNumber() { return modifiedByEmployeeNumber; } public void setModifiedByEmployeeNumber(Integer modifiedByEmployeeNumber) { this.modifiedByEmployeeNumber = modifiedByEmployeeNumber; } public String getModifiedByEmployeeName() { return modifiedByEmployeeName; } public void setModifiedByEmployeeName(String modifiedByEmployeeName) { this.modifiedByEmployeeName = modifiedByEmployeeName; } public String getGlobalCustomerId() { return globalCustomerId; } public void setGlobalCustomerId(String globalCustomerId) { this.globalCustomerId = globalCustomerId; } public Integer getCustomerId() { return customerId; } public void setCustomerId(Integer customerId) { this.customerId = customerId; } public CustomerDetails getCustomer() { return customer; } public void setCustomer(CustomerDetails customer) { this.customer = customer; } public StatementAddress getStatementAddress() { return statementAddress; } public void setStatementAddress(StatementAddress statementAddress) { this.statementAddress = statementAddress; } public Contacts[] getContacts() { return contacts; } public void setContacts(Contacts[] contacts) { this.contacts = contacts; } public Certifications[] getCertifications() { return certifications; } public void setCertifications(Certifications[] certifications) { this.certifications = certifications; } public CommunicationDirs[] getCommunicationDirs() { return communicationDirs; } public void setCommunicationDirs(CommunicationDirs[] communicationDirs) { this.communicationDirs = communicationDirs; } public BlanketPOs[] getBlanketPOs() { return blanketPOs; } public void setBlanketPOs(BlanketPOs[] blanketPOs) { this.blanketPOs = blanketPOs; } public CustomerAR getCustomerAr() { return customerAr; } public void setCustomerAr(CustomerAR customerAr) { this.customerAr = customerAr; } public Delivery getDelivery() { return delivery; } public void setDelivery(Delivery delivery) { this.delivery = delivery; } public String getAction() { return action; } public void setAction(String action) { this.action = action; } public String getTriggerSource() { return triggerSource; } public void setTriggerSource(String triggerSource) { this.triggerSource = triggerSource; } public String getDeletedValue() { return deletedValue; } public void setDeletedValue(String deletedValue) { this.deletedValue = deletedValue; } public Attributes getAttributes() { return attributes; } public void setAttributes(Attributes attributes) { this.attributes = attributes; } public Previous getPrevious() { return previous; } public void setPrevious(Previous previous) { this.previous = previous; } public StoreNumberChange getStoreNumberChange() { return storeNumberChange; } public void setStoreNumberChange(StoreNumberChange storeNumberChange) { this.storeNumberChange = storeNumberChange; } public MainArStoreNumberChange getMainArStoreNumberChange() { return mainArStoreNumberChange; } public void setMainArStoreNumberChange(MainArStoreNumberChange mainArStoreNumberChange) { this.mainArStoreNumberChange = mainArStoreNumberChange; } public String getMainARStoreNumber() { return mainARStoreNumber; } public void setMainARStoreNumber(String mainARStoreNumber) { this.mainARStoreNumber = mainARStoreNumber; } public Integer getChangeQueueId() { return changeQueueId; } public void setChangeQueueId(Integer changeQueueId) { this.changeQueueId = changeQueueId; } public Integer getRetryCount() { if (retryCount == null || retryCount < 0) { retryCount = 0; } return retryCount; } public void setRetryCount(Integer retryCount) { this.retryCount = retryCount; } public boolean isError() { return error; } public void setError(boolean error) { this.error = error; } public Integer getResendCount() { return resendCount; } public void setResendCount(Integer resendCount) { if (resendCount != null){ retryCount = resendCount; } this.resendCount = resendCount; } public CustomerDomainEventType getCustomerDomainEventType() { return customerDomainEventType; } public void setCustomerDomainEventType(CustomerDomainEventType customerDomainEventType) { this.customerDomainEventType = customerDomainEventType; } public boolean isScoreCardAttributes() { return scoreCardAttributes; } public void setScoreCardAttributes(boolean scoreCardAttributes) { this.scoreCardAttributes = scoreCardAttributes; } public Integer getExceptionCount() { return exceptionCount; } public void setExceptionCount(Integer exceptionCount) { this.exceptionCount = exceptionCount; } public DcNumberChange getDcNumberChange() { return dcNumberChange; } public void setDcNumberChange(DcNumberChange dcNumberChange) { this.dcNumberChange = dcNumberChange; } public Integer getScoreCardCount() { if (scoreCardCount == null) { scoreCardCount = 0; } return scoreCardCount; } public void setScoreCardCount(Integer scoreCardCount) { this.scoreCardCount = scoreCardCount; } @Override public String toString() { return "CustomerDomainFeedDetails [storeNumber=" + storeNumber + ", storeDCNumber=" + storeDCNumber + ", storeShortNumber=" + storeShortNumber + ", mainARStoreNumber=" + mainARStoreNumber + ", alphaDCCode=" + alphaDCCode + ", napaAcctDCCode=" + napaAcctDCCode + ", lastModifiedDateTime=" + lastModifiedDateTime + ", globalCustomerId=" + globalCustomerId + ", customerId=" + customerId + ", customer=" + customer + ", statementAddress=" + statementAddress + ", contacts=" + Arrays.toString(contacts) + ", certifications=" + Arrays.toString(certifications) + ", communicationDirs=" + Arrays.toString(communicationDirs) + ", blanketPOs=" + Arrays.toString(blanketPOs) + ", customerAr=" + customerAr + ", delivery=" + delivery + ", modifiedByEmployeeNumber=" + modifiedByEmployeeNumber + ", modifiedByEmployeeName=" + modifiedByEmployeeName + ", resendCount=" + resendCount + "]"; } }