1 package FS::svc_CGPRule_Mixin;
4 use FS::Record qw(qsearch);
9 FS::svc_CGPRule_Mixin - Mixin class for svc_classes which can be related to cgp_rule
13 package FS::svc_table;
14 use base qw( FS::svc_CGPRule_Mixin FS::svc_Common );
18 This is a mixin class for svc_ classes that can have Communigate Pro rules
19 (currently, domains and accounts).
27 Returns the rules associated with this service, as FS::cgp_rule objects.
34 'table' => 'cgp_rule',
35 'hashref' => { 'svcnum' => $self->svcnum },
36 'order_by' => 'ORDER BY priority ASC',
40 =item cgp_rule_arrayref
42 Returns an arrayref of rules suitable for Communigate Pro API commands.
46 sub cgp_rule_arrayref {
48 [ map $_->arrayref, $self->cgp_rule ];