RT# 76308 - Added action Sent HTTP or HTTPS post to event types Package, Customer...
[freeside.git] / FS / FS / part_event / Action / http.pm
index b17acb8..10e9bd4 100644 (file)
@@ -1,19 +1,27 @@
 package FS::part_event::Action::http;
+use base qw( FS::part_event::Action );
 
 use strict;
-use base qw( FS::part_event::Action );
+use vars qw( $me );
 use IO::Socket::SSL;
 use LWP::UserAgent;
 use HTTP::Request::Common;
 use JSON::XS;
 use FS::Misc::DateTime qw( iso8601 );
 
+$me = '[FS::part_event::Action::http]';
+
 #sub description { 'Send an HTTP or HTTPS GET or POST request'; }
 sub description { 'Send an HTTP or HTTPS POST request'; }
 
 sub eventtable_hashref {
   { 'cust_bill' => 1,
     'cust_pay'  => 1,
+    'cust_pkg'  => 1,
+    'cust_main' => 1,
+    'cust_pay_batch' => 1,
+    'cust_statement' => 1,
+    'svc_acct' => 1,
   },
 }
 
@@ -38,6 +46,10 @@ sub option_fields {
                          type  => 'textarea',
                        },
     #'response_error_param' => 'Response error parameter',
+    'debug'         => { label => 'Enable debugging',
+                         type  => 'checkbox',
+                         value => 1,
+                       },
   );
 }