Please report issues and contribute improvements on GitHub!

Template purchase-order-failure@0.7.0

Contract ^0.12.0 84ec2483f1c136b461c846decc416105725445448ed088f6dc266b2e549ec701

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

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": "5fd14c90-4321-4600-b687-83df7e4ac89b",
    "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-04-05T00:56:32.088-04:00"
    ],
    "nbPastFailures": 19522,
    "stateId": "2e3ead80-575f-11e9-b60f-1fc38419c869"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Completed",
        "envelopeId": "Magna fugiat laboris do.",
        "created": "2019-04-05T00:56:32.083-04:00",
        "sent": "2019-04-05T00:56:32.083-04:00",
        "delivered": "2019-04-05T00:56:32.083-04:00",
        "signed": "2019-04-05T00:56:32.083-04:00",
        "completed": "2019-04-05T00:56:32.083-04:00",
        "declined": "2019-04-05T00:56:32.083-04:00",
        "email": "Dolor."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Signed",
            "email": "Magna.",
            "userName": "In deserunt sunt Lorem.",
            "sent": "2019-04-05T00:56:32.083-04:00",
            "delivered": "2019-04-05T00:56:32.083-04:00",
            "signed": "2019-04-05T00:56:32.083-04:00",
            "declined": "2019-04-05T00:56:32.083-04:00",
            "declineReason": "Ad ea elit.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Cupidatat.",
                    "tabValue": 111.026,
                    "tabType": "InitialHere",
                    "status": "Consequat eiusmod.",
                    "tabLabel": "Cillum occaecat.",
                    "originalValue": "Dolor exercitation.",
                    "signed": "2019-04-05T00:56:32.083-04:00",
                    "customTabType": "SSN"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Cupidatat minim nostrud consequat.",
            "value": "Laborum enim minim do."
        }
    ],
    "transactionId": "2e3dea30-575f-11e9-b60f-1fc38419c869",
    "timestamp": "2019-04-05T00:56:32.083-04:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 88.069,
        "currencyCode": "XPF"
    },
    "transactionId": "2e3e8670-575f-11e9-b60f-1fc38419c869",
    "timestamp": "2019-04-05T00:56:32.087-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": 103.674,
        "currencyCode": "GYD"
    },
    "description": "Anim nisi Lorem quis labore.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#3637",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7866",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#3270",
    "deadline": "2019-04-05T00:56:32.088-04:00",
    "eventId": "2e3ead81-575f-11e9-b60f-1fc38419c869",
    "timestamp": "2019-04-05T00:56:32.088-04:00"
}