Loan
Type: object
Represents a book loan transaction. Includes cross-field validation to ensure DueDate is after BorrowDate.
Extends
Fields
| Name | Type | Description | Source |
|---|---|---|---|
BookId |
string (uuid) | Reference to the borrowed book | - |
MemberId |
string (uuid) | Reference to the borrowing member | - |
BorrowDate |
string (date) | Date when the book was borrowed | - |
DueDate |
string (date) | Date when the book is due for return | - |
ReturnDate |
string (date) | Date when the book was returned (null if not yet returned) | - |
FineAmount |
number (decimal) | Late return fine in local currency | - |
Status |
object | Current status of the loan | - |