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": "resource:org.accordproject.party.Party#Michael",
"seller": "resource:org.accordproject.party.Party#Diana",
"costOfGoods": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 9.99,
"currencyCode": "USD"
},
"deliveryFee": {
"$class": "org.accordproject.money.MonetaryAmount",
"doubleValue": 1.99,
"currencyCode": "USD"
},
"contractId": "15929c26-0d85-4f62-b6de-2d7775c633be",
"$identifier": "15929c26-0d85-4f62-b6de-2d7775c633be"
}
namespace org.accordproject.payment.upondelivery
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
/**
* The template model
*/
asset PaymentUponDeliveryContract extends Contract {
--> Party buyer
--> Party 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.runtime.State |
|
Type | Sample JSON |
---|---|
org.accordproject.payment.upondelivery.DeliveryAcceptedRequest |
|
Type | Sample JSON |
---|---|
org.accordproject.payment.upondelivery.DeliveryAcceptedResponse |
|
Type | Sample JSON |
---|---|
org.accordproject.obligation.PaymentObligation |
|
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.