Fork me on GitHub

Template one-time-payment@0.6.0

Contract Ergo ^0.6.0 cc841fe28240f45a64ddaefa25c29a912d1124b6bb5408b53ae92608328d90cd

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": "df8541f7-b964-4a30-aac3-cad37a4f8d1a",
    "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": "db5f6954-a157-11e8-bed5-15302d68d0b1"
}

Request Types

Type Sample JSON
org.accordproject.payment.onetime.InitRequest
{
    "$class": "org.accordproject.payment.onetime.InitRequest",
    "transactionId": "db5f4240-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:34.949Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "db5f6950-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:34.949Z"
}

Response Types

Type Sample JSON
org.accordproject.payment.onetime.InitResponse
{
    "$class": "org.accordproject.payment.onetime.InitResponse",
    "transactionId": "db5f6951-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:34.949Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "db5f6952-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:34.949Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 92.964,
        "currencyCode": "INR"
    },
    "description": "Ea.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#6921",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1396",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7283",
    "deadline": "2018-08-16T13:25:34.950Z",
    "eventId": "db5f9060-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:34.950Z"
}
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}