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": "c981594f-6814-469f-99bc-3ee69bf4e23c",
    "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": "2b2d0b93-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "2b2ce481-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:49.672-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#1685",
    "transactionId": "2b2ce480-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:49.672-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "2b2d0b91-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:49.673-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": 35.761,
        "currencyCode": "MMK"
    },
    "description": "Laboris id.",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#0189",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8456",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#1053",
    "deadline": "2019-06-07T12:34:49.674-04:00",
    "eventId": "2b2d32a0-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:49.674-04:00"
}