X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_realtime_check.pm;fp=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_realtime_check.pm;h=9a52830ae131124e514b68871d10bc24e6fe2d68;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hp=0000000000000000000000000000000000000000;hpb=32b5d3a31f112a381f0a15ac5e3a2204242f3405;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_realtime_check.pm b/FS/FS/part_event/Action/cust_bill_realtime_check.pm new file mode 100644 index 000000000..9a52830ae --- /dev/null +++ b/FS/FS/part_event/Action/cust_bill_realtime_check.pm @@ -0,0 +1,32 @@ +package FS::part_event::Action::cust_bill_realtime_check; + +use strict; +use base qw( FS::part_event::Action ); + +sub description { + #'Run check with a Business::OnlinePayment realtime gateway'; + 'Run check with a Business::OnlinePayment realtime gateway'; +} + +sub deprecated { + 1; +} + +sub eventtable_hashref { + { 'cust_bill' => 1 }; +} + +sub default_weight { + 30; +} + +sub do_action { + my( $self, $cust_bill ) = @_; + + #my $cust_main = $self->cust_main($cust_bill); + my $cust_main = $cust_bill->cust_main; + + $cust_bill->realtime_ach; +} + +1;