lib/openactive/models/offer.rb in openactive-0.1.2 vs lib/openactive/models/offer.rb in openactive-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
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 Offer < ::OpenActive::Models::Schema::Offer
# @!attribute type
# @return [String]
def type
"Offer"
@@ -31,21 +31,26 @@
define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [
"OpenActive::Enums::PaymentMethod[]",
"null",
]
- # @return [OpenActive::Enums::RequiredStatusType,nil]
- define_property :advance_booking, as: "advanceBooking", types: [
- "OpenActive::Enums::RequiredStatusType",
- "null",
+ # @return [OpenActive::Models::QuantitativeValue]
+ define_property :age_range, as: "ageRange", types: [
+ "OpenActive::Models::QuantitativeValue",
]
# @return [OpenActive::Models::QuantitativeValue]
- define_property :age_range, as: "ageRange", types: [
+ 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",
]
@@ -55,15 +60,21 @@
"OpenActive::Enums::OpenBookingFlowRequirement[]",
"null",
]
# @return [OpenActive::Enums::RequiredStatusType,nil]
- define_property :prepayment, as: "prepayment", types: [
+ 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 [BigDecimal,nil]
define_property :price, as: "price", types: [
"Number",
"null",
]
@@ -82,13 +93,12 @@
define_property :valid_from_before_start_date, as: "validFromBeforeStartDate", types: [
"DateInterval",
"null",
]
- # @return [Array<OpenActive::Enums::AvailableChannelType>,nil]
- define_property :available_channel, as: "beta:availableChannel", types: [
- "OpenActive::Enums::AvailableChannelType[]",
- "null",
+ # @return [OpenActive::Models::QuantitativeValue]
+ define_property :party_size, as: "beta:partySize", types: [
+ "OpenActive::Models::QuantitativeValue",
]
end
end
end