Template purchase-order-failure@0.7.1

Contract ^0.12.0 2267b3ad6b225642de6a5490416a1a01f29faee9af4c2b2eb80fad323882f8f9

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": "7969c914-7d5e-4971-b579-24916df9817c",
    "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-06-07T12:34:22.368-04:00"
    ],
    "nbPastFailures": 9429,
    "stateId": "1ae67af1-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "Completed",
        "envelopeId": "Cupidatat culpa labore ea nulla.",
        "created": "2019-06-07T12:34:22.366-04:00",
        "sent": "2019-06-07T12:34:22.366-04:00",
        "delivered": "2019-06-07T12:34:22.366-04:00",
        "signed": "2019-06-07T12:34:22.366-04:00",
        "completed": "2019-06-07T12:34:22.366-04:00",
        "declined": "2019-06-07T12:34:22.366-04:00",
        "email": "Officia."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "FaxPending",
            "email": "Mollit do.",
            "userName": "Dolor ea.",
            "sent": "2019-06-07T12:34:22.366-04:00",
            "delivered": "2019-06-07T12:34:22.366-04:00",
            "signed": "2019-06-07T12:34:22.366-04:00",
            "declined": "2019-06-07T12:34:22.366-04:00",
            "declineReason": "Quis.",
            "tabStatuses": [
                {
                    "$class": "com.docusign.connect.NumberTabStatus",
                    "tabName": "Duis elit reprehenderit.",
                    "tabValue": 166.18,
                    "tabType": "Title",
                    "status": "Velit occaecat ea qui consectetur.",
                    "tabLabel": "Sunt adipisicing.",
                    "originalValue": "Tempor pariatur deserunt cupidatat eiusmod.",
                    "signed": "2019-06-07T12:34:22.366-04:00",
                    "customTabType": "Date"
                }
            ]
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Sunt enim commodo aliqua ut.",
            "value": "Voluptate."
        }
    ],
    "transactionId": "1ae653e0-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:22.366-04:00"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 214.145,
        "currencyCode": "AED"
    },
    "transactionId": "1ae67af0-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:22.367-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": 147.069,
        "currencyCode": "IDR"
    },
    "description": "Excepteur non.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#8630",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1310",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8171",
    "deadline": "2019-06-07T12:34:22.368-04:00",
    "eventId": "1ae6a200-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:22.368-04:00"
}