Docusign Connect

Author: Accord Project

docusign-connect@0.9.0 Contract ^0.21.0 4e0384591e8162427b138ef104fc370a6c9b23c9811985c6d5f83a13b73e5429

Counts events from DocuSign connect with a given envelope status.

Download Archive Download Compiled 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",
    "status": "Completed",
    "contractId": "b05b77fa-33f5-4e91-b4f4-f72c551b287d"
}

Template Model

/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

namespace org.accordproject.binary

abstract asset BinaryResource identified by identifier {
   o String identifier
   o String name
   o String mimeType 
   o String encoding default="base64"
}
  
asset BinaryReference extends BinaryResource {
}

asset BinaryFile extends BinaryResource {
   o String content
}

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": 7507,
    "stateId": "ac848420-71e4-11eb-b9e5-8bd8fdaf3481"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Any",
        "envelopeId": "Duis amet.",
        "created": "2021-02-18T12:27:32.570+00:00",
        "sent": "2021-02-18T12:27:32.570+00:00",
        "delivered": "2021-02-18T12:27:32.570+00:00",
        "signed": "2021-02-18T12:27:32.570+00:00",
        "completed": "2021-02-18T12:27:32.570+00:00",
        "declined": "2021-02-18T12:27:32.570+00:00",
        "email": "Ad voluptate."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Delivered",
            "email": "Ipsum nisi sint.",
            "userName": "Labore aute cillum anim.",
            "sent": "2021-02-18T12:27:32.570+00:00",
            "delivered": "2021-02-18T12:27:32.570+00:00",
            "signed": "2021-02-18T12:27:32.570+00:00",
            "declined": "2021-02-18T12:27:32.570+00:00",
            "declineReason": "Sit ipsum voluptate sint exercitation.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Labore aliqua dolore.",
                    "tabValue": 47.766,
                    "tabType": "Decline",
                    "status": "Lorem.",
                    "tabLabel": "In quis enim veniam cupidatat.",
                    "originalValue": "Ullamco amet ullamco.",
                    "signed": "2021-02-18T12:27:32.570+00:00",
                    "customTabType": "Number"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Culpa cillum.",
            "value": "Amet aute incididunt consectetur."
        }
    ],
    "attachments": [
        {
            "$class": "com.docusign.connect.Attachment",
            "docType": "CertificateOfCompletion",
            "identifier": "2814",
            "name": "Eiusmod velit.",
            "mimeType": "In sunt pariatur aliquip.",
            "encoding": "base64"
        }
    ],
    "transactionId": "ac832490-71e4-11eb-b9e5-8bd8fdaf3481",
    "timestamp": "2021-02-18T12:27:32.570+00:00"
}

Response Types

Type Sample JSON
com.docusign.connect.counter.MyResponse
{
    "$class": "com.docusign.connect.counter.MyResponse",
    "output": "Fugiat.",
    "counter": 50078,
    "transactionId": "ac845d10-71e4-11eb-b9e5-8bd8fdaf3481",
    "timestamp": "2021-02-18T12:27:32.577+00:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.NotificationObligation
{
    "$class": "org.accordproject.cicero.runtime.NotificationObligation",
    "title": "Anim enim aute occaecat.",
    "message": "Duis.",
    "contract": "resource:com.docusign.connect.counter.DocuSignEnvelopeCounterClause#5894",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#2370",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9448",
    "deadline": "2021-02-18T12:27:32.579+00:00",
    "eventId": "ac848421-71e4-11eb-b9e5-8bd8fdaf3481",
    "timestamp": "2021-02-18T12:27:32.579+00: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.