Sha256: 4397721c5c79c9e50353da4822ee41f58967c8124902d42d272f31d20fc4547c

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

module OpenActive
  module Models
    #
    # EARLY RELEASE NOTICE: This class represents a draft that is designed to inform the OpenActive specification work with implementation feedback. IT IS STILL SUBJECT TO CHANGE, as the [Customer Accounts proposal](https://github.com/openactive/customer-accounts) evolves.
    #
    # This type is derived from https://schema.org/Permit, which means that any of this type's properties within schema.org may also be used.
    class Entitlement < ::OpenActive::Models::Schema::Permit
      # @!attribute type
      # @return [String]
      def type
        "Entitlement"
      end

      # @return [OpenActive::Models::Concept,URI]
      define_property :entitlement_type, as: "entitlementType", types: [
        "OpenActive::Models::Concept",
        "URI",
      ]

      # @return [OpenActive::Models::Action]
      define_property :evidence_request_action, as: "evidenceRequestAction", types: [
        "OpenActive::Models::Action",
      ]

      # @return [Date,nil]
      define_property :valid_from, as: "validFrom", types: [
        "Date",
        "null",
      ]

      # @return [Date,nil]
      define_property :valid_until, as: "validUntil", types: [
        "Date",
        "null",
      ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openactive-0.5.0 lib/openactive/models/entitlement.rb
openactive-0.4.0 lib/openactive/models/entitlement.rb
openactive-0.3.0 lib/openactive/models/entitlement.rb