Pax8API/Public/Partner/Get-Pax8CompanyById.ps1

<#
.SYNOPSIS
Get Company By ID
.DESCRIPTION
Returns a single company record matching the ```companyId``` you specify
OpenAPI: GET /companies/{companyId}
Scope: Partner. Audience: https://api.pax8.com.
.PARAMETER CompanyId
path parameter 'companyId'.
.PARAMETER Raw
Returns the unmodified API response instead of unwrapping paginated content.
.EXAMPLE
Get-Pax8CompanyById -CompanyId 'value'
.LINK
https://devx.pax8.com/openapi/partner-endpoints.json
#>

function Get-Pax8CompanyById {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]
        [string]$CompanyId,

        [switch]$Raw
    )

    process {
        $boundParameters = @{}
        foreach ($entry in $PSBoundParameters.GetEnumerator()) {
            $boundParameters[$entry.Key] = $entry.Value
        }

        Invoke-Pax8ApiOperation -CommandName $MyInvocation.MyCommand.Name -Parameters $boundParameters
    }
}