-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reason code mandatory due to German law (#21)
* Adding report custom data service to get special values needed to retrieve a report in a specific territory. Merging extra parameters into company get request * Adding report custom data service to get special values needed to retrieve a report in a specific territory. Merging extra parameters into company get request --------- Co-authored-by: Daan Geurts-Doorenbos <[email protected]>
- Loading branch information
1 parent
65a29f1
commit c410688
Showing
4 changed files
with
86 additions
and
30 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
<?php | ||
|
||
namespace SynergiTech\Creditsafe\Service; | ||
|
||
class ReportCustomDataService | ||
{ | ||
protected $client; | ||
|
||
public function __construct($client) | ||
{ | ||
$this->client = $client; | ||
} | ||
|
||
/** | ||
* @param string $countryCode An ISO/Alpha-2 country code to display any special mandatory parameters | ||
* when ordering a Credit Report in that territory. | ||
* @return mixed | ||
*/ | ||
public function get(string $countryCode) | ||
{ | ||
return $this->client->get('reportcustomdata/' . $countryCode); | ||
} | ||
} |