Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions contexts/payswarm-v1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
32 changes: 32 additions & 0 deletions specs/source/vocabs/commerce.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,38 @@ <h3>Account</h3>
</section>


<section id="Credit" about="https://w3id.org/commerce#Credit"
typeof="Class">
<h3>Credit</h3>
<p>
A credit (aka IOU) between a source and a destination.
</p>
<dl>
<dt>Status</dt>
<dd property="vs:term_status">unstable</dd>
<dt>Parent Class</dt>
<dd>Thing</dd>
<dt>Properties</dt>
<dd>forTransaction, source, destination, amount,
currency, comment</dd>
</dl>
<p>
The example below shows a transaction processor noting a credit from one entity to another.
</p>
<pre class="example prettyprint language-jsonld">
{
"@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"
}
</pre>
</section>


<section id="Deposit" about="https://w3id.org/commerce#Deposit"
typeof="Class">
<h3>Deposit</h3>
Expand Down