Skip to content

Commit

Permalink
Merge pull request #330 from plivo/VT-6709
Browse files Browse the repository at this point in the history
verify caller id feature api changes
  • Loading branch information
abhishekGupta-Plivo authored Oct 19, 2023
2 parents 4f10a36 + 14b44de commit feab8d3
Show file tree
Hide file tree
Showing 13 changed files with 646 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log

## [4.58.0](https://github.com/plivo/plivo-php/tree/v4.58.0) (2023-10-18)
**Feature - Verify Caller Id API support**
-API support for verifying, updating, getting and deleting caller IDs.

## [4.57.1](https://github.com/plivo/plivo-php/tree/v4.57.1) (2023-10-18)
**Bug fix - Dial XML element**
- Fixed constructor method signature for Dial XML element
Expand Down
34 changes: 34 additions & 0 deletions src/Plivo/Resources/VerifyCallerId/InitiateVerifyResponse.php
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;
}


}
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;
}


}
80 changes: 80 additions & 0 deletions src/Plivo/Resources/VerifyCallerId/Verify.php
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 src/Plivo/Resources/VerifyCallerId/VerifyCallerIdResponse.php
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;
}

}
Loading

0 comments on commit feab8d3

Please sign in to comment.