Phone Objects

A Phone number for validation.

Container for Phone numbers.

Request wrapper for phone REST methods.

Response wrapper for phone REST methods.

A Phone number object containing the results of the validation.

Phone

The Phone structure is used to supply mobile phone numbers for validation.

fullPhone

Type: String. The mobile phone number with optional country code (e.g. '+61412345678').

country

Type: String. The two-character country code to be used for the validation (e.g. 'AU').

JSON Representation

    {
        "fullPhone": "+61412345678",
        "country": "AU"
    }
    

PhoneList

An array or list of Phone structures.

JSON Representation

PhoneRestRequest

An PhoneRestRequest object is used when invoking the Harmony RightAddress phone validation REST service methods.

payload

Type: PhoneList The list of Phone structures being passed to the REST service method.

JSON Representation

PhoneRestResponse

An PhoneRestResponse object is returned from the Harmony RightAddress phone validation REST service methods.

payload

Type: PhoneList The list of Phone structures being returned from the REST service method.

status

Type: String. The status of the request (i.e. 'SUCCESS' or 'ERROR').

messages

Type: String[]. Any error messages generated during the REST service method invocation (e.g. '[ "Access is denied" ]')

JSON Representation

ValidatedPhone <<extends>> Phone

A ValidatedPhone object extends a standard Phone object and is returned in the validate method response.

See Phone for inherited attributes.

countryCode

Type: String. Any country code associated with the supplied phone number (e.g. '+61').

areaCode

Type: String. Any area code associated with the supplied (non-mobile) phone number (e.g. '02').

localNumber

Type: String. The local part of the supplied number (e.g. '12345678')

operatorName

Type: String. The mobile operator associated with the supplied number (e.g. 'Vodafone Australia')

phoneStatus

Type: String. The current status of the mobile phone with the supplied number (e.g. 'connected|Network confirmed connection', 'disconnected|Network confirmed disconnection', 'indeterminate').

exception

Type: String. An exception message outlining the errors that occurred during validation for the phone numbers with 'indeterminate' phone status. (e.g. 'Number prefix missing', 'Network is forbidden', 'Invalid destination address.').

JSON Representation

Last updated