public interface DocumentModel
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DocumentModel.DocumentCreationEvent
Events interfaces
|
static interface |
DocumentModel.DocumentPostCreateEvent |
static interface |
DocumentModel.DocumentRemovedEvent |
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATED_TIMESTAMP |
static String |
CUSTOMER_ASSIGNED_ACCOUNT_ID |
static String |
CUSTOMER_ELECTRONIC_MAIL |
static String |
CUSTOMER_REGISTRATION_NAME |
static String |
DOCUMENT_CURRENCY_CODE |
static String |
DOCUMENT_ID |
static String |
DOCUMENT_TYPE |
static String |
ENABLED |
static String |
REQUIRED_ACTIONS
Required Actions
|
static String |
SEND_EVENT_DESTINY
Send events
|
static String |
SEND_EVENT_STATUS |
static final String DOCUMENT_TYPE
static final String DOCUMENT_ID
static final String DOCUMENT_CURRENCY_CODE
static final String CUSTOMER_REGISTRATION_NAME
static final String CUSTOMER_ASSIGNED_ACCOUNT_ID
static final String CUSTOMER_ELECTRONIC_MAIL
static final String CREATED_TIMESTAMP
static final String ENABLED
static final String REQUIRED_ACTIONS
static final String SEND_EVENT_DESTINY
static final String SEND_EVENT_STATUS
String getId()
String getDocumentId()
String getDocumentType()
java.time.LocalDateTime getCreatedTimestamp()
boolean isEnabled()
void disable()
List<DocumentLineModel> getDocumentLines()
DocumentLineModel addDocumentLine()
boolean removeDocumentLine(DocumentLineModel documentLine)
OrganizationModel getOrganization()
String getDocumentCurrencyCode()
void setDocumentCurrencyCode(String currencyCode)
String getCustomerRegistrationName()
void setCustomerRegistrationName(String customerRegistrationName)
String getCustomerAssignedAccountId()
void setCustomerAssignedAccountId(String customerAssignedAccountId)
String getCustomerElectronicMail()
void setCustomerElectronicMail(String customerElectronicMail)
FileModel getXmlAsFile()
void attachXmlFile(FileModel file)
Document getXmlAsDocument()
org.json.JSONObject getXmlAsJSONObject()
void removeAttribute(String name)
void addRequiredAction(String action)
void removeRequiredAction(String action)
void addRequiredAction(DocumentRequiredAction action)
void removeRequiredAction(DocumentRequiredAction action)
int getCustomerSendEventFailures()
void incrementCustomerSendEventFailures()
int getThirdPartySendEventFailures()
void incrementThirdPartySendEventFailures()
SendEventModel addSendEvent(DestinyType destinyType)
SendEventModel getSendEventById(String id)
boolean removeSendEvent(SendEventModel sendEvent)
List<SendEventModel> getSendEvents()
List<SendEventModel> getSendEvents(Integer firstResult, Integer maxResults)
List<SendEventModel> searchForSendEvent(Map<String,String> params)
List<SendEventModel> searchForSendEvent(Map<String,String> params, int firstResult, int maxResults)
List<DocumentModel> getAttachedDocumentsAsOrigin()
List<DocumentModel> getAttachedDocumentsAsDestiny()
void addAttachedDocument(DocumentModel document)
boolean removeAttachedDocument(DocumentModel document)
Copyright © 2017. All rights reserved.