Please report issues and contribute improvements on GitHub!

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

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": "9be14fee-6457-44b4-af4e-4e7e23ea3ee0",
    "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": "9352c4e0-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.payment.fullupondemand.PaymentDemand
{
    "$class": "org.accordproject.payment.fullupondemand.PaymentDemand",
    "transactionId": "93524fb0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:03.883+00:00"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "935276c0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:03.884+00:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "93529dd0-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:03.885+00: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": 119.21,
        "currencyCode": "SAR"
    },
    "description": "Officia sunt labore enim non.",
    "contract": "resource:org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate#6616",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3922",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#2586",
    "deadline": "2019-04-17T00:56:03.886+00:00",
    "eventId": "9352c4e1-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:03.886+00:00"
}