adding export to read mailbox status information, RT#15987
[freeside.git] / FS / FS / part_export / domreg_opensrs.pm
index 6728e8c..0c7a95d 100644 (file)
@@ -73,6 +73,9 @@ tie %options, 'Tie::IxHash',
                       size => scalar(@tldlist),
                       options => [ @tldlist ],
                      default => 'com net org' },
+  'auoptions'    => { label => 'Enable AU-specific registration fields', 
+                     type => 'checkbox'
+                   },
 ;
 
 %info = (
@@ -396,6 +399,11 @@ sub register {
 
   my $c = gen_contact_info($cust_main);
 
+  if ( $svc_domain->domain =~ /\.au$/ ) {
+       $c->{'registrant_name'} = $svc_domain->au_registrant_name;
+       $c->{'eligibility_type'} = $svc_domain->au_eligibility_type;
+  }
+
   $err = validate_contact_info($c);
   return $err if $err;