diff --git a/contexts/payswarm-v1.jsonld b/contexts/payswarm-v1.jsonld index e2a197fd..84194ceb 100644 --- a/contexts/payswarm-v1.jsonld +++ b/contexts/payswarm-v1.jsonld @@ -89,6 +89,7 @@ "ApplyInclusively": "com:ApplyInclusively", "FinancialAccount": "com:Account", "FlatAmount": "com:FlatAmount", + "Credit": "com:Credit", "Deposit": "com:Deposit", "NoAdditionalPayeesLimitation": "com:NoAdditionalPayeesLimitation", "Payee": "com:Payee", diff --git a/specs/source/vocabs/commerce.html b/specs/source/vocabs/commerce.html index d48450e3..a7d7089b 100644 --- a/specs/source/vocabs/commerce.html +++ b/specs/source/vocabs/commerce.html @@ -143,6 +143,38 @@

Account

+
+

Credit

+

+A credit (aka IOU) between a source and a destination. +

+
+
Status
+
unstable
+
Parent Class
+
Thing
+
Properties
+
forTransaction, source, destination, amount, +currency, comment
+
+

+The example below shows a transaction processor noting a credit from one entity to another. +

+
+{
+   "@context": "https://w3id.org/payswarm/v1",
+   "type": "Credit",
+   "source": "http://redbankexample.com/accounts/12345#account",
+   "destination": "http://greencardexample.com/accounts/54321#account",
+   "amount": "8.00",
+   "currency": "USD",
+   "comment": "Credit of $8.00 on 2010-10-16 at 12:34pm - promising to pay Jane back for pizza last Monday"
+}
+          
+
+ +

Deposit