Sha256: 1acf38ab5db45f5056378007c191b8ffc6352a9fa67f23bdd15f2c10ff3f6aba

Contents?: true

Size: 995 Bytes

Versions: 4

Compression:

Stored size: 995 Bytes

Contents

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

        # @return [OpenActive::Models::Schema::WarrantyPromise]
        define_property :warranty_promise, as: "warrantyPromise", types: [
          "OpenActive::Models::Schema::WarrantyPromise",
        ]

        # @return [OpenActive::Models::Schema::Person,OpenActive::Models::Schema::Organization]
        define_property :seller, as: "seller", types: [
          "OpenActive::Models::Schema::Person",
          "OpenActive::Models::Schema::Organization",
        ]

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

Version data entries

4 entries across 4 versions & 1 rubygems

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