Full Payment Upon Demand

full-payment-upon-demand@0.6.1 Contract ^0.13.0 904deb48ae1032a701d9de3f4cecc52342f16e3da42475f699532a020b38f3fb

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": "5008c7e7-292c-4658-be4c-6147835672fb",
    "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": "291d6030-b399-11e9-a415-2f2abeed0243"
}

Request Types

Type Sample JSON
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "291d1210-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:21.265-04:00"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "291d1211-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:21.266-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "291d3921-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:21.266-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": 247.826,
        "currencyCode": "UYI"
    },
    "description": "Ex irure nulla ex ea.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#4396",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7084",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#0071",
    "deadline": "2019-07-31T09:43:21.267-04:00",
    "eventId": "291d6031-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:21.267-04:00"
}