{"id":"receipt.json#","description":"Receipt Schema for Digital Receipt Non-Fungible Tokens","type":"object","required":["name","description","image","receipt"],"properties":{"name":{"title":"Name","description":"Identifies the token as a digital receipt","type":"string"},"description":{"title":"Description","description":"Brief description of a digital receipt","type":"string"},"receipt":{"title":"Receipt","description":"Details of the receipt","type":"object","required":["id","date","vendor","items"],"properties":{"id":{"title":"ID","description":"Unique ID for the receipt generated by the vendor","type":"string"},"date":{"title":"Date","description":"Date Receipt Issued","type":"string","format":"date"},"vendor":{"title":"Vendor","description":"Details of the entity issuing the receipt","type":"object","required":["name","website"],"properties":{"name":{"title":"Name","description":"Name of the vendor. E.g. Acme Corp","type":"string"},"logo":{"title":"Logo","description":"URL of the issuer's logo","type":"string","format":"uri"},"address":{"title":"Address","description":"List of strings comprising the address of the issuer","type":"array","items":{"type":"string"},"minItems":2,"maxItems":6},"website":{"title":"Website","description":"URL of the issuer's website","type":"string","format":"uri"},"contact":{"title":"Contact Details","description":"Details of the person to contact","type":"object","required":[],"properties":{"name":{"title":"Name","description":"Name of the contact person","type":"string"},"position":{"title":"Position","description":"Position / Role of the contact person","type":"string"},"tel":{"title":"Telephone Number","description":"Telephone number of the contact person","type":"string"},"email":{"title":"Email","description":"Email of the contact person","type":"string","format":"email"},"address":{"title":"Address","description":"List of strings comprising the address of the contact person","type":"array","items":{"type":"string"},"minItems":2,"maxItems":6}}}}},"items":{"title":"Items","description":"Items included into the receipt","type":"array","minItems":1,"uniqueItems":true,"items":{"$ref":"item.json#"}},"comments":{"title":"Comments","description":"Any messages/comments the issuer wishes to convey to the customer","type":"string"}}},"image":{"title":"Image","description":"Viewable/Printable Image of the Digital Receipt","type":"string"},"signature":{"title":"Signature","description":"Digital signature by the vendor of receipts data","type":"string"},"extra":{"title":"Extra","description":"Extra information about the business/receipt as needed","type":"string"}}}
行项目模式
{"type":"object","id":"item.json#","required":["id","title","date","amount","tax","quantity"],"properties":{"id":{"title":"ID","description":"Unique identifier of the goods or service","type":"string"},"title":{"title":"Title","description":"Title of the goods or service","type":"string"},"description":{"title":"Description","description":"Description of the goods or service","type":"string"},"link":{"title":"Link","description":"URL link to the web page for the product or sevice","type":"string","format":"uri"},"contract":{"title":"Contract","description":"URL link or hash to an external contract for this product or service","type":"string"},"serial_number":{"title":"Serial Number","description":"Serial number of the item","type":"string"},"date":{"title":"Supply Date","description":"The date the goods or service were provided","type":"string","format":"date"},"amount":{"title":"Unit Price","description":"Unit Price per item (excluding tax)","type":"number"},"tax":{"title":"Tax","description":"Amount of tax charged for unit","type":"array","items":{"type":"object","required":["name","rate","amount"],"properties":{"name":{"title":"Name of Tax","description":"GST/PST etc","type":"string"},"rate":{"title":"Tax Rate","description":"Tax rate as a percentage","type":"number"},"amount":{"title":"Tax Amount","description":"Total amount of tax charged","type":"number"}}}},"quantity":{"title":"Quantity","description":"Number of units","type":"integer"}}}