endpoints/Customers.ps1

function Get-AteraCustomers {
  return New-AteraGetRequest -Endpoint "/customers"
}

function Get-AteraCustomer {
  param(
    [Parameter(Mandatory=$true)]
    [int]$CustomerID
  )
  return New-AteraGetRequest -Endpoint "/customers/$($CustomerID)"
}

function New-AteraCustomer {
  [CmdletBinding()]
  param (
    [Parameter(Mandatory)]
    [string] $CustomerName,
    [Parameter()]
    [string] $BusinessNumber,
    [Parameter()]
    [string] $Domain,
    [Parameter()]
    [string] $Address,
    [Parameter()]
    [string] $City,
    [Parameter()]
    [string] $State,
    [Parameter()]
    [string] $Country,
    [Parameter()]
    [string] $Phone,
    [Parameter()]
    [string] $Fax,
    [Parameter()]
    [string] $Notes,
    [Parameter()]
    [string] $Links,
    [Parameter()]
    [string] $Longitude,
    [Parameter()]
    [string] $Latitude,
    [Parameter()]
    [string] $ZipCodeStr
  )
  New-AteraPostRequest -Endpoint "/customers" -Body $PSBoundParameters
}