attributes property

Object? attributes
getter/setter pair

The requested change, as a JSON object; anything omitted keeps its booked value. Fields: checkInDate and checkOutDate (yyyy-MM-dd); holder (title, firstName, lastName, email, phone); roomGuests, one entry per booked room with a 1-based roomIndex and its guests (title, firstName, lastName, middleName, isAdult defaulting to true, and age for a child). Occupancy follows the guest list. Order reads return the holder's email and phone masked: send one back as returned, or empty, to keep the booked one; any other masked value is refused with 400 / 10001. Their guests carry no isAdult: send false for a guest aged 0–17.

Implementation

Object? attributes;