Please report issues and contribute improvements on GitHub!

Template full-payment-upon-demand@0.5.0

Contract ^0.12.0 d337574753ec50cd79bd573bc42fa449c96022610f66ce61624bae97348258f2

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": "fdb97e11-119b-4c53-ba6e-f94f782364cd",
    "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": "c753be40-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "c7539730-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:29.923-04:00"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "c7539731-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:29.923-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "c7539733-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:29.923-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": 192.335,
        "currencyCode": "UGX"
    },
    "description": "Sunt consectetur ex.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#6915",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7360",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9384",
    "deadline": "2019-04-05T00:46:29.924-04:00",
    "eventId": "c753be41-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:29.924-04:00"
}