Full Payment upon Demand
Payment made when a single milestone is reached
This is a one-time full payment clause applicable on demand.
Payment made when a single milestone is reached
After execution of this Agreement, "Dan" shall pay the full purchase price to "Jerome" in the amount of 3.14 EUR upon demand by "Jerome".
After execution of this Agreement, "Dan" shall pay the full purchase price to "Jerome" in the amount of 3.14 EUR upon demand by "Jerome".
After execution of this Agreement, {{buyer}} shall pay the full purchase price to {{seller}} in the amount of {{amount}} {{currencyCode}} upon demand by {{seller}}.
{
"$class": "org.accordproject.fullpaymentupondemand@0.1.0.TemplateModel",
"buyer": "resource:org.accordproject.party.Party#Dan",
"seller": "resource:org.accordproject.party.Party#Jerome",
"value": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 3.14,
"currencyCode": "EUR"
},
"$identifier": "c8648553-53af-400d-bf8c-f2102a17c28c",
"clauseId": "c8648553-53af-400d-bf8c-f2102a17c28c"
}
namespace org.accordproject.fullpaymentupondemand@0.1.0
import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto
// Template model
@template
asset TemplateModel extends Clause {
o String buyer
o String seller
o Double amount
o String currencyCode
}
// Request
transaction PaymentDemand extends Request {
}
// Response
transaction PaymentDemandResponse extends Response {
}
transaction PaymentReceived extends Request {
}
transaction PaymentReceivedResponse extends Response {
}
// Event emitted when a payment obligation is triggered
event PaymentObligationEvent {
o Double amount
o String currencyCode
o String description
}
// State
concept FullPaymentUponDemandState identified {
o String status default="INITIALIZED"
}
Find the full logic for this template on on GitHub.
| Type | Sample JSON |
|---|---|
| org.accordproject.runtime@0.2.0.State | |
| Type | Sample JSON |
|---|---|
| org.accordproject.fullpaymentupondemand@0.1.0.PaymentDemand | |
| org.accordproject.fullpaymentupondemand@0.1.0.PaymentReceived | |
| org.accordproject.runtime@0.2.0.Request | |
| Type | Sample JSON |
|---|---|
| org.accordproject.fullpaymentupondemand@0.1.0.PaymentDemandResponse | |
| org.accordproject.fullpaymentupondemand@0.1.0.PaymentReceivedResponse | |
| org.accordproject.runtime@0.2.0.Response | |
| Type | Sample JSON |
|---|
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.