Fork me on GitHub

Template one-time-payment@0.5.0

Contract Ergo ^0.5.0 d3208289c25dbc877aea663806bbbbf5d84922efbfed906a19d5772662c8c3a0

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": "7703b63f-9a9a-4e79-bd09-4a64a79e697f",
    "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": "9feeaf84-9675-11e8-bf69-ed4373bb37a3"
}

Request Types

Type Sample JSON
org.accordproject.payment.onetime.InitRequest
{
    "$class": "org.accordproject.payment.onetime.InitRequest",
    "transactionId": "9fee8870-9675-11e8-bf69-ed4373bb37a3",
    "timestamp": "2018-08-02T17:00:57.335Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "9feeaf80-9675-11e8-bf69-ed4373bb37a3",
    "timestamp": "2018-08-02T17:00:57.336Z"
}

Response Types

Type Sample JSON
org.accordproject.payment.onetime.InitResponse
{
    "$class": "org.accordproject.payment.onetime.InitResponse",
    "transactionId": "9feeaf81-9675-11e8-bf69-ed4373bb37a3",
    "timestamp": "2018-08-02T17:00:57.336Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "9feeaf82-9675-11e8-bf69-ed4373bb37a3",
    "timestamp": "2018-08-02T17:00:57.336Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 180.756,
        "currencyCode": "XTS"
    },
    "description": "Dolor quis dolor id.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#4128",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3406",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8233",
    "deadline": "2018-08-02T17:00:57.337Z",
    "eventId": "9feed690-9675-11e8-bf69-ed4373bb37a3",
    "timestamp": "2018-08-02T17:00:57.337Z"
}
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}