Please report issues and contribute improvements on GitHub!

Template full-payment-upon-signature@0.5.0

Contract Ergo ^0.10.0 42c6fef1a6c8b292c339ed2d47b20a69067ac18f2a134be758941b65a3d0206e

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": "07fd837d-1488-4f28-b22a-b45a925656f5",
    "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": "e41fcd93-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "e41f5860-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.159Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "e41fa680-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.160Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#6842",
    "transactionId": "e41f7f70-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.159Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "e41fcd90-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.161Z"
}

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": 121.694,
        "currencyCode": "DZD"
    },
    "description": "Duis est.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#1287",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0447",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9877",
    "deadline": "2019-01-10T22:55:57.161Z",
    "eventId": "e41fcd94-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.161Z"
}