Docusign Connect

Author: Accord Project

docusign-connect@0.7.1 Contract ^0.20.10 ee89cf8eda68e8f078c3ddad97a9f976e6fd3133227435083384c822abd1aead

Counts events from DocuSign connect with a given envelope status.

Download Archive Open in Template Studio

DocuSign Connect

A template that counts events from DocuSign connect with a given envelope status.

Template Text

Count DocuSign connect events with the status: Completed.

Count DocuSign connect events with the status: Completed.
Count DocuSign connect events with the status: {{status}}.
{
    "$class": "com.docusign.connect.counter.DocuSignEnvelopeCounterClause",
    "contractId": "72ea1c76-2812-4d0f-8bdc-3ff5967d42e2",
    "status": "Completed"
}

Template Model

namespace com.docusign.connect.counter

import org.accordproject.cicero.contract.* from https://models.accordproject.org/cicero/contract.cto
import org.accordproject.cicero.runtime.* from https://models.accordproject.org/cicero/runtime.cto
import com.docusign.connect.DocuSignEnvelopeInformation from https://models.accordproject.org/docusign/connect.cto
import com.docusign.connect.EnvelopeStatusCode from https://models.accordproject.org/docusign/connect.cto

transaction MyResponse extends Response {
  o String output
  o Integer counter
}

asset DocuSignEnvelopeCounterState extends AccordContractState {
  o Integer counter
}

/**
 * The template model
 */
asset DocuSignEnvelopeCounterClause extends AccordContract {
  /**
   * The status of the envelope
   */
  o EnvelopeStatusCode status
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
com.docusign.connect.counter.DocuSignEnvelopeCounterState
{
    "$class": "com.docusign.connect.counter.DocuSignEnvelopeCounterState",
    "counter": 26414,
    "stateId": "d52dd811-7b6b-11ea-b280-c173749a9e96"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Deleted",
        "envelopeId": "Mollit consectetur.",
        "created": "2020-04-10T16:42:45.648-04:00",
        "sent": "2020-04-10T16:42:45.648-04:00",
        "delivered": "2020-04-10T16:42:45.648-04:00",
        "signed": "2020-04-10T16:42:45.648-04:00",
        "completed": "2020-04-10T16:42:45.648-04:00",
        "declined": "2020-04-10T16:42:45.648-04:00",
        "email": "Proident duis."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "AutoResponded",
            "email": "Proident sunt.",
            "userName": "Incididunt incididunt ullamco.",
            "sent": "2020-04-10T16:42:45.648-04:00",
            "delivered": "2020-04-10T16:42:45.648-04:00",
            "signed": "2020-04-10T16:42:45.648-04:00",
            "declined": "2020-04-10T16:42:45.648-04:00",
            "declineReason": "Anim elit.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Ullamco cupidatat nostrud ullamco est.",
                    "tabValue": 121.991,
                    "tabType": "DateSigned",
                    "status": "Ea veniam sit ea reprehenderit.",
                    "tabLabel": "Eiusmod sint ipsum.",
                    "originalValue": "Aliqua ipsum.",
                    "signed": "2020-04-10T16:42:45.648-04:00",
                    "customTabType": "List"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Laborum fugiat officia.",
            "value": "Officia veniam et do."
        }
    ],
    "transactionId": "d52db100-7b6b-11ea-b280-c173749a9e96",
    "timestamp": "2020-04-10T16:42:45.648-04:00"
}

Response Types

Type Sample JSON
com.docusign.connect.counter.MyResponse
{
    "$class": "com.docusign.connect.counter.MyResponse",
    "output": "Eu fugiat Lorem veniam ullamco.",
    "counter": 51583,
    "transactionId": "d52dd810-7b6b-11ea-b280-c173749a9e96",
    "timestamp": "2020-04-10T16:42:45.649-04:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.NotificationObligation
{
    "$class": "org.accordproject.cicero.runtime.NotificationObligation",
    "title": "Officia nulla.",
    "message": "Consequat.",
    "contract": "resource:com.docusign.connect.counter.DocuSignEnvelopeCounterClause#1446",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0203",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#3512",
    "deadline": "2020-04-10T16:42:45.649-04:00",
    "eventId": "d52dd812-7b6b-11ea-b280-c173749a9e96",
    "timestamp": "2020-04-10T16:42:45.649-04:00"
}

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on GitHub.