| 1 | use utf8; | ||
| 2 | |||
| 3 | package SemanticWeb::Schema::LodgingReservation; | ||
| 4 | |||
| 5 | # ABSTRACT: A reservation for lodging at a hotel | ||
| 6 | |||
| 7 | use v5.14; | ||
| 8 | use Moo; | ||
| 9 | |||
| 10 | extends qw/ SemanticWeb::Schema::Reservation /; | ||
| 11 | |||
| 12 | |||
| 13 | use MooX::JSON_LD 'LodgingReservation'; | ||
| 14 | use Ref::Util qw/ is_plain_hashref /; | ||
| 15 | # RECOMMEND PREREQ: Ref::Util::XS | ||
| 16 | |||
| 17 | use namespace::autoclean; | ||
| 18 | |||
| 19 | our $VERSION = 'v23.0.0'; | ||
| 20 | |||
| 21 | |||
| 22 | has checkin_time => ( | ||
| 23 | is => 'rw', | ||
| 24 | predicate => '_has_checkin_time', | ||
| 25 | json_ld => 'checkinTime', | ||
| 26 | ); | ||
| 27 | |||
| 28 | |||
| 29 | |||
| 30 | has checkout_time => ( | ||
| 31 | is => 'rw', | ||
| 32 | predicate => '_has_checkout_time', | ||
| 33 | json_ld => 'checkoutTime', | ||
| 34 | ); | ||
| 35 | |||
| 36 | |||
| 37 | |||
| 38 | has lodging_unit_description => ( | ||
| 39 | is => 'rw', | ||
| 40 | predicate => '_has_lodging_unit_description', | ||
| 41 | json_ld => 'lodgingUnitDescription', | ||
| 42 | ); | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | has lodging_unit_type => ( | ||
| 47 | is => 'rw', | ||
| 48 | predicate => '_has_lodging_unit_type', | ||
| 49 | json_ld => 'lodgingUnitType', | ||
| 50 | ); | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | has num_adults => ( | ||
| 55 | is => 'rw', | ||
| 56 | predicate => '_has_num_adults', | ||
| 57 | json_ld => 'numAdults', | ||
| 58 | ); | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | has num_children => ( | ||
| 63 | is => 'rw', | ||
| 64 | predicate => '_has_num_children', | ||
| 65 | json_ld => 'numChildren', | ||
| 66 | ); | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | |||
| 71 | |||
| 72 | 1; | ||
| 73 | |||
| 74 | __END__ |