Fork me on GitHub

Template one-time-payment@0.10.0

Contract Ergo ^0.9.1 363fe03c7d3a80b903343fd112b00028c1451ee4e7e025f050cdf0606fb45d4a

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": "0cca5020-df1d-4a6f-950f-95440df113ae",
    "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": "60824b73-dd3f-11e8-a95c-95b9dbcf241c"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "60822460-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:30.662Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "60822461-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:30.662Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "60824b70-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:30.663Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "60824b71-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:30.663Z"
}

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": 46.898,
        "currencyCode": "EGP"
    },
    "description": "Deserunt enim aute officia veniam.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#3505",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#4302",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6958",
    "deadline": "2018-10-31T19:01:30.664Z",
    "eventId": "60827280-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:30.664Z"
}