Fork me on GitHub

Template one-time-payment@0.7.0

Contract Ergo ^0.6.0 ce73ddcaa6e9ecdc1910f31095a3828528d04c1a28575faed94e20add05ddb19

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": "1ed95ecb-d79c-4368-8e56-9272a65488b7",
    "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": "4be05214-a5eb-11e8-a6e0-1f7bc50a0c19"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "4be02b00-a5eb-11e8-a6e0-1f7bc50a0c19",
    "timestamp": "2018-08-22T09:11:04.369Z"
}
org.accordproject.payment.onetime.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedRequest",
    "transactionId": "4be05210-a5eb-11e8-a6e0-1f7bc50a0c19",
    "timestamp": "2018-08-22T09:11:04.369Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "4be05211-a5eb-11e8-a6e0-1f7bc50a0c19",
    "timestamp": "2018-08-22T09:11:04.369Z"
}
org.accordproject.payment.onetime.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.onetime.PaymentReceivedResponse",
    "transactionId": "4be05212-a5eb-11e8-a6e0-1f7bc50a0c19",
    "timestamp": "2018-08-22T09:11:04.369Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 152.828,
        "currencyCode": "XBD"
    },
    "description": "Incididunt voluptate.",
    "contract": "resource:org.accordproject.payment.onetime.OneTimePaymentContract#6989",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#7647",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6850",
    "deadline": "2018-08-22T09:11:04.370Z",
    "eventId": "4be07920-a5eb-11e8-a6e0-1f7bc50a0c19",
    "timestamp": "2018-08-22T09:11:04.370Z"
}
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}