lib/openactive/models/schema/offer.rb in openactive-0.1.2 vs lib/openactive/models/schema/offer.rb in openactive-0.2.0

- old
+ new

@@ -6,248 +6,297 @@ # @return [String] def type "schema:Offer" end - # @return [String,BigDecimal,nil] - define_property :price, as: "price", types: [ - "string", - "Number", + # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] + define_property :available_delivery_method, as: "availableDeliveryMethod", types: [ + "OpenActive::Enums::Schema::DeliveryMethod", "null", ] - # @return [OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::Place,String] - define_property :ineligible_region, as: "ineligibleRegion", types: [ - "OpenActive::Models::Schema::GeoShape", - "OpenActive::Models::Schema::Place", - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :has_measurement, as: "hasMeasurement", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [String] - define_property :gtin14, as: "gtin14", types: [ - "string", + # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] + define_property :item_condition, as: "itemCondition", types: [ + "OpenActive::Enums::Schema::OfferItemCondition", + "null", ] - # @return [String] - define_property :sku, as: "sku", types: [ - "string", + # @return [DateTime,Date,nil] + define_property :valid_from, as: "validFrom", types: [ + "DateTime", + "Date", + "null", ] - # @return [String] - define_property :gtin13, as: "gtin13", types: [ - "string", + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", + "URI", ] - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] - define_property :available_delivery_method, as: "availableDeliveryMethod", types: [ - "OpenActive::Enums::Schema::DeliveryMethod", + # @return [OpenActive::Models::Schema::Offer,URI] + define_property :add_on, as: "addOn", types: [ + "OpenActive::Models::Schema::Offer", + "URI", + ] + + # @return [BigDecimal,String,nil] + define_property :price, as: "price", types: [ + "Number", + "string", "null", ] + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :seller, as: "seller", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", + ] + # @return [String] define_property :gtin12, as: "gtin12", types: [ "string", ] - # @return [String] - define_property :serial_number, as: "serialNumber", types: [ + # @return [ActiveSupport::Duration,OpenActive::Models::Schema::QuantitativeValue,URI,nil] + define_property :lease_length, as: "leaseLength", types: [ + "DateInterval", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", + "null", + ] + + # @return [String,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::Place,URI] + define_property :eligible_region, as: "eligibleRegion", types: [ "string", + "OpenActive::Models::Schema::GeoShape", + "OpenActive::Models::Schema::Place", + "URI", ] - # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization] - define_property :seller, as: "seller", types: [ - "OpenActive::Models::Schema::Person", - "OpenActive::Models::Schema::Organization", + # @return [OpenActive::Models::Schema::WarrantyPromise,URI] + define_property :warranty, as: "warranty", types: [ + "OpenActive::Models::Schema::WarrantyPromise", + "URI", ] - # @return [OpenActive::Enums::Schema::ItemAvailability,nil] - define_property :availability, as: "availability", types: [ - "OpenActive::Enums::Schema::ItemAvailability", + # @return [DateTime,Time,Date,nil] + define_property :availability_ends, as: "availabilityEnds", types: [ + "DateTime", + "Time", + "Date", "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue] + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] define_property :delivery_lead_time, as: "deliveryLeadTime", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue] - define_property :inventory_level, as: "inventoryLevel", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_duration, as: "eligibleDuration", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [DateTime,Time,Date,nil] - define_property :availability_ends, as: "availabilityEnds", types: [ + # @return [DateTime,Date,Time,nil] + define_property :availability_starts, as: "availabilityStarts", types: [ "DateTime", - "Time", "Date", + "Time", "null", ] - # @return [OpenActive::Models::Schema::PriceSpecification] - define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ - "OpenActive::Models::Schema::PriceSpecification", + # @return [String] + define_property :serial_number, as: "serialNumber", types: [ + "string", ] - # @return [OpenActive::Models::Schema::TypeAndQuantityNode] - define_property :includes_object, as: "includesObject", types: [ - "OpenActive::Models::Schema::TypeAndQuantityNode", + # @return [String] + define_property :price_currency, as: "priceCurrency", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Review] + # @return [OpenActive::Models::Schema::LoanOrCredit,OpenActive::Enums::Schema::PaymentMethod,URI,nil] + define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ + "OpenActive::Models::Schema::LoanOrCredit", + "OpenActive::Enums::Schema::PaymentMethod", + "URI", + "null", + ] + + # @return [OpenActive::Models::Schema::Review,URI] define_property :reviews, as: "reviews", types: [ "OpenActive::Models::Schema::Review", + "URI", ] - # @return [OpenActive::Models::Schema::Review] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", + # @return [OpenActive::Models::Schema::PriceSpecification,URI] + define_property :price_specification, as: "priceSpecification", types: [ + "OpenActive::Models::Schema::PriceSpecification", + "URI", ] - # @return [String,OpenActive::Models::Schema::Thing] - define_property :category, as: "category", types: [ + # @return [OpenActive::Models::Schema::PriceSpecification,URI] + define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [ + "OpenActive::Models::Schema::PriceSpecification", + "URI", + ] + + # @return [String] + define_property :gtin13, as: "gtin13", types: [ "string", - "OpenActive::Models::Schema::Thing", ] - # @return [OpenActive::Enums::Schema::BusinessFunction,nil] - define_property :business_function, as: "businessFunction", types: [ - "OpenActive::Enums::Schema::BusinessFunction", - "null", + # @return [String] + define_property :gtin, as: "gtin", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Offer] - define_property :add_on, as: "addOn", types: [ - "OpenActive::Models::Schema::Offer", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", + "URI", ] - # @return [OpenActive::Enums::Schema::BusinessEntityType,nil] - define_property :eligible_customer_type, as: "eligibleCustomerType", types: [ - "OpenActive::Enums::Schema::BusinessEntityType", - "null", + # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,URI] + define_property :area_served, as: "areaServed", types: [ + "string", + "OpenActive::Models::Schema::Place", + "OpenActive::Models::Schema::AdministrativeArea", + "OpenActive::Models::Schema::GeoShape", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue] - define_property :eligible_quantity, as: "eligibleQuantity", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] - define_property :item_condition, as: "itemCondition", types: [ - "OpenActive::Enums::Schema::OfferItemCondition", - "null", + # @return [OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::AggregateOffer,URI] + define_property :item_offered, as: "itemOffered", types: [ + "OpenActive::Models::Schema::Trip", + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::MenuItem", + "OpenActive::Models::Schema::Service", + "OpenActive::Models::Schema::Event", + "OpenActive::Models::Schema::CreativeWork", + "OpenActive::Models::Schema::AggregateOffer", + "URI", ] - # @return [Date,DateTime,nil] - define_property :valid_through, as: "validThrough", types: [ - "Date", - "DateTime", - "null", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :inventory_level, as: "inventoryLevel", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product] - define_property :item_offered, as: "itemOffered", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::Product", + # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI] + define_property :ineligible_region, as: "ineligibleRegion", types: [ + "OpenActive::Models::Schema::GeoShape", + "string", + "OpenActive::Models::Schema::Place", + "URI", ] # @return [String] define_property :mpn, as: "mpn", types: [ "string", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person] - define_property :offered_by, as: "offeredBy", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI] + define_property :includes_object, as: "includesObject", types: [ + "OpenActive::Models::Schema::TypeAndQuantityNode", + "URI", ] - # @return [OpenActive::Models::Schema::PriceSpecification] - define_property :price_specification, as: "priceSpecification", types: [ - "OpenActive::Models::Schema::PriceSpecification", + # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,String,URI,OpenActive::Models::Schema::Thing,nil] + define_property :category, as: "category", types: [ + "OpenActive::Enums::Schema::PhysicalActivityCategory", + "string", + "URI", + "OpenActive::Models::Schema::Thing", + "null", ] - # @return [OpenActive::Models::Schema::QuantitativeValue] - define_property :eligible_duration, as: "eligibleDuration", types: [ - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Enums::Schema::ItemAvailability,nil] + define_property :availability, as: "availability", types: [ + "OpenActive::Enums::Schema::ItemAvailability", + "null", ] - # @return [OpenActive::Models::Schema::Place] - define_property :available_at_or_from, as: "availableAtOrFrom", types: [ - "OpenActive::Models::Schema::Place", + # @return [String] + define_property :sku, as: "sku", types: [ + "string", ] - # @return [OpenActive::Models::Schema::LoanOrCredit,OpenActive::Enums::Schema::PaymentMethod,nil] - define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [ - "OpenActive::Models::Schema::LoanOrCredit", - "OpenActive::Enums::Schema::PaymentMethod", + # @return [OpenActive::Enums::Schema::BusinessEntityType,nil] + define_property :eligible_customer_type, as: "eligibleCustomerType", types: [ + "OpenActive::Enums::Schema::BusinessEntityType", "null", ] # @return [Date,nil] define_property :price_valid_until, as: "priceValidUntil", types: [ "Date", "null", ] - # @return [DateTime,Date,nil] - define_property :valid_from, as: "validFrom", types: [ - "DateTime", - "Date", - "null", + # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization,URI] + define_property :offered_by, as: "offeredBy", types: [ + "OpenActive::Models::Schema::Person", + "OpenActive::Models::Schema::Organization", + "URI", ] # @return [String] - define_property :gtin, as: "gtin", types: [ + define_property :gtin14, as: "gtin14", types: [ "string", ] - # @return [OpenActive::Models::Schema::QuantitativeValue] - define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [ + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :eligible_quantity, as: "eligibleQuantity", types: [ "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape] - define_property :eligible_region, as: "eligibleRegion", types: [ + # @return [OpenActive::Models::Schema::Place,URI] + define_property :available_at_or_from, as: "availableAtOrFrom", types: [ "OpenActive::Models::Schema::Place", - "string", - "OpenActive::Models::Schema::GeoShape", + "URI", ] - # @return [String,OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::Place] - define_property :area_served, as: "areaServed", types: [ - "string", - "OpenActive::Models::Schema::AdministrativeArea", - "OpenActive::Models::Schema::GeoShape", - "OpenActive::Models::Schema::Place", + # @return [OpenActive::Models::Schema::OfferShippingDetails,URI] + define_property :shipping_details, as: "shippingDetails", types: [ + "OpenActive::Models::Schema::OfferShippingDetails", + "URI", ] - # @return [Date,Time,DateTime,nil] - define_property :availability_starts, as: "availabilityStarts", types: [ - "Date", - "Time", - "DateTime", - "null", - ] - - # @return [OpenActive::Models::Schema::WarrantyPromise] - define_property :warranty, as: "warranty", types: [ - "OpenActive::Models::Schema::WarrantyPromise", - ] - # @return [String] - define_property :price_currency, as: "priceCurrency", types: [ + define_property :gtin8, as: "gtin8", types: [ "string", ] - # @return [OpenActive::Models::Schema::AggregateRating] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [OpenActive::Enums::Schema::BusinessFunction,nil] + define_property :business_function, as: "businessFunction", types: [ + "OpenActive::Enums::Schema::BusinessFunction", + "null", ] - # @return [String] - define_property :gtin8, as: "gtin8", types: [ - "string", + # @return [DateTime,Date,nil] + define_property :valid_through, as: "validThrough", types: [ + "DateTime", + "Date", + "null", ] end end end end