Sha256: 6a269e590c456cc37eb4f6a7fa845b64da800791f6fb2487538716a68f726375

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 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 = 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

1 entries across 1 versions & 1 rubygems

Version Path
oneaccess-0.1.0 lib/oneaccess/api/entitlement/user/product_group.rb