lib/openactive/models/offer_override.rb in openactive-0.1.2 vs lib/openactive/models/offer_override.rb in openactive-0.2.0
- old
+ new
@@ -1,12 +1,52 @@
module OpenActive
module Models
- # This type is derived from [Offer](https://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.
+ # This type is derived from https://schema.org/Offer, which means that any of this type's properties within schema.org may also be used.
class OfferOverride < ::OpenActive::Models::Offer
# @!attribute type
# @return [String]
def type
"OfferOverride"
end
+
+ # @return [OpenActive::Models::QuantitativeValue]
+ define_property :age_range, as: "ageRange", types: [
+ "OpenActive::Models::QuantitativeValue",
+ ]
+
+ # @return [OpenActive::Models::QuantitativeValue]
+ define_property :age_restriction, as: "ageRestriction", types: [
+ "OpenActive::Models::QuantitativeValue",
+ ]
+
+ # @return [Boolean,nil]
+ define_property :allow_customer_cancellation_full_refund, as: "allowCustomerCancellationFullRefund", types: [
+ "bool",
+ "null",
+ ]
+
+ # @return [ActiveSupport::Duration,nil]
+ define_property :latest_cancellation_before_start_date, as: "latestCancellationBeforeStartDate", types: [
+ "DateInterval",
+ "null",
+ ]
+
+ # @return [OpenActive::Enums::RequiredStatusType,nil]
+ define_property :open_booking_in_advance, as: "openBookingInAdvance", types: [
+ "OpenActive::Enums::RequiredStatusType",
+ "null",
+ ]
+
+ # @return [OpenActive::Enums::RequiredStatusType,nil]
+ define_property :open_booking_prepayment, as: "openBookingPrepayment", types: [
+ "OpenActive::Enums::RequiredStatusType",
+ "null",
+ ]
+
+ # @return [ActiveSupport::Duration,nil]
+ define_property :valid_from_before_start_date, as: "validFromBeforeStartDate", types: [
+ "DateInterval",
+ "null",
+ ]
end
end
end