Template full-payment-upon-demand@0.6.0

Contract ^0.13.0 3eaa5b6ed072408415683220d185363f2ca702d1e7e963c26bc182c6fee6663c

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

Download Archive Open in Template Studio Open in VSCode Web

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": "7406879f-ad66-4f13-9594-0b830b3c6f40",
    "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": "737abb50-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "737a6d30-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:52.611-04:00"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "737a9440-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:52.612-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "737a9442-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:52.612-04:00"
}

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": 155.816,
        "currencyCode": "DKK"
    },
    "description": "Cillum consequat.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#7590",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6710",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#5197",
    "deadline": "2019-07-02T09:36:52.613-04:00",
    "eventId": "737abb51-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:52.613-04:00"
}