Fork me on GitHub

Template full-payment-upon-signature@0.3.0

Contract Ergo ^0.9.1 f5ca48104de50d8c53bcbfeda8c3d1d76d0b2b7e40efac2269bce6a3ab166c1d

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": "ab09253b-0682-45fc-9052-8fe4762f12c0",
    "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": "INITIALIZED",
    "stateId": "25c41e10-e44b-11e8-b52f-03024396f200"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "25c27060-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.199Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedRequest",
    "transactionId": "25c3a8e0-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.206Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#1343",
    "transactionId": "25c30ca0-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.202Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "25c3cff1-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.207Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedResponse",
    "transactionId": "25c3cff2-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.207Z"
}

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": 168.573,
        "currencyCode": "MXN"
    },
    "description": "Irure.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#9810",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6399",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9636",
    "deadline": "2018-11-09T18:13:24.209Z",
    "eventId": "25c41e11-e44b-11e8-b52f-03024396f200",
    "timestamp": "2018-11-09T18:13:24.209Z"
}