Please report issues and contribute improvements on GitHub!

Template payment-upon-signature@0.4.0

Contract Ergo ^0.10.0 4444066213d8d7107c62f8a4e644f0831ddac51ad9841ad142cbc35ac6e522e5

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": "20f30d0b-cf0f-4d87-9171-aaa45c398d8c",
    "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": "ee7d9c91-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "ee7d4e70-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:14.551Z"
}
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "ee7d7581-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:14.552Z"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#6534",
    "transactionId": "ee7d7580-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:14.552Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "ee7d7584-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:14.552Z"
}

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": 40.577,
        "currencyCode": "LRD"
    },
    "description": "Amet labore minim minim.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#7027",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0138",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#0051",
    "deadline": "2019-01-10T22:56:14.553Z",
    "eventId": "ee7d9c92-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:56:14.553Z"
}