Skip to content

Commit

Permalink
Issue schemaorg#518: Added the new enumeration PaymentStatusType as a…
Browse files Browse the repository at this point in the history
…n expected value for http://schema.org/paymentStatus.
  • Loading branch information
vholland committed May 21, 2015
1 parent 3bdc464 commit 66bd240
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
24 changes: 24 additions & 0 deletions data/schema.rdfa
Expand Up @@ -11774,6 +11774,7 @@ postponing for 1.6.
<span property="rdfs:comment">The status of payment; whether the invoice has been paid or not.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Invoice">Invoice</a></span>
<span>Domain: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Text">Text</a></span>
<span>Domain: <a property="http://schema.org/rangeIncludes" href="http://schema.org/PaymentStatusType">PaymentStatusType</a></span>
</div>

<div typeof="rdf:Property" resource="http://schema.org/referencesOrder">
Expand All @@ -11783,6 +11784,29 @@ postponing for 1.6.
<span>Domain: <a property="http://schema.org/rangeIncludes" href="http://schema.org/Order">Order</a></span>
</div>

<div typeof="rdfs:Class" resource="http://schema.org/PaymentStatusType">
<span class="h" property="rdfs:label">PaymentStatusType</span>
<span property="rdfs:comment">A specific payment status. For example, PaymentDue, PaymentComplete, etc.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Intangible">Intangible</a></span>
</div>

<div typeof="http://schema.org/PaymentStatusType" resource="http://schema.org/PaymentComplete">
<span class="h" property="rdfs:label">PaymentComplete</span>
<span property="rdfs:comment">The payment has been received and processed.</span>
</div>
<div typeof="http://schema.org/PaymentStatusType" resource="http://schema.org/PaymentDeclined">
<span class="h" property="rdfs:label">PaymentDeclined</span>
<span property="rdfs:comment">The payee received the payment, but it was declined for some reason.</span>
</div>
<div typeof="http://schema.org/PaymentStatusType" resource="http://schema.org/PaymentDue">
<span class="h" property="rdfs:label">PaymentDue</span>
<span property="rdfs:comment">The payment is due, but still within an acceptable time to be received.</span>
</div>
<div typeof="http://schema.org/PaymentStatusType" resource="http://schema.org/PaymentPastDue">
<span class="h" property="rdfs:label">PaymentPastDue</span>
<span property="rdfs:comment">The payment is due and considered late.</span>
</div>


<!-- Property-Value Support as per https://www.w3.org/wiki/WebSchemas/PropertyValuePairs -->
<h1>Property-Value Support</h1>
Expand Down
12 changes: 6 additions & 6 deletions data/sdo-invoice-examples.txt
Expand Up @@ -37,7 +37,7 @@ MICRODATA:
<span itemprop="priceCurrency">USD</span>
</div>
<meta itemprop="billingPeriod" content="2014-12-21/P30D" />starts:2014-12-21 30 days
<span itemprop="paymentStatus">payment due</span>
<meta itemprop="paymentStatus" content="http://schema.org/PaymentDue" />
</div>


Expand All @@ -63,7 +63,7 @@ RDFA:
<span property="priceCurrency">USD</span>
</div>
<meta property="billingPeriod" content="2014-12-21/P30D" />starts:2014-12-21 30 days
<span property="paymentStatus">payment due</span>
<meta property="paymentStatus" content="http://schema.org/PaymentDue" />
</div>


Expand Down Expand Up @@ -96,7 +96,7 @@ JSON:
"priceCurrency": "USD"
},
"billingPeriod": "2014-12-21/P30D",
"paymentStatus": "payment due"
"paymentStatus": "http://schema.org/PaymentDue"
}
</script>

Expand Down Expand Up @@ -135,7 +135,7 @@ MICRODATA:
<span itemprop="price">0.00</span>
<span itemprop="priceCurrency">USD</span>
</div>
<span itemprop="paymentStatus">paid</span>
<meta itemprop="paymentStatus" content="http://schema.org/PaymentComplete" />
<div itemprop="referencesOrder" itemscope itemtype="http://schema.org/Order">
<span itemprop="description">furnace</span>
<span itemprop="orderDate">2014-12-01</span>
Expand Down Expand Up @@ -175,7 +175,7 @@ RDFA:
<span property="priceCurrency">USD</span>
</div>
<meta property="billingPeriod" content="2014-12-21/P30D" />starts:2014-12-21 30 days
<span property="paymentStatus">paid</span>
<meta itemprop="paymentStatus" content="http://schema.org/PaymentComplete" />
<div property="referencesOrder" typeof="Order">
<span property="description">furnace</span>
<span property="orderDate">2014-12-01</span>
Expand Down Expand Up @@ -221,7 +221,7 @@ JSON:
"price": 0.00,
"priceCurrency": "USD"
},
"paymentStatus": "paid",
"paymentStatus": "http://schema.org/PaymentComplete",
"referencesOrder": [
{
"@type": "Order",
Expand Down
2 changes: 1 addition & 1 deletion docs/releases.html
Expand Up @@ -140,7 +140,7 @@ <h1>Releases</h1>

<h3>Vocabulary</h3>
<ul>
<li>...</li>
<li><a href="https://github.com/schemaorg/schemaorg/issues/518">Fix to #518</a>: <a href="/paymentStatus">paymentStatus</a> now expects an enumerated value of type <a href="/PaymentStatusType">PaymentStatusType</a> in addition to Text.</li>
</ul>

<h3>Site improvements</h3>
Expand Down

0 comments on commit 66bd240

Please sign in to comment.