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 {{value}} upon demand by {{seller}}.
{
"$class": "org.accordproject.payment.fullupondemand.FullPaymentUponDemandTemplate",
"contractId": "0b6c865e-7441-4182-b0b8-917f78ae7337",
"buyer": {
"$class": "org.accordproject.cicero.contract.AccordParty",
"partyId": "Dan"
},
"seller": {
"$class": "org.accordproject.cicero.contract.AccordParty",
"partyId": "Jerome"
},
"value": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 3.14,
"currencyCode": "EUR"
}
}
namespace org.accordproject.payment.fullupondemand
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.payment.PaymentReceived from https://models.accordproject.org/payment/payment.cto
// Template model
asset FullPaymentUponDemandTemplate extends AccordContract {
o AccordParty buyer
o AccordParty seller
o MonetaryAmount value
}
// Request
transaction PaymentDemand extends Request {
}
asset FullPaymentUponDemandState extends AccordContractState {
o ContractLifecycleStatus status default = "INITIALIZED"
}
enum ContractLifecycleStatus {
o INITIALIZED
o OBLIGATION_EMITTED
o COMPLETED
}
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.payment.fullupondemand.FullPaymentUponDemandState |
|
Type | Sample JSON |
---|---|
org.accordproject.payment.fullupondemand.PaymentDemand |
|
org.accordproject.payment.PaymentReceived |
|
Type | Sample JSON |
---|---|
org.accordproject.cicero.runtime.Response |
|
Type | Sample JSON |
---|---|
org.accordproject.base.Event |
|
org.accordproject.cicero.runtime.PaymentObligation |
|
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.