Package com.docusign.esign.model
Class EventNotification
- java.lang.Object
-
- com.docusign.esign.model.EventNotification
-
public class EventNotification extends Object
This optional complex element allows a message to be sent a specified URL when the envelope or recipient changes status. It is similar to DocuSign Connect. For example, if an envelope changes from \"Sent\" to \"Delivered\", a message containing the updated envelope status and optionally the documents is sent to the URL. When an eventNotification is attached to an envelope using the API, it only applies to the envelope (treating the envelope as the sender). This is different from envelopes created through the console user interface, where the user is treated as the sender..
-
-
Constructor Summary
Constructors Constructor Description EventNotification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventNotificationaddEnvelopeEventsItem(EnvelopeEvent envelopeEventsItem)addEnvelopeEventsItem.EventNotificationaddEventsItem(String eventsItem)addEventsItem.EventNotificationaddRecipientEventsItem(RecipientEvent recipientEventsItem)addRecipientEventsItem.EventNotificationdeliveryMode(String deliveryMode)deliveryMode.EventNotificationenvelopeEvents(List<EnvelopeEvent> envelopeEvents)envelopeEvents.booleanequals(Object o)Compares objects.EventNotificationeventData(ConnectEventData eventData)eventData.EventNotificationevents(List<String> events)events.StringgetDeliveryMode().List<EnvelopeEvent>getEnvelopeEvents()A list of envelope-level event statuses that will trigger Connect to send updates to the endpoint specified in the `url` property.ConnectEventDatagetEventData()Allows you to specify the format of the information the Connect webhooks returns.List<String>getEvents().StringgetIncludeCertificateOfCompletion()When set to **true**, the Connect Service includes the Certificate of Completion with completed envelopes.StringgetIncludeCertificateWithSoap()When set to **true**, this tells the Connect service to send the DocuSign signedby certificate as part of the outgoing SOAP xml.StringgetIncludeDocumentFields()When set to **true**, the Document Fields associated with envelope documents are included in the data.StringgetIncludeDocuments()When set to **true**, the PDF documents are included in the message along with the updated XML.StringgetIncludeEnvelopeVoidReason()When set to **true**, this tells the Connect Service to include the void reason, as entered by the person that voided the envelope, in the message.StringgetIncludeHMAC().StringgetIncludeSenderAccountAsCustomField()When set to **true**, the sender account ID is included as a envelope custom field in the data.StringgetIncludeTimeZone()When set to **true**, the envelope time zone information is included in the message.StringgetLoggingEnabled()When set to **true**, logging is turned on for envelope events on the Web Console Connect page.List<RecipientEvent>getRecipientEvents()A list of recipient event statuses that will trigger Connect to send updates to the endpoint specified in the url property.StringgetRequireAcknowledgment()When set to **true**, the DocuSign Connect service checks that the message was received and retries on failures.StringgetSignMessageWithX509Cert()When set to **true**, messages are signed with an X509 certificate.StringgetSoapNameSpace()This lists the namespace in the SOAP listener provided..StringgetUrl()Specifies the endpoint to which envelope updates are sent.StringgetUseSoapInterface()When set to **true**, this tells the Connect service that the user's endpoint has implemented a SOAP interface.inthashCode()Returns the HashCode.EventNotificationincludeCertificateOfCompletion(String includeCertificateOfCompletion)includeCertificateOfCompletion.EventNotificationincludeCertificateWithSoap(String includeCertificateWithSoap)includeCertificateWithSoap.EventNotificationincludeDocumentFields(String includeDocumentFields)includeDocumentFields.EventNotificationincludeDocuments(String includeDocuments)includeDocuments.EventNotificationincludeEnvelopeVoidReason(String includeEnvelopeVoidReason)includeEnvelopeVoidReason.EventNotificationincludeHMAC(String includeHMAC)includeHMAC.EventNotificationincludeSenderAccountAsCustomField(String includeSenderAccountAsCustomField)includeSenderAccountAsCustomField.EventNotificationincludeTimeZone(String includeTimeZone)includeTimeZone.EventNotificationloggingEnabled(String loggingEnabled)loggingEnabled.EventNotificationrecipientEvents(List<RecipientEvent> recipientEvents)recipientEvents.EventNotificationrequireAcknowledgment(String requireAcknowledgment)requireAcknowledgment.voidsetDeliveryMode(String deliveryMode)setDeliveryMode.voidsetEnvelopeEvents(List<EnvelopeEvent> envelopeEvents)setEnvelopeEvents.voidsetEventData(ConnectEventData eventData)setEventData.voidsetEvents(List<String> events)setEvents.voidsetIncludeCertificateOfCompletion(String includeCertificateOfCompletion)setIncludeCertificateOfCompletion.voidsetIncludeCertificateWithSoap(String includeCertificateWithSoap)setIncludeCertificateWithSoap.voidsetIncludeDocumentFields(String includeDocumentFields)setIncludeDocumentFields.voidsetIncludeDocuments(String includeDocuments)setIncludeDocuments.voidsetIncludeEnvelopeVoidReason(String includeEnvelopeVoidReason)setIncludeEnvelopeVoidReason.voidsetIncludeHMAC(String includeHMAC)setIncludeHMAC.voidsetIncludeSenderAccountAsCustomField(String includeSenderAccountAsCustomField)setIncludeSenderAccountAsCustomField.voidsetIncludeTimeZone(String includeTimeZone)setIncludeTimeZone.voidsetLoggingEnabled(String loggingEnabled)setLoggingEnabled.voidsetRecipientEvents(List<RecipientEvent> recipientEvents)setRecipientEvents.voidsetRequireAcknowledgment(String requireAcknowledgment)setRequireAcknowledgment.voidsetSignMessageWithX509Cert(String signMessageWithX509Cert)setSignMessageWithX509Cert.voidsetSoapNameSpace(String soapNameSpace)setSoapNameSpace.voidsetUrl(String url)setUrl.voidsetUseSoapInterface(String useSoapInterface)setUseSoapInterface.EventNotificationsignMessageWithX509Cert(String signMessageWithX509Cert)signMessageWithX509Cert.EventNotificationsoapNameSpace(String soapNameSpace)soapNameSpace.StringtoString()Converts the given object to string.EventNotificationurl(String url)url.EventNotificationuseSoapInterface(String useSoapInterface)useSoapInterface.
-
-
-
Method Detail
-
deliveryMode
public EventNotification deliveryMode(String deliveryMode)
deliveryMode.- Returns:
- EventNotification
-
getDeliveryMode
public String getDeliveryMode()
.- Returns:
- deliveryMode
-
setDeliveryMode
public void setDeliveryMode(String deliveryMode)
setDeliveryMode.
-
envelopeEvents
public EventNotification envelopeEvents(List<EnvelopeEvent> envelopeEvents)
envelopeEvents.- Returns:
- EventNotification
-
addEnvelopeEventsItem
public EventNotification addEnvelopeEventsItem(EnvelopeEvent envelopeEventsItem)
addEnvelopeEventsItem.- Returns:
- EventNotification
-
getEnvelopeEvents
public List<EnvelopeEvent> getEnvelopeEvents()
A list of envelope-level event statuses that will trigger Connect to send updates to the endpoint specified in the `url` property. To receive notifications, you must include either an `envelopeEvents` node or a `recipientEvents` node. You do not need to specify both..- Returns:
- envelopeEvents
-
setEnvelopeEvents
public void setEnvelopeEvents(List<EnvelopeEvent> envelopeEvents)
setEnvelopeEvents.
-
eventData
public EventNotification eventData(ConnectEventData eventData)
eventData.- Returns:
- EventNotification
-
getEventData
public ConnectEventData getEventData()
Allows you to specify the format of the information the Connect webhooks returns. For more information, see [Connect webhooks with JSON notifications](https://www.docusign.com/blog/developers/connect-webhooks-json-notifications).- Returns:
- eventData
-
setEventData
public void setEventData(ConnectEventData eventData)
setEventData.
-
events
public EventNotification events(List<String> events)
events.- Returns:
- EventNotification
-
addEventsItem
public EventNotification addEventsItem(String eventsItem)
addEventsItem.- Returns:
- EventNotification
-
includeCertificateOfCompletion
public EventNotification includeCertificateOfCompletion(String includeCertificateOfCompletion)
includeCertificateOfCompletion.- Returns:
- EventNotification
-
getIncludeCertificateOfCompletion
public String getIncludeCertificateOfCompletion()
When set to **true**, the Connect Service includes the Certificate of Completion with completed envelopes. .- Returns:
- includeCertificateOfCompletion
-
setIncludeCertificateOfCompletion
public void setIncludeCertificateOfCompletion(String includeCertificateOfCompletion)
setIncludeCertificateOfCompletion.
-
includeCertificateWithSoap
public EventNotification includeCertificateWithSoap(String includeCertificateWithSoap)
includeCertificateWithSoap.- Returns:
- EventNotification
-
getIncludeCertificateWithSoap
public String getIncludeCertificateWithSoap()
When set to **true**, this tells the Connect service to send the DocuSign signedby certificate as part of the outgoing SOAP xml. This appears in the XML as wsse:BinarySecurityToken..- Returns:
- includeCertificateWithSoap
-
setIncludeCertificateWithSoap
public void setIncludeCertificateWithSoap(String includeCertificateWithSoap)
setIncludeCertificateWithSoap.
-
includeDocumentFields
public EventNotification includeDocumentFields(String includeDocumentFields)
includeDocumentFields.- Returns:
- EventNotification
-
getIncludeDocumentFields
public String getIncludeDocumentFields()
When set to **true**, the Document Fields associated with envelope documents are included in the data. Document Fields are optional custom name-value pairs added to documents using the API. .- Returns:
- includeDocumentFields
-
setIncludeDocumentFields
public void setIncludeDocumentFields(String includeDocumentFields)
setIncludeDocumentFields.
-
includeDocuments
public EventNotification includeDocuments(String includeDocuments)
includeDocuments.- Returns:
- EventNotification
-
getIncludeDocuments
public String getIncludeDocuments()
When set to **true**, the PDF documents are included in the message along with the updated XML. .- Returns:
- includeDocuments
-
setIncludeDocuments
public void setIncludeDocuments(String includeDocuments)
setIncludeDocuments.
-
includeEnvelopeVoidReason
public EventNotification includeEnvelopeVoidReason(String includeEnvelopeVoidReason)
includeEnvelopeVoidReason.- Returns:
- EventNotification
-
getIncludeEnvelopeVoidReason
public String getIncludeEnvelopeVoidReason()
When set to **true**, this tells the Connect Service to include the void reason, as entered by the person that voided the envelope, in the message. .- Returns:
- includeEnvelopeVoidReason
-
setIncludeEnvelopeVoidReason
public void setIncludeEnvelopeVoidReason(String includeEnvelopeVoidReason)
setIncludeEnvelopeVoidReason.
-
includeHMAC
public EventNotification includeHMAC(String includeHMAC)
includeHMAC.- Returns:
- EventNotification
-
getIncludeHMAC
public String getIncludeHMAC()
.- Returns:
- includeHMAC
-
setIncludeHMAC
public void setIncludeHMAC(String includeHMAC)
setIncludeHMAC.
-
includeSenderAccountAsCustomField
public EventNotification includeSenderAccountAsCustomField(String includeSenderAccountAsCustomField)
includeSenderAccountAsCustomField.- Returns:
- EventNotification
-
getIncludeSenderAccountAsCustomField
public String getIncludeSenderAccountAsCustomField()
When set to **true**, the sender account ID is included as a envelope custom field in the data. .- Returns:
- includeSenderAccountAsCustomField
-
setIncludeSenderAccountAsCustomField
public void setIncludeSenderAccountAsCustomField(String includeSenderAccountAsCustomField)
setIncludeSenderAccountAsCustomField.
-
includeTimeZone
public EventNotification includeTimeZone(String includeTimeZone)
includeTimeZone.- Returns:
- EventNotification
-
getIncludeTimeZone
public String getIncludeTimeZone()
When set to **true**, the envelope time zone information is included in the message. .- Returns:
- includeTimeZone
-
setIncludeTimeZone
public void setIncludeTimeZone(String includeTimeZone)
setIncludeTimeZone.
-
loggingEnabled
public EventNotification loggingEnabled(String loggingEnabled)
loggingEnabled.- Returns:
- EventNotification
-
getLoggingEnabled
public String getLoggingEnabled()
When set to **true**, logging is turned on for envelope events on the Web Console Connect page. .- Returns:
- loggingEnabled
-
setLoggingEnabled
public void setLoggingEnabled(String loggingEnabled)
setLoggingEnabled.
-
recipientEvents
public EventNotification recipientEvents(List<RecipientEvent> recipientEvents)
recipientEvents.- Returns:
- EventNotification
-
addRecipientEventsItem
public EventNotification addRecipientEventsItem(RecipientEvent recipientEventsItem)
addRecipientEventsItem.- Returns:
- EventNotification
-
getRecipientEvents
public List<RecipientEvent> getRecipientEvents()
A list of recipient event statuses that will trigger Connect to send updates to the endpoint specified in the url property. To receive notifications, you must include either an `envelopeEvents` node or a `recipientEvents` node. You do not need to specify both..- Returns:
- recipientEvents
-
setRecipientEvents
public void setRecipientEvents(List<RecipientEvent> recipientEvents)
setRecipientEvents.
-
requireAcknowledgment
public EventNotification requireAcknowledgment(String requireAcknowledgment)
requireAcknowledgment.- Returns:
- EventNotification
-
getRequireAcknowledgment
public String getRequireAcknowledgment()
When set to **true**, the DocuSign Connect service checks that the message was received and retries on failures. .- Returns:
- requireAcknowledgment
-
setRequireAcknowledgment
public void setRequireAcknowledgment(String requireAcknowledgment)
setRequireAcknowledgment.
-
signMessageWithX509Cert
public EventNotification signMessageWithX509Cert(String signMessageWithX509Cert)
signMessageWithX509Cert.- Returns:
- EventNotification
-
getSignMessageWithX509Cert
public String getSignMessageWithX509Cert()
When set to **true**, messages are signed with an X509 certificate. This provides support for 2-way SSL in the envelope. .- Returns:
- signMessageWithX509Cert
-
setSignMessageWithX509Cert
public void setSignMessageWithX509Cert(String signMessageWithX509Cert)
setSignMessageWithX509Cert.
-
soapNameSpace
public EventNotification soapNameSpace(String soapNameSpace)
soapNameSpace.- Returns:
- EventNotification
-
getSoapNameSpace
public String getSoapNameSpace()
This lists the namespace in the SOAP listener provided..- Returns:
- soapNameSpace
-
setSoapNameSpace
public void setSoapNameSpace(String soapNameSpace)
setSoapNameSpace.
-
url
public EventNotification url(String url)
url.- Returns:
- EventNotification
-
getUrl
public String getUrl()
Specifies the endpoint to which envelope updates are sent. Udpates are sent as XML unless `useSoapInterface` property is set to **true**..- Returns:
- url
-
setUrl
public void setUrl(String url)
setUrl.
-
useSoapInterface
public EventNotification useSoapInterface(String useSoapInterface)
useSoapInterface.- Returns:
- EventNotification
-
getUseSoapInterface
public String getUseSoapInterface()
When set to **true**, this tells the Connect service that the user's endpoint has implemented a SOAP interface. .- Returns:
- useSoapInterface
-
setUseSoapInterface
public void setUseSoapInterface(String useSoapInterface)
setUseSoapInterface.
-
equals
public boolean equals(Object o)
Compares objects.
-
-