Sha256: c262ad969cd3c66209b1b82de7b540285e2ac6281f90dcf586b7f55d4cca3c4c

Contents?: true

Size: 1.23 KB

Versions: 15

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

require_relative "../user_light"
require_relative "../organization_light"
require_relative "../sell_side_user_group_entitlement"

module ONEAccess
  module DataObject
    module Representer
      class UserEntitlementRequest < Representable::Decorator
        include Representable::JSON

        property :id, as: :Id, type: Integer
        property :create_date, as: :CreateDate, parse_filter: ->(value, _) { Time.parse(value) }
        property :update_date, as: :UpdateDate, parse_filter: ->(value, _) { Time.parse(value) }
        property :notes, as: :Notes, type: String
        property :status, as: :Status, type: Integer
        property :user, as: :User,
          decorator: Representer::UserLight, class: DataObject::UserLight
        property :buy_side_org, as: :BuySideOrg,
          decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
        property :sell_side_org, as: :SellSideOrg,
          decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
        collection :sell_side_user_groups, as: :SellSideUserGroups,
          decorator: Representer::SellSideUserGroupEntitlement, class: DataObject::SellSideUserGroupEntitlement
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-1.1.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-1.0.1 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-1.0.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.5.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.5 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.4 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.3 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.2 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.1 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.4.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.3.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.2.0 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.1.9 lib/oneaccess/data_object/representer/user_entitlement_request.rb
oneaccess-0.1.8 lib/oneaccess/data_object/representer/user_entitlement_request.rb