forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-invoice-examples.txt
383 lines (344 loc) · 11.9 KB
/
sdo-invoice-examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
TYPES: #invoice-1 Invoice,BankOrCreditUnion,Person,PriceSpecification
PRE-MARKUP:
An example of a credit card bill (invoice).
ACME Bank
Bill for: January 2015 Visa
invoice link: http://www.acmebank.com/invoice.pdf
Customer: Jane Doe
account ID: xxxx-xxxx-xxxx-1234
payment due: 2015-01-30
minimum payment: $15.00
total due: $200.00
billing period: 2014-12-21 to 2015-01-20
payment due
MICRODATA:
<div itemscope itemtype="http://schema.org/Invoice">
<h1 itemprop="description">January 2015 Visa</h1>
<a itemprop="url" href="http://acmebank.com/invoice.pdf">Invoice PDF</a>
<div itemprop="broker" itemscope itemtype="http://schema.org/BankOrCreditUnion">
<b itemprop="name">ACME Bank</b>
</div>
<span itemprop="accountId">xxxx-xxxx-xxxx-1234</span>
<div itemprop="customer" itemscope itemtype="http://schema.org/Person">
<b itemprop="name">Jane Doe</b>
</div>
<time itemprop="paymentDueDate">2015-01-30</time>
<div itemprop="minimumPaymentDue" itemscope itemtype="http://schema.org/PriceSpecification">
<span itemprop="price">15.00</span>
<span itemprop="priceCurrency">USD</span>
</div>
<div itemprop="totalPaymentDue" itemscope itemtype="http://schema.org/PriceSpecification">
<span itemprop="price">200.00</span>
<span itemprop="priceCurrency">USD</span>
</div>
<meta itemprop="billingPeriod" content="P30D" />starts:2014-12-21 30 days
<link itemprop="paymentStatus" href="http://schema.org/PaymentDue" />
</div>
RDFA:
<div vocab="http://schema.org/" typeof="Invoice">
<h1 property="description">January 2015 Visa</h1>
<a property="url" href="http://acmebank.com/invoice.pdf">Invoice PDF</a>
<div property="broker" typeof="BankOrCreditUnion">
<b property="name">ACME Bank</b>
</div>
<span property="accountId">xxxx-xxxx-xxxx-1234</span>
<div property="customer" typeof="Person">
<b property="name">Jane Doe</b>
</div>
<time property="paymentDueDate">2015-01-30T12:00:00</time>
<div property="minimumPaymentDue" typeof="PriceSpecification">
<span property="price">15.00</span>
<span property="priceCurrency">USD</span>
</div>
<div property="totalPaymentDue" typeof="PriceSpecification">
<span property="price">200.00</span>
<span property="priceCurrency">USD</span>
</div>
<meta property="billingPeriod" content="P30D" />starts:2014-12-21 30 days
<link property="paymentStatus" href="PaymentDue" />
</div>
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Invoice",
"description": "January 2015 Visa bill.",
"url": "http://acmebank.com/invoice.pdf",
"broker": {
"@type": "BankOrCreditUnion",
"name": "ACME Bank"
},
"accountId": "xxxx-xxxx-xxxx-1234",
"customer": {
"@type": "Person",
"name": "Jane Doe"
},
"paymentDueDate": "2015-01-30T12:00:00",
"minimumPaymentDue": {
"@type": "PriceSpecification",
"price": 15.00,
"priceCurrency": "USD"
},
"totalPaymentDue": {
"@type": "PriceSpecification",
"price": 200.00,
"priceCurrency": "USD"
},
"billingPeriod": "P30D",
"paymentStatus": "http://schema.org/PaymentDue"
}
</script>
TYPES: Invoice,Order,LocalBusiness,Person,PriceSpecification,Service
PRE-MARKUP:
An example of a invoice for a purchase and installation.
ACME Home Heating
Bill for: New furnace and installation
Customer: Jane Doe
payment due: 2015-01-30
minimum payment: $0.00
total due: $0.00
payment status: paid
order: furnace model ABC123
order: installation labor
MICRODATA:
<div itemscope itemtype="http://schema.org/Invoice">
<h1 itemprop="description">New furnace and installation</h1>
<div itemprop="broker" itemscope itemtype="http://schema.org/LocalBusiness">
<b itemprop="name">ACME Home Heating</b>
</div>
<div itemprop="customer" itemscope itemtype="http://schema.org/Person">
<b itemprop="name">Jane Doe</b>
</div>
<time itemprop="paymentDueDate">2015-01-30</time>
<div itemprop="minimumPaymentDue" itemscope itemtype="http://schema.org/PriceSpecification">
<span itemprop="price">0.00</span>
<span itemprop="priceCurrency">USD</span>
</div>
<div itemprop="totalPaymentDue" itemscope itemtype="http://schema.org/PriceSpecification">
<span itemprop="price">0.00</span>
<span itemprop="priceCurrency">USD</span>
</div>
<link itemprop="paymentStatus" href="http://schema.org/PaymentComplete" />
<div itemprop="referencesOrder" itemscope itemtype="http://schema.org/Order">
<span itemprop="description">furnace</span>
<time itemprop="orderDate">2014-12-01</time>
<span itemprop="orderNumber">123ABC</span>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/Product">
<span itemprop="name">ACME Furnace 3000</span>
<meta itemprop="productID" content="ABC123" />
</div>
</div>
<div itemprop="referencesOrder" itemscope itemtype="http://schema.org/Order">
<span itemprop="description">furnace installation</span>
<time itemprop="orderDate">2014-12-02</time>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/Service">
<span itemprop="description">furnace installation</span>
</div>
</div>
</div>
RDFA:
<div vocab="http://schema.org/" typeof="Invoice">
<h1 property="description">New furnace and installation</h1>
<div property="broker" typeof="/LocalBusiness">
<b property="name">ACME Home Heating</b>
</div>
<div property="customer" typeof="Person">
<b property="name">Jane Doe</b>
</div>
<time property="paymentDueDate">2015-01-30</time>
<div property="minimumPaymentDue" typeof="PriceSpecification">
<span property="price">0.00</span>
<span property="priceCurrency">USD</span>
</div>
<div property="totalPaymentDue" typeof="PriceSpecification">
<span property="price">0.00</span>
<span property="priceCurrency">USD</span>
</div>
<meta itemprop="paymentStatus" content="PaymentComplete" />
<div property="referencesOrder" typeof="Order">
<span property="description">furnace</span>
<time property="orderDate">2014-12-01</time>
<span property="orderNumber">123ABC</span>
<div property="orderedItem" typeof="Product">
<span property="name">ACME Furnace 3000</span>
<meta property="productID" content="ABC123" />
</div>
</div>
<div property="referencesOrder" typeof="Order">
<span property="description">furnace installation</span>
<time property="orderDate">2014-12-02</time>
<div property="orderedItem" typeof="Service">
<span property="description">furnace installation</span>
</div>
</div>
</div>
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Invoice",
"broker": {
"@type": "LocalBusiness",
"name": "ACME Home Heating"
},
"accountId": "xxxx-xxxx-xxxx-1234",
"customer": {
"@type": "Person",
"name": "Jane Doe"
},
"paymentDueDate": "2015-01-30",
"minimumPaymentDue": {
"@type": "PriceSpecification",
"price": 0.00,
"priceCurrency": "USD"
},
"totalPaymentDue": {
"@type": "PriceSpecification",
"price": 0.00,
"priceCurrency": "USD"
},
"paymentStatus": "http://schema.org/PaymentComplete",
"referencesOrder": [
{
"@type": "Order",
"description": "furnace",
"orderDate": "2014-12-01",
"orderNumber": "123ABC",
"paymentMethod": "http://purl.org/goodrelations/v1#ByInvoice",
"orderedItem": {
"@type": "Product",
"name": "ACME Furnace 3000",
"productID": "ABC123"
}
},
{
"@type": "Order",
"description": "furnace installation",
"orderDate": "2014-12-02",
"paymentMethod": "http://purl.org/goodrelations/v1#ByInvoice",
"orderedItem": {
"@type": "Service",
"description": "furnace installation"
}
}
]
}
</script>
TYPES: Order,OrderItem,Organization,Person
PRE-MARKUP:
An example of an order for multiple items, shipped separately.
ACME Supplies
Customer: Jane Doe
Order:
Item abc123: 1 Widget: delivered 2015-03-10
Item def456: 3 Widget accessories: shipped 2015-03-12
MICRODATA:
<div itemscope itemtype="http://schema.org/Order">
<div itemprop="seller" itemscope itemtype="http://schema.org/Organization">
<b itemprop="name">ACME Supplies</b>
</div>
<div itemprop="customer" itemscope itemtype="http://schema.org/Person">
<b itemprop="name">Jane Doe</b>
</div>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/OrderItem">
Item number: <span itemprop="orderItemNumber">abc123</span>
<span itemprop="orderQuantity">1</span>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Widget</span>
</div>
<link itemprop="orderItemStatus" href="http://schema.org/OrderDelivered" />Delivered
<div itemprop="orderDelivery" itemscope itemtype="http://schema.org/ParcelDelivery">
<time="expectedArrivalFrom">2015-03-10</time>
</div>
</div>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/OrderItem">
Item number: <span itemprop="orderItemNumber">def456</span>
<span itemprop="orderQuantity">4</span>
<div itemprop="orderedItem" itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Widget accessories</span>
</div>
<link itemprop="orderItemStatus" href="http://schema.org/OrderInTransit" />Shipped
<div itemprop="orderDelivery" itemscope itemtype="http://schema.org/ParcelDelivery">
<time itemprop="expectedArrivalFrom">2015-03-15</time>
<time itemprop="expectedArrivalUntil">2015-03-18</time>
</div>
</div>
</div>
RDFA:
<div vocab="http://schema.org/" typeof="Order">
<div property="seller" typeof="Organization">
<b property="name">ACME Supplies</b>
</div>
<div property="customer" typeof="Person">
<b property="name">Jane Doe</b>
</div>
<div property="orderedItem" typeof="OrderItem">
Item number: <span property="orderItemNumber">abc123</span>
<span property="orderQuantity">1</span>
<div property="orderedItem" typeof="Product">
<span property="name">Widget</span>
</div>
<link property="orderItemStatus" href="http://schema.org/OrderDelivered" />Delivered
<div property="orderDelivery" typeof="ParcelDelivery">
<time property="expectedArrivalFrom">2015-03-10</time>
</div>
</div>
<div property="orderedItem" typeof="OrderItem">
Item number: <span property="orderItemNumber">def456</span>
<span property="orderQuantity">4</span>
<div property="orderedItem" typeof="Product">
<span property="name">Widget accessories</span>
</div>
<link property="orderItemStatus" href="http://schema.org/OrderInTransit" />Shipped
<div property="orderDelivery" typeof="ParcelDelivery">
<time property="expectedArrivalFrom">2015-03-15</time>
<time property="expectedArrivalUntil">2015-03-18</time>
</div>
</div>
</div>
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Order",
"seller": {
"@type": "Organization",
"name": "ACME Supplies"
},
"customer": {
"@type": "Person",
"name": "Jane Doe"
},
"orderedItem": [
{
"@type": "OrderItem",
"orderItemNumber": "abc123",
"orderQuantity": 1,
"orderedItem": {
"@type": "Product",
"name": "Widget"
},
"orderItemStatus": "http://schema.org/OrderDelivered",
"orderDelivery": {
"@type": "ParcelDelivery",
"expectedArrivalFrom": "2015-03-10"
}
},
{
"@type": "OrderItem",
"orderItemNumber": "def456",
"orderQuantity": 3,
"orderedItem": {
"@type": "Product",
"name": "Widget accessories"
},
"orderItemStatus": "http://schema.org/OrderInTransit",
"orderDelivery": {
"@type": "ParcelDelivery",
"expectedArrivalFrom": "2015-03-15",
"expectedArrivalUntil": "2015-03-18"
}
}
]
}
</script>