113 lines
2.7 KiB
JSON
113 lines
2.7 KiB
JSON
{
|
|
"name": "VendorRateBook",
|
|
"type": "object",
|
|
"properties": {
|
|
"vendor_id": {
|
|
"type": "string",
|
|
"description": "ID of the vendor who owns this rate book"
|
|
},
|
|
"vendor_name": {
|
|
"type": "string",
|
|
"description": "Name of the vendor"
|
|
},
|
|
"rate_book_name": {
|
|
"type": "string",
|
|
"description": "Name of the rate book (e.g., 'Default Rates', 'Compass Network', 'Google Special')"
|
|
},
|
|
"rate_book_type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"default",
|
|
"enterprise_network",
|
|
"client_specific",
|
|
"premium",
|
|
"seasonal"
|
|
],
|
|
"description": "Type of rate book"
|
|
},
|
|
"enterprise_network": {
|
|
"type": "string",
|
|
"enum": [
|
|
"Compass",
|
|
"Aramark",
|
|
"Sodexo",
|
|
"Foodbuy",
|
|
"Bon App\u00e9tit",
|
|
"Eurest",
|
|
"None"
|
|
],
|
|
"description": "Enterprise network if applicable"
|
|
},
|
|
"is_approved_by_procurement": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Whether this rate book is approved by procurement"
|
|
},
|
|
"approved_by": {
|
|
"type": "string",
|
|
"description": "Name of person who approved this rate book"
|
|
},
|
|
"approved_date": {
|
|
"type": "string",
|
|
"format": "date",
|
|
"description": "Date of approval"
|
|
},
|
|
"is_locked": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Whether rates in this book are locked (cannot be edited by vendor)"
|
|
},
|
|
"is_active": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Whether this rate book is currently active"
|
|
},
|
|
"client_assignments": {
|
|
"type": "array",
|
|
"description": "Clients assigned to use this rate book",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client_id": {
|
|
"type": "string"
|
|
},
|
|
"client_name": {
|
|
"type": "string"
|
|
},
|
|
"assigned_date": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"valid_from": {
|
|
"type": "string",
|
|
"format": "date",
|
|
"description": "Start date for rate book validity"
|
|
},
|
|
"valid_until": {
|
|
"type": "string",
|
|
"format": "date",
|
|
"description": "End date for rate book validity"
|
|
},
|
|
"description": {
|
|
"type": "string",
|
|
"description": "Description of this rate book"
|
|
},
|
|
"total_roles": {
|
|
"type": "number",
|
|
"default": 0,
|
|
"description": "Total number of roles in this rate book"
|
|
},
|
|
"notes": {
|
|
"type": "string",
|
|
"description": "Additional notes"
|
|
}
|
|
},
|
|
"required": [
|
|
"vendor_name",
|
|
"rate_book_name",
|
|
"rate_book_type"
|
|
]
|
|
} |