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 Download Compiled Archive Open in Template Studio Open in VSCode Web

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": "61f3a82d-5d01-454e-8199-459a427d9573",
    "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": 25706,
    "stateId": "c975dff0-c07a-11ea-ad77-8b5ce7c057ac"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Sent",
        "envelopeId": "Laborum ex esse cupidatat.",
        "created": "2020-07-07T18:53:38.669+01:00",
        "sent": "2020-07-07T18:53:38.669+01:00",
        "delivered": "2020-07-07T18:53:38.669+01:00",
        "signed": "2020-07-07T18:53:38.669+01:00",
        "completed": "2020-07-07T18:53:38.669+01:00",
        "declined": "2020-07-07T18:53:38.669+01:00",
        "email": "Deserunt fugiat."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Completed",
            "email": "Magna nostrud nulla elit Lorem.",
            "userName": "Nostrud ad irure sit nulla.",
            "sent": "2020-07-07T18:53:38.669+01:00",
            "delivered": "2020-07-07T18:53:38.669+01:00",
            "signed": "2020-07-07T18:53:38.669+01:00",
            "declined": "2020-07-07T18:53:38.669+01:00",
            "declineReason": "Laboris.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Irure cupidatat sint.",
                    "tabValue": 59.583,
                    "tabType": "Decline",
                    "status": "Id.",
                    "tabLabel": "Irure exercitation.",
                    "originalValue": "Cillum tempor anim irure sint.",
                    "signed": "2020-07-07T18:53:38.669+01:00",
                    "customTabType": "Checkbox"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Adipisicing.",
            "value": "Dolore exercitation exercitation officia."
        }
    ],
    "transactionId": "c97591d0-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:38.669+01:00"
}

Response Types

Type Sample JSON
com.docusign.connect.counter.MyResponse
{
    "$class": "com.docusign.connect.counter.MyResponse",
    "output": "Incididunt pariatur magna.",
    "counter": 18487,
    "transactionId": "c975b8e0-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:38.670+01:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.NotificationObligation
{
    "$class": "org.accordproject.cicero.runtime.NotificationObligation",
    "title": "Sunt voluptate voluptate proident anim.",
    "message": "Enim enim eiusmod ullamco.",
    "contract": "resource:com.docusign.connect.counter.DocuSignEnvelopeCounterClause#6256",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3553",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#0121",
    "deadline": "2020-07-07T18:53:38.671+01:00",
    "eventId": "c975dff1-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:38.671+01: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.