Sha256: b1b4eff120e3f40781167e03683d192d7131388c24e18f186dfa4011accb5c0a

Contents?: true

Size: 831 Bytes

Versions: 7

Compression:

Stored size: 831 Bytes

Contents

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

module ONEAccess
  module API
    module V1_1 # rubocop:disable Style/ClassAndModuleCamelCase
      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
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.4.3 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.4.2 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.4.1 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.4.0 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.3.0 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb
oneaccess-0.2.0 lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb