1 package FS::part_export::cust_http;
3 use vars qw( @ISA %info );
4 use FS::part_export::http;
7 @ISA = qw( FS::part_export::http );
9 tie %options, 'Tie::IxHash',
10 'method' => { label =>'Method',
12 #options =>[qw(POST GET)],
15 'url' => { label => 'URL', default => 'http://', },
16 'ssl_no_verify' => { label => 'Skip SSL certificate validation',
20 label => 'Insert data',
24 "custnum \$cust_main->custnum",
25 # "first \$cust_main->first",
26 # "last \$cust_main->get('last')",
27 # ( map "$_ \$cust_main->$_", qw( company address1 address2 city county state zip country daytime night fax ) ),
28 # "email \$cust_main->invoicing_list_emailonly_scalar",
32 label => 'Delete data',
36 "custnum \$cust_main->custnum",
40 label => 'Replace data',
44 "custnum \$new_cust_main->custnum",
45 # "first \$new_cust_main->first",
46 # "last \$new_cust_main->get('last')",
47 # ( map "$_ \$cust_main->$_", qw( company address1 address2 city county state zip country daytime night fax ) ),
48 # "email \$new_cust_main->invoicing_list_emailonly_scalar",
52 label => 'Success Regexp',
58 'svc' => [qw( cust_main cust_location )],
59 'desc' => 'Send an HTTP or HTTPS GET or POST request, for customers.',
60 'options' => \%options,
63 Send an HTTP or HTTPS GET or POST to the specified URL on customer addition,
64 modification and deletion. For HTTPS support,
65 <a href="http://search.cpan.org/dist/Crypt-SSLeay">Crypt::SSLeay</a>
66 or <a href="http://search.cpan.org/dist/IO-Socket-SSL">IO::Socket::SSL</a>