Full Payment Upon Signature

Author: Accord Project

full-payment-upon-signature@0.9.1 Contract ^0.20.10 8af8ea52c8785a54e88b6f5c10e4d2febfa523746b6833aaddc4c1df5596df27

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",
    "contractId": "d1abb80c-7251-4044-8432-f3a01d28c15d",
    "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"
    }
}

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": "d4a24992-c07a-11ea-ad77-8b5ce7c057ac"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "transactionId": "d4a22281-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:57.416+01:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#3218",
    "transactionId": "d4a22280-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:57.416+01:00"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "d4a24990-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:57.417+01: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": 100.169,
        "currencyCode": "ALL"
    },
    "description": "Nostrud consequat commodo magna et.",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#8271",
    "promisor": "resource:org.accordproject.cicero.contract.AccordParty#0375",
    "promisee": "resource:org.accordproject.cicero.contract.AccordParty#1824",
    "deadline": "2020-07-07T18:53:57.417+01:00",
    "eventId": "d4a24993-c07a-11ea-ad77-8b5ce7c057ac",
    "timestamp": "2020-07-07T18:53:57.417+01: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.