Example compoundPrice-1

RDFa (source lint)

This example is currently available in Microdata and JSON-LD syntaxes only.

microdata (source lint)

<div itemscope itemtype="http://schema.org/Offer">
  <h1 itemprop="description">Our Private Bank Account Package: Low monthly fees and fair per-use charges.</h1>
  <b itemprop="name">Private Bank Account Package</b>
  <span itemprop="itemOffered" itemscope itemtype="http://schema.org/BankAccount">
    <span itemprop="name">ACME Private Bank Account</span>
    APR: <meta itemprop="annualPercentageRate" content="0.0314">3.14%
  </span> 
  <span itemprop="priceSpecification" itemscope itemtype="http://schema.org/CompoundPriceSpecification">
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">5</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <meta itemprop="unitCode" content="MON"> per month
    </span>
    <span itemprop="priceComponent" itemscope itemtype="http://schema.org/UnitPriceSpecification">
      <span itemprop="price">0.10</span> 
      <meta itemprop="priceCurrency" content="USD"> US$
      <span itemprop="unitText"> per transaction</span>
    </span>
  </span>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Offer",
    "description": "Our Private Bank Account Package: Low monthly fees and fair per-use charges.",
    "name" : "Private Bank Account Package",
    "itemOffered" : { 
        "@type" : "BankAccount",
        "name" : "ACME Private Bank Account",
        "annualPercentageRate" : 0.0314 },
    "priceSpecification" : {
        "@type" : "CompoundPriceSpecification",
        "priceComponent" : 
        [
        {
            "@type" : "UnitPriceSpecification",
            "price" : 5,
            "priceCurrency" : "USD",
            "unitCode" : "MON"
        },
        {
            "@type" : "UnitPriceSpecification",
            "price" : 0.10,
            "priceCurrency" : "USD",
            "unitText" : "per transaction"
        }
        ]
    }
}
</script>

Example compoundPrice-2

RDFa (source lint)

TODO.

microdata (source lint)

<div itemid="http://cathscafe.example.com/" itemscope itemtype="http://schema.org/WebPage">
    <div itemprop="mainEntity" itemscope itemtype="http://schema.org/Restaurant" itemid="#thecafe">
      <h1 itemprop="name">Cath's Cafe</h1>
      <p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
      <p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
      <p>View <a itemprop="hasMenu" href="/menu">our menu</a>.</p>
    </div>
</div>

JSON-LD (source lint)

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "WebPage",
    "@id": "http://cathscafe.example.com/",
    "mainEntity": {
      "@type": "Restaurant",
      "name": "Cath's Cafe",
      "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
      "telephone": "+155501003344",
      "hasMenu": "/menu"
    }
}
</script>