Full Payment Upon Signature

Author: Accord Project

full-payment-upon-signature@0.11.0 Contract ^0.22.0 dbc41b9dd21c55d1277c6a105292045041d99597f5fa64ea8365fcb886c6dfcd

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": "resource:org.accordproject.party.Party#Dan",
    "seller": "resource:org.accordproject.party.Party#Steve",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 0.01,
        "currencyCode": "USD"
    },
    "contractId": "8e844b8d-f26e-4796-b5e1-c33016d6a76b",
    "$identifier": "8e844b8d-f26e-4796-b5e1-c33016d6a76b"
}

Template Model

namespace org.accordproject.payment.fulluponsignature

import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
import org.accordproject.party.* from https://models.accordproject.org/accordproject/party.cto
import org.accordproject.runtime.* from https://models.accordproject.org/accordproject/runtime.cto
import org.accordproject.obligation.* from https://models.accordproject.org/accordproject/obligation.cto
import org.accordproject.money.MonetaryAmount from https://models.accordproject.org/money@0.2.0.cto
import org.accordproject.signature.ContractSigned from https://models.accordproject.org/signature/signature@0.2.0.cto
import org.accordproject.payment.PaymentReceived from https://models.accordproject.org/payment/payment@0.2.0.cto

asset FullPaymentUponSignatureState extends State {
  o ContractLifecycleStatus status
}

enum ContractLifecycleStatus {
  o INITIALIZED
  o OBLIGATION_EMITTED
  o COMPLETED
}

/**
 * The template model
 */
asset FullPaymentUponSignatureContract extends Contract {
  --> Party buyer
  --> Party 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",
    "$identifier": "7d62b911-a77b-11eb-9770-7ddd576a12c2"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "$timestamp": "2021-04-27T13:10:39.137-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#5599",
    "$timestamp": "2021-04-27T13:10:39.136-04:00"
}

Response Types

Type Sample JSON
org.accordproject.runtime.Response
{
    "$class": "org.accordproject.runtime.Response",
    "$timestamp": "2021-04-27T13:10:39.137-04:00"
}

Events Types

Type Sample JSON
concerto.Event
{
    "abstract": "this is an abstract type"
}
org.accordproject.obligation.PaymentObligation
{
    "$class": "org.accordproject.obligation.PaymentObligation",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 141.536,
        "currencyCode": "SZL"
    },
    "description": "Laboris occaecat.",
    "$identifier": "7d62b912-a77b-11eb-9770-7ddd576a12c2",
    "contract": "resource:org.accordproject.payment.fulluponsignature.FullPaymentUponSignatureContract#5059",
    "promisor": "resource:org.accordproject.party.Party#1797",
    "promisee": "resource:org.accordproject.party.Party#3538",
    "deadline": "2021-04-27T13:10:39.137-04:00",
    "$timestamp": "2021-04-27T13:10:39.137-04:00"
}

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.