Fork me on GitHub

Template one-time-payment@0.10.1

Contract Ergo ^0.9.1 16f175426e7093e11a8e6d01ae0eb87d8a692048d386be2c946607e50dfc6240

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": "d17bfc49-7540-4fbb-9eaf-a4625c030f1c",
    "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": "29867214-ee63-11e8-90b2-8532f3de0ed9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "29864b00-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:30.065Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "29867210-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:30.065Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "29867211-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:30.065Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "29867212-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:30.065Z"
}

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": 126.321,
        "currencyCode": "LBP"
    },
    "description": "Laborum commodo.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#2496",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#2828",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#4517",
    "deadline": "2018-11-22T14:30:30.066Z",
    "eventId": "29869920-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:30.066Z"
}