accordproject / template-archive

Smart Legal Contracts & Templating System
https://accordproject.org/projects/cicero/
Apache License 2.0
280 stars 119 forks source link

feat(server) Add new /normalize/:template endpoint implementation #748

Closed mehmettokgoz closed 1 year ago

mehmettokgoz commented 2 years ago

Changes

Flags

Demo

Sample request.body:

{
    "sample":"## Late Delivery and Penalty.\n\n In case of delayed delivery except for Force Majeure cases,\n\"Dan\" (the Seller) shall pay to \"Steve\" (the Buyer) for every 2 days\nof delay penalty amounting to 10.5% of the total value of the Equipment\nwhose delivery has been delayed. Any fractional part of a days is to be\nconsidered a full days. The total amount of penalty shall not however,\nexceed 55% of the total value of the Equipment involved in late delivery.\nIf the delay is more than 15 days, the Buyer is entitled to terminate this Contract."
}

Response to sample request:

{
    "result": "Late Delivery and Penalty.\n----\n\nIn case of delayed delivery except for Force Majeure cases,\n\"Dan\" (the Seller) shall pay to \"Steve\" (the Buyer) for every 2 days\nof delay penalty amounting to 10.5% of the total value of the Equipment\nwhose delivery has been delayed. Any fractional part of a days is to be\nconsidered a full days. The total amount of penalty shall not however,\nexceed 55.0% of the total value of the Equipment involved in late delivery.\nIf the delay is more than 15 days, the Buyer is entitled to terminate this Contract."
}

Author Checklist

coveralls commented 1 year ago

Coverage Status

Coverage decreased (-0.03%) to 93.602% when pulling db0417ace2ac0852a218f23b60ebb8ccbdb6217e on mehmettokgoz:normalize into 2ac527659f4168261e9d5a4a9a2772216975bb84 on accordproject:master.