summaryrefslogtreecommitdiff
path: root/FS/FS/svc_domain.pm
diff options
context:
space:
mode:
authorlevinse <levinse>2011-01-19 21:50:02 +0000
committerlevinse <levinse>2011-01-19 21:50:02 +0000
commita436d84c61434204c3e557c7d9433225de32a412 (patch)
tree6b915bbcf7771631bba5ccfc95441f0087d1c424 /FS/FS/svc_domain.pm
parent8f004f5beae4bf832d5c07fc440e204c16978153 (diff)
Add experimental OpenSRS export changes, and svc_domain UI changes for .au registrations
Diffstat (limited to 'FS/FS/svc_domain.pm')
-rw-r--r--FS/FS/svc_domain.pm55
1 files changed, 55 insertions, 0 deletions
diff --git a/FS/FS/svc_domain.pm b/FS/FS/svc_domain.pm
index a97f35b..9466b33 100644
--- a/FS/FS/svc_domain.pm
+++ b/FS/FS/svc_domain.pm
@@ -89,6 +89,14 @@ FS::svc_Common. The following fields are currently supported:
=item max_accounts
+=item au_eligibility_type
+
+AU-specific field for domain registrations
+
+=item au_registrant_name
+
+AU-specific field for domain registrations
+
=back
=head1 METHODS
@@ -118,6 +126,16 @@ sub table_info {
disable_inventory => 1,
disable_select => 1,
},
+ 'au_registrant_name' => { label => 'AU Registrant Name',
+ disable_inventory => 1,
+ disable_select => 1,
+ },
+ 'au_eligibility_type' => { label => 'AU Eligibility Type',
+ type => 'select',
+ select_list => __PACKAGE__->au_eligibility_type_values,
+ disable_inventory => 1,
+ disable_select => 1,
+ },
'max_accounts' => { label => 'Maximum number of accounts',
'disable_inventory' => 1,
},
@@ -287,6 +305,41 @@ sub search_sql {
$class->search_sql_field('domain', $string);
}
+=item au_eligibility_type_values
+
+=cut
+
+sub au_eligibility_type_values {
+
+ [ '',
+ 'Charity',
+ 'Child Care Centre',
+ 'Citizen/Resident',
+ 'Club',
+ 'Commercial Statutory Body',
+ 'Company',
+ 'Government School',
+ 'Higher Education Institution',
+ 'Incorporated Association',
+ 'Industry Body',
+ 'National Body',
+ 'Non-Government School',
+ 'Non-profit Organisation',
+ 'Other',
+ 'Partnership',
+ 'Pending TM Owner',
+ 'Political Party',
+ 'Pre-school',
+ 'Registered Business',
+ 'Religious/Church Group',
+ 'Research Organisation',
+ 'Sole Trader',
+ 'Trade Union',
+ 'Trademark Owner',
+ 'Training Organisation',
+ ];
+
+}
=item label
@@ -523,6 +576,8 @@ sub check {
#my $part_svc = $x;
my $error = $self->ut_numbern('svcnum')
+ || $self->ut_textn('au_eligibility_type')
+ || $self->ut_textn('au_registrant_name')
|| $self->ut_numbern('catchall')
|| $self->ut_numbern('max_accounts')
|| $self->ut_anything('trailer') #well