Fork me on GitHub

Template full-payment-upon-signature@0.4.0

Contract Ergo ^0.9.1 fa9108e4956013ab263844f5151602cf50f9602646693cf1fa266f7d437884de

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": "1e087447-5d51-4fa9-92ce-c2e12e51e4e2",
    "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": "OBLIGATION_EMITTED",
    "stateId": "1978d650-ee64-11e8-9a8e-a749c1ceabc2"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "19788830-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:12.627Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "1978af40-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:12.628Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#4882",
    "transactionId": "19788831-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:12.628Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "1978af43-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:12.628Z"
}

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": 125.483,
        "currencyCode": "BOV"
    },
    "description": "Exercitation elit nisi.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#8905",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#5615",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#2484",
    "deadline": "2018-11-22T14:37:12.629Z",
    "eventId": "1978d651-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:12.629Z"
}