Template full-payment-upon-signature@0.8.0

Contract ^0.13.0 29bd6129be734419fd22b37ed5b04f9547fe41b1df8dfe84b526ec0a645ea872

This is a one-time full payment clause applicable at the signature of the contract.

Download Archive Open in Template Studio Open in VSCode Web

Full Payment Upon Signature

This is a one-time full payment clause applicable at the signature of the contract.

Sample

            Upon the signing of this Agreement, "Dan" shall pay the total purchase price to "Steve" in the amount of 0.01 USD.
          

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.fulluponsignature.FullPaymentUponSignatureContract",
    "contractId": "6e858f5b-56c7-457e-b3b3-2ead59b4288a",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 0.01,
        "currencyCode": "USD"
    }
}

State Types

Type Sample JSON
org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureState
{
    "$class": "org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureState",
    "status": "OBLIGATION_EMITTED",
    "stateId": "741b1a01-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "741af2f0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:53.663-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#5867",
    "transactionId": "741acbe0-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:53.662-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "741af2f2-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:53.663-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": 199.441,
        "currencyCode": "IDR"
    },
    "description": "Cupidatat mollit.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#1459",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0910",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7673",
    "deadline": "2019-07-02T09:36:53.664-04:00",
    "eventId": "741b1a02-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:53.664-04:00"
}