Net::DRI::Data::Contact::NO - Handle .NO contact data for Net::DRI


This subclass of Net::DRI::Data::Contact adds accessors and validation for .NO specific data.


The following accessors/mutators can be called in chain, as they all return the object itself.


Mandatory, must be set for all contacts. Specify what type of contact to register. Value must be one of: 'person', 'organization' or 'role'.

Example: $co->type('organization')


Currently valid for type='organization' only. Must then be set to specify the organization number in Brønnøysund, the Norwegian Business Register.

Example: $co->identity({type=>'organizationNumber', value=>'987654321'});


Optional. Set a mobile phone number for the contact.

Example: $co->mobilephone('+47.123456780')


Optional. Set one or more organization-elements which specify organizations which the contact belongs to. The value should be the local contact id of an organization object.

This element can only be used for role and person contacts.



Optional. Set one or more roleContact-elements which specify persons which belongs to a role contact. The value should be the local contact id of a person object.

This element can only be used for role contacts.

Example: $co->rolecontact(['JD12P', 'JD13P']);


Optional. Set one or more email-elements which specify email addresses in addition to the mandatory email element in the standard contact create command.

Example: $co->xemail(['', '']);


Optional. A disclose-element which must contain the child element mobilePhone. This element notes the clients preference to allow or restrict disclosure of the mobile phone number. If not present, the servers stated data collection policy is used.

Example: $co->xdisclose({mobilePhone=>0});


For now, support questions should be sent to:


Please also see the SUPPORT file in the distribution.



Trond Haugen, <>.


Copyright (c) 2008 UNINETT Norid AS, <>, Trond Haugen <>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See the LICENSE file that comes with this distribution for more details.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 58:

Non-ASCII character seen before =encoding in 'Brønnøysund,'. Assuming ISO8859-1