Please report issues and contribute improvements on GitHub!

Template full-payment-upon-demand@0.3.0

Contract Ergo ^0.10.0 518ccbfcd4970ec7ca75fd5df97e60b3e2fb2401a6e29feb06f494919365c277

This is a one-time full payment clause applicable on demand.

Download Archive Open in Template Studio

Full Payment upon Demand

Payment made when a single milestone is reached

Sample

After execution of this Agreement, "Dan" shall pay the full purchase price to "Jerome" in the amount of 3.14 EUR upon demand by "Jerome".
                

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": "org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate",
    "contractId": "e0e3fa63-10ce-4389-a4e4-9a8518a28b3e",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Jerome"
    },
    "value": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 3.14,
        "currencyCode": "EUR"
    }
}

State Types

Type Sample JSON
org.accordproject.payment.fullupondemand.FullPaymentUponDemandState
{
    "$class": "org.accordproject.payment.fullupondemand.FullPaymentUponDemandState",
    "status": "INITIALIZED",
    "stateId": "e3e3aef3-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "e3e387e0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.766Z"
}
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "e3e387e1-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.766Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "e3e387e2-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.766Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "e3e3aef0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.767Z"
}

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": 220.818,
        "currencyCode": "KES"
    },
    "description": "Laboris proident sunt nisi.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#8848",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#5942",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6839",
    "deadline": "2019-01-10T22:55:56.768Z",
    "eventId": "e3e3aef4-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:56.768Z"
}