Sha256: 809028ab720fd0e144e1372fb0d40943d8bc6ae5bd0086dcb781caf9ab261680

Contents?: true

Size: 662 Bytes

Versions: 9

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true
require_relative "../../../response/product_groups_response"

module ONEAccess
  module API
    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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
oneaccess-0.1.9 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.8 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.7 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.6 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.5 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.4 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.3 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.2 lib/oneaccess/api/entitlement/user/product_group.rb
oneaccess-0.1.1 lib/oneaccess/api/entitlement/user/product_group.rb