Payment upon delivery
This is a one time payment contract upon acceptance of delivery.
This is a one time payment contract upon acceptance of delivery.
This is a one time payment contract upon acceptance of delivery.
Upon delivery and acceptance, "Michael" shall pay to "Diana" the cost of goods (9.99 USD) and the delivery fee (1.99 USD).
Upon delivery and acceptance, "Michael" shall pay to "Diana" the cost of goods (9.99 USD) and the delivery fee (1.99 USD).
Upon delivery and acceptance, {{buyer}} shall pay to {{seller}} the cost of goods ({{costOfGoods}}) and the delivery fee ({{deliveryFee}}).
{
"$class": "org.accordproject.payment.upondelivery.PaymentUponDeliveryContract",
"buyer": {
"$class": "org.accordproject.cicero.contract.AccordParty",
"partyId": "Michael"
},
"seller": {
"$class": "org.accordproject.cicero.contract.AccordParty",
"partyId": "Diana"
},
"costOfGoods": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 9.99,
"currencyCode": "USD"
},
"deliveryFee": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 1.99,
"currencyCode": "USD"
},
"contractId": "5cc90ce7-fcf5-4e85-add4-f295d6117b29"
}
namespace org.accordproject.payment.upondelivery
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
/**
* The template model
*/
asset PaymentUponDeliveryContract extends AccordContract {
o AccordParty buyer
o AccordParty seller
o MonetaryAmount costOfGoods
o MonetaryAmount deliveryFee
}
transaction DeliveryAcceptedRequest extends Request {}
transaction DeliveryAcceptedResponse extends Response {}
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.cicero.contract.AccordContractState |
|
Type | Sample JSON |
---|---|
org.accordproject.payment.upondelivery.DeliveryAcceptedRequest |
|
Type | Sample JSON |
---|---|
org.accordproject.payment.upondelivery.DeliveryAcceptedResponse |
|
Type | Sample JSON |
---|---|
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.