lib/openactive/models/schema/offer.rb in openactive-0.3.0 vs lib/openactive/models/schema/offer.rb in openactive-0.4.0
- old
+ new
@@ -6,239 +6,199 @@
# @return [String]
def type
"schema:Offer"
end
- # @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil]
- define_property :has_adult_consideration, as: "hasAdultConsideration", types: [
- "OpenActive::Enums::Schema::AdultOrientedEnumeration",
- "null",
- ]
-
# @return [String]
- define_property :gtin12, as: "gtin12", types: [
+ define_property :checkout_page_urltemplate, as: "checkoutPageURLTemplate", types: [
"string",
]
- # @return [OpenActive::Models::Schema::Review,URI]
- define_property :review, as: "review", types: [
- "OpenActive::Models::Schema::Review",
- "URI",
- ]
-
- # @return [OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Product,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Service,URI]
- define_property :item_offered, as: "itemOffered", types: [
- "OpenActive::Models::Schema::Trip",
- "OpenActive::Models::Schema::Event",
- "OpenActive::Models::Schema::Product",
- "OpenActive::Models::Schema::AggregateOffer",
- "OpenActive::Models::Schema::CreativeWork",
- "OpenActive::Models::Schema::MenuItem",
- "OpenActive::Models::Schema::Service",
- "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]
+ define_property :mobile_url, as: "mobileUrl", types: [
"string",
- "OpenActive::Enums::Schema::PhysicalActivityCategory",
- "OpenActive::Models::Schema::Thing",
- "OpenActive::Models::Schema::CategoryCode",
- "null",
]
- # @return [Date,nil]
- define_property :price_valid_until, as: "priceValidUntil", types: [
- "Date",
+ # @return [OpenActive::Enums::Schema::AdultOrientedEnumeration,nil]
+ define_property :has_adult_consideration, as: "hasAdultConsideration", types: [
+ "OpenActive::Enums::Schema::AdultOrientedEnumeration",
"null",
]
- # @return [OpenActive::Models::Schema::OfferShippingDetails,URI]
- define_property :shipping_details, as: "shippingDetails", types: [
- "OpenActive::Models::Schema::OfferShippingDetails",
+ # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :eligible_duration, as: "eligibleDuration", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
"URI",
]
# @return [String]
- define_property :mpn, as: "mpn", types: [
+ define_property :price_currency, as: "priceCurrency", types: [
"string",
]
- # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI]
- define_property :includes_object, as: "includesObject", types: [
- "OpenActive::Models::Schema::TypeAndQuantityNode",
- "URI",
- ]
-
- # @return [OpenActive::Enums::Schema::BusinessFunction,nil]
- define_property :business_function, as: "businessFunction", types: [
- "OpenActive::Enums::Schema::BusinessFunction",
- "null",
- ]
-
# @return [OpenActive::Enums::Schema::OfferItemCondition,nil]
define_property :item_condition, as: "itemCondition", types: [
"OpenActive::Enums::Schema::OfferItemCondition",
"null",
]
# @return [String]
- define_property :gtin, as: "gtin", types: [
+ define_property :gtin12, as: "gtin12", types: [
"string",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :eligible_quantity, as: "eligibleQuantity", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "URI",
- ]
-
- # @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",
+ # @return [Date,DateTime,nil]
+ define_property :valid_from, as: "validFrom", types: [
+ "Date",
+ "DateTime",
"null",
]
- # @return [OpenActive::Models::Schema::WarrantyPromise,URI]
- define_property :warranty, as: "warranty", types: [
- "OpenActive::Models::Schema::WarrantyPromise",
+ # @return [OpenActive::Models::Schema::Place,URI]
+ define_property :available_at_or_from, as: "availableAtOrFrom", types: [
+ "OpenActive::Models::Schema::Place",
"URI",
]
# @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 [OpenActive::Models::Schema::Place,String,OpenActive::Models::Schema::GeoShape,URI]
- define_property :ineligible_region, as: "ineligibleRegion", types: [
- "OpenActive::Models::Schema::Place",
- "string",
- "OpenActive::Models::Schema::GeoShape",
+ # @return [OpenActive::Models::Schema::PriceSpecification,URI]
+ define_property :price_specification, as: "priceSpecification", types: [
+ "OpenActive::Models::Schema::PriceSpecification",
"URI",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil]
- define_property :lease_length, as: "leaseLength", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "DateInterval",
- "URI",
+ # @return [OpenActive::Enums::Schema::DeliveryMethod,nil]
+ define_property :available_delivery_method, as: "availableDeliveryMethod", types: [
+ "OpenActive::Enums::Schema::DeliveryMethod",
"null",
]
+ # @return [OpenActive::Models::Schema::TypeAndQuantityNode,URI]
+ define_property :includes_object, as: "includesObject", types: [
+ "OpenActive::Models::Schema::TypeAndQuantityNode",
+ "URI",
+ ]
+
# @return [OpenActive::Models::Schema::AggregateRating,URI]
define_property :aggregate_rating, as: "aggregateRating", types: [
"OpenActive::Models::Schema::AggregateRating",
"URI",
]
- # @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 [OpenActive::Enums::Schema::BusinessFunction,nil]
+ define_property :business_function, as: "businessFunction", types: [
+ "OpenActive::Enums::Schema::BusinessFunction",
+ "null",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :delivery_lead_time, as: "deliveryLeadTime", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "URI",
+ # @return [Date,DateTime,Time,nil]
+ define_property :availability_ends, as: "availabilityEnds", types: [
+ "Date",
+ "DateTime",
+ "Time",
+ "null",
]
- # @return [OpenActive::Enums::Schema::DeliveryMethod,nil]
- define_property :available_delivery_method, as: "availableDeliveryMethod", types: [
- "OpenActive::Enums::Schema::DeliveryMethod",
+ # @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 [DateTime,Date,nil]
- define_property :valid_from, as: "validFrom", types: [
- "DateTime",
- "Date",
+ # @return [OpenActive::Enums::Schema::ItemAvailability,nil]
+ define_property :availability, as: "availability", types: [
+ "OpenActive::Enums::Schema::ItemAvailability",
"null",
]
- # @return [Date,DateTime,Time,nil]
- define_property :availability_ends, as: "availabilityEnds", types: [
+ # @return [String]
+ define_property :sku, as: "sku", types: [
+ "string",
+ ]
+
+ # @return [Date,DateTime,nil]
+ define_property :valid_through, as: "validThrough", types: [
"Date",
"DateTime",
- "Time",
"null",
]
- # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI]
- define_property :eligible_region, as: "eligibleRegion", types: [
- "OpenActive::Models::Schema::GeoShape",
- "string",
- "OpenActive::Models::Schema::Place",
+ # @return [OpenActive::Models::Schema::WarrantyPromise,URI]
+ define_property :warranty, as: "warranty", types: [
+ "OpenActive::Models::Schema::WarrantyPromise",
"URI",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :has_measurement, as: "hasMeasurement", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "URI",
+ # @return [Time,Date,DateTime,nil]
+ define_property :availability_starts, as: "availabilityStarts", types: [
+ "Time",
+ "Date",
+ "DateTime",
+ "null",
]
# @return [String]
define_property :gtin8, as: "gtin8", types: [
"string",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :inventory_level, as: "inventoryLevel", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
+ # @return [String]
+ define_property :gtin13, as: "gtin13", types: [
+ "string",
+ ]
+
+ # @return [OpenActive::Enums::Schema::PaymentMethod,OpenActive::Models::Schema::LoanOrCredit,URI,nil]
+ define_property :accepted_payment_method, as: "acceptedPaymentMethod", types: [
+ "OpenActive::Enums::Schema::PaymentMethod",
+ "OpenActive::Models::Schema::LoanOrCredit",
"URI",
+ "null",
]
- # @return [String]
- define_property :sku, as: "sku", types: [
+ # @return [String,URI]
+ define_property :asin, as: "asin", types: [
"string",
+ "URI",
]
+ # @return [Boolean,nil]
+ define_property :is_family_friendly, as: "isFamilyFriendly", types: [
+ "bool",
+ "null",
+ ]
+
# @return [OpenActive::Models::Schema::Offer,URI]
define_property :add_on, as: "addOn", types: [
"OpenActive::Models::Schema::Offer",
"URI",
]
- # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI]
- define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [
- "OpenActive::Models::Schema::MerchantReturnPolicy",
+ # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,URI]
+ define_property :ineligible_region, as: "ineligibleRegion", types: [
+ "string",
+ "OpenActive::Models::Schema::Place",
+ "OpenActive::Models::Schema::GeoShape",
"URI",
]
- # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [
- "OpenActive::Models::Schema::QuantitativeValue",
- "URI",
- ]
-
# @return [String]
define_property :gtin14, as: "gtin14", types: [
"string",
]
- # @return [String]
- define_property :price_currency, as: "priceCurrency", types: [
- "string",
- ]
-
- # @return [OpenActive::Models::Schema::PriceSpecification,URI]
- define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [
- "OpenActive::Models::Schema::PriceSpecification",
- "URI",
- ]
-
- # @return [OpenActive::Models::Schema::AdministrativeArea,OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI]
- define_property :area_served, as: "areaServed", types: [
- "OpenActive::Models::Schema::AdministrativeArea",
+ # @return [OpenActive::Models::Schema::GeoShape,String,OpenActive::Models::Schema::Place,URI]
+ define_property :eligible_region, as: "eligibleRegion", types: [
"OpenActive::Models::Schema::GeoShape",
"string",
"OpenActive::Models::Schema::Place",
"URI",
]
@@ -247,75 +207,132 @@
define_property :eligible_customer_type, as: "eligibleCustomerType", types: [
"OpenActive::Enums::Schema::BusinessEntityType",
"null",
]
- # @return [OpenActive::Enums::Schema::ItemAvailability,nil]
- define_property :availability, as: "availability", types: [
- "OpenActive::Enums::Schema::ItemAvailability",
+ # @return [Date,nil]
+ define_property :price_valid_until, as: "priceValidUntil", types: [
+ "Date",
"null",
]
- # @return [String]
- define_property :gtin13, as: "gtin13", types: [
+ # @return [BigDecimal,String,nil]
+ define_property :price, as: "price", types: [
+ "Number",
"string",
+ "null",
]
+ # @return [OpenActive::Models::Schema::CreativeWork,OpenActive::Models::Schema::AggregateOffer,OpenActive::Models::Schema::MenuItem,OpenActive::Models::Schema::Trip,OpenActive::Models::Schema::Event,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::Product,URI]
+ define_property :item_offered, as: "itemOffered", types: [
+ "OpenActive::Models::Schema::CreativeWork",
+ "OpenActive::Models::Schema::AggregateOffer",
+ "OpenActive::Models::Schema::MenuItem",
+ "OpenActive::Models::Schema::Trip",
+ "OpenActive::Models::Schema::Event",
+ "OpenActive::Models::Schema::Service",
+ "OpenActive::Models::Schema::Product",
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::OfferShippingDetails,URI]
+ define_property :shipping_details, as: "shippingDetails", types: [
+ "OpenActive::Models::Schema::OfferShippingDetails",
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::PriceSpecification,URI]
+ define_property :eligible_transaction_volume, as: "eligibleTransactionVolume", types: [
+ "OpenActive::Models::Schema::PriceSpecification",
+ "URI",
+ ]
+
+ # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :has_measurement, as: "hasMeasurement", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "URI",
+ ]
+
# @return [OpenActive::Models::Schema::Review,URI]
define_property :reviews, as: "reviews", types: [
"OpenActive::Models::Schema::Review",
"URI",
]
- # @return [Boolean,nil]
- define_property :is_family_friendly, as: "isFamilyFriendly", types: [
- "bool",
- "null",
+ # @return [OpenActive::Models::Schema::MerchantReturnPolicy,URI]
+ define_property :has_merchant_return_policy, as: "hasMerchantReturnPolicy", types: [
+ "OpenActive::Models::Schema::MerchantReturnPolicy",
+ "URI",
]
- # @return [DateTime,Date,nil]
- define_property :valid_through, as: "validThrough", types: [
- "DateTime",
- "Date",
- "null",
+ # @return [URI,String]
+ define_property :gtin, as: "gtin", types: [
+ "URI",
+ "string",
]
- # @return [OpenActive::Models::Schema::PriceSpecification,URI]
- define_property :price_specification, as: "priceSpecification", types: [
- "OpenActive::Models::Schema::PriceSpecification",
+ # @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 [BigDecimal,String,nil]
- define_property :price, as: "price", types: [
- "Number",
- "string",
+ # @return [OpenActive::Models::Schema::QuantitativeValue,ActiveSupport::Duration,URI,nil]
+ define_property :lease_length, as: "leaseLength", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "DateInterval",
+ "URI",
"null",
]
- # @return [Time,DateTime,Date,nil]
- define_property :availability_starts, as: "availabilityStarts", types: [
- "Time",
- "DateTime",
- "Date",
- "null",
+ # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :delivery_lead_time, as: "deliveryLeadTime", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "URI",
]
# @return [OpenActive::Models::Schema::QuantitativeValue,URI]
- define_property :eligible_duration, as: "eligibleDuration", types: [
+ define_property :advance_booking_requirement, as: "advanceBookingRequirement", types: [
"OpenActive::Models::Schema::QuantitativeValue",
"URI",
]
- # @return [OpenActive::Models::Schema::Place,URI]
- define_property :available_at_or_from, as: "availableAtOrFrom", types: [
+ # @return [OpenActive::Models::Schema::Review,URI]
+ define_property :review, as: "review", types: [
+ "OpenActive::Models::Schema::Review",
+ "URI",
+ ]
+
+ # @return [String]
+ define_property :mpn, as: "mpn", types: [
+ "string",
+ ]
+
+ # @return [String,OpenActive::Models::Schema::Place,OpenActive::Models::Schema::GeoShape,OpenActive::Models::Schema::AdministrativeArea,URI]
+ define_property :area_served, as: "areaServed", types: [
+ "string",
"OpenActive::Models::Schema::Place",
+ "OpenActive::Models::Schema::GeoShape",
+ "OpenActive::Models::Schema::AdministrativeArea",
"URI",
]
+ # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :inventory_level, as: "inventoryLevel", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "URI",
+ ]
+
# @return [String]
define_property :serial_number, as: "serialNumber", types: [
"string",
+ ]
+
+ # @return [OpenActive::Models::Schema::QuantitativeValue,URI]
+ define_property :eligible_quantity, as: "eligibleQuantity", types: [
+ "OpenActive::Models::Schema::QuantitativeValue",
+ "URI",
]
end
end
end
end