Sha256: d7727b2f202db3bfce1e59e1372da311be3954ddc18d6507bf76bd888ec3c086

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 KB

Contents

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

        # @return [URI,String]
        define_property :ticket_token, as: "ticketToken", types: [
          "URI",
          "string",
        ]

        # @return [OpenActive::Models::Schema::Seat,URI]
        define_property :ticketed_seat, as: "ticketedSeat", types: [
          "OpenActive::Models::Schema::Seat",
          "URI",
        ]

        # @return [OpenActive::Models::Schema::PriceSpecification,BigDecimal,String,URI,nil]
        define_property :total_price, as: "totalPrice", types: [
          "OpenActive::Models::Schema::PriceSpecification",
          "Number",
          "string",
          "URI",
          "null",
        ]

        # @return [OpenActive::Models::Schema::Organization,URI]
        define_property :issued_by, as: "issuedBy", types: [
          "OpenActive::Models::Schema::Organization",
          "URI",
        ]

        # @return [String]
        define_property :ticket_number, as: "ticketNumber", types: [
          "string",
        ]

        # @return [Date,DateTime,nil]
        define_property :date_issued, as: "dateIssued", types: [
          "Date",
          "DateTime",
          "null",
        ]

        # @return [String]
        define_property :price_currency, as: "priceCurrency", types: [
          "string",
        ]

        # @return [OpenActive::Models::Schema::Organization,OpenActive::Models::Schema::Person,URI]
        define_property :under_name, as: "underName", types: [
          "OpenActive::Models::Schema::Organization",
          "OpenActive::Models::Schema::Person",
          "URI",
        ]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openactive-0.3.0 lib/openactive/models/schema/ticket.rb