Skip to content

Commit 6f3d5df

Browse files
Voice, MFA, and messaging class/method/signature renames (breaking changes) (#31)
* New deploy * Re-added tests * updated integration tests for breaking changes * updated method name Co-authored-by: jmulford-bw <[email protected]>
1 parent 191de97 commit 6f3d5df

File tree

89 files changed

+534
-860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+534
-860
lines changed

.gitkeep

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
README.md
22
src/Voice/Bxml/*
33
src/WebRtc/Utils/*
4+
tests/*

src/APIException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib;

src/APIHelper.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib;

src/BandwidthClient.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib;
@@ -21,7 +21,7 @@ public function __construct($config)
2121
}
2222

2323
private $messaging;
24-
private $twoFactorAuth;
24+
private $multiFactorAuth;
2525
private $phoneNumberLookup;
2626
private $voice;
2727
private $webRtc;
@@ -39,15 +39,15 @@ public function getMessaging()
3939
}
4040

4141
/**
42-
* Provides access to TwoFactorAuth client
43-
* @return TwoFactorAuth\TwoFactorAuthClient
42+
* Provides access to MultiFactorAuth client
43+
* @return MultiFactorAuth\MultiFactorAuthClient
4444
*/
45-
public function getTwoFactorAuth()
45+
public function getMultiFactorAuth()
4646
{
47-
if ($this->twoFactorAuth == null) {
48-
$this->twoFactorAuth = new TwoFactorAuth\TwoFactorAuthClient($this->config);
47+
if ($this->multiFactorAuth == null) {
48+
$this->multiFactorAuth = new MultiFactorAuth\MultiFactorAuthClient($this->config);
4949
}
50-
return $this->twoFactorAuth;
50+
return $this->multiFactorAuth;
5151
}
5252

5353
/**

src/Configuration.php

+19-19
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib;
@@ -35,13 +35,13 @@ class Configuration
3535
* The username to use with basic authentication
3636
* @var string
3737
*/
38-
private $twoFactorAuthBasicAuthUserName = 'TODO: Replace';
38+
private $multiFactorAuthBasicAuthUserName = 'TODO: Replace';
3939

4040
/**
4141
* The password to use with basic authentication
4242
* @var string
4343
*/
44-
private $twoFactorAuthBasicAuthPassword = 'TODO: Replace';
44+
private $multiFactorAuthBasicAuthPassword = 'TODO: Replace';
4545

4646
/**
4747
* The username to use with basic authentication
@@ -102,11 +102,11 @@ public function __construct($configOptions = null)
102102
if (isset($configOptions['messagingBasicAuthPassword'])) {
103103
$this->messagingBasicAuthPassword = $configOptions['messagingBasicAuthPassword'];
104104
}
105-
if (isset($configOptions['twoFactorAuthBasicAuthUserName'])) {
106-
$this->twoFactorAuthBasicAuthUserName = $configOptions['twoFactorAuthBasicAuthUserName'];
105+
if (isset($configOptions['multiFactorAuthBasicAuthUserName'])) {
106+
$this->multiFactorAuthBasicAuthUserName = $configOptions['multiFactorAuthBasicAuthUserName'];
107107
}
108-
if (isset($configOptions['twoFactorAuthBasicAuthPassword'])) {
109-
$this->twoFactorAuthBasicAuthPassword = $configOptions['twoFactorAuthBasicAuthPassword'];
108+
if (isset($configOptions['multiFactorAuthBasicAuthPassword'])) {
109+
$this->multiFactorAuthBasicAuthPassword = $configOptions['multiFactorAuthBasicAuthPassword'];
110110
}
111111
if (isset($configOptions['phoneNumberLookupBasicAuthUserName'])) {
112112
$this->phoneNumberLookupBasicAuthUserName = $configOptions['phoneNumberLookupBasicAuthUserName'];
@@ -147,11 +147,11 @@ public function getConfigurationMap()
147147
if (isset($this->messagingBasicAuthPassword)) {
148148
$configMap['messagingBasicAuthPassword'] = $this->messagingBasicAuthPassword;
149149
}
150-
if (isset($this->twoFactorAuthBasicAuthUserName)) {
151-
$configMap['twoFactorAuthBasicAuthUserName'] = $this->twoFactorAuthBasicAuthUserName;
150+
if (isset($this->multiFactorAuthBasicAuthUserName)) {
151+
$configMap['multiFactorAuthBasicAuthUserName'] = $this->multiFactorAuthBasicAuthUserName;
152152
}
153-
if (isset($this->twoFactorAuthBasicAuthPassword)) {
154-
$configMap['twoFactorAuthBasicAuthPassword'] = $this->twoFactorAuthBasicAuthPassword;
153+
if (isset($this->multiFactorAuthBasicAuthPassword)) {
154+
$configMap['multiFactorAuthBasicAuthPassword'] = $this->multiFactorAuthBasicAuthPassword;
155155
}
156156
if (isset($this->phoneNumberLookupBasicAuthUserName)) {
157157
$configMap['phoneNumberLookupBasicAuthUserName'] = $this->phoneNumberLookupBasicAuthUserName;
@@ -199,16 +199,16 @@ public function getMessagingBasicAuthPassword()
199199
return $this->messagingBasicAuthPassword;
200200
}
201201

202-
// Getter for twoFactorAuthBasicAuthUserName
203-
public function getTwoFactorAuthBasicAuthUserName()
202+
// Getter for multiFactorAuthBasicAuthUserName
203+
public function getMultiFactorAuthBasicAuthUserName()
204204
{
205-
return $this->twoFactorAuthBasicAuthUserName;
205+
return $this->multiFactorAuthBasicAuthUserName;
206206
}
207207

208-
// Getter for twoFactorAuthBasicAuthPassword
209-
public function getTwoFactorAuthBasicAuthPassword()
208+
// Getter for multiFactorAuthBasicAuthPassword
209+
public function getMultiFactorAuthBasicAuthPassword()
210210
{
211-
return $this->twoFactorAuthBasicAuthPassword;
211+
return $this->multiFactorAuthBasicAuthPassword;
212212
}
213213

214214
// Getter for phoneNumberLookupBasicAuthUserName
@@ -283,15 +283,15 @@ public function getBaseUri($server = Servers::DEFAULT_)
283283
Environments::PRODUCTION => array(
284284
Servers::DEFAULT_ => 'api.bandwidth.com',
285285
Servers::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
286-
Servers::TWOFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
286+
Servers::MULTIFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
287287
Servers::PHONENUMBERLOOKUPDEFAULT => 'https://numbers.bandwidth.com/api/v1',
288288
Servers::VOICEDEFAULT => 'https://voice.bandwidth.com',
289289
Servers::WEBRTCDEFAULT => 'https://api.webrtc.bandwidth.com/v1',
290290
),
291291
Environments::CUSTOM => array(
292292
Servers::DEFAULT_ => '{base_url}',
293293
Servers::MESSAGINGDEFAULT => '{base_url}',
294-
Servers::TWOFACTORAUTHDEFAULT => '{base_url}',
294+
Servers::MULTIFACTORAUTHDEFAULT => '{base_url}',
295295
Servers::PHONENUMBERLOOKUPDEFAULT => '{base_url}',
296296
Servers::VOICEDEFAULT => '{base_url}',
297297
Servers::WEBRTCDEFAULT => '{base_url}',

src/Controllers/BaseController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Controllers;

src/Environments.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib;

src/Http/ApiResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

src/Http/HttpCallBack.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

src/Http/HttpContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

src/Http/HttpMethod.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

src/Http/HttpRequest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

src/Http/HttpResponse.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
* BandwidthLib
44
*
5-
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
5+
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
66
*/
77

88
namespace BandwidthLib\Http;

0 commit comments

Comments
 (0)