-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated the sdk from the specification
- Loading branch information
1 parent
8973e90
commit 5610a2a
Showing
39 changed files
with
3,781 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace JoliCode\Harvest\Api\Endpoint; | ||
|
||
class ClientsReport extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint | ||
{ | ||
/** | ||
* | ||
* | ||
* @param \JoliCode\Harvest\Api\Model\ReportsTimeClientsGetBody $payload json payload | ||
*/ | ||
public function __construct(\JoliCode\Harvest\Api\Model\ReportsTimeClientsGetBody $payload) | ||
{ | ||
$this->body = $payload; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/reports/time/clients'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\JoliCode\Harvest\Api\Model\Error | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) | ||
{ | ||
if (200 === $status) { | ||
return null; | ||
} | ||
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace JoliCode\Harvest\Api\Endpoint; | ||
|
||
class ExpenseCategoriesReport extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint | ||
{ | ||
/** | ||
* | ||
* | ||
* @param \JoliCode\Harvest\Api\Model\ReportsExpensesCategoriesGetBody $payload json payload | ||
*/ | ||
public function __construct(\JoliCode\Harvest\Api\Model\ReportsExpensesCategoriesGetBody $payload) | ||
{ | ||
$this->body = $payload; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/reports/expenses/categories'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\JoliCode\Harvest\Api\Model\Error | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) | ||
{ | ||
if (200 === $status) { | ||
return null; | ||
} | ||
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace JoliCode\Harvest\Api\Endpoint; | ||
|
||
class ProjectBudgetReport extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint | ||
{ | ||
/** | ||
* The response contains an object with a results property that contains an array of up to per_page results. Each entry in the array is a separate result object. If no more results are available, the resulting array will be empty. Several additional pagination properties are included in the response to simplify paginating your results. | ||
* | ||
* @param \JoliCode\Harvest\Api\Model\ReportsProjectBudgetGetBody $payload json payload | ||
*/ | ||
public function __construct(\JoliCode\Harvest\Api\Model\ReportsProjectBudgetGetBody $payload) | ||
{ | ||
$this->body = $payload; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/reports/project_budget'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\JoliCode\Harvest\Api\Model\Error | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) | ||
{ | ||
if (200 === $status) { | ||
return null; | ||
} | ||
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace JoliCode\Harvest\Api\Endpoint; | ||
|
||
class ProjectsReport extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint | ||
{ | ||
/** | ||
* | ||
* | ||
* @param \JoliCode\Harvest\Api\Model\ReportsTimeProjectsGetBody $payload json payload | ||
*/ | ||
public function __construct(\JoliCode\Harvest\Api\Model\ReportsTimeProjectsGetBody $payload) | ||
{ | ||
$this->body = $payload; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/reports/time/projects'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\JoliCode\Harvest\Api\Model\Error | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) | ||
{ | ||
if (200 === $status) { | ||
return null; | ||
} | ||
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
namespace JoliCode\Harvest\Api\Endpoint; | ||
|
||
class TasksReport extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\Psr7Endpoint | ||
{ | ||
/** | ||
* | ||
* | ||
* @param \JoliCode\Harvest\Api\Model\ReportsTimeTasksGetBody $payload json payload | ||
*/ | ||
public function __construct(\JoliCode\Harvest\Api\Model\ReportsTimeTasksGetBody $payload) | ||
{ | ||
$this->body = $payload; | ||
} | ||
use \Jane\OpenApiRuntime\Client\Psr7EndpointTrait; | ||
public function getMethod() : string | ||
{ | ||
return 'GET'; | ||
} | ||
public function getUri() : string | ||
{ | ||
return '/reports/time/tasks'; | ||
} | ||
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array | ||
{ | ||
return $this->getSerializedBody($serializer); | ||
} | ||
/** | ||
* {@inheritdoc} | ||
* | ||
* | ||
* @return null|\JoliCode\Harvest\Api\Model\Error | ||
*/ | ||
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) | ||
{ | ||
if (200 === $status) { | ||
return null; | ||
} | ||
return $serializer->deserialize($body, 'JoliCode\\Harvest\\Api\\Model\\Error', 'json'); | ||
} | ||
} |
Oops, something went wrong.