Please report issues and contribute improvements on GitHub!

Template payment-upon-signature@0.6.1

Contract ^0.12.0 f6a5547af04d7c91077b2247b5f0371b5606b41855753ffdd522134b3aa2badb

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": "f48532e3-b80d-4cea-83f4-da72d049aefc",
    "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": "OBLIGATION_EMITTED",
    "stateId": "a03da763-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "a03d8051-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:25.557+00:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#6866",
    "transactionId": "a03d8050-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:25.557+00:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "a03da761-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:25.558+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": 89.8,
        "currencyCode": "JOD"
    },
    "description": "Cillum.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#7778",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#3657",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9909",
    "deadline": "2019-04-17T00:56:25.559+00:00",
    "eventId": "a03dce70-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:25.559+00:00"
}