Fork me on GitHub

Template full-payment-upon-demand@0.2.0

Contract Ergo ^0.9.0 b871a2af63c48e31084cfd1cc69069ed0758f671019b76360b56ef691754e4c5

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": "534a2231-a7f9-48cf-8828-ae8bd4a027ff",
    "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": "18f50051-ee64-11e8-9a8e-a749c1ceabc2"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "18f4b230-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:11.763Z"
}
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "18f4d940-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:11.764Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "18f4d941-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:11.764Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "18f4d944-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:11.764Z"
}

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": 201.584,
        "currencyCode": "ZMW"
    },
    "description": "Mollit consequat quis ex et.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#9908",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#5564",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7689",
    "deadline": "2018-11-22T14:37:11.765Z",
    "eventId": "18f50052-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:11.765Z"
}