Mini-Late Delivery and Penalty

Author: Accord Project

minilatedeliveryandpenalty@0.6.0 Clause ^0.22.0 5aca95481b5bc2afe8711eaad9eb39c45d880b884950ee77cad64d57594007fc

A Late Delivery And Penalty Clause (Mini).

Download Archive Download Compiled Archive Open in Template Studio Open in VSCode Web

A Late Delivery And Penalty (Mini)

A Late Delivery And Penalty clause (Mini).

Template Text

Late Delivery and Penalty.

In case of delayed delivery of Goods, "Steve Seller" shall pay to "Betty Buyer" a penalty amounting to 10.5% of the total value of the Goods for every 2 days of delay. If the delay is more than 15 days, the Buyer is entitled to terminate this Contract.

Late Delivery and Penalty.

In case of delayed delivery of Goods, "Steve Seller" shall pay to
"Betty Buyer" a penalty amounting to 10.5% of the total
value of the Goods for every 2 days of delay. If the
delay is more than 15 days, the Buyer is entitled to
terminate this Contract.
Late Delivery and Penalty.

In case of delayed delivery of Goods, {{seller}} shall pay to
{{buyer}} a penalty amounting to {{penaltyPercentage}}% of the total
value of the Goods for every {{penaltyDuration}} of delay. If the
delay is more than {{maximumDelay}}, the Buyer is entitled to
terminate this Contract.
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.MiniLateDeliveryClause",
    "buyer": "resource:org.accordproject.party.Party#Betty%20Buyer",
    "seller": "resource:org.accordproject.party.Party#Steve%20Seller",
    "penaltyDuration": {
        "$class": "org.accordproject.time.Duration",
        "amount": 2,
        "unit": "days"
    },
    "penaltyPercentage": 10.5,
    "maximumDelay": {
        "$class": "org.accordproject.time.Duration",
        "amount": 15,
        "unit": "days"
    },
    "clauseId": "519a1519-ce95-4f29-891d-910eba3a2fe1",
    "$identifier": "519a1519-ce95-4f29-891d-910eba3a2fe1"
}

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.minilatedeliveryandpenalty

import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
import org.accordproject.party.* from https://models.accordproject.org/accordproject/party.cto
import org.accordproject.runtime.* from https://models.accordproject.org/accordproject/runtime.cto
import org.accordproject.time.* from https://models.accordproject.org/time@0.2.0.cto

/**
 * Data Model for the LateDeliveryAndPenalty template.
 */
asset MiniLateDeliveryClause extends Clause {
  --> Party buyer             // Party to the contract (buyer)
  --> Party seller            // Party to the contract (seller)
  o Duration penaltyDuration  // Length of time resulting in penalty
  o Double penaltyPercentage  // Penalty percentage
  o Duration maximumDelay     // Maximum delay before termination
}

/**
 * Defines a request for the clause
 */
transaction LateRequest extends Request {
  o DateTime agreedDelivery
  o DateTime deliveredAt
  o Double goodsValue
}

/**
 * Defines a response for the clause
 */
transaction LateResponse extends Response {
  o Double penalty
  o Boolean buyerMayTerminate
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime.State
{
    "$class": "org.accordproject.runtime.State",
    "$identifier": "8657a940-a77b-11eb-9770-7ddd576a12c2"
}

Request Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateRequest
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateRequest",
    "agreedDelivery": "2021-04-27T13:10:54.164-04:00",
    "deliveredAt": "2021-04-27T13:10:54.164-04:00",
    "goodsValue": 58.735,
    "$timestamp": "2021-04-27T13:10:54.164-04:00"
}

Response Types

Type Sample JSON
org.accordproject.minilatedeliveryandpenalty.LateResponse
{
    "$class": "org.accordproject.minilatedeliveryandpenalty.LateResponse",
    "penalty": 69.187,
    "buyerMayTerminate": false,
    "$timestamp": "2021-04-27T13:10:54.164-04:00"
}

Events Types

Type Sample JSON
concerto.Event
{
    "abstract": "this is an abstract type"
}

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.