Template payment-upon-signature@0.7.0

Contract ^0.13.0 ebcbb028752a716e5b9a9957a36055c5d68d5d3a12f1b48b8aee34df35d6abc5

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": "d1d39ea8-ecc1-47c5-a2dc-029f1c25316a",
    "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": "7cbce123-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "7cbcba11-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:08.145-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#9438",
    "transactionId": "7cbcba10-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:08.145-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "7cbce121-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:08.146-04: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": 188.171,
        "currencyCode": "SHP"
    },
    "description": "Duis culpa.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#4552",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1290",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#0085",
    "deadline": "2019-07-02T09:37:08.147-04:00",
    "eventId": "7cbd0830-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:37:08.147-04:00"
}