Public/Get-Pax8ProductPricing.ps1
function Get-Pax8ProductPricing { [CmdletBinding()] Param( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [string]$id ) Process { $Pricing = Invoke-Pax8Request -method get -resource "products/$id/pricing" if ($Pricing) { [PSCustomObject]@{ id = $id details = $Pricing.content } } } } |