4 use vars qw( @ISA $conf $DEBUG $me );
5 use FS::Record qw( qsearch qsearchs );
8 @ISA = qw( FS::svc_Common );
10 $me = '[FS::svc_dsl]';
12 FS::UID->install_callback( sub {
19 FS::svc_dsl - Object methods for svc_dsl records
25 $record = new FS::svc_dsl \%hash;
26 $record = new FS::svc_dsl { 'column' => 'value' };
28 $error = $record->insert;
30 $error = $new_record->replace($old_record);
32 $error = $record->delete;
34 $error = $record->check;
36 $error = $record->suspend;
38 $error = $record->unsuspend;
40 $error = $record->cancel;
44 An FS::svc_dsl object represents a DSL service. FS::svc_dsl inherits from
45 FS::svc_Common. The following fields are currently supported:
51 Primary key (assigned automatcially for new DSL))
55 Time the DSL order was pushed to a vendor, if exporting orders to a vendor/telco
63 Due Date (e.g. once order is in Assigned status or similar by the telco)
67 Vendor/telco DSL order #
69 =item vendor_order_type
71 Vendor/telco DSL order type (e.g. (M)ove, (A)dd, (C)hange, (D)elete, or similar)
73 =item vendor_order_status
75 Vendor/telco DSL order status (e.g. (N)ew, (A)ssigned, (R)ejected, (M)revised,
76 (C)ompleted, (X)cancelled, or similar)
96 Loop-type - vendor/telco-specific
100 Local Voice Provider's name
118 Ikano-specific fields, do not use otherwise
122 If outsourced PPPoE/RADIUS, username
126 If outsourced PPPoE/RADIUS, password
130 Order is monitored (auto-pull/sync), either Y or blank
134 Time of last data pull from vendor/telco
138 DSL order notes placed by staff or vendor/telco on the vendor/telco order
149 Creates a new DSL. To add the DSL to the database, see L<"insert">.
151 Note that this stores the hash reference, not a distinct copy of the hash it
152 points to. You can ask the object for a copy with the I<hash> method.
156 # the new method can be inherited from FS::Record, if a table method is defined
158 sub table { 'svc_dsl'; }
162 Adds this record to the database. If there is an error, returns the error,
163 otherwise returns false.
167 # the insert method can be inherited from FS::Record
171 Delete this record from the database.
175 # the delete method can be inherited from FS::Record
177 =item replace OLD_RECORD
179 Replaces the OLD_RECORD with this one in the database. If there is an error,
180 returns the error, otherwise returns false.
184 # the replace method can be inherited from FS::Record
188 Checks all fields to make sure this is a valid DSL. If there is
189 an error, returns the error, otherwise returns false. Called by the insert
194 # the check method should currently be supplied - FS::Record contains some
195 # data checking routines
201 $self->ut_numbern('svcnum')
202 || $self->ut_numbern('pushed')
203 || $self->ut_number('desired_dd')
204 || $self->ut_numbern('dd')
205 || $self->ut_textn('vendor_order_id')
206 || $self->ut_textn('vendor_qual_id')
207 || $self->ut_alpha('vendor_order_type')
208 || $self->ut_alphan('vendor_order_status')
209 || $self->ut_text('first')
210 || $self->ut_text('last')
211 || $self->ut_textn('company')
212 || $self->ut_numbern('svctn')
213 || $self->ut_alphasn('loop_type')
214 || $self->ut_textn('lvp')
215 || $self->ut_textn('cktnum')
216 || $self->ut_textn('rate_band')
217 || $self->ut_alphan('isp_chg')
218 || $self->ut_textn('isp_prev')
219 || $self->ut_textn('username')
220 || $self->ut_textn('password')
221 || $self->ut_textn('staticips')
222 || $self->ut_enum('monitored', [ '', 'Y' ])
223 || $self->ut_numbern('last_pull')
224 || $self->ut_textn('notes')
226 return $error if $error;
235 This doesn't do anything yet.
239 L<FS::svc_Common>, edit/part_svc.cgi from an installed web interface,
240 export.html from the base documentation, L<FS::Record>, L<FS::Conf>,
241 L<FS::cust_svc>, L<FS::part_svc>, L<FS::cust_pkg>, L<FS::queue>,
242 L<freeside-queued>, schema.html from the base documentation.