Sha256: cec4f23373891aee1d11e6cb02e00fdaf6e92cf72b0436d1a8086393ad8db210

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

module OpenActive
  module Models
    module Schema
      class OrderItem < ::OpenActive::Models::Schema::Intangible
        # @!attribute type
        # @return [String]
        def type
          "schema:OrderItem"
        end

        # @return [String]
        define_property :order_item_number, as: "orderItemNumber", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::ParcelDelivery]
        define_property :order_delivery, as: "orderDelivery", types: [
          "OpenActive::Models::Schema::ParcelDelivery",
        ]

        # @return [OpenActive::Models::Schema::Product,OpenActive::Models::Schema::Service,OpenActive::Models::Schema::OrderItem]
        define_property :ordered_item, as: "orderedItem", types: [
          "OpenActive::Models::Schema::Product",
          "OpenActive::Models::Schema::Service",
          "OpenActive::Models::Schema::OrderItem",
        ]

        # @return [BigDecimal,nil]
        define_property :order_quantity, as: "orderQuantity", types: [
          "Number",
          "null",
        ]

        # @return [OpenActive::Enums::Schema::OrderStatus,nil]
        define_property :order_item_status, as: "orderItemStatus", types: [
          "OpenActive::Enums::Schema::OrderStatus",
          "null",
        ]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openactive-0.1.2 lib/openactive/models/schema/order_item.rb
openactive-0.1.1 lib/openactive/models/schema/order_item.rb
openactive-0.1.0 lib/openactive/models/schema/order_item.rb
openactive-0.1.0.rc1 lib/openactive/models/schema/order_item.rb