Please report issues and contribute improvements on GitHub!

Template payment-upon-signature@0.5.0

Contract Ergo ^0.11.1 d9af075bc36b8e1674e675c21cfc8b732fc189555450dc8e4519604af777f46d

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Download Archive Open in Template Studio

Payment Upon Signature

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Sample

Upon the signing of this Agreement, "Dave" shall pay 50 USD to "Dan".
                

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.uponsignature.PaymentUponSignatureContract",
    "contractId": "1e01e621-a81a-4aa0-90ed-cdd1ad270be7",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dave"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 50,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
org.accordproject.payment.uponsignature.PaymentUponSignatureState
{
    "$class": "org.accordproject.payment.uponsignature.PaymentUponSignatureState",
    "status": "INITIALIZED",
    "stateId": "2ef2fd60-4bae-11e9-8561-af645d56312b"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "2ef2d651-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:49.557+00:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#0358",
    "transactionId": "2ef2d650-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:49.557+00:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "2ef2d653-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:49.557+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": 175.36,
        "currencyCode": "BGN"
    },
    "description": "Enim nostrud anim Lorem cupidatat.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#1734",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8057",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9743",
    "deadline": "2019-03-21T07:51:49.558+00:00",
    "eventId": "2ef2fd61-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:49.558+00:00"
}