Sha256: f71314078034d4dc19cd7713d7fc4002eced547a0ba7c601c444735adc8c580f

Contents?: true

Size: 724 Bytes

Versions: 9

Compression:

Stored size: 724 Bytes

Contents

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

module ONEAccess
  module API
    module Entitlement
      module Organization
        class ProductGroup < Base
          api_path "/entitlement/organization/productgroup"

          def self.get_list(contributor_org_id:, page_number: 0, page_size: 20, type: nil)
            resp = send_get("getList", Query: {
              PageNumber:       page_number,
              PageSize:         page_size,
              ContributorOrgId: contributor_org_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/organization/product_group.rb
oneaccess-0.1.8 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.7 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.6 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.5 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.4 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.3 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.2 lib/oneaccess/api/entitlement/organization/product_group.rb
oneaccess-0.1.1 lib/oneaccess/api/entitlement/organization/product_group.rb