60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"name": "OrderVendorInvite",
|
|
"type": "object",
|
|
"properties": {
|
|
"order_id": {
|
|
"type": "string",
|
|
"description": "Order ID"
|
|
},
|
|
"order_number": {
|
|
"type": "string",
|
|
"description": "Order number"
|
|
},
|
|
"vendor_id": {
|
|
"type": "string",
|
|
"description": "Vendor ID"
|
|
},
|
|
"vendor_name": {
|
|
"type": "string",
|
|
"description": "Vendor name"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": [
|
|
"pending",
|
|
"accepted",
|
|
"declined",
|
|
"expired"
|
|
],
|
|
"default": "pending",
|
|
"description": "Invite status"
|
|
},
|
|
"invited_at": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "When vendor was invited"
|
|
},
|
|
"invited_by": {
|
|
"type": "string",
|
|
"description": "Who sent the invite"
|
|
},
|
|
"responded_at": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "When vendor responded"
|
|
},
|
|
"response_note": {
|
|
"type": "string",
|
|
"description": "Vendor's response note"
|
|
},
|
|
"expires_at": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "When invite expires"
|
|
}
|
|
},
|
|
"required": [
|
|
"order_id",
|
|
"vendor_id"
|
|
]
|
|
} |