Class: OpenActive::Models::Schema::Offer

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

Direct Known Subclasses

Offer, AggregateOffer, OfferForLease, OfferForPurchase

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, ...



180
181
182
# File 'lib/openactive/models/schema/offer.rb', line 180

def accepted_payment_method
  @accepted_payment_method
end

#add_onOpenActive::Models::Schema::Offer



119
120
121
# File 'lib/openactive/models/schema/offer.rb', line 119

def add_on
  @add_on
end

#advance_booking_requirementOpenActive::Models::Schema::QuantitativeValue



205
206
207
# File 'lib/openactive/models/schema/offer.rb', line 205

def advance_booking_requirement
  @advance_booking_requirement
end

#aggregate_ratingOpenActive::Models::Schema::AggregateRating



243
244
245
# File 'lib/openactive/models/schema/offer.rb', line 243

def aggregate_rating
  @aggregate_rating
end

#area_servedString, ...



217
218
219
# File 'lib/openactive/models/schema/offer.rb', line 217

def area_served
  @area_served
end

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



63
64
65
# File 'lib/openactive/models/schema/offer.rb', line 63

def availability
  @availability
end

#availability_endsDateTime, ...

Returns:

  • (DateTime, Time, Date, nil)


79
80
81
# File 'lib/openactive/models/schema/offer.rb', line 79

def availability_ends
  @availability_ends
end

#availability_startsDate, ...

Returns:

  • (Date, Time, DateTime, nil)


225
226
227
# File 'lib/openactive/models/schema/offer.rb', line 225

def availability_starts
  @availability_starts
end

#available_at_or_fromOpenActive::Models::Schema::Place



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

def available_at_or_from
  @available_at_or_from
end

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



41
42
43
# File 'lib/openactive/models/schema/offer.rb', line 41

def available_delivery_method
  @available_delivery_method
end

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



113
114
115
# File 'lib/openactive/models/schema/offer.rb', line 113

def business_function
  @business_function
end

#categoryString, OpenActive::Models::Schema::Thing



107
108
109
# File 'lib/openactive/models/schema/offer.rb', line 107

def category
  @category
end

#delivery_lead_timeOpenActive::Models::Schema::QuantitativeValue



69
70
71
# File 'lib/openactive/models/schema/offer.rb', line 69

def delivery_lead_time
  @delivery_lead_time
end

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



124
125
126
# File 'lib/openactive/models/schema/offer.rb', line 124

def eligible_customer_type
  @eligible_customer_type
end

#eligible_durationOpenActive::Models::Schema::QuantitativeValue



170
171
172
# File 'lib/openactive/models/schema/offer.rb', line 170

def eligible_duration
  @eligible_duration
end

#eligible_quantityOpenActive::Models::Schema::QuantitativeValue



130
131
132
# File 'lib/openactive/models/schema/offer.rb', line 130

def eligible_quantity
  @eligible_quantity
end

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



210
211
212
# File 'lib/openactive/models/schema/offer.rb', line 210

def eligible_region
  @eligible_region
end

#eligible_transaction_volumeOpenActive::Models::Schema::PriceSpecification



87
88
89
# File 'lib/openactive/models/schema/offer.rb', line 87

def eligible_transaction_volume
  @eligible_transaction_volume
end

#gtinString

Returns:

  • (String)


200
201
202
# File 'lib/openactive/models/schema/offer.rb', line 200

def gtin
  @gtin
end

#gtin12String

Returns:

  • (String)


47
48
49
# File 'lib/openactive/models/schema/offer.rb', line 47

def gtin12
  @gtin12
end

#gtin13String

Returns:

  • (String)


36
37
38
# File 'lib/openactive/models/schema/offer.rb', line 36

def gtin13
  @gtin13
end

#gtin14String

Returns:

  • (String)


26
27
28
# File 'lib/openactive/models/schema/offer.rb', line 26

def gtin14
  @gtin14
end

#gtin8String

Returns:

  • (String)


248
249
250
# File 'lib/openactive/models/schema/offer.rb', line 248

def gtin8
  @gtin8
end

#includes_objectOpenActive::Models::Schema::TypeAndQuantityNode



92
93
94
# File 'lib/openactive/models/schema/offer.rb', line 92

def includes_object
  @includes_object
end

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



19
20
21
# File 'lib/openactive/models/schema/offer.rb', line 19

def ineligible_region
  @ineligible_region
end

#inventory_levelOpenActive::Models::Schema::QuantitativeValue



74
75
76
# File 'lib/openactive/models/schema/offer.rb', line 74

def inventory_level
  @inventory_level
end

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



135
136
137
# File 'lib/openactive/models/schema/offer.rb', line 135

def item_condition
  @item_condition
end

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



148
149
150
# File 'lib/openactive/models/schema/offer.rb', line 148

def item_offered
  @item_offered
end

#mpnString

Returns:

  • (String)


154
155
156
# File 'lib/openactive/models/schema/offer.rb', line 154

def mpn
  @mpn
end

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



159
160
161
# File 'lib/openactive/models/schema/offer.rb', line 159

def offered_by
  @offered_by
end

#priceString, ...

Returns:

  • (String, BigDecimal, nil)


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

def price
  @price
end

#price_currencyString

Returns:

  • (String)


238
239
240
# File 'lib/openactive/models/schema/offer.rb', line 238

def price_currency
  @price_currency
end

#price_specificationOpenActive::Models::Schema::PriceSpecification



165
166
167
# File 'lib/openactive/models/schema/offer.rb', line 165

def price_specification
  @price_specification
end

#price_valid_untilDate?

Returns:

  • (Date, nil)


187
188
189
# File 'lib/openactive/models/schema/offer.rb', line 187

def price_valid_until
  @price_valid_until
end

#reviewOpenActive::Models::Schema::Review



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

def review
  @review
end

#reviewsOpenActive::Models::Schema::Review



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

def reviews
  @reviews
end

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



57
58
59
# File 'lib/openactive/models/schema/offer.rb', line 57

def seller
  @seller
end

#serial_numberString

Returns:

  • (String)


52
53
54
# File 'lib/openactive/models/schema/offer.rb', line 52

def serial_number
  @serial_number
end

#skuString

Returns:

  • (String)


31
32
33
# File 'lib/openactive/models/schema/offer.rb', line 31

def sku
  @sku
end

#typeString

Returns:

  • (String)


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

def type
  "schema:Offer"
end

#valid_fromDateTime, ...

Returns:

  • (DateTime, Date, nil)


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

def valid_from
  @valid_from
end

#valid_throughDate, ...

Returns:

  • (Date, DateTime, nil)


141
142
143
# File 'lib/openactive/models/schema/offer.rb', line 141

def valid_through
  @valid_through
end

#warrantyOpenActive::Models::Schema::WarrantyPromise



233
234
235
# File 'lib/openactive/models/schema/offer.rb', line 233

def warranty
  @warranty
end