Fork me on GitHub

Template full-payment-upon-signature@0.3.1

Contract Ergo ^0.9.1 18b71a999b9492a5b67f25fa7d8de2ac4dc87081bfd88518f45a83e57cac3115

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": "c24f3adb-215c-451d-a47f-11c3807b6eb8",
    "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": "268232c2-ee63-11e8-90b2-8532f3de0ed9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "26820bb0-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.003Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedRequest",
    "transactionId": "26820bb2-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.003Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#4661",
    "transactionId": "26820bb1-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.003Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "26820bb4-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.003Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedResponse",
    "transactionId": "26820bb5-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.003Z"
}

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": 46.473,
        "currencyCode": "COP"
    },
    "description": "In sunt veniam pariatur.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#7762",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#2061",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9868",
    "deadline": "2018-11-22T14:30:25.004Z",
    "eventId": "268232c3-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.004Z"
}