Fork me on GitHub

Template one-time-payment@0.8.0

Contract Ergo ^0.7.1 8fd388b8bfc50e0993c73b32445c68a3dddc4fae395cfc6cca60eb626e4a67b3

This is a one time payment contract applicable at execution of that contract.

Download Archive

One Time Payment Contract

This is a one time payment contract applicable at execution of that contract.

Sample

An initial payment of 0.01 USD shall be made by "Dan" to "Steve" upon execution of this Agreement.

                

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": "77e6e03b-b4fd-46a0-9de6-28b486b859db",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "initialAmount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 0.01,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "706990f4-ac5e-11e8-ae05-7b30d9585bc6"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "706969e0-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:24.766Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "706990f0-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:24.767Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "706990f1-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:24.767Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "706990f2-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:24.767Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 128.415,
        "currencyCode": "ARS"
    },
    "description": "Mollit in est tempor et.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#6305",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#4182",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6364",
    "deadline": "2018-08-30T14:10:24.768Z",
    "eventId": "7069b800-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:24.768Z"
}
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}