Skip to content

Commit

Permalink
22: Adds getTenantId method to XeroClientInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
mradcliffe committed Jun 19, 2024
1 parent 6e48e75 commit f4b1538
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/XeroClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ public function getRefreshedToken(): ?AccessTokenInterface
}

/**
* The tenant guids accessible by this client.
*
* This will make a request if tenant ids is empty.
*
* @return string[]
* {@inheritdoc}
*/
public function getTenantIds(): array
{
Expand Down
7 changes: 7 additions & 0 deletions src/XeroClientInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,11 @@ public function post(string|UriInterface $uri = '', array $options = []): Respon
* @deprecated in 0.5.0 and removed in 0.6.0. Use the request method.
*/
public function put(string|UriInterface $uri = '', array $options = []): ResponseInterface;

/**
* The tenant guids accessible by this client.
*
* @return string[]
*/
public function getTenantIds(): array;
}

0 comments on commit f4b1538

Please sign in to comment.