% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::rate_detail - Object methods for rate_detail records
use FS::rate_detail;
$record = new FS::rate_detail \%hash;
$record = new FS::rate_detail { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::rate_detail object represents an call plan rate. FS::rate_detail inherits from FS::Record. The following fields are currently supported:
Creates a new call plan rate. To add the call plan rate to the database, see "insert".
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Delete this record from the database.
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
Checks all fields to make sure this is a valid call plan rate. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Returns the parent call plan (see FS::rate) associated with this call plan rate.
Returns the origination region (see FS::rate_region) associated with this call plan rate.
Returns the destination region (see FS::rate_region) associated with this call plan rate.
Returns the name of the destination region (see FS::rate_region) associated with this call plan rate.
Returns a short list of the prefixes for the destination region (see FS::rate_region) associated with this call plan rate.
Returns the FS::rate_time object associated with this call plan rate, if there is one.
Returns the ratetimename field of the FS::rate_time object associated with this rate plan.
Returns the name of the usage class (see FS::usage_class) associated with this call plan rate.
Returns the name of the CDR type (see "FS::cdr_type) associated with this rate, if there is one. If not, returns the cdrtypenum itself. This will only return an empty string if cdrtypenum is NULL."
Returns an (ordered) hash of granularity => name pairs
Returns an (ordered) hash of conn_sec => name pairs
FS::rate, FS::rate_region, FS::Record, schema.html from the base documentation.
Hey! The above document had some coding errors, which are explained below:
Unterminated L<...> sequence
Unterminated L<...> sequence