Skip to content

Commit

Permalink
Merge pull request #3 from Healyhatman/development
Browse files Browse the repository at this point in the history
Add OData parameters to applicable endpoints
  • Loading branch information
Healyhatman authored May 4, 2023
2 parents 54bf9d1 + e3231be commit d07a8f1
Show file tree
Hide file tree
Showing 31 changed files with 1,845 additions and 369 deletions.
54 changes: 45 additions & 9 deletions src/lib/Api/AbaSettingsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -642,14 +642,18 @@ protected function auAbaGetRequest($id, $business_id)
* List ABA Settings
*
* @param string $business_id business_id (required)
* @param string $filter filter (optional)
* @param string $orderby orderby (optional)
* @param int $top top (optional)
* @param int $skip skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\BusinessAbaModel[]
*/
public function auAbaGetAbaDetails($business_id)
public function auAbaGetAbaDetails($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
list($response) = $this->auAbaGetAbaDetailsWithHttpInfo($business_id);
list($response) = $this->auAbaGetAbaDetailsWithHttpInfo($business_id, $filter, $orderby, $top, $skip);
return $response;
}

Expand All @@ -659,15 +663,19 @@ public function auAbaGetAbaDetails($business_id)
* List ABA Settings
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\BusinessAbaModel[], HTTP status code, HTTP response headers (array of strings)
*/
public function auAbaGetAbaDetailsWithHttpInfo($business_id)
public function auAbaGetAbaDetailsWithHttpInfo($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\BusinessAbaModel[]';
$request = $this->auAbaGetAbaDetailsRequest($business_id);
$request = $this->auAbaGetAbaDetailsRequest($business_id, $filter, $orderby, $top, $skip);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -734,13 +742,17 @@ public function auAbaGetAbaDetailsWithHttpInfo($business_id)
* List ABA Settings
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function auAbaGetAbaDetailsAsync($business_id)
public function auAbaGetAbaDetailsAsync($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
return $this->auAbaGetAbaDetailsAsyncWithHttpInfo($business_id)
return $this->auAbaGetAbaDetailsAsyncWithHttpInfo($business_id, $filter, $orderby, $top, $skip)
->then(
function ($response) {
return $response[0];
Expand All @@ -754,14 +766,18 @@ function ($response) {
* List ABA Settings
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function auAbaGetAbaDetailsAsyncWithHttpInfo($business_id)
public function auAbaGetAbaDetailsAsyncWithHttpInfo($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\BusinessAbaModel[]';
$request = $this->auAbaGetAbaDetailsRequest($business_id);
$request = $this->auAbaGetAbaDetailsRequest($business_id, $filter, $orderby, $top, $skip);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -804,11 +820,15 @@ function ($exception) {
* Create request for operation 'auAbaGetAbaDetails'
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function auAbaGetAbaDetailsRequest($business_id)
protected function auAbaGetAbaDetailsRequest($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
// verify the required parameter 'business_id' is set
if ($business_id === null || (is_array($business_id) && count($business_id) === 0)) {
Expand All @@ -824,6 +844,22 @@ protected function auAbaGetAbaDetailsRequest($business_id)
$httpBody = '';
$multipart = false;

// query params
if ($filter !== null) {
$queryParams['$filter'] = ObjectSerializer::toQueryValue($filter);
}
// query params
if ($orderby !== null) {
$queryParams['$orderby'] = ObjectSerializer::toQueryValue($orderby);
}
// query params
if ($top !== null) {
$queryParams['$top'] = ObjectSerializer::toQueryValue($top);
}
// query params
if ($skip !== null) {
$queryParams['$skip'] = ObjectSerializer::toQueryValue($skip);
}

// path params
if ($business_id !== null) {
Expand Down
108 changes: 90 additions & 18 deletions src/lib/Api/BusinessApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1984,14 +1984,18 @@ protected function auBusinessGetBusinessByExternalIdRequest($external_id)
*
* List Businesses
*
* @param string $filter filter (optional)
* @param string $orderby orderby (optional)
* @param int $top top (optional)
* @param int $skip skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\AuBusinessExportModel[]
*/
public function auBusinessGetBusinesses()
public function auBusinessGetBusinesses($filter = null, $orderby = null, $top = null, $skip = null)
{
list($response) = $this->auBusinessGetBusinessesWithHttpInfo();
list($response) = $this->auBusinessGetBusinessesWithHttpInfo($filter, $orderby, $top, $skip);
return $response;
}

Expand All @@ -2000,15 +2004,19 @@ public function auBusinessGetBusinesses()
*
* List Businesses
*
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\AuBusinessExportModel[], HTTP status code, HTTP response headers (array of strings)
*/
public function auBusinessGetBusinessesWithHttpInfo()
public function auBusinessGetBusinessesWithHttpInfo($filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\AuBusinessExportModel[]';
$request = $this->auBusinessGetBusinessesRequest();
$request = $this->auBusinessGetBusinessesRequest($filter, $orderby, $top, $skip);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -2074,13 +2082,17 @@ public function auBusinessGetBusinessesWithHttpInfo()
*
* List Businesses
*
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function auBusinessGetBusinessesAsync()
public function auBusinessGetBusinessesAsync($filter = null, $orderby = null, $top = null, $skip = null)
{
return $this->auBusinessGetBusinessesAsyncWithHttpInfo()
return $this->auBusinessGetBusinessesAsyncWithHttpInfo($filter, $orderby, $top, $skip)
->then(
function ($response) {
return $response[0];
Expand All @@ -2093,14 +2105,18 @@ function ($response) {
*
* List Businesses
*
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function auBusinessGetBusinessesAsyncWithHttpInfo()
public function auBusinessGetBusinessesAsyncWithHttpInfo($filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\AuBusinessExportModel[]';
$request = $this->auBusinessGetBusinessesRequest();
$request = $this->auBusinessGetBusinessesRequest($filter, $orderby, $top, $skip);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -2142,11 +2158,15 @@ function ($exception) {
/**
* Create request for operation 'auBusinessGetBusinesses'
*
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function auBusinessGetBusinessesRequest()
protected function auBusinessGetBusinessesRequest($filter = null, $orderby = null, $top = null, $skip = null)
{

$resourcePath = '/api/v2/business';
Expand All @@ -2156,6 +2176,22 @@ protected function auBusinessGetBusinessesRequest()
$httpBody = '';
$multipart = false;

// query params
if ($filter !== null) {
$queryParams['$filter'] = ObjectSerializer::toQueryValue($filter);
}
// query params
if ($orderby !== null) {
$queryParams['$orderby'] = ObjectSerializer::toQueryValue($orderby);
}
// query params
if ($top !== null) {
$queryParams['$top'] = ObjectSerializer::toQueryValue($top);
}
// query params
if ($skip !== null) {
$queryParams['$skip'] = ObjectSerializer::toQueryValue($skip);
}


// body params
Expand Down Expand Up @@ -5995,14 +6031,18 @@ protected function businessAccessGetRequest($email, $business_id)
* List All Business Access Users
*
* @param string $business_id business_id (required)
* @param string $filter filter (optional)
* @param string $orderby orderby (optional)
* @param int $top top (optional)
* @param int $skip skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Swagger\Client\Model\BusinessAccessModel[]
*/
public function businessAccessGetAll($business_id)
public function businessAccessGetAll($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
list($response) = $this->businessAccessGetAllWithHttpInfo($business_id);
list($response) = $this->businessAccessGetAllWithHttpInfo($business_id, $filter, $orderby, $top, $skip);
return $response;
}

Expand All @@ -6012,15 +6052,19 @@ public function businessAccessGetAll($business_id)
* List All Business Access Users
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \Swagger\Client\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Swagger\Client\Model\BusinessAccessModel[], HTTP status code, HTTP response headers (array of strings)
*/
public function businessAccessGetAllWithHttpInfo($business_id)
public function businessAccessGetAllWithHttpInfo($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\BusinessAccessModel[]';
$request = $this->businessAccessGetAllRequest($business_id);
$request = $this->businessAccessGetAllRequest($business_id, $filter, $orderby, $top, $skip);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -6087,13 +6131,17 @@ public function businessAccessGetAllWithHttpInfo($business_id)
* List All Business Access Users
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function businessAccessGetAllAsync($business_id)
public function businessAccessGetAllAsync($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
return $this->businessAccessGetAllAsyncWithHttpInfo($business_id)
return $this->businessAccessGetAllAsyncWithHttpInfo($business_id, $filter, $orderby, $top, $skip)
->then(
function ($response) {
return $response[0];
Expand All @@ -6107,14 +6155,18 @@ function ($response) {
* List All Business Access Users
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function businessAccessGetAllAsyncWithHttpInfo($business_id)
public function businessAccessGetAllAsyncWithHttpInfo($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
$returnType = '\Swagger\Client\Model\BusinessAccessModel[]';
$request = $this->businessAccessGetAllRequest($business_id);
$request = $this->businessAccessGetAllRequest($business_id, $filter, $orderby, $top, $skip);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -6157,11 +6209,15 @@ function ($exception) {
* Create request for operation 'businessAccessGetAll'
*
* @param string $business_id (required)
* @param string $filter (optional)
* @param string $orderby (optional)
* @param int $top (optional)
* @param int $skip (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function businessAccessGetAllRequest($business_id)
protected function businessAccessGetAllRequest($business_id, $filter = null, $orderby = null, $top = null, $skip = null)
{
// verify the required parameter 'business_id' is set
if ($business_id === null || (is_array($business_id) && count($business_id) === 0)) {
Expand All @@ -6177,6 +6233,22 @@ protected function businessAccessGetAllRequest($business_id)
$httpBody = '';
$multipart = false;

// query params
if ($filter !== null) {
$queryParams['$filter'] = ObjectSerializer::toQueryValue($filter);
}
// query params
if ($orderby !== null) {
$queryParams['$orderby'] = ObjectSerializer::toQueryValue($orderby);
}
// query params
if ($top !== null) {
$queryParams['$top'] = ObjectSerializer::toQueryValue($top);
}
// query params
if ($skip !== null) {
$queryParams['$skip'] = ObjectSerializer::toQueryValue($skip);
}

// path params
if ($business_id !== null) {
Expand Down
Loading

0 comments on commit d07a8f1

Please sign in to comment.