3.1.2 - 2020-04-10
- Fixed serialization error when setting a property to NULL when the property's type is abstract.
3.1.1 - 2019-07-24
- Fixed login when targeting R22.
3.1.0 - 2019-04-06
- Additional validation checks for fields
LengthException
is thrown when a field's fixed length restriction is not met.MinLengthException
is thrown when a field's minimum length restriction is not met.MaxLengthException
is thrown when a field's maximum length restriction is not met.MinInclusiveException
is thrown when field's value is set below an allowed range.MaxInclusiveException
is thrown when field's value is set above an allowed range.PatternException
is thrown when a field's value doesn't match a required pattern.
3.0.4 - 2019-03-03
- Fixed issue where the
Validator
was treating array fields as being set when they were empty.
3.0.3 - 2019-02-23
- Fixed issue where
ChoiceNotSetException
was being thrown when all members are optional and none are set.
3.0.2 - 2019-02-03
- Fixed missing & incorrect return types on traits
- Restored request types that were removed from latest XSD files
3.0.1 - 2019-01-14
- Setters for nillable types now have a default value of NULL to fix an issue with passing NULL to a type-hinted setter.
- Fixed some class names on helper methods' @return annotations.
3.0.0 - 2019-01-13
ValidationException
is now thrown if a request does not meet requirements. This has child exceptions that are thrown for each case:FieldNotSetException
is thrown when a required field is not set.ChoiceNotSetException
is thrown when no fields have been set that are part of a choice.InvalidChoiceException
is thrown when multiple fields in a choice have been set instead of just one.
- Enumerated Types are now represented by a class (utilizing php-enum) instead of just being a string.
- Fields set to
NULL
no longer are omitted from the generated XML. Instead, they are set as anil
value in the XML. - Unsetters have been added for each field. If you wish to unset a field after calling it's setter, use its corresponding unsetter.
- Models have been rebuilt off of
Rel_23.0_1.1075
XSD files to target BroadWorks Release 23.
2.2.2 - 2018-12-27
- Nillable properties on response objects were incorrectly getting set to an instance of Nil when they shouldn't have been.
2.2.1 - 2018-12-19
TcpTransport
was not sending requests to the server after connecting.
2.2.0 - 2018-12-15
- SSL support for TCP connections.
2.1.2 - 2018-11-22
- Chance of
BadResponseException
being thrown randomly when using TCP due to not accounting for the newline that follows a response.
2.1.1 - 2018-11-12
- composer.json now suggest soap & socket extensions instead of requiring them. You need at least one.
2.1.0 - 2018-11-04
Nil
class added. Fields that are nillable can have their value set as an instance ofNil
.Options
class added as the 4th argument forOcipClient
's constructor. ThisOptions
class has two setters:setServerVersion
sets the BroadWorks server version. Options areOptions::VERSION_14SP4
(default) orOptions::VERSION_22
. This impacts the information set on theUserDetails
object (see below).setSoapClientOptions
sets the$options
argument ofSoapClient
if using SOAP.
OcipClient::login
now returns aUserDetails
object containing information about the logged in user.OcipClient::getUserDetails
returns the same object. If using BW release 22, make sure you setOptions::setServerVersion
toOptions::VERSION_22
to include reseller details.XmlException
exception that can be thrown during serialization or deserialization of XML.
2.0.3 - 2018-11-03
ErrorResponseException
was being thrown during login failure instead ofLoginException
.
2.0.2 - 2018-10-07
- Fixed object serialization so it casts values to the their appropriate type.
2.0.1 - 2018-09-20
- Fixed issue with abstract classes not including an xsi:type attribute when converted to XML.
- Fixed issue with XML generation on some versions of PHP not properly setting text elements.
2.0.0 - 2018-07-22
- Instances of
ErrorResponse
are no longer returned by request calls. If the server returns anErrorResponse
, an instance ofErrorResponseException
is now thrown.
1.1.0 - 2018-07-03
- Fixed mistakes in comments and phpdoc annotations caused by errors in source XSD files.
OcipClient
now exposes helper methods for every request object.