Full Payment Upon Signature

Author: Accord Project

full-payment-upon-signature@0.10.0 Contract ^0.21.0 60fd5c5c57a6349218f2e0ccd6217a16159749157940e11f529ed639798d544c

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

Download Archive Download Compiled 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.

Template Text

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

Upon the signing of this Agreement, "Dan" shall pay the total purchase price to "Steve" in the amount of 0.01 USD.
Upon the signing of this Agreement, {{buyer}} shall pay the total purchase price to {{seller}} in the amount of {{amount}}.
{
    "$class": "org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract",
    "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"
    },
    "contractId": "4c2b1849-063a-455e-b411-745b54faf889"
}

Template Model

namespace org.accordproject.payment.fulluponsignature

import org.accordproject.cicero.contract.* from https://models.accordproject.org/cicero/contract.cto
import org.accordproject.cicero.runtime.* from https://models.accordproject.org/cicero/runtime.cto
import org.accordproject.money.MonetaryAmount from https://models.accordproject.org/money.cto
import org.accordproject.signature.ContractSigned from https://models.accordproject.org/signature/signature.cto
import org.accordproject.payment.PaymentReceived from https://models.accordproject.org/payment/payment.cto

asset FullPaymentUponSignatureState extends AccordContractState {
  o ContractLifecycleStatus status
}

enum ContractLifecycleStatus {
  o INITIALIZED
  o OBLIGATION_EMITTED
  o COMPLETED
}

/**
 * The template model
 */
asset FullPaymentUponSignatureContract extends AccordContract {
  o AccordParty buyer
  o AccordParty seller
  o MonetaryAmount amount
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureState
{
    "$class": "org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureState",
    "status": "COMPLETED",
    "stateId": "69828ad1-cd1d-11ea-920c-ade26666d144"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "698263c0-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:59.612-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#8163",
    "transactionId": "69823cb0-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:59.611-04:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "698263c2-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:59.612-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": 1.135,
        "currencyCode": "HNL"
    },
    "description": "Enim laboris laborum anim ipsum.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#0801",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#1229",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#6256",
    "deadline": "2020-07-23T15:47:59.614-04:00",
    "eventId": "6982b1e0-cd1d-11ea-920c-ade26666d144",
    "timestamp": "2020-07-23T15:47:59.614-04:00"
}

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 GitHub.