Fork me on GitHub

Template full-payment-upon-demand@0.1.1

Contract Ergo ^0.9.0 5ba89a8a493cffda48974fea4a8da04fafb1136ad7a6c6a40646e7d177a81092

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": "4a20e690-3b06-431b-8483-7619246d2ac0",
    "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": "26073663-ee63-11e8-90b2-8532f3de0ed9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "26070f50-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:24.197Z"
}
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "26070f51-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:24.197Z"
}
org.accordproject.payment.fullupondemand.PaymentReceived
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentReceived",
    "transactionId": "26070f52-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:24.197Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "26073660-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:24.198Z"
}

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": 180.587,
        "currencyCode": "TZS"
    },
    "description": "Pariatur ut est.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#5470",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8125",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8518",
    "deadline": "2018-11-22T14:30:24.198Z",
    "eventId": "26073664-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:24.198Z"
}