Class: OpenActive::Models::Schema::Demand

Inherits:
Intangible show all
Defined in:
lib/openactive/models/schema/demand.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

#accepted_payment_methodOpenActive::Models::Schema::LoanOrCredit, ...



139
140
141
# File 'lib/openactive/models/schema/demand.rb', line 139

def accepted_payment_method
  @accepted_payment_method
end

#advance_booking_requirementOpenActive::Models::Schema::QuantitativeValue



163
164
165
# File 'lib/openactive/models/schema/demand.rb', line 163

def advance_booking_requirement
  @advance_booking_requirement
end

#area_servedString, ...



175
176
177
# File 'lib/openactive/models/schema/demand.rb', line 175

def area_served
  @area_served
end

#availabilityOpenActive::Enums::Schema::ItemAvailability?



64
65
66
# File 'lib/openactive/models/schema/demand.rb', line 64

def availability
  @availability
end

#availability_endsDateTime, ...

Returns:

  • (DateTime, Time, Date, nil)


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

def availability_ends
  @availability_ends
end

#availability_startsDate, ...

Returns:

  • (Date, Time, DateTime, nil)


121
122
123
# File 'lib/openactive/models/schema/demand.rb', line 121

def availability_starts
  @availability_starts
end

#available_at_or_fromOpenActive::Models::Schema::Place



86
87
88
# File 'lib/openactive/models/schema/demand.rb', line 86

def available_at_or_from
  @available_at_or_from
end

#available_delivery_methodOpenActive::Enums::Schema::DeliveryMethod?



40
41
42
# File 'lib/openactive/models/schema/demand.rb', line 40

def available_delivery_method
  @available_delivery_method
end

#business_functionOpenActive::Enums::Schema::BusinessFunction?



80
81
82
# File 'lib/openactive/models/schema/demand.rb', line 80

def business_function
  @business_function
end

#delivery_lead_timeOpenActive::Models::Schema::QuantitativeValue



46
47
48
# File 'lib/openactive/models/schema/demand.rb', line 46

def delivery_lead_time
  @delivery_lead_time
end

#eligible_customer_typeOpenActive::Enums::Schema::BusinessEntityType?



91
92
93
# File 'lib/openactive/models/schema/demand.rb', line 91

def eligible_customer_type
  @eligible_customer_type
end

#eligible_durationOpenActive::Models::Schema::QuantitativeValue



129
130
131
# File 'lib/openactive/models/schema/demand.rb', line 129

def eligible_duration
  @eligible_duration
end

#eligible_quantityOpenActive::Models::Schema::QuantitativeValue



97
98
99
# File 'lib/openactive/models/schema/demand.rb', line 97

def eligible_quantity
  @eligible_quantity
end

#eligible_regionOpenActive::Models::Schema::Place, ...



168
169
170
# File 'lib/openactive/models/schema/demand.rb', line 168

def eligible_region
  @eligible_region
end

#eligible_transaction_volumeOpenActive::Models::Schema::PriceSpecification



146
147
148
# File 'lib/openactive/models/schema/demand.rb', line 146

def eligible_transaction_volume
  @eligible_transaction_volume
end

#gtinString

Returns:

  • (String)


158
159
160
# File 'lib/openactive/models/schema/demand.rb', line 158

def gtin
  @gtin
end

#gtin12String

Returns:

  • (String)


24
25
26
# File 'lib/openactive/models/schema/demand.rb', line 24

def gtin12
  @gtin12
end

#gtin13String

Returns:

  • (String)


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

def gtin13
  @gtin13
end

#gtin14String

Returns:

  • (String)


183
184
185
# File 'lib/openactive/models/schema/demand.rb', line 183

def gtin14
  @gtin14
end

#gtin8String

Returns:

  • (String)


134
135
136
# File 'lib/openactive/models/schema/demand.rb', line 134

def gtin8
  @gtin8
end

#includes_objectOpenActive::Models::Schema::TypeAndQuantityNode



70
71
72
# File 'lib/openactive/models/schema/demand.rb', line 70

def includes_object
  @includes_object
end

#ineligible_regionOpenActive::Models::Schema::GeoShape, ...



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

def ineligible_region
  @ineligible_region
end

#inventory_levelOpenActive::Models::Schema::QuantitativeValue



75
76
77
# File 'lib/openactive/models/schema/demand.rb', line 75

def inventory_level
  @inventory_level
end

#item_conditionOpenActive::Enums::Schema::OfferItemCondition?



102
103
104
# File 'lib/openactive/models/schema/demand.rb', line 102

def item_condition
  @item_condition
end

#item_offeredOpenActive::Models::Schema::Service, OpenActive::Models::Schema::Product



115
116
117
# File 'lib/openactive/models/schema/demand.rb', line 115

def item_offered
  @item_offered
end

#mpnString

Returns:

  • (String)


198
199
200
# File 'lib/openactive/models/schema/demand.rb', line 198

def mpn
  @mpn
end

#price_specificationOpenActive::Models::Schema::PriceSpecification



193
194
195
# File 'lib/openactive/models/schema/demand.rb', line 193

def price_specification
  @price_specification
end

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



34
35
36
# File 'lib/openactive/models/schema/demand.rb', line 34

def seller
  @seller
end

#serial_numberString

Returns:

  • (String)


51
52
53
# File 'lib/openactive/models/schema/demand.rb', line 51

def serial_number
  @serial_number
end

#skuString

Returns:

  • (String)


29
30
31
# File 'lib/openactive/models/schema/demand.rb', line 29

def sku
  @sku
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Demand"
end

#valid_fromDateTime, ...

Returns:

  • (DateTime, Date, nil)


151
152
153
# File 'lib/openactive/models/schema/demand.rb', line 151

def valid_from
  @valid_from
end

#valid_throughDate, ...

Returns:

  • (Date, DateTime, nil)


108
109
110
# File 'lib/openactive/models/schema/demand.rb', line 108

def valid_through
  @valid_through
end

#warrantyOpenActive::Models::Schema::WarrantyPromise



188
189
190
# File 'lib/openactive/models/schema/demand.rb', line 188

def warranty
  @warranty
end