1 package FS::part_pkg::prepaid;
4 use vars qw(@ISA %info %recur_action);
6 use FS::part_pkg::flat;
8 @ISA = qw(FS::part_pkg::flat);
10 tie %recur_action, 'Tie::IxHash',
11 'suspend' => 'suspend',
15 tie my %overlimit_action, 'Tie::IxHash',
16 'overlimit' => 'Default overlimit processing',
21 'name' => 'Prepaid, flat rate',
23 'setup_fee' => { 'name' => 'One-time setup fee for this package',
26 'recur_fee' => { 'name' => 'Initial and recharge fee for this package',
29 'recur_action' => { 'name' => 'Action to take upon reaching end of prepaid preiod',
31 'select_options' => \%recur_action,
33 %FS::part_pkg::flat::usage_fields,
34 'overlimit_action' => { 'name' => 'Action to take upon reaching a usage limit.',
36 'select_options' => \%overlimit_action,
38 #XXX if you set overlimit_action to 'cancel', should also have the ability
41 'fieldorder' => [ qw( setup_fee recur_fee recur_action ),
42 @FS::part_pkg::flat::usage_fieldorder,