Please report issues and contribute improvements on GitHub!

Template payment-upon-signature@0.6.0

Contract ^0.12.0 df5a0e9b4e469e915dbb0c332af94ca60d8576b9ad80cf72b9424300a0bd2c9a

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": "5ff1d541-e95d-4744-9c56-bc4c5314b46d",
    "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": "cd4384c4-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "cd4384c0-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:39.884-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#8741",
    "transactionId": "cd435db0-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:39.883-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "cd4384c2-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:39.884-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": 119.702,
        "currencyCode": "USD"
    },
    "description": "Magna.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#3108",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#6643",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#4634",
    "deadline": "2019-04-05T00:46:39.885-04:00",
    "eventId": "cd43abd0-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:39.885-04:00"
}