Please report issues and contribute improvements on GitHub!

Template full-payment-upon-signature@0.6.0

Contract Ergo ^0.11.1 91f73d2f211fa1f31d0c4834f597eb115320ac145e45b301aace025813eb9583

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

Download Archive Open in Template Studio

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": "7638add6-41f5-4841-b6a9-9666335e5bce",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "amount": {
        "$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": "COMPLETED",
    "stateId": "28970790-4bae-11e9-8561-af645d56312b"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "2896e080-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:38.888+00:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#8235",
    "transactionId": "2896b970-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:38.887+00:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "2896e082-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:38.888+00:00"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}
org.accordproject.cicero.runtime.PaymentObligation
{
    "$class": "org.accordproject.cicero.runtime.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 209.102,
        "currencyCode": "KZT"
    },
    "description": "Incididunt.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#8670",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6887",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7479",
    "deadline": "2019-03-21T07:51:38.889+00:00",
    "eventId": "28970791-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:38.889+00:00"
}