Net::DRI::Data::Contact::NO(3pm)

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

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

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

  type()
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')

  identity()
Currently valid for type='organization' only. Must then be set to specify the organization number in Bronnoysund, the Norwegian Business Register.

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

  mobilephone()
Optional. Set a mobile phone number for the contact.

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

  organization()
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.

$co->organization('EFA12O');

  rolecontact()
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']);

  xemail()
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(['xtra1@example.no', 'xtra2@example.no']);

  xdisclose()
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});

  facets() Facets are some special control attributes that can be used to implement a super registrar (admin registrar).
A super registrar can suppress certain checks and perform actions on behalf of a normal registrar.

Facets are key/values pairs. Net::DRI will not try to enforce what key/value pairs that are possible, but let the registry decide their validity.

Example: $co->facets( { 'skip-manual-review' => 1, 'ignores-exceptions' => 'reg123'} );

SUPPORT
For now, support questions should be sent to:

<netdri@dotandco.com>

Please also see the SUPPORT file in the distribution.

SEE ALSO
http://www.dotandco.com/services/software/Net-DRI/

AUTHOR
Trond Haugen, <info@norid.no>.

COPYRIGHT
Copyright (c) 2008-2010 UNINETT Norid AS, <http://www.norid.no>, Trond Haugen <info@norid.no>. 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.