| 1 | package WWW::eNom::IRTPDetail; | ||||||||||
| 2 | |||||||||||
| 3 | 50 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 50 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 50 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 50 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 50 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 50 | ▶ | use WWW::eNom::Types qw( Bool ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 50 | our $VERSION = 'v2.6.0'; # VERSION | |||||||||
| 13 | # ABSTRACT: Representation of IRTP Detail | ||||||||||
| 14 | |||||||||||
| 15 | 50 | has 'is_transfer_locked' => ( | |||||||||
| 16 | is => 'ro', | ||||||||||
| 17 | isa => Bool, | ||||||||||
| 18 | required => 1, | ||||||||||
| 19 | ); | ||||||||||
| 20 | |||||||||||
| 21 | sub construct_from_response { | ||||||||||
| 22 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
construct_from_response: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 23 | 0 | my $response = shift; | |||||||||
| 24 | |||||||||||
| 25 | 0 | ▶ | (!$response ) and return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | |||||||||||
| 27 | return $self->new( | ||||||||||
| 28 | 0 | is_transfer_locked => $response->{transferlock} eq 'True', | |||||||||
| 29 | ); | ||||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 50 | __PACKAGE__->meta->make_immutable; | |||||||||
| 33 | 50 | 1; | |||||||||
| 34 | |||||||||||
| 35 | __END__ | ||||||||||
| 36 | |||||||||||
| 37 | =pod | ||||||||||
| 38 | |||||||||||
| 39 | =head1 NAME | ||||||||||
| 40 | |||||||||||
| 41 | WWW::eNom::IRTPDetail - Representation of IRTP Detail | ||||||||||
| 42 | |||||||||||
| 43 | =head1 SYNOPSIS | ||||||||||
| 44 | |||||||||||
| 45 | use WWW::eNom; | ||||||||||
| 46 | use WWW::eNom::IRTPDetail; | ||||||||||
| 47 | |||||||||||
| 48 | my $api = WWW::eNom->new( ... ); | ||||||||||
| 49 | my $domain_info_response = $api->submit({ | ||||||||||
| 50 | method => 'GetDomainInfo', | ||||||||||
| 51 | params => { | ||||||||||
| 52 | Domain => 'drzigman.com', | ||||||||||
| 53 | } | ||||||||||
| 54 | }); | ||||||||||
| 55 | |||||||||||
| 56 | my $irtp_detail = WWW::eNom::IRTPDetail->construct_from_response( | ||||||||||
| 57 | $domain_info_response->{GetDomainInfo}{services}{entry}{irtpsettings}{irtpsetting} | ||||||||||
| 58 | ); | ||||||||||
| 59 | |||||||||||
| 60 | =head1 DESCRIPTION | ||||||||||
| 61 | |||||||||||
| 62 | On 2016-12-01, a new L<ICANN Inter Registrar Transfer Policy|https://www.icann.org/resources/pages/transfer-policy-2016-06-01-en> went into effect. This policy requires any material change to the registrant contact ( the name, email address, that sort of thing ), to be confirmed by both the old registrant and the new registrant. This object exists to contain all the relevant data of an in progress IRTP Verification. | ||||||||||
| 63 | |||||||||||
| 64 | B<NOTE> eNom is acting as a Designated Agent for all of its resellers' resold domains. A Designated Agent is defined as L<(taken from Section II Subsection A, Sub Title 1, Point 1.2 )|https://www.icann.org/resources/pages/transfer-policy-2016-06-01-en)>: | ||||||||||
| 65 | |||||||||||
| 66 | "1.2 'Designated Agent' means an individual or entity that the Prior Registrant or New Registrant explicitly authorizes to approve a Change of Registrant on its behalf." | ||||||||||
| 67 | |||||||||||
| 68 | For consumers this means that the losing registrant ( the old registrant contact ) and the gaining registrant ( the new registrant contact ) B<NEED NOT CONFIRM> the change. Instead eNom does it on behalf of the registrant contacts in near real time, there is a few seconds of delay before the new contacts are used. | ||||||||||
| 69 | |||||||||||
| 70 | Really, the only reason this object exists is so that you can get back if the customer opted out of a transfer lock or not. | ||||||||||
| 71 | |||||||||||
| 72 | =head1 ATTRIBUTES | ||||||||||
| 73 | |||||||||||
| 74 | =head2 B<is_transfer_locked> | ||||||||||
| 75 | |||||||||||
| 76 | Boolean indicating if the domain will have a 60 day transfer lock imposed upon it after the registrant contact is updated. Consumers must specify is_transfer_lock in the call to L<update_contacts_for_domain_name|WWW::eNom::Role::Command::Contact/update_contacts_for_domain_name>. | ||||||||||
| 77 | |||||||||||
| 78 | =head1 METHODS | ||||||||||
| 79 | |||||||||||
| 80 | =head2 construct_from_response | ||||||||||
| 81 | |||||||||||
| 82 | my $api = WWW::eNom->new( ... ); | ||||||||||
| 83 | my $domain_info_response = $api->submit({ | ||||||||||
| 84 | method => 'GetDomainInfo', | ||||||||||
| 85 | params => { | ||||||||||
| 86 | Domain => 'drzigman.com', | ||||||||||
| 87 | } | ||||||||||
| 88 | }); | ||||||||||
| 89 | |||||||||||
| 90 | my $irtp_detail = WWW::eNom::IRTPDetail->construct_from_response( | ||||||||||
| 91 | $domain_info_response->{GetDomainInfo}{services}{entry}{irtpsettings}{irtpsetting} | ||||||||||
| 92 | ); | ||||||||||
| 93 | |||||||||||
| 94 | Constructs an instance of L<WWW::eNom::IRTPDetail> from the irtpsettings details of L<eNom's|http://www.enom.com> API L<GetDomainInfo|https://www.enom.com/api/API%20topics/api_GetDomainInfo.htm> response. There really is not ever a reason for a consumer to call this method directly. | ||||||||||
| 95 | |||||||||||
| 96 | =cut | ||||||||||