Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.4.0 changes #31

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release History

## 1.4.0
* Stop supporting some Reports API according to announce from Thursday, 2018-06-28

## 1.3.1
* Fixed non-working getByContract from Workdays API

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "upwork/php-upwork",
"description": "PHP bindings for Upwork API",
"version": "v1.3.0",
"version": "v1.4.0",
"type": "library",
"keywords": ["upwork", "php", "api"],
"homepage": "http://www.upwork.com",
"time": "2018-05-24",
"time": "2018-07-24",
"license": "Apache-2.0",
"authors": [
{
Expand Down
17 changes: 0 additions & 17 deletions src/Upwork/API/Routers/Reports/Finance/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,23 +42,6 @@ public function __construct(ApiClient $client)
parent::$_epoint = self::ENTRY_POINT;
}

/**
* Generate Financial Reports for an owned Account
*
* @param integer $freelancerReference Freelancer reference
* @param array $params Parameters
* @return object
*/
public function getOwned($freelancerReference, $params)
{
ApiDebug::p(__FUNCTION__);

$report = $this->_client->get('/finreports/v2/financial_account_owner/' . $freelancerReference, $params);
ApiDebug::p('found report info', $report);

return $report;
}

/**
* Generate Financial Reports for a Specific Account
*
Expand Down
34 changes: 0 additions & 34 deletions src/Upwork/API/Routers/Reports/Finance/Billings.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,40 +59,6 @@ public function getByFreelancer($freelancerReference, $params)
return $report;
}

/**
* Generate Billing Reports for a Specific Freelancer's Team
*
* @param integer $freelancerTeamReference Freelancer team reference
* @param array $params Parameters
* @return object
*/
public function getByFreelancersTeam($freelancerTeamReference, $params)
{
ApiDebug::p(__FUNCTION__);

$report = $this->_client->get('/finreports/v2/provider_teams/' . $freelancerTeamReference . '/billings', $params);
ApiDebug::p('found report info', $report);

return $report;
}

/**
* Generate Billing Reports for a Specific Freelancer's Company
*
* @param integer $freelancerCompanyReference Freelancer company reference
* @param array $params Parameters
* @return object
*/
public function getByFreelancersCompany($freelancerCompanyReference, $params)
{
ApiDebug::p(__FUNCTION__);

$report = $this->_client->get('/finreports/v2/provider_companies/' . $freelancerCompanyReference . '/billings', $params);
ApiDebug::p('found report info', $report);

return $report;
}

/**
* Generate Billing Reports for a Specific Buyer's Team
*
Expand Down
34 changes: 0 additions & 34 deletions src/Upwork/API/Routers/Reports/Finance/Earnings.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,40 +59,6 @@ public function getByFreelancer($freelancerReference, $params)
return $report;
}

/**
* Generate Earning Reports for a Specific Freelancer's Team
*
* @param integer $freelancerTeamReference Freelancer team reference
* @param array $params Parameters
* @return object
*/
public function getByFreelancersTeam($freelancerTeamReference, $params)
{
ApiDebug::p(__FUNCTION__);

$report = $this->_client->get('/finreports/v2/provider_teams/' . $freelancerTeamReference . '/earnings', $params);
ApiDebug::p('found report info', $report);

return $report;
}

/**
* Generate Earning Reports for a Specific Freelancer's Company
*
* @param integer $freelancerCompanyReference Freelancer company reference
* @param array $params Parameters
* @return object
*/
public function getByFreelancersCompany($freelancerCompanyReference, $params)
{
ApiDebug::p(__FUNCTION__);

$report = $this->_client->get('/finreports/v2/provider_companies/' . $freelancerCompanyReference . '/earnings', $params);
ApiDebug::p('found report info', $report);

return $report;
}

/**
* Generate Earning Reports for a Specific Buyer's Team
*
Expand Down
11 changes: 0 additions & 11 deletions tests/Upwork/API/Routers/Reports/Finance/AccountsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ public function setUp()
parent::setUp();
}

/**
* @test
*/
public function testGetOwned()
{
$router = new \Upwork\API\Routers\Reports\Finance\Accounts($this->_client);
$response = $router->getOwned('12345', array());

$this->_checkResponse($response);
}

/**
* @test
*/
Expand Down
22 changes: 0 additions & 22 deletions tests/Upwork/API/Routers/Reports/Finance/BillingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@ public function testGetByFreelancer()
$this->_checkResponse($response);
}

/**
* @test
*/
public function testGetByFreelancersTeam()
{
$router = new \Upwork\API\Routers\Reports\Finance\Billings($this->_client);
$response = $router->getByFreelancersTeam('12345', array());

$this->_checkResponse($response);
}

/**
* @test
*/
public function testGetByFreelancersCompany()
{
$router = new \Upwork\API\Routers\Reports\Finance\Billings($this->_client);
$response = $router->getByFreelancersCompany('12345', array());

$this->_checkResponse($response);
}

/**
* @test
*/
Expand Down
22 changes: 0 additions & 22 deletions tests/Upwork/API/Routers/Reports/Finance/EarningsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@ public function testGetByFreelancer()
$this->_checkResponse($response);
}

/**
* @test
*/
public function testGetByFreelancersTeam()
{
$router = new \Upwork\API\Routers\Reports\Finance\Earnings($this->_client);
$response = $router->getByFreelancersTeam('12345', array());

$this->_checkResponse($response);
}

/**
* @test
*/
public function testGetByFreelancersCompany()
{
$router = new \Upwork\API\Routers\Reports\Finance\Earnings($this->_client);
$response = $router->getByFreelancersCompany('12345', array());

$this->_checkResponse($response);
}

/**
* @test
*/
Expand Down