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

- old
+ new

@@ -6,73 +6,80 @@ # @return [String] def type "schema:ParcelDelivery" end - # @return [OpenActive::Models::Schema::Organization] - define_property :carrier, as: "carrier", types: [ - "OpenActive::Models::Schema::Organization", + # @return [String] + define_property :tracking_number, as: "trackingNumber", types: [ + "string", ] # @return [Date,DateTime,nil] - define_property :expected_arrival_until, as: "expectedArrivalUntil", types: [ + define_property :expected_arrival_from, as: "expectedArrivalFrom", types: [ "Date", "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person] - define_property :provider, as: "provider", types: [ - "OpenActive::Models::Schema::Organization", - "OpenActive::Models::Schema::Person", + # @return [OpenActive::Models::Schema::DeliveryEvent,URI] + define_property :delivery_status, as: "deliveryStatus", types: [ + "OpenActive::Models::Schema::DeliveryEvent", + "URI", ] # @return [Date,DateTime,nil] - define_property :expected_arrival_from, as: "expectedArrivalFrom", types: [ + define_property :expected_arrival_until, as: "expectedArrivalUntil", types: [ "Date", "DateTime", "null", ] - # @return [OpenActive::Models::Schema::Order] - define_property :part_of_order, as: "partOfOrder", types: [ - "OpenActive::Models::Schema::Order", + # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] + define_property :has_delivery_method, as: "hasDeliveryMethod", types: [ + "OpenActive::Enums::Schema::DeliveryMethod", + "null", ] - # @return [OpenActive::Models::Schema::Product] - define_property :item_shipped, as: "itemShipped", types: [ - "OpenActive::Models::Schema::Product", + # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI] + define_property :provider, as: "provider", types: [ + "OpenActive::Models::Schema::Organization", + "OpenActive::Models::Schema::Person", + "URI", ] - # @return [OpenActive::Models::Schema::PostalAddress] - define_property :origin_address, as: "originAddress", types: [ + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :delivery_address, as: "deliveryAddress", types: [ "OpenActive::Models::Schema::PostalAddress", + "URI", ] - # @return [URI] - define_property :tracking_url, as: "trackingUrl", types: [ + # @return [OpenActive::Models::Schema::Order,URI] + define_property :part_of_order, as: "partOfOrder", types: [ + "OpenActive::Models::Schema::Order", "URI", ] - # @return [OpenActive::Models::Schema::DeliveryEvent] - define_property :delivery_status, as: "deliveryStatus", types: [ - "OpenActive::Models::Schema::DeliveryEvent", + # @return [OpenActive::Models::Schema::Organization,URI] + define_property :carrier, as: "carrier", types: [ + "OpenActive::Models::Schema::Organization", + "URI", ] - # @return [OpenActive::Enums::Schema::DeliveryMethod,nil] - define_property :has_delivery_method, as: "hasDeliveryMethod", types: [ - "OpenActive::Enums::Schema::DeliveryMethod", - "null", + # @return [OpenActive::Models::Schema::Product,URI] + define_property :item_shipped, as: "itemShipped", types: [ + "OpenActive::Models::Schema::Product", + "URI", ] - # @return [String] - define_property :tracking_number, as: "trackingNumber", types: [ - "string", + # @return [URI] + define_property :tracking_url, as: "trackingUrl", types: [ + "URI", ] - # @return [OpenActive::Models::Schema::PostalAddress] - define_property :delivery_address, as: "deliveryAddress", types: [ + # @return [OpenActive::Models::Schema::PostalAddress,URI] + define_property :origin_address, as: "originAddress", types: [ "OpenActive::Models::Schema::PostalAddress", + "URI", ] end end end end