Skip to content

Commit f824c7c

Browse files
authored
Merge pull request Bandwidth#36 from Bandwidth/DX-463
Fixing incompatibility with current Dashboard API create site
2 parents 36aca66 + 08510f3 commit f824c7c

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

README.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@ PHP Client library for Bandwidth's Phone Number Dashboard (AKA: Dashboard, Iris)
22
=========================================================
33
[![Build Status](https://travis-ci.org/Bandwidth/php-bandwidth-iris.svg?branch=master)](https://travis-ci.org/Bandwidth/php-bandwidth-iris)
44

5-
NOTE: This package is not compatible with PHP versions >= 7.2
5+
## Release Notes
6+
7+
| Version | Notes |
8+
|:---|:---|
9+
| 2.0.0 | Fixed incompatibilities with Bandwidth's Dashboard API Create Site function that required breaking changes. Versions less than 2.0.0 are not guaranteed to work with Bandwidth's Dashboard API. |
10+
11+
## Supported PHP Versions
12+
13+
| Version | Support Level |
14+
|:-------------------------------|:-------------------------|
15+
| 5.5 | Supported |
16+
| 5.6 | Supported |
17+
| 7.0 | Supported |
18+
| 7.1 | Supported |
19+
| 7.2 | Supported |
20+
| 7.3 | Supported |
621

722
## Install
823

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Bandwidth's Iris SDK for PHP",
55
"keywords": ["iris","sdk","php"],
66
"homepage": "http://dev.bandwidth.com",
7-
"reference": "v1.3.1",
7+
"reference": "v2.0.0",
88
"license": "MIT",
99
"authors": [
1010
],

src/AddressModel.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Address {
2121
"City" => array("type" => "string", "required" => true),
2222
"HouseNumber" => array("type" => "string", "required" => true),
2323
"StreetName" => array("type" => "string", "required" => true),
24-
"StateCode" => array("type" => "string", "required" => true)
24+
"StateCode" => array("type" => "string", "required" => true),
25+
"Zip" => array("type" => "string", "required" => true)
2526
);
2627

2728
public function __construct($data) {

tests/SiteTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ public function testSiteCreate() {
4141
"AddressType" => "Service",
4242
"HouseNumber" => "1",
4343
"StreetName" => "Avenue",
44-
"StateCode" => "NC"
44+
"StateCode" => "NC",
45+
"Zip" => "28591"
4546
)));
4647

4748
$this->assertEquals("2489", $site->Id);

0 commit comments

Comments
 (0)