Template full-payment-upon-demand@0.5.1

Contract ^0.12.0 8d6700111e511e2f2d2ce7473e88d87b49bc9e75107600fbbd7fe9e93dcad846

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": "7c0ceed8-f84f-4cfe-a5f6-8e78710d2c87",
    "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": "1d4e0510-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "1d4d1ab0-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:26.395-04:00"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "1d4d41c0-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:26.396-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "1d4d68d1-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:26.398-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": 152.411,
        "currencyCode": "MYR"
    },
    "description": "Mollit incididunt et proident aute.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#1400",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6158",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9708",
    "deadline": "2019-06-07T12:34:26.403-04:00",
    "eventId": "1d4e5330-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:26.403-04:00"
}