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
1 parent
40e512f
commit 30472ef
Showing
8 changed files
with
208 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<?php | ||
/** | ||
* This source file is proprietary and part of Rebilly. | ||
* | ||
* (c) Rebilly SRL | ||
* Rebilly Ltd. | ||
* Rebilly Inc. | ||
* | ||
* @see https://www.rebilly.com | ||
*/ | ||
|
||
namespace Rebilly\Entities; | ||
|
||
use Rebilly\Rest\Entity; | ||
|
||
final class ExperianCredential extends Entity | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function getId() | ||
{ | ||
return $this->getHash(); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getHash() | ||
{ | ||
return $this->getAttribute('hash'); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus() | ||
{ | ||
return $this->getAttribute('status'); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setStatus($value) | ||
{ | ||
return $this->setAttribute('status', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getUsername() | ||
{ | ||
return $this->getAttribute('username'); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setUsername($value) | ||
{ | ||
return $this->setAttribute('username', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPassword() | ||
{ | ||
return $this->getAttribute('password'); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setPassword($value) | ||
{ | ||
return $this->setAttribute('password', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getHmacKey() | ||
{ | ||
return $this->getAttribute('hmacKey'); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setHmacKey($value) | ||
{ | ||
return $this->setAttribute('hmacKey', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getPublicKey() | ||
{ | ||
return $this->getAttribute('publicKey'); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setPublicKey($value) | ||
{ | ||
return $this->setAttribute('publicKey', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDeactivationTime() | ||
{ | ||
return $this->getAttribute('deactivationTime'); | ||
} | ||
} |
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,59 @@ | ||
<?php | ||
/** | ||
* This source file is proprietary and part of Rebilly. | ||
* | ||
* (c) Rebilly SRL | ||
* Rebilly Ltd. | ||
* Rebilly Inc. | ||
* | ||
* @see https://www.rebilly.com | ||
*/ | ||
|
||
namespace Rebilly\Services; | ||
|
||
use JsonSerializable; | ||
use Rebilly\Entities\ExperianCredential; | ||
use Rebilly\Rest\Collection; | ||
use Rebilly\Rest\Service; | ||
|
||
final class ExperianCredentialsService extends Service | ||
{ | ||
/** | ||
* @return ExperianCredential[]|Collection | ||
*/ | ||
public function search() | ||
{ | ||
return $this->client()->get('credential-hashes/experian'); | ||
} | ||
|
||
/** | ||
* @param array|JsonSerializable|ExperianCredential $data | ||
* | ||
* @return ExperianCredential | ||
*/ | ||
public function create($data) | ||
{ | ||
return $this->client()->post($data, 'credential-hashes/experian'); | ||
} | ||
|
||
/** | ||
* @param string $hash | ||
* | ||
* @return ExperianCredential | ||
*/ | ||
public function load($hash) | ||
{ | ||
return $this->client()->get('credential-hashes/experian/{hash}', ['hash' => $hash]); | ||
} | ||
|
||
/** | ||
* @param string $hash | ||
* @param array|JsonSerializable|ExperianCredential $data | ||
* | ||
* @return ExperianCredential | ||
*/ | ||
public function patch($hash, $data) | ||
{ | ||
return $this->client()->patch($data, 'credential-hashes/experian/{hash}', ['hash' => $hash]); | ||
} | ||
} |
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