endpoints/Rates.ps1
function Get-AteraProducts { return New-AteraGetRequest -Endpoint "/rates/products" } function Get-AteraExpenses { return New-AteraGetRequest -Endpoint "/rates/expenses" } function New-AteraProduct { [CmdletBinding()] param ( [Parameter(Mandatory)] [string] $Description, [Parameter()] [string] $Category, [Parameter()] [double] $Amount, [Parameter()] [string] $SKU ) New-AteraPostRequest -Endpoint "/rates/products" -Body $PSBoundParameters } function New-AteraExpense { [CmdletBinding()] param ( [Parameter(Mandatory)] [string] $Description, [Parameter()] [string] $Category, [Parameter()] [double] $Amount, [Parameter()] [string] $SKU ) New-AteraPostRequest -Endpoint "/rates/expenses" -Body $PSBoundParameters } |