-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from plivo/VT-6709
verify caller id feature api changes
- Loading branch information
Showing
13 changed files
with
646 additions
and
1 deletion.
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
34 changes: 34 additions & 0 deletions
34
src/Plivo/Resources/VerifyCallerId/InitiateVerifyResponse.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 Plivo\Resources\VerifyCallerId; | ||
|
||
use Plivo\Resources\ResponseUpdate; | ||
|
||
/** | ||
* Class InitiateVerifyResponse | ||
* @package Plivo\Resources\VerifyCallerId | ||
*/ | ||
|
||
class InitiateVerifyResponse extends ResponseUpdate{ | ||
|
||
protected $verificationUuid; | ||
|
||
/** | ||
* Verify constructor. | ||
* @param string verificationUuid | ||
*/ | ||
|
||
public function __construct($apiID, $message, $verificationUuid, $statusCode) | ||
{ | ||
parent::__construct($apiID, $message,$statusCode); | ||
|
||
$this->verificationUuid = $verificationUuid; | ||
} | ||
|
||
public function getVerificationUuid() | ||
{ | ||
return $this->verificationUuid; | ||
} | ||
|
||
|
||
} |
45 changes: 45 additions & 0 deletions
45
src/Plivo/Resources/VerifyCallerId/ListVerifiedCallerIdResponse.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,45 @@ | ||
<?php | ||
|
||
namespace Plivo\Resources\VerifyCallerId; | ||
|
||
use Plivo\Resources\ResponseUpdate; | ||
|
||
/** | ||
* Class ListVerifiedCallerIdResponse | ||
* @package Plivo\Resources\VerifyCallerId | ||
*/ | ||
|
||
class ListVerifiedCallerIdResponse extends ResponseUpdate{ | ||
|
||
protected $meta; | ||
|
||
protected $objects; | ||
|
||
/** | ||
* Verify constructor. | ||
* @param $apiID | ||
* @param $meta | ||
* @param $objects | ||
* @param $statusCode | ||
*/ | ||
|
||
public function __construct($apiID, $meta, $objects, $statusCode) | ||
{ | ||
parent::__construct($apiID, '',$statusCode); | ||
|
||
$this->meta = $meta; | ||
$this->objects = $objects; | ||
} | ||
|
||
public function getMeta() | ||
{ | ||
return $this->meta; | ||
} | ||
|
||
public function getObjects() | ||
{ | ||
return $this->objects; | ||
} | ||
|
||
|
||
} |
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,80 @@ | ||
<?php | ||
|
||
namespace Plivo\Resources\VerifyCallerId; | ||
|
||
use Plivo\Resources\ResponseUpdate; | ||
|
||
/** | ||
* Class Verify | ||
* @package Plivo\Resources\VerifyCallerId | ||
*/ | ||
|
||
class Verify extends ResponseUpdate{ | ||
|
||
protected $alias; | ||
protected $country; | ||
protected $createdAt; | ||
protected $modifiedAt; | ||
protected $phoneNumber; | ||
protected $subaccount; | ||
protected $verificationUuid; | ||
|
||
/** | ||
* Verify constructor. | ||
* @param string alias | ||
* @param string country | ||
* @param string createdAt | ||
* @param string modifiedAt | ||
* @param string phoneNumber | ||
* @param string subaccount | ||
* @param string verificationUuid | ||
*/ | ||
public function __construct($apiID, $alias, $country, $createdAt, $modifiedAt, $phoneNumber, $subaccount, $verificationUuid, $statusCode) | ||
{ | ||
parent::__construct($apiID, '',$statusCode); | ||
|
||
$this->alias = $alias; | ||
$this->country = $country; | ||
$this->createdAt = $createdAt; | ||
$this->modifiedAt = $modifiedAt; | ||
$this->phoneNumber = $phoneNumber; | ||
$this->subaccount = $subaccount; | ||
$this->verificationUuid = $verificationUuid; | ||
} | ||
|
||
public function getAlias(): string | ||
{ | ||
return $this->alias; | ||
} | ||
|
||
public function getCountry(): string | ||
{ | ||
return $this->country; | ||
} | ||
|
||
public function getCreatedAt(): string | ||
{ | ||
return $this->createdAt; | ||
} | ||
|
||
public function getModifiedAt(): string | ||
{ | ||
return $this->modifiedAt; | ||
} | ||
|
||
public function getPhoneNumber(): string | ||
{ | ||
return $this->phoneNumber; | ||
} | ||
|
||
public function getSubaccount(): string | ||
{ | ||
return $this->subaccount; | ||
} | ||
|
||
public function getVerificationUuid(): string | ||
{ | ||
return $this->verificationUuid; | ||
} | ||
|
||
} |
80 changes: 80 additions & 0 deletions
80
src/Plivo/Resources/VerifyCallerId/VerifyCallerIdResponse.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,80 @@ | ||
<?php | ||
|
||
namespace Plivo\Resources\VerifyCallerId; | ||
|
||
use Plivo\Resources\ResponseUpdate; | ||
|
||
/** | ||
* Class VerifyCallerIdResponse | ||
* @package Plivo\Resources\VerifyCallerId | ||
*/ | ||
|
||
class VerifyCallerIdResponse extends ResponseUpdate{ | ||
|
||
protected $alias; | ||
protected $channel; | ||
protected $country; | ||
protected $createdAt; | ||
protected $phoneNumber; | ||
protected $subaccount; | ||
protected $verificationUuid; | ||
|
||
/** | ||
* Verify constructor. | ||
* @param string alias | ||
* @param string channel | ||
* @param string country | ||
* @param string createdAt | ||
* @param string phoneNumber | ||
* @param string subaccount | ||
* @param string verificationUuid | ||
*/ | ||
public function __construct($apiID, $alias, $channel, $country, $createdAt, $phoneNumber, $subaccount, $verificationUuid, $statusCode) | ||
{ | ||
parent::__construct($apiID, '',$statusCode); | ||
|
||
$this->alias = $alias; | ||
$this->channel = $channel; | ||
$this->country = $country; | ||
$this->createdAt = $createdAt; | ||
$this->phoneNumber = $phoneNumber; | ||
$this->subaccount = $subaccount; | ||
$this->verificationUuid = $verificationUuid; | ||
} | ||
|
||
public function getAlias(): string | ||
{ | ||
return $this->alias; | ||
} | ||
|
||
public function getChannel(): string | ||
{ | ||
return $this->channel; | ||
} | ||
|
||
public function getCountry(): string | ||
{ | ||
return $this->country; | ||
} | ||
|
||
public function getCreatedAt(): string | ||
{ | ||
return $this->createdAt; | ||
} | ||
|
||
public function getPhoneNumber(): string | ||
{ | ||
return $this->phoneNumber; | ||
} | ||
|
||
public function getSubaccount(): string | ||
{ | ||
return $this->subaccount; | ||
} | ||
|
||
public function getVerificationUuid(): string | ||
{ | ||
return $this->verificationUuid; | ||
} | ||
|
||
} |
Oops, something went wrong.