Fork me on GitHub

Template one-time-payment@0.11.0

Contract Ergo ^0.9.1 515e31445c483c79d9b6861f95e30be457a332d48cd071a4d1011304b88ebbeb

Full Payment Upon Signature

Download Archive Open in Template Studio

Full Payment Upon Signature

This is a one-time full payment contract applicable at signature of the contract.

Sample

Upon the signing of this Agreement, "Dan" shall pay the total purchase price to "Steve" in the amount of 0.01 USD.
                

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.onetime.OneTimePaymentContract",
    "contractId": "1f3a4329-6a99-4c2d-86b5-febe0815823a",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "totalPurchasePrice": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 0.01,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
org.accordproject.payment.onetime.OneTimePaymentState
{
    "$class": "org.accordproject.payment.onetime.OneTimePaymentState",
    "status": "UNINITIALIZED",
    "stateId": "1c69dbc2-ee64-11e8-9a8e-a749c1ceabc2"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "1c69b4b0-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:17.563Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "1c69b4b1-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:17.563Z"
}

Response Types

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

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": 43.411,
        "currencyCode": "CHE"
    },
    "description": "Est in elit in ullamco.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#9717",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#5376",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6901",
    "deadline": "2018-11-22T14:37:17.565Z",
    "eventId": "1c69dbc3-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:17.565Z"
}