{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://ayanova.com/schemas/purchase.json#",
    "title": "Purchase",
    "type": "object",
    "properties": {
        "customer_id": {
            "type": "string"
        },
        "site_id": {
            "type": "string"
        },
        "name": {
            "type": "string"
        },
        "vendorName": {
            "type": "string"
        },
        "email": {
            "type": "string"
        },
        "productCode": {
            "type": "string"
        },
        "salesOrderNumber": {
            "type": "string"
        },
        "purchaseDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },
        "expireDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },
        "cancelDate": {
            "anyOf": [
                {
                    "type": "string",
                    "format": "date"
                },
                {
                    "type": "string"
                }
            ]
        },
        "couponCode": {
            "type": "string"
        },
        "notes": {
            "type": "string"
        }
    },
    "required": [
        "customer_id",
        "site_id",
        "name",
        "purchaseDate"
    ],
    "additionalProperties": false
}