lib/openactive/models/order_item.rb in openactive-0.1.2 vs lib/openactive/models/order_item.rb in openactive-0.2.0

- old
+ new

@@ -1,49 +1,45 @@ module OpenActive module Models - # This type is derived from [OrderItem](https://schema.org/OrderItem), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available. + # This type is derived from https://schema.org/OrderItem, which means that any of this type's properties within schema.org may also be used. class OrderItem < ::OpenActive::Models::Schema::OrderItem # @!attribute type # @return [String] def type "OrderItem" end - # @return [OpenActive::Models::Offer] + # @return [OpenActive::Models::Offer,URI] define_property :accepted_offer, as: "acceptedOffer", types: [ "OpenActive::Models::Offer", + "URI", ] + # @return [OpenActive::Models::VirtualLocation] + define_property :access_channel, as: "accessChannel", types: [ + "OpenActive::Models::VirtualLocation", + ] + # @return [Array<OpenActive::Models::PropertyValue>] define_property :access_code, as: "accessCode", types: [ "OpenActive::Models::PropertyValue[]", ] # @return [Array<OpenActive::Models::ImageObject>] - define_property :access_token, as: "accessToken", types: [ + define_property :access_pass, as: "accessPass", types: [ "OpenActive::Models::ImageObject[]", ] - # @return [Array<OpenActive::Models::PropertyValue>] - define_property :additional_property, as: "additionalProperty", types: [ - "OpenActive::Models::PropertyValue[]", - ] - - # @return [Boolean,nil] - define_property :allow_customer_cancellation_full_refund, as: "allowCustomerCancellationFullRefund", types: [ - "bool", - "null", - ] - # @return [OpenActive::Models::Person] define_property :attendee, as: "attendee", types: [ "OpenActive::Models::Person", ] - # @return [Array<URI>] + # @return [Array<OpenActive::Enums::PropertyEnumeration>,nil] define_property :attendee_details_required, as: "attendeeDetailsRequired", types: [ - "URI[]", + "OpenActive::Enums::PropertyEnumeration[]", + "null", ] # @return [String] define_property :cancellation_message, as: "cancellationMessage", types: [ "string", @@ -57,13 +53,14 @@ # @return [Array<OpenActive::Models::OpenBookingError>] define_property :error, as: "error", types: [ "OpenActive::Models::OpenBookingError[]", ] - # @return [OpenActive::Models::Event] + # @return [OpenActive::Models::Event,URI] define_property :ordered_item, as: "orderedItem", types: [ "OpenActive::Models::Event", + "URI", ] # @return [Array<OpenActive::Models::PropertyValueSpecification>] define_property :order_item_intake_form, as: "orderItemIntakeForm", types: [ "OpenActive::Models::PropertyValueSpecification[]", @@ -75,9 +72,15 @@ ] # @return [OpenActive::Enums::OrderItemStatus,nil] define_property :order_item_status, as: "orderItemStatus", types: [ "OpenActive::Enums::OrderItemStatus", + "null", + ] + + # @return [int,nil] + define_property :position, as: "position", types: [ + "int", "null", ] # @return [Array<OpenActive::Models::TaxChargeSpecification>] define_property :unit_tax_specification, as: "unitTaxSpecification", types: [