Fork me on GitHub

Template full-payment-upon-demand@0.1.0

Contract Ergo ^0.9.0 9c2b7831ce22f23166f762876f626bbad1207e2091ba91fe0c6059d510fde100

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": "e5829d25-b23f-4dbd-964c-536d803c157f",
    "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": "228a76e1-e44b-11e8-88fc-a1a4d7dc05ea"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "228a01b0-e44b-11e8-88fc-a1a4d7dc05ea",
    "timestamp": "2018-11-09T18:13:18.795Z"
}
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "228a28c0-e44b-11e8-88fc-a1a4d7dc05ea",
    "timestamp": "2018-11-09T18:13:18.796Z"
}
org.accordproject.payment.fullupondemand.PaymentReceived
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentReceived",
    "transactionId": "228a4fd0-e44b-11e8-88fc-a1a4d7dc05ea",
    "timestamp": "2018-11-09T18:13:18.797Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "228a4fd3-e44b-11e8-88fc-a1a4d7dc05ea",
    "timestamp": "2018-11-09T18:13:18.797Z"
}

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": 47.712,
        "currencyCode": "KYD"
    },
    "description": "Ullamco.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#4063",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7238",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6806",
    "deadline": "2018-11-09T18:13:18.798Z",
    "eventId": "228a76e2-e44b-11e8-88fc-a1a4d7dc05ea",
    "timestamp": "2018-11-09T18:13:18.798Z"
}