Please report issues and contribute improvements on GitHub!

Template full-payment-upon-signature@0.7.1

Contract ^0.12.0 b8b248681378527e0deeaf0a76f93910a523b648a22640ddd202436f35a79454

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": "1346a779-d044-4959-b04d-61fcafb5d0ea",
    "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": "COMPLETED",
    "stateId": "94174d60-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "9416ff41-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:05.172+00:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#0595",
    "transactionId": "9416ff40-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:05.172+00:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "94172650-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:05.173+00: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": 3.049,
        "currencyCode": "PYG"
    },
    "description": "Duis.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#1563",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1133",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6704",
    "deadline": "2019-04-17T00:56:05.174+00:00",
    "eventId": "94174d61-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:05.174+00:00"
}