Class: OpenActive::Models::Schema::Reservation

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/reservation.rb

Instance Attribute Summary collapse

Attributes inherited from Thing

#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url

Attributes inherited from JsonLdModel

#context, #id

Method Summary

Methods inherited from BaseModel

#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json

Methods included from Concerns::TypeChecker

#check_types, included

Methods included from Concerns::JsonLdSerializable

included, #to_h, #values

Constructor Details

This class inherits a constructor from OpenActive::BaseModel

Instance Attribute Details

#booking_agentOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



81
82
83
# File 'lib/openactive/models/schema/reservation.rb', line 81

def booking_agent
  @booking_agent
end

#booking_timeDateTime?

Returns:

  • (DateTime, nil)


44
45
46
# File 'lib/openactive/models/schema/reservation.rb', line 44

def booking_time
  @booking_time
end

#brokerOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



56
57
58
# File 'lib/openactive/models/schema/reservation.rb', line 56

def broker
  @broker
end

#modified_timeDateTime?

Returns:

  • (DateTime, nil)


50
51
52
# File 'lib/openactive/models/schema/reservation.rb', line 50

def modified_time
  @modified_time
end

#price_currencyString

Returns:

  • (String)


22
23
24
# File 'lib/openactive/models/schema/reservation.rb', line 22

def price_currency
  @price_currency
end

#program_membership_usedOpenActive::Models::Schema::ProgramMembership



68
69
70
# File 'lib/openactive/models/schema/reservation.rb', line 68

def program_membership_used
  @program_membership_used
end

#providerOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



27
28
29
# File 'lib/openactive/models/schema/reservation.rb', line 27

def provider
  @provider
end

#reservation_forOpenActive::Models::Schema::Thing



12
13
14
# File 'lib/openactive/models/schema/reservation.rb', line 12

def reservation_for
  @reservation_for
end

#reservation_idString

Returns:

  • (String)


39
40
41
# File 'lib/openactive/models/schema/reservation.rb', line 39

def reservation_id
  @reservation_id
end

#reservation_statusOpenActive::Enums::Schema::ReservationStatusType?



33
34
35
# File 'lib/openactive/models/schema/reservation.rb', line 33

def reservation_status
  @reservation_status
end

#reserved_ticketOpenActive::Models::Schema::Ticket



17
18
19
# File 'lib/openactive/models/schema/reservation.rb', line 17

def reserved_ticket
  @reserved_ticket
end

#total_priceString, ...

Returns:



73
74
75
# File 'lib/openactive/models/schema/reservation.rb', line 73

def total_price
  @total_price
end

#typeString

Returns:

  • (String)


7
8
9
# File 'lib/openactive/models/schema/reservation.rb', line 7

def type
  "schema:Reservation"
end

#under_nameOpenActive::Models::Schema::Organization, OpenActive::Models::Schema::Person



62
63
64
# File 'lib/openactive/models/schema/reservation.rb', line 62

def under_name
  @under_name
end