-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/ToolboxClient/Directories/Financieel/FinancieelDirectory.php
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,14 @@ | ||
<?php | ||
|
||
namespace Koba\ToolboxClient\Directories\Financieel; | ||
|
||
use Koba\ToolboxClient\Directories\Financieel\GetOverTeZetten\GetOverteZettenCall; | ||
use Koba\ToolboxClient\Directory\Directory; | ||
|
||
class FinancieelDirectory extends Directory | ||
{ | ||
public function getOverTeZetten(): GetOverteZettenCall | ||
{ | ||
return GetOverteZettenCall::make($this); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
src/ToolboxClient/Directories/Financieel/GetOverTeZetten/GetOverteZettenCall.php
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,34 @@ | ||
<?php | ||
|
||
namespace Koba\ToolboxClient\Directories\Financieel\GetOverTeZetten; | ||
|
||
use Koba\ToolboxClient\Call\AbstractCall; | ||
use Koba\ToolboxClient\Call\ResponseProcessor; | ||
use Koba\ToolboxClient\Directories\Financieel\FinancieelDirectory; | ||
use Koba\ToolboxClient\Request\HttpMethod; | ||
|
||
class GetOverteZettenCall extends AbstractCall | ||
{ | ||
public static function make(FinancieelDirectory $directory): self | ||
{ | ||
return new self($directory); | ||
} | ||
|
||
protected function getMethod(): HttpMethod | ||
{ | ||
return HttpMethod::GET; | ||
} | ||
|
||
protected function getEndpoint(): string | ||
{ | ||
return "v1/financieel/overtezetten"; | ||
} | ||
|
||
public function send(): OverTeZettenResponse | ||
{ | ||
return ResponseProcessor::mapClass( | ||
$this->performRequest(), | ||
OverTeZettenResponse::class | ||
); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/ToolboxClient/Directories/Financieel/GetOverTeZetten/OverTeZettenResponse.php
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,13 @@ | ||
<?php | ||
|
||
namespace Koba\ToolboxClient\Directories\Financieel\GetOverTeZetten; | ||
|
||
class OverTeZettenResponse | ||
{ | ||
public int $aantal_leerlingenrekeningen; | ||
public int $aantal_personeelsrekeningen; | ||
public int $aantal_webshopbestellingen; | ||
public int $aantal_kasverrichtingen; | ||
public int $aantal_dienstverplaatsingen; | ||
public int $aantal_terugbetalingen; | ||
} |
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