lib/openactive/models/schema/product.rb in openactive-0.3.0 vs lib/openactive/models/schema/product.rb in openactive-0.4.0
- old
+ new
@@ -6,315 +6,345 @@
# @return [String]
def type
"schema:Product"
end
- # @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 :mobile_url, as: "mobileUrl", types: [
+ "string",
]
+ # @return [Date,nil]
+ define_property :purchase_date, as: "purchaseDate", types: [
+ "Date",
+ "null",
+ ]
+
# @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil]
define_property :has_adult_consideration, as: "hasAdultConsideration", types: [
"OpenActive::Enums::Schema::AdultOrientedEnumeration",
"null",
]
+ # @return [OpenActive::Models::Schema::Demand,OpenActive::Models::Schema::Offer,URI]
+ define_property :offers, as: "offers", types: [
+ "OpenActive::Models::Schema::Demand",
+ "OpenActive::Models::Schema::Offer",
+ "URI",
+ ]
+
+ # @return [OpenActive::Enums::Schema::OfferItemCondition,nil]
+ define_property :item_condition, as: "itemCondition", types: [
+ "OpenActive::Enums::Schema::OfferItemCondition",
+ "null",
+ ]
+
# @return [String]
- define_property :gtin12, as: "gtin12", types: [
+ define_property :color, as: "color", types: [
"string",
]
# @return [String]
- define_property :nsn, as: "nsn", types: [
+ define_property :gtin12, as: "gtin12", types: [
"string",
]
- # @return [String,URI,OpenActive::Models::Schema::Product]
- define_property :material, as: "material", types: [
+ # @return [String]
+ define_property :awards, as: "awards", types: [
"string",
- "URI",
- "OpenActive::Models::Schema::Product",
]
- # @return [OpenActive::Models::Schema::Review,URI]
- define_property :review, as: "review", types: [
- "OpenActive::Models::Schema::Review",
- "URI",
- ]
-
# @return [String]
- define_property :award, as: "award", types: [
+ define_property :country_of_assembly, as: "countryOfAssembly", types: [
"string",
]
- # @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::Country,URI]
define_property :country_of_origin, as: "countryOfOrigin", types: [
"OpenActive::Models::Schema::Country",
"URI",
]
- # @return [OpenActive::Models::Schema::DefinedTerm,String,URI]
- define_property :pattern, as: "pattern", types: [
- "OpenActive::Models::Schema::DefinedTerm",
+ # @return [String,OpenActive::Models::Schema::DefinedTerm,URI]
+ define_property :keywords, as: "keywords", types: [
"string",
+ "OpenActive::Models::Schema::DefinedTerm",
"URI",
]
- # @return [URI,String,OpenActive::Enums::Schema::PhysicalActivityCategory,OpenActive::Models::Schema::Thing,OpenActive::Models::Schema::CategoryCode,nil]
- define_property :category, as: "category", types: [
- "URI",
+ # @return [String,OpenActive::Models::Schema::Product,URI]
+ define_property :material, as: "material", types: [
"string",
- "OpenActive::Enums::Schema::PhysicalActivityCategory",
- "OpenActive::Models::Schema::Thing",
- "OpenActive::Models::Schema::CategoryCode",
- "null",
- ]
-
- # @return [OpenActive::Models::Schema::Grant,URI]
- define_property :funding, as: "funding", types: [
- "OpenActive::Models::Schema::Grant",
+ "OpenActive::Models::Schema::Product",
"URI",
]
# @return [String]
- define_property :mpn, as: "mpn", types: [
+ define_property :product_id, as: "productID", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :height, as: "height", types: [
- "OpenActive::Models::Schema::Distance",
- "OpenActive::Models::Schema::QuantitativeValue",
+ # @return [OpenActive::Models::Schema::AggregateRating,URI]
+ define_property :aggregate_rating, as: "aggregateRating", types: [
+ "OpenActive::Models::Schema::AggregateRating",
"URI",
]
- # @return [OpenActive::Models::Schema::DefinedTerm,String,URI]
- define_property :keywords, as: "keywords", types: [
- "OpenActive::Models::Schema::DefinedTerm",
+ # @return [OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,OpenActive::Models::Schema::ItemList,URI]
+ define_property :positive_notes, as: "positiveNotes", types: [
+ "OpenActive::Models::Schema::WebContent",
"string",
+ "OpenActive::Models::Schema::ListItem",
+ "OpenActive::Models::Schema::ItemList",
"URI",
]
+ # @return [OpenActive::Enums::Schema::PhysicalActivityCategory,URI,OpenActive::Models::Schema::Thing,String,OpenActive::Models::Schema::CategoryCode,nil]
+ define_property :category, as: "category", types: [
+ "OpenActive::Enums::Schema::PhysicalActivityCategory",
+ "URI",
+ "OpenActive::Models::Schema::Thing",
+ "string",
+ "OpenActive::Models::Schema::CategoryCode",
+ "null",
+ ]
+
# @return [Date,nil]
- define_property :purchase_date, as: "purchaseDate", types: [
+ define_property :release_date, as: "releaseDate", types: [
"Date",
"null",
]
- # @return [OpenActive::Models::Schema::EnergyConsumptionDetails,URI]
- define_property :has_energy_consumption_details, as: "hasEnergyConsumptionDetails", types: [
- "OpenActive::Models::Schema::EnergyConsumptionDetails",
- "URI",
+ # @return [String]
+ define_property :sku, as: "sku", types: [
+ "string",
]
- # @return [OpenActive::Models::Schema::Audience,URI]
- define_property :audience, as: "audience", types: [
- "OpenActive::Models::Schema::Audience",
- "URI",
- ]
-
- # @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 [Date,nil]
define_property :production_date, as: "productionDate", types: [
"Date",
"null",
]
- # @return [OpenActive::Enums::Schema::OfferItemCondition,nil]
- define_property :item_condition, as: "itemCondition", types: [
- "OpenActive::Enums::Schema::OfferItemCondition",
- "null",
- ]
-
# @return [String]
- define_property :awards, as: "awards", types: [
+ define_property :gtin8, as: "gtin8", types: [
"string",
]
- # @return [String]
- define_property :gtin, as: "gtin", types: [
- "string",
+ # @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 :product_id, as: "productID", types: [
- "string",
+ # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::Distance,URI]
+ define_property :depth, as: "depth", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "OpenActive::Models::Schema::Distance",
+ "URI",
]
# @return [String]
- define_property :country_of_assembly, as: "countryOfAssembly", types: [
+ define_property :award, as: "award", types: [
"string",
]
- # @return [String]
- define_property :color, as: "color", types: [
- "string",
+ # @return [OpenActive::Models::Schema::PropertyValue,URI]
+ define_property :additional_property, as: "additionalProperty", types: [
+ "OpenActive::Models::Schema::PropertyValue",
+ "URI",
]
- # @return [OpenActive::Models::Schema::AggregateRating,URI]
- define_property :aggregate_rating, as: "aggregateRating", types: [
- "OpenActive::Models::Schema::AggregateRating",
+ # @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::QuantitativeValue,URI]
+ define_property :weight, as: "weight", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "URI",
+ ]
+
+ # @return [String]
+ define_property :gtin13, as: "gtin13", types: [
+ "string",
+ ]
+
# @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI]
define_property :is_similar_to, as: "isSimilarTo", types: [
"OpenActive::Models::Schema::Service",
"OpenActive::Models::Schema::Product",
"URI",
]
- # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :depth, as: "depth", types: [
- "OpenActive::Models::Schema::Distance",
- "OpenActive::Models::Schema::QuantitativeValue",
+ # @return [String,URI]
+ define_property :asin, as: "asin", types: [
+ "string",
"URI",
]
- # @return [String]
- define_property :country_of_last_processing, as: "countryOfLastProcessing", types: [
- "string",
+ # @return [Boolean,nil]
+ define_property :is_family_friendly, as: "isFamilyFriendly", types: [
+ "bool",
+ "null",
]
- # @return [OpenActive::Models::Schema::ProductModel,OpenActive::Models::Schema::ProductGroup,URI]
- define_property :is_variant_of, as: "isVariantOf", types: [
- "OpenActive::Models::Schema::ProductModel",
- "OpenActive::Models::Schema::ProductGroup",
+ # @return [OpenActive::Models::Schema::Product,URI]
+ define_property :is_consumable_for, as: "isConsumableFor", types: [
+ "OpenActive::Models::Schema::Product",
"URI",
]
+ # @return [OpenActive::Models::Schema::ImageObject,URI]
+ define_property :logo, as: "logo", types: [
+ "OpenActive::Models::Schema::ImageObject",
+ "URI",
+ ]
+
# @return [String]
- define_property :slogan, as: "slogan", types: [
+ define_property :in_product_group_with_id, as: "inProductGroupWithID", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Brand,URI]
- define_property :brand, as: "brand", types: [
- "OpenActive::Models::Schema::Organization",
- "OpenActive::Models::Schema::Brand",
- "URI",
- ]
-
# @return [OpenActive::Models::Schema::Organization,URI]
define_property :manufacturer, as: "manufacturer", types: [
"OpenActive::Models::Schema::Organization",
"URI",
]
- # @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::Models::Schema::Product,URI]
- define_property :is_consumable_for, as: "isConsumableFor", types: [
+ define_property :is_accessory_or_spare_part_for, as: "isAccessoryOrSparePartFor", types: [
"OpenActive::Models::Schema::Product",
"URI",
]
- # @return [URI,OpenActive::Models::Schema::ImageObject]
- define_property :logo, as: "logo", types: [
+ # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI]
+ define_property :is_related_to, as: "isRelatedTo", types: [
+ "OpenActive::Models::Schema::Service",
+ "OpenActive::Models::Schema::Product",
"URI",
- "OpenActive::Models::Schema::ImageObject",
]
- # @return [String]
- define_property :gtin8, as: "gtin8", types: [
- "string",
+ # @return [OpenActive::Models::Schema::Grant,URI]
+ define_property :funding, as: "funding", types: [
+ "OpenActive::Models::Schema::Grant",
+ "URI",
]
# @return [String]
- define_property :sku, as: "sku", types: [
+ define_property :slogan, as: "slogan", types: [
"string",
]
- # @return [String]
- define_property :in_product_group_with_id, as: "inProductGroupWithID", types: [
- "string",
+ # @return [OpenActive::Models::Schema::Audience,URI]
+ define_property :audience, as: "audience", types: [
+ "OpenActive::Models::Schema::Audience",
+ "URI",
]
- # @return [OpenActive::Models::Schema::ProductModel,String,URI]
+ # @return [String,OpenActive::Models::Schema::ProductModel,URI]
define_property :model, as: "model", types: [
- "OpenActive::Models::Schema::ProductModel",
"string",
+ "OpenActive::Models::Schema::ProductModel",
"URI",
]
- # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI]
- define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [
- "OpenActive::Models::Schema::MerchantReturnPolicy",
+ # @return [OpenActive::Models::Schema::Distance,OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :width, as: "width", types: [
+ "OpenActive::Models::Schema::Distance",
+ "OpenActive::Models::Schema::QuantitativeValue",
"URI",
]
- # @return [Date,nil]
- define_property :release_date, as: "releaseDate", types: [
- "Date",
- "null",
+ # @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::Models::Schema::Review,URI]
+ define_property :reviews, as: "reviews", types: [
+ "OpenActive::Models::Schema::Review",
+ "URI",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :weight, as: "weight", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
+ # @return [String,OpenActive::Models::Schema::DefinedTerm,URI]
+ define_property :pattern, as: "pattern", types: [
+ "string",
+ "OpenActive::Models::Schema::DefinedTerm",
"URI",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,String,OpenActive::Models::Schema::SizeSpecification,URI]
- define_property :size, as: "size", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "OpenActive::Models::Schema::DefinedTerm",
- "string",
- "OpenActive::Models::Schema::SizeSpecification",
+ # @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 [OpenActive::Models::Schema::PropertyValue,URI]
- define_property :additional_property, as: "additionalProperty", types: [
- "OpenActive::Models::Schema::PropertyValue",
+ # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI]
+ define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [
+ "OpenActive::Models::Schema::MerchantReturnPolicy",
"URI",
]
- # @return [String]
- define_property :gtin13, as: "gtin13", types: [
+ # @return [URI,String]
+ define_property :gtin, as: "gtin", types: [
+ "URI",
"string",
]
# @return [OpenActive::Models::Schema::Review,URI]
- define_property :reviews, as: "reviews", types: [
+ define_property :review, as: "review", types: [
"OpenActive::Models::Schema::Review",
"URI",
]
- # @return [Boolean,nil]
- define_property :is_family_friendly, as: "isFamilyFriendly", types: [
- "bool",
- "null",
+ # @return [String]
+ define_property :mpn, as: "mpn", types: [
+ "string",
]
- # @return [OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI]
- define_property :is_related_to, as: "isRelatedTo", types: [
- "OpenActive::Models::Schema::Service",
- "OpenActive::Models::Schema::Product",
+ # @return [String]
+ define_property :nsn, as: "nsn", types: [
+ "string",
+ ]
+
+ # @return [OpenActive::Models::Schema::ItemList,OpenActive::Models::Schema::WebContent,String,OpenActive::Models::Schema::ListItem,URI]
+ define_property :negative_notes, as: "negativeNotes", types: [
+ "OpenActive::Models::Schema::ItemList",
+ "OpenActive::Models::Schema::WebContent",
+ "string",
+ "OpenActive::Models::Schema::ListItem",
+ "URI",
+ ]
+
+ # @return [String]
+ define_property :country_of_last_processing, as: "countryOfLastProcessing", types: [
+ "string",
+ ]
+
+ # @return [OpenActive::Models::Schema::EnergyConsumptionDetails,URI]
+ define_property :has_energy_consumption_details, as: "hasEnergyConsumptionDetails", types: [
+ "OpenActive::Models::Schema::EnergyConsumptionDetails",
+ "URI",
+ ]
+
+ # @return [String,OpenActive::Models::Schema::SizeSpecification,OpenActive::Models::Schema::QuantitativeValue,OpenActive::Models::Schema::DefinedTerm,URI]
+ define_property :size, as: "size", types: [
+ "string",
+ "OpenActive::Models::Schema::SizeSpecification",
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "OpenActive::Models::Schema::DefinedTerm",
"URI",
]
end
end
end