Sha256: c4ee858f3229028155a1c6e9e94e6ed5ea3bbef2c102042e56aa3960f0ed4c5f

Contents?: true

Size: 722 Bytes

Versions: 6

Compression:

Stored size: 722 Bytes

Contents

# frozen_string_literal: true

require_relative "../../../../response/product_groups_response"

module ONEAccess
  module API
    module V1_1
      module Entitlement
        module User
          class ProductGroup < Base
            api_path "/entitlement/user/productgroup"

            def self.get_list(user_id:, page_number: 0, page_size: 20, type: nil)
              resp = send_get("getList", Query: {
                PageNumber: page_number,
                PageSize:   page_size,
                UserId:     user_id,
                Type:       type
              }.to_json)
              Response::ProductGroupsResponse.from_json(resp.body)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
oneaccess-1.1.0 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
oneaccess-1.0.1 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
oneaccess-1.0.0 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
oneaccess-0.5.0 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb
oneaccess-0.4.5 lib/oneaccess/api/v1_1/entitlement/user/product_group.rb