Fork me on GitHub

Template payment-upon-signature@0.3.0

Contract Ergo ^0.9.1 e524a069f5ac54a497653133fa7821436e517c21c5433f9e4e8c441dd73d5669

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": "0eeba005-cb5f-4a58-a378-2c266d4974e0",
    "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": "COMPLETED",
    "stateId": "1ddfd9f4-ee64-11e8-9a8e-a749c1ceabc2"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "1ddfb2e0-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:20.014Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "1ddfb2e2-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:20.014Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#8176",
    "transactionId": "1ddfb2e1-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:20.014Z"
}

Response Types

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

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": 159.083,
        "currencyCode": "GBP"
    },
    "description": "Officia.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#9272",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8613",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#8683",
    "deadline": "2018-11-22T14:37:20.015Z",
    "eventId": "1ddfd9f5-ee64-11e8-9a8e-a749c1ceabc2",
    "timestamp": "2018-11-22T14:37:20.015Z"
}