Fork me on GitHub

Template full-payment-upon-signature@0.1.0

Contract Ergo ^0.8.0 90a447d7d01be271b0b1f727efa18f76309185419d38ec6a7dfea4b845356d9e

This is a one-time full payment clause applicable at the signature of the contract.

Download Archive

Full Payment Upon Signature

This is a one-time full payment clause applicable at the 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.fulluponsignature.FullPaymentUponSignatureContract",
    "contractId": "cf14a1c1-7a2e-4110-b3d9-af223765d7c7",
    "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.fulluponsignature.FullPaymentUponSignatureState
{
    "$class": "org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureState",
    "status": "UNINITIALIZED",
    "stateId": "a3a704b2-b6c3-11e8-a911-8dc66f653c0b"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "a3a64160-b6c3-11e8-a911-8dc66f653c0b",
    "timestamp": "2018-09-12T19:40:01.526Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedRequest",
    "transactionId": "a3a6dda0-b6c3-11e8-a911-8dc66f653c0b",
    "timestamp": "2018-09-12T19:40:01.530Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "a3a6dda1-b6c3-11e8-a911-8dc66f653c0b",
    "timestamp": "2018-09-12T19:40:01.530Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedResponse",
    "transactionId": "a3a704b0-b6c3-11e8-a911-8dc66f653c0b",
    "timestamp": "2018-09-12T19:40:01.531Z"
}

Events Types

Type Sample JSON
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 21.356,
        "currencyCode": "HTG"
    },
    "description": "Fugiat anim officia.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#9268",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#4501",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8623",
    "deadline": "2018-09-12T19:40:01.532Z",
    "eventId": "a3a72bc0-b6c3-11e8-a911-8dc66f653c0b",
    "timestamp": "2018-09-12T19:40:01.532Z"
}
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}