Payment Upon Signature

Author: Accord Project

payment-upon-signature@0.10.0 Contract ^0.22.0 eece07b3c3a49655e8c7fc62cb371a7fae18acb121b58265cd4b391166ccfa1e

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Download Archive Download Compiled Archive Open in Template Studio

Payment Upon Signature

This is a generic payment clause applicable to any type of contract that requires some payment at the time of signature.

Template Text

Upon the signing of this Agreement, "Dave" shall pay 50 USD to "Dan".

Upon the signing of this Agreement, "Dave" shall pay 50 USD to "Dan".
Upon the signing of this Agreement, {{buyer}} shall pay {{amount}} to {{seller}}.
{
    "$class": "org.accordproject.payment.uponsignature.PaymentUponSignatureContract",
    "buyer": "resource:org.accordproject.party.Party#Dave",
    "seller": "resource:org.accordproject.party.Party#Dan",
    "amount": {
        "$class": "org.accordproject.money.MonetaryAmount",
        "doubleValue": 50,
        "currencyCode": "USD"
    },
    "contractId": "70337ffb-e822-4f38-a4dd-9b7667b03fec",
    "$identifier": "70337ffb-e822-4f38-a4dd-9b7667b03fec"
}

Template Model

namespace org.accordproject.payment.uponsignature

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 PaymentUponSignatureState extends State {
  o ContractLifecycleStatus status
}

enum ContractLifecycleStatus {
  o INITIALIZED
  o OBLIGATION_EMITTED
  o COMPLETED
}

/**
 * The template model
 */
asset PaymentUponSignatureContract 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.uponsignature.PaymentUponSignatureState
{
    "$class": "org.accordproject.payment.uponsignature.PaymentUponSignatureState",
    "status": "OBLIGATION_EMITTED",
    "$identifier": "8b21db80-a77b-11eb-9770-7ddd576a12c2"
}

Request Types

Type Sample JSON
org.accordproject.payment.PaymentReceived
{
    "$class": "org.accordproject.payment.PaymentReceived",
    "$timestamp": "2021-04-27T13:11:02.199-04:00"
}
org.accordproject.signature.ContractSigned
{
    "$class": "org.accordproject.signature.ContractSigned",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#2053",
    "$timestamp": "2021-04-27T13:11:02.199-04:00"
}

Response Types

Type Sample JSON
org.accordproject.runtime.Response
{
    "$class": "org.accordproject.runtime.Response",
    "$timestamp": "2021-04-27T13:11:02.199-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": 84.225,
        "currencyCode": "MXN"
    },
    "description": "Enim sit velit reprehenderit enim.",
    "$identifier": "8b21db81-a77b-11eb-9770-7ddd576a12c2",
    "contract": "resource:org.accordproject.payment.uponsignature.PaymentUponSignatureContract#5334",
    "promisor": "resource:org.accordproject.party.Party#9585",
    "promisee": "resource:org.accordproject.party.Party#2321",
    "deadline": "2021-04-27T13:11:02.200-04:00",
    "$timestamp": "2021-04-27T13:11:02.200-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.