2 FS::svc_domain - Object methods for svc_domain records
7 $record = create FS::svc_domain \%hash;
8 $record = create FS::svc_domain { 'column' => 'value' };
10 $error = $record->insert;
12 $error = $new_record->replace($old_record);
14 $error = $record->delete;
16 $error = $record->check;
18 $error = $record->suspend;
20 $error = $record->unsuspend;
22 $error = $record->cancel;
25 An FS::svc_domain object represents a domain. FS::svc_domain
26 inherits from FS::Record. The following fields are currently
29 svcnum - primary key (assigned automatically for new accounts)
33 Creates a new domain. To add the domain to the database, see
34 the section on "insert".
37 Adds this domain to the database. If there is an error,
38 returns the error, otherwise returns false.
40 The additional fields *pkgnum* and *svcpart* (see the
41 FS::cust_svc manpage) should be defined. An FS::cust_svc
42 record will be created and inserted.
44 The additional field *action* should be set to *N* for new
45 domains or *M* for transfers.
47 A registration or transfer email will be submitted unless
48 $FS::svc_domain::whois_hack is true.
51 Deletes this domain from the database. If there is an error,
52 returns the error, otherwise returns false.
54 The corresponding FS::cust_svc record will be deleted as
58 Replaces OLD_RECORD with this one in the database. If there
59 is an error, returns the error, otherwise returns false.
62 Just returns false (no error) for now.
64 Called by the suspend method of FS::cust_pkg (see the
65 FS::cust_pkg manpage).
68 Just returns false (no error) for now.
70 Called by the unsuspend method of FS::cust_pkg (see the
71 FS::cust_pkg manpage).
74 Just returns false (no error) for now.
76 Called by the cancel method of FS::cust_pkg (see the
77 FS::cust_pkg manpage).
80 Checks all fields to make sure this is a valid domain. If
81 there is an error, returns the error, otherwise returns
82 false. Called by the insert and replace methods.
84 Sets any fixed values; see the FS::part_svc manpage.
91 and returns the output.
93 (Always returns *No match for domian "$domain".* if
94 $FS::svc_domain::whois_hack is set true.)
97 Submits a registration email for this domain.
100 It doesn't properly override FS::Record yet.
102 All BIND/DNS fields should be included (and exported).
104 All registries should be supported.
106 Not all configuration access is through FS::Conf!
108 Should change action to a real field.
111 the FS::Record manpage, the FS::Conf manpage, the FS::cust_svc
112 manpage, the FS::part_svc manpage, the FS::cust_pkg manpage, the
113 FS::SSH manpage, the ssh manpage, the dot-qmail manpage,
114 schema.html from the base documentation, config.html from the
118 ivan@voicenet.com 97-jul-21
120 rewrite ivan@sisd.com 98-mar-10
122 add internic bits ivan@sisd.com 98-mar-14
124 Changed 'day' to 'daytime' because Pg6.3 reserves the day word
125 bmccane@maxbaud.net 98-apr-3
127 /var/spool/freeside/conf/registries/internic/, Mail::Internet,
128 etc. ivan@sisd.com 98-jul-17-19
130 pod, some FS::Conf (not complete) ivan@sisd.com 98-sep-23