Skip to content

Commit

Permalink
fixed plurals
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Feb 25, 2020
1 parent 286172c commit e23e5a7
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
20 changes: 10 additions & 10 deletions Resources/harvest-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4507,7 +4507,7 @@ paths:
200:
description: 'Clients Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4553,7 +4553,7 @@ paths:
200:
description: 'Projects Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4599,7 +4599,7 @@ paths:
200:
description: 'Expense Categories Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4645,7 +4645,7 @@ paths:
200:
description: 'Team Report'
schema:
$ref: '#/definitions/ExpenseReportsResult'
$ref: '#/definitions/ExpenseReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4691,7 +4691,7 @@ paths:
200:
description: 'Uninvoiced Report'
schema:
$ref: '#/definitions/UninvoicedReportResult'
$ref: '#/definitions/UninvoicedReportResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4737,7 +4737,7 @@ paths:
200:
description: 'Clients Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4783,7 +4783,7 @@ paths:
200:
description: 'Projects Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4829,7 +4829,7 @@ paths:
200:
description: 'Tasks Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4875,7 +4875,7 @@ paths:
200:
description: 'Team Report'
schema:
$ref: '#/definitions/TimeReportsResult'
$ref: '#/definitions/TimeReportsResults'
default:
description: 'error payload'
schema:
Expand Down Expand Up @@ -4909,7 +4909,7 @@ paths:
200:
description: 'Project Budget Report'
schema:
$ref: '#/definitions/ProjectBudgetReportResult'
$ref: '#/definitions/ProjectBudgetReportResults'
default:
description: 'error payload'
schema:
Expand Down
14 changes: 7 additions & 7 deletions generated/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,7 @@ public function updateUser(string $userId, \JoliCode\Harvest\Api\Model\UsersUser
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function clientsReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1457,7 +1457,7 @@ public function clientsReport(array $queryParameters = array(), string $fetch =
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function projectsReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1474,7 +1474,7 @@ public function projectsReport(array $queryParameters = array(), string $fetch =
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\ExpenseReportsResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function expenseCategoriesReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1491,7 +1491,7 @@ public function expenseCategoriesReport(array $queryParameters = array(), string
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function teamReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1510,7 +1510,7 @@ public function teamReport(array $queryParameters = array(), string $fetch = sel
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\UninvoicedReportResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\UninvoicedReportResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function uninvoicedReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1527,7 +1527,7 @@ public function uninvoicedReport(array $queryParameters = array(), string $fetch
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function tasksReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand All @@ -1542,7 +1542,7 @@ public function tasksReport(array $queryParameters = array(), string $fetch = se
* }
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
*
* @return null|\JoliCode\Harvest\Api\Model\ProjectBudgetReportResult|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
* @return null|\JoliCode\Harvest\Api\Model\ProjectBudgetReportResults|\JoliCode\Harvest\Api\Model\Error|\Psr\Http\Message\ResponseInterface
*/
public function projectBudgetReport(array $queryParameters = array(), string $fetch = self::FETCH_OBJECT)
{
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/ClientsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/ExpenseCategoriesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\ExpenseReportsResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\ExpenseReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ExpenseReportsResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/ProjectBudgetReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\ProjectBudgetReportResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\ProjectBudgetReportResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\ProjectBudgetReportResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/ProjectsReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/TasksReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/TeamReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\TimeReportsResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\TimeReportsResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down
4 changes: 2 additions & 2 deletions generated/Endpoint/UninvoicedReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolve
* {@inheritdoc}
*
*
* @return null|\JoliCode\Harvest\Api\Model\UninvoicedReportResult|\JoliCode\Harvest\Api\Model\Error
* @return null|\JoliCode\Harvest\Api\Model\UninvoicedReportResults|\JoliCode\Harvest\Api\Model\Error
*/
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType)
{
if (200 === $status) {
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResult', 'json');
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\UninvoicedReportResults', 'json');
}
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json');
}
Expand Down

0 comments on commit e23e5a7

Please sign in to comment.