{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "PayPal QR Category",
"description": "Static QR Category. Validate payPal category",
"examples": [],
"additionalProperties": false,
"required": [
"type",
"data"
],
"properties": {
"type": {
"type": "string",
"enum": [
"payPal"
]
},
"data": {
"type": "object",
"additionalProperties": false,
"required": [
"email",
"amount",
"currency",
"itemName"
],
"properties": {
"email": {
"type": "string",
"format": "email",
"minLength": 5,
"pattern": "^\\S+@\\S+\\.\\S+$"
},
"itemName": {
"type": "string"
},
"itemNumber": {
"type": "string"
},
"amount": {
"type": [
"number",
"string"
],
"maximum": 10000000000000,
"maxLength": 14
},
"currency": {
"type": "string",
"enum": [
"USD",
"AUD",
"CAD",
"CHF",
"EUR",
"GBP",
"HKD",
"JPY",
"NZD",
"SGD",
"TWD"
]
}
}
}
}
}