diff --git a/contexts/payswarm-v1.jsonld b/contexts/payswarm-v1.jsonld index e2a197fd..df809e6a 100644 --- a/contexts/payswarm-v1.jsonld +++ b/contexts/payswarm-v1.jsonld @@ -87,6 +87,7 @@ "voided": {"@id": "com:voided", "@type": "xsd:dateTime"}, "ApplyExclusively": "com:ApplyExclusively", "ApplyInclusively": "com:ApplyInclusively", + "Credit": "com:Credit", "FinancialAccount": "com:Account", "FlatAmount": "com:FlatAmount", "Deposit": "com:Deposit", diff --git a/specs/source/vocabs/commerce.html b/specs/source/vocabs/commerce.html index d48450e3..31622bc9 100644 --- a/specs/source/vocabs/commerce.html +++ b/specs/source/vocabs/commerce.html @@ -143,6 +143,40 @@
+A credit is similar to a transfer, however it records a credit (or IOU) between a sourrce and a destination. +
++The example below shows a transaction processor transfering funds from a +local financial account to an external financial account. +
+
+{
+ "@context": "https://w3id.org/payswarm/v1",
+ "type": "Credit",
+ "forTransaction": "http://redbankexample.com/transactions/20110104#7827982";
+ "source": "http://redbankexample.com/accounts/12345#account",
+ "destination": "http://greencardexample.com/accounts/54321#account",
+ "amount": "8.00",
+ "currency": "USD",
+ "comment": "Transfer of $8.00 on 2010-10-16 at 12:34pm - Paying Jane back for pizza last Monday"
+}
+
+