eWay self-signup fixes
[freeside.git] / FS / FS / part_event / Action.pm
index bdb9df6..45219a3 100644 (file)
@@ -54,6 +54,19 @@ sub eventtable_hashref {
     };
 }
 
+=item event_stage
+
+Action classes may define an event_stage method to indicate a preference
+for being run at a non-standard stage of the billing and collection process.
+
+This method may currently return "collect" (the default) or "pre-bill".
+
+=cut
+
+sub event_stage {
+  'collect';
+}
+
 =item option_fields
 
 Action classes may define an option_fields method to indicate that they
@@ -63,6 +76,8 @@ This method should return a list of option names and option descriptions.
 Each option description can be a scalar description, for simple options, or a
 hashref with the following values:
 
+=over 4
+
 =item label - Description
 
 =item type - Currently text, money, checkbox, checkbox-multiple, select, select-agent, select-pkg_class, select-part_referral, select-table, fixed, hidden, (others can be implemented as httemplate/elements/tr-TYPE.html mason components).  Defaults to text.
@@ -202,6 +217,7 @@ Returns the option fields as an (ordered) hash reference.
 sub option_fields_hashref {
   my $self = shift;
   tie my %hash, 'Tie::IxHash', $self->option_fields;
+  \%hash;
 }
 
 =item option_fields_listref