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 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": "6eaf940f-8f22-4ea3-bae2-3dbd2dbeba4b",
    "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": "1e18f630-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "1e188101-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:27.728-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#1682",
    "transactionId": "1e188100-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:27.728-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "1e18a811-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:27.729-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": 30.736,
        "currencyCode": "SBD"
    },
    "description": "Commodo.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#7956",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1981",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#7029",
    "deadline": "2019-06-07T12:34:27.731-04:00",
    "eventId": "1e18f631-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:27.731-04:00"
}