37 lines
1.0 KiB
JSON
37 lines
1.0 KiB
JSON
{
|
|
"$id": "RejectInvoice",
|
|
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
"title": "RejectInvoice",
|
|
"description": "See http://10.0.10.242/w/tricore_architecture/server_interface/invoice_commands/reject_invoice/",
|
|
"type": "object",
|
|
"required": [
|
|
"DeviceToken",
|
|
"SessionToken",
|
|
"InvoiceID"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"DeviceToken": {
|
|
"$ref": "defs/#/definitions/DeviceToken"
|
|
},
|
|
"SessionToken": {
|
|
"$ref": "defs/#/definitions/SessionToken"
|
|
},
|
|
"InvoiceID": {
|
|
"$ref": "defs/#/definitions/uuid"
|
|
},
|
|
"Comment": {
|
|
"allOf": [
|
|
{
|
|
"minLength": 1,
|
|
"maxLength": 300,
|
|
"ensureTrim": true,
|
|
"example": "Wrong price"
|
|
},
|
|
{
|
|
"$ref": "defs/#/definitions/generalTextSpace"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |