Fork me on GitHub

Template full-payment-upon-signature@0.2.0

Contract Ergo ^0.9.1 014abb2426c76f427bea58ffff5aa58ea6ceb6596c72f89fccca7e95bf60eef4

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

Download Archive Open in Template Studio

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": "57224adc-cbd0-4ee5-9021-fa354d9a71fc",
    "buyer": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Dan"
    },
    "seller": {
        "$class": "org.accordproject.cicero.contract.AccordParty",
        "partyId": "Steve"
    },
    "totalPurchasePrice": {
        "$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": "UNINITIALIZED",
    "stateId": "5d962803-dd3f-11e8-a95c-95b9dbcf241c"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "5d9600f0-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:25.759Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedRequest
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedRequest",
    "transactionId": "5d9600f1-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:25.759Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "5d962800-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:25.760Z"
}
org.accordproject.payment.fulluponsignature.PaymentReceivedResponse
{
    "$class": "org.accordproject.payment.fulluponsignature.PaymentReceivedResponse",
    "transactionId": "5d962801-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:25.760Z"
}

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": 45.586,
        "currencyCode": "PYG"
    },
    "description": "Elit aliquip reprehenderit.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#5487",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#8845",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#9617",
    "deadline": "2018-10-31T19:01:25.761Z",
    "eventId": "5d964f10-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:25.761Z"
}