Template purchase-order-failure@0.8.0

Contract ^0.13.0 08d63ef2f5bb5b9c126802d2fb3e2eae35cc36600a39b302e06e432e71ff9e8f

Issues credits for late purchase orders. Purchase orders sent via DocuSign must have the text recipient tabs with the following tab labels and validations: deliveryDate with Date validation, actualPrice with Numbers validation and currencyCode with no validation.

Download Archive Open in Template Studio Open in VSCode Web

Purchase Order Failure

This clause emits a payment obligation for purchase orders that are received late. Purchase orders sent via DocuSign must have the "text" recipient tabs with the following tab labels and validations: deliveryDate with "Date" validation, actualPrice with "Numbers" validation and currencyCode with no validation.

Sample

            In the event that a Purchase Order Failure causes any Product to be delivered more than 1 days after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 5.0% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". In the event that a Purchase Order Failure causes any Product to be delivered more than 2 days after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 10% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". In the event that a Purchase Order Failure causes any Product to be delivered more than 10 days, after the delivery date for such Product specified in the applicable Purchase Order therefore, "Buyer Corp" shall be entitled to receive a 50% discount on the Actual Price for such late delivered Product which would otherwise have been payable pursuant to "Article 5". Any discount amount owing to "Buyer Corp" pursuant to this "Section 3.5(c)" shall be paid by paying "Buyer Corp" such amount via electronic money transfer. In case of 5 or more Purchase Order Failures in the past 60 days, then "Buyer Corp" shall be entitled to an additional 599.99 USD compensation.
          

Model Dependencies

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 on GitHub.

Sample Instance

{
    "$class": "com.docusign.clauses.PurchaseOrderFailure",
    "contractId": "02457646-af96-48cf-93c1-dbcb024031f7",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Buyer Corp"
    },
    "lateOne": {
        "$class": "org.accordproject.time.Duration",
        "amount": 1,
        "unit": "days"
    },
    "lateTwo": {
        "$class": "org.accordproject.time.Duration",
        "amount": 2,
        "unit": "days"
    },
    "lateThree": {
        "$class": "org.accordproject.time.Duration",
        "amount": 10,
        "unit": "days"
    },
    "lateOnePercent": 5,
    "lateTwoPercent": 10,
    "lateThreePercent": 50,
    "article": "Article 5",
    "thisSection": "Section 3.5(c)",
    "maxFailures": 5,
    "failureRange": {
        "$class": "org.accordproject.time.Duration",
        "amount": 60,
        "unit": "days"
    },
    "repeatedFailureCompensation": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 599.99,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureState
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureState",
    "pastFailures": [
        "2019-07-02T09:36:48.876-04:00"
    ],
    "nbPastFailures": 5242,
    "stateId": "714082c0-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Delivered",
        "envelopeId": "Id velit.",
        "created": "2019-07-02T09:36:48.874-04:00",
        "sent": "2019-07-02T09:36:48.874-04:00",
        "delivered": "2019-07-02T09:36:48.874-04:00",
        "signed": "2019-07-02T09:36:48.874-04:00",
        "completed": "2019-07-02T09:36:48.874-04:00",
        "declined": "2019-07-02T09:36:48.874-04:00",
        "email": "Cillum aute non ea."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Delivered",
            "email": "Laboris nostrud sit.",
            "userName": "Et dolor.",
            "sent": "2019-07-02T09:36:48.874-04:00",
            "delivered": "2019-07-02T09:36:48.874-04:00",
            "signed": "2019-07-02T09:36:48.874-04:00",
            "declined": "2019-07-02T09:36:48.874-04:00",
            "declineReason": "Reprehenderit commodo Lorem labore culpa.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Mollit occaecat magna velit nostrud.",
                    "tabValue": 13.277,
                    "tabType": "SignerAttachment",
                    "status": "Reprehenderit.",
                    "tabLabel": "Cillum id amet elit.",
                    "originalValue": "Quis commodo minim laboris.",
                    "signed": "2019-07-02T09:36:48.874-04:00",
                    "customTabType": "List"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Consectetur adipisicing id laborum.",
            "value": "Aliqua commodo esse."
        }
    ],
    "transactionId": "714034a0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:48.874-04:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 147.974,
        "currencyCode": "HRK"
    },
    "transactionId": "71405bb0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:48.875-04:00"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 172.75,
        "currencyCode": "SZL"
    },
    "description": "Voluptate ullamco dolor.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#3590",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0663",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7593",
    "deadline": "2019-07-02T09:36:48.876-04:00",
    "eventId": "714082c1-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:48.876-04:00"
}