Please report issues and contribute improvements on GitHub!

Template purchase-order-failure@0.3.0

Contract Ergo ^0.10.2 15ba0f2fd58f36726196eb1446d2d014912ee9b8e017dde17cf596896bfecf80

Issues credits for late purchase orders

Download Archive Open in Template Studio

Purchase Order Failure

This clause emits a payment obligations for purchase orders that are received late.

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 electronc 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": "3c8692c8-6056-4d81-9376-e1fa9d06053a",
    "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-03-11T14:03:23.366Z"
    ],
    "nbPastFailures": 21010,
    "stateId": "6ef6a060-4406-11e9-9583-e366725fb0f4"
}

Request Types

Type Sample JSON
com.docusign.connect.DocuSignEnvelopeInformation
{
    "$class": "com.docusign.connect.DocuSignEnvelopeInformation",
    "envelopeStatus": {
        "$class": "com.docusign.connect.EnvelopeStatus",
        "status": "TimedOut",
        "envelopeId": "Irure reprehenderit dolore Lorem elit.",
        "created": "2019-03-11T14:03:23.363Z",
        "sent": "2019-03-11T14:03:23.363Z",
        "delivered": "2019-03-11T14:03:23.363Z",
        "signed": "2019-03-11T14:03:23.363Z",
        "completed": "2019-03-11T14:03:23.363Z",
        "email": "Exercitation dolor sit officia eu."
    },
    "recipients": [
        {
            "$class": "com.docusign.connect.Recipient",
            "status": "Completed",
            "email": "Eu quis.",
            "userName": "Ullamco excepteur.",
            "sent": "2019-03-11T14:03:23.363Z",
            "delivered": "2019-03-11T14:03:23.363Z",
            "signed": "2019-03-11T14:03:23.363Z",
            "declined": "2019-03-11T14:03:23.363Z",
            "declineReason": "Laboris incididunt."
        }
    ],
    "customFields": [
        {
            "$class": "com.docusign.connect.CustomField",
            "name": "Mollit cillum.",
            "value": "Minim magna."
        }
    ],
    "transactionId": "6ef62b30-4406-11e9-9583-e366725fb0f4",
    "timestamp": "2019-03-11T14:03:23.363Z"
}
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "6ef5dd10-4406-11e9-9583-e366725fb0f4",
    "timestamp": "2019-03-11T14:03:23.361Z"
}

Response Types

Type Sample JSON
com.docusign.clauses.PurchaseOrderFailureResponse
{
    "$class": "com.docusign.clauses.PurchaseOrderFailureResponse",
    "penalty": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 48.556,
        "currencyCode": "SEK"
    },
    "transactionId": "6ef67951-4406-11e9-9583-e366725fb0f4",
    "timestamp": "2019-03-11T14:03:23.365Z"
}
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "6ef67950-4406-11e9-9583-e366725fb0f4",
    "timestamp": "2019-03-11T14:03:23.365Z"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 211.392,
        "currencyCode": "USN"
    },
    "description": "Et eu.",
    "contract": "resource:com.docusign.clauses.PurchaseOrderFailure#0454",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3673",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#4091",
    "deadline": "2019-03-11T14:03:23.366Z",
    "eventId": "6ef6a061-4406-11e9-9583-e366725fb0f4",
    "timestamp": "2019-03-11T14:03:23.366Z"
}