-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MFA error update and message priority (#20)
* New deploy * Update APIController.php Co-authored-by: jmulford-bw <[email protected]>
- Loading branch information
1 parent
4329b75
commit d68569d
Showing
9 changed files
with
216 additions
and
21 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,25 @@ | ||
<?php | ||
/* | ||
* BandwidthLib | ||
* | ||
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). | ||
*/ | ||
|
||
namespace BandwidthLib\Messaging\Models; | ||
|
||
/** | ||
* The message's priority, currently for toll-free or short code SMS only. Messages with a priority | ||
* value of `"high"` are given preference over your other traffic. | ||
*/ | ||
class PriorityEnum | ||
{ | ||
/** | ||
* TODO: Write general description for this element | ||
*/ | ||
const DEFAULT_ = "default"; | ||
|
||
/** | ||
* TODO: Write general description for this element | ||
*/ | ||
const HIGH = "high"; | ||
} |
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
44 changes: 44 additions & 0 deletions
44
src/TwoFactorAuth/Exceptions/ErrorWithRequestException.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,44 @@ | ||
<?php | ||
/* | ||
* BandwidthLib | ||
* | ||
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). | ||
*/ | ||
|
||
namespace BandwidthLib\TwoFactorAuth\Exceptions; | ||
|
||
use BandwidthLib\APIHelper; | ||
|
||
/** | ||
* @todo Write general description for this model | ||
*/ | ||
class ErrorWithRequestException extends \BandwidthLib\APIException | ||
{ | ||
/** | ||
* An error message pertaining to what the issue could be | ||
* @var string|null $error public property | ||
*/ | ||
public $error; | ||
|
||
/** | ||
* The associated requestId from AWS | ||
* @var string|null $requestId public property | ||
*/ | ||
public $requestId; | ||
|
||
/** | ||
* Constructor to set initial or default values of member properties | ||
*/ | ||
public function __construct($reason, $context) | ||
{ | ||
parent::__construct($reason, $context); | ||
} | ||
|
||
/** | ||
* Unbox response into this exception class | ||
*/ | ||
public function unbox() | ||
{ | ||
APIHelper::deserialize(self::getResponseBody(), $this, false); | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/TwoFactorAuth/Exceptions/ForbiddenRequestException.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,39 @@ | ||
<?php | ||
/* | ||
* BandwidthLib | ||
* | ||
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). | ||
*/ | ||
|
||
namespace BandwidthLib\TwoFactorAuth\Exceptions; | ||
|
||
use BandwidthLib\APIHelper; | ||
|
||
/** | ||
* @todo Write general description for this model | ||
*/ | ||
class ForbiddenRequestException extends \BandwidthLib\APIException | ||
{ | ||
/** | ||
* The message containing the reason behind the request being forbidden | ||
* @maps Message | ||
* @var string|null $message public property | ||
*/ | ||
public $message; | ||
|
||
/** | ||
* Constructor to set initial or default values of member properties | ||
*/ | ||
public function __construct($reason, $context) | ||
{ | ||
parent::__construct($reason, $context); | ||
} | ||
|
||
/** | ||
* Unbox response into this exception class | ||
*/ | ||
public function unbox() | ||
{ | ||
APIHelper::deserialize(self::getResponseBody(), $this, false); | ||
} | ||
} |
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