Class: OpenActive::Models::Offer

Inherits:
Schema::Offer show all
Defined in:
lib/openactive/models/offer.rb

Overview

This type is derived from [Offer](schema.org/Offer), which means that any of this type’s properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.

Direct Known Subclasses

IndicativeOffer, OfferOverride

Instance Attribute Summary collapse

Attributes inherited from Schema::Offer

#add_on, #advance_booking_requirement, #aggregate_rating, #area_served, #availability, #availability_ends, #availability_starts, #available_at_or_from, #available_delivery_method, #business_function, #category, #delivery_lead_time, #eligible_customer_type, #eligible_duration, #eligible_quantity, #eligible_region, #eligible_transaction_volume, #gtin, #gtin12, #gtin13, #gtin14, #gtin8, #includes_object, #ineligible_region, #inventory_level, #item_condition, #item_offered, #mpn, #offered_by, #price_specification, #price_valid_until, #review, #reviews, #seller, #serial_number, #sku, #valid_from, #valid_through, #warranty

Attributes inherited from Schema::Thing

#additional_type, #alternate_name, #disambiguating_description, #image, #main_entity_of_page, #potential_action, #same_as, #subject_of

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_methodArray<OpenActive::Enums::PaymentMethod>?

Returns:



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

def accepted_payment_method
  @accepted_payment_method
end

#advance_bookingOpenActive::Enums::RequiredStatusType?



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

def advance_booking
  @advance_booking
end

#age_rangeOpenActive::Models::QuantitativeValue



43
44
45
# File 'lib/openactive/models/offer.rb', line 43

def age_range
  @age_range
end

#available_channelArray<OpenActive::Enums::AvailableChannelType>?



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

def available_channel
  @available_channel
end

#descriptionString

Returns:

  • (String)


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

def description
  @description
end

#identifierint, ...



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

def identifier
  @identifier
end

#latest_cancellation_before_start_dateActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


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

def latest_cancellation_before_start_date
  @latest_cancellation_before_start_date
end

#nameString

Returns:

  • (String)


21
22
23
# File 'lib/openactive/models/offer.rb', line 21

def name
  @name
end

#open_booking_flow_requirementArray<OpenActive::Enums::OpenBookingFlowRequirement>?



54
55
56
# File 'lib/openactive/models/offer.rb', line 54

def open_booking_flow_requirement
  @open_booking_flow_requirement
end

#prepaymentOpenActive::Enums::RequiredStatusType?



60
61
62
# File 'lib/openactive/models/offer.rb', line 60

def prepayment
  @prepayment
end

#priceBigDecimal?

Returns:

  • (BigDecimal, nil)


66
67
68
# File 'lib/openactive/models/offer.rb', line 66

def price
  @price
end

#price_currencyString

Returns:

  • (String)


72
73
74
# File 'lib/openactive/models/offer.rb', line 72

def price_currency
  @price_currency
end

#typeString

Returns:

  • (String)


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

def type
  "Offer"
end

#urlURI

Returns:

  • (URI)


77
78
79
# File 'lib/openactive/models/offer.rb', line 77

def url
  @url
end

#valid_from_before_start_dateActiveSupport::Duration?

Returns:

  • (ActiveSupport::Duration, nil)


82
83
84
# File 'lib/openactive/models/offer.rb', line 82

def valid_from_before_start_date
  @valid_from_before_start_date
end