Fork me on GitHub

Template payment-upon-signature@0.2.1

Contract Ergo ^0.9.1 3abd72e5141dab953521edf2f6514a5dacc489ce27a74e5117cd7068634ea575

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": "c87f481a-1685-4965-9f99-3b90561c4a29",
    "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": "2af878a3-ee63-11e8-90b2-8532f3de0ed9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "2af85190-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.489Z"
}
org.accordproject.payment.uponsignature.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.uponsignature.PaymentReceivedRequest",
    "transactionId": "2af85192-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.489Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#4986",
    "transactionId": "2af85191-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.489Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "2af85194-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.489Z"
}
org.accordproject.payment.uponsignature.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.uponsignature.PaymentReceivedResponse",
    "transactionId": "2af878a0-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.490Z"
}

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": 27.248,
        "currencyCode": "ANG"
    },
    "description": "Cillum ullamco.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#9187",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#5995",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8595",
    "deadline": "2018-11-22T14:30:32.490Z",
    "eventId": "2af878a4-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:32.490Z"
}