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

- old
+ new

@@ -6,211 +6,273 @@ # @return [String] def type "schema:Product" end - # @return [String] - define_property :gtin12, as: "gtin12", types: [ - "string", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :has_measurement, as: "hasMeasurement", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::ProductReturnPolicy] - define_property :has_product_return_policy, as: "hasProductReturnPolicy", types: [ - "OpenActive::Models::Schema::ProductReturnPolicy", + # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] + define_property :item_condition, as: "itemCondition", types: [ + "OpenActive::Enums::Schema::OfferItemCondition", + "null", ] - # @return [URI,OpenActive::Models::Schema::Product,String] - define_property :material, as: "material", types: [ + # @return [OpenActive::Models::Schema::AggregateRating,URI] + define_property :aggregate_rating, as: "aggregateRating", types: [ + "OpenActive::Models::Schema::AggregateRating", "URI", - "OpenActive::Models::Schema::Product", - "string", ] - # @return [OpenActive::Models::Schema::Organization] - define_property :manufacturer, as: "manufacturer", types: [ - "OpenActive::Models::Schema::Organization", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue] - define_property :weight, as: "weight", types: [ + # @return [OpenActive::Models::Schema::DefinedTerm,OpenActive::Models::Schema::SizeSpecification,OpenActive::Models::Schema::QuantitativeValue,String,URI] + define_property :size, as: "size", types: [ + "OpenActive::Models::Schema::DefinedTerm", + "OpenActive::Models::Schema::SizeSpecification", "OpenActive::Models::Schema::QuantitativeValue", + "string", + "URI", ] - # @return [OpenActive::Models::Schema::Audience] - define_property :audience, as: "audience", types: [ - "OpenActive::Models::Schema::Audience", - ] - - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance] + # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI] define_property :depth, as: "depth", types: [ - "OpenActive::Models::Schema::QuantitativeValue", "OpenActive::Models::Schema::Distance", + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance] + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] define_property :height, as: "height", types: [ "OpenActive::Models::Schema::QuantitativeValue", "OpenActive::Models::Schema::Distance", + "URI", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product] + # @return [String] + define_property :gtin12, as: "gtin12", types: [ + "string", + ] + + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,URI] define_property :is_similar_to, as: "isSimilarTo", types: [ - "OpenActive::Models::Schema::Service", "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::Service", + "URI", ] - # @return [OpenActive::Models::Schema::AggregateRating] - define_property :aggregate_rating, as: "aggregateRating", types: [ - "OpenActive::Models::Schema::AggregateRating", + # @return [OpenActive::Models::Schema::QuantitativeValue,URI] + define_property :weight, as: "weight", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "URI", ] - # @return [OpenActive::Models::Schema::ProductModel,String] - define_property :model, as: "model", types: [ - "OpenActive::Models::Schema::ProductModel", - "string", + # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI] + define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [ + "OpenActive::Models::Schema::MerchantReturnPolicy", + "URI", ] - # @return [OpenActive::Models::Schema::Review] + # @return [OpenActive::Models::Schema::Offer,OpenActive::Models::Schema::Demand,URI] + define_property :offers, as: "offers", types: [ + "OpenActive::Models::Schema::Offer", + "OpenActive::Models::Schema::Demand", + "URI", + ] + + # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI] + define_property :width, as: "width", types: [ + "OpenActive::Models::Schema::QuantitativeValue", + "OpenActive::Models::Schema::Distance", + "URI", + ] + + # @return [OpenActive::Models::Schema::Product,URI] + define_property :is_consumable_for, as: "isConsumableFor", types: [ + "OpenActive::Models::Schema::Product", + "URI", + ] + + # @return [OpenActive::Models::Schema::Review,URI] define_property :reviews, as: "reviews", types: [ "OpenActive::Models::Schema::Review", + "URI", ] # @return [String] - define_property :color, as: "color", types: [ + define_property :award, as: "award", types: [ "string", ] # @return [String] - define_property :award, as: "award", types: [ + define_property :gtin13, as: "gtin13", types: [ "string", ] - # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product] - define_property :is_related_to, as: "isRelatedTo", types: [ - "OpenActive::Models::Schema::Service", - "OpenActive::Models::Schema::Product", + # @return [String] + define_property :gtin, as: "gtin", types: [ + "string", ] - # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue] - define_property :width, as: "width", types: [ - "OpenActive::Models::Schema::Distance", - "OpenActive::Models::Schema::QuantitativeValue", + # @return [OpenActive::Models::Schema::Review,URI] + define_property :review, as: "review", types: [ + "OpenActive::Models::Schema::Review", + "URI", ] + # @return [OpenActive::Models::Schema::EnergyConsumptionDetails,URI] + define_property :has_energy_consumption_details, as: "hasEnergyConsumptionDetails", types: [ + "OpenActive::Models::Schema::EnergyConsumptionDetails", + "URI", + ] + # @return [String] - define_property :product_id, as: "productID", types: [ + define_property :color, as: "color", types: [ "string", ] - # @return [OpenActive::Models::Schema::PropertyValue] + # @return [OpenActive::Models::Schema::PropertyValue,URI] define_property :additional_property, as: "additionalProperty", types: [ "OpenActive::Models::Schema::PropertyValue", + "URI", ] - # @return [OpenActive::Models::Schema::Review] - define_property :review, as: "review", types: [ - "OpenActive::Models::Schema::Review", - ] - # @return [OpenActive::Models::Schema::ImageObject,URI] define_property :logo, as: "logo", types: [ "OpenActive::Models::Schema::ImageObject", "URI", ] - # @return [Date,nil] - define_property :purchase_date, as: "purchaseDate", types: [ - "Date", - "null", + # @return [String] + define_property :mpn, as: "mpn", types: [ + "string", ] # @return [String] - define_property :gtin13, as: "gtin13", types: [ + define_property :in_product_group_with_id, as: "inProductGroupWithID", types: [ "string", ] - # @return [OpenActive::Enums::Schema::OfferItemCondition,nil] - define_property :item_condition, as: "itemCondition", types: [ - "OpenActive::Enums::Schema::OfferItemCondition", + # @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::ProductGroup,OpenActive::Models::Schema::ProductModel,URI] + define_property :is_variant_of, as: "isVariantOf", types: [ + "OpenActive::Models::Schema::ProductGroup", + "OpenActive::Models::Schema::ProductModel", + "URI", + ] + # @return [String] - define_property :mpn, as: "mpn", types: [ + define_property :slogan, as: "slogan", types: [ "string", ] - # @return [Date,nil] - define_property :production_date, as: "productionDate", types: [ - "Date", - "null", + # @return [String,OpenActive::Models::Schema::DefinedTerm,URI] + define_property :pattern, as: "pattern", types: [ + "string", + "OpenActive::Models::Schema::DefinedTerm", + "URI", ] - # @return [OpenActive::Models::Schema::Product] - define_property :is_consumable_for, as: "isConsumableFor", types: [ - "OpenActive::Models::Schema::Product", + # @return [String] + define_property :sku, as: "sku", types: [ + "string", ] # @return [String] - define_property :slogan, as: "slogan", types: [ + define_property :nsn, as: "nsn", types: [ "string", ] - # @return [String,OpenActive::Models::Schema::Thing] - define_property :category, as: "category", types: [ + # @return [Date,nil] + define_property :purchase_date, as: "purchaseDate", types: [ + "Date", + "null", + ] + + # @return [String] + define_property :gtin14, as: "gtin14", types: [ "string", - "OpenActive::Models::Schema::Thing", ] - # @return [OpenActive::Models::Schema::Product] + # @return [OpenActive::Models::Schema::Product,URI] define_property :is_accessory_or_spare_part_for, as: "isAccessoryOrSparePartFor", types: [ "OpenActive::Models::Schema::Product", + "URI", ] - # @return [String] - define_property :nsn, as: "nsn", types: [ - "string", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :manufacturer, as: "manufacturer", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [String] - define_property :gtin, as: "gtin", types: [ + # @return [OpenActive::Models::Schema::ProductModel,String,URI] + define_property :model, as: "model", types: [ + "OpenActive::Models::Schema::ProductModel", "string", + "URI", ] + # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization,URI] + define_property :brand, as: "brand", types: [ + "OpenActive::Models::Schema::Brand", + "OpenActive::Models::Schema::Organization", + "URI", + ] + # @return [Date,nil] define_property :release_date, as: "releaseDate", types: [ "Date", "null", ] - # @return [OpenActive::Models::Schema::Brand,OpenActive::Models::Schema::Organization] - define_property :brand, as: "brand", types: [ - "OpenActive::Models::Schema::Brand", - "OpenActive::Models::Schema::Organization", + # @return [String] + define_property :gtin8, as: "gtin8", types: [ + "string", ] - # @return [String] - define_property :gtin14, as: "gtin14", types: [ + # @return [OpenActive::Models::Schema::Product,String,URI] + define_property :material, as: "material", types: [ + "OpenActive::Models::Schema::Product", "string", + "URI", ] + # @return [Date,nil] + define_property :production_date, as: "productionDate", types: [ + "Date", + "null", + ] + # @return [String] define_property :awards, as: "awards", types: [ "string", ] - # @return [OpenActive::Models::Schema::Offer] - define_property :offers, as: "offers", types: [ - "OpenActive::Models::Schema::Offer", + # @return [OpenActive::Models::Schema::Audience,URI] + define_property :audience, as: "audience", types: [ + "OpenActive::Models::Schema::Audience", + "URI", ] - # @return [String] - define_property :gtin8, as: "gtin8", types: [ - "string", + # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,URI] + define_property :is_related_to, as: "isRelatedTo", types: [ + "OpenActive::Models::Schema::Product", + "OpenActive::Models::Schema::Service", + "URI", ] # @return [String] - define_property :sku, as: "sku", types: [ + define_property :product_id, as: "productID", types: [ "string", ] end end end