1 package FS::part_export::circuit_http;
2 use base qw( FS::part_export::http );
6 tie our %options, 'Tie::IxHash',
7 'method' => { label =>'Method',
9 #options =>[qw(POST GET)],
12 'url' => { label => 'URL', default => 'http://', },
13 'ssl_no_verify' => { label => 'Skip SSL certificate validation',
17 label => 'Insert data',
23 label => 'Delete data',
29 label => 'Replace data',
35 label => 'Suspend data',
41 label => 'Unsuspend data',
47 label => 'Success Regexp',
53 'svc' => 'svc_circuit',
54 'desc' => 'Send an HTTP or HTTPS GET or POST request, for circuit services.',
55 'options' => \%options,
58 Send an HTTP or HTTPS GET or POST to the specified URL on account addition,
59 modification and deletion.
60 <p>Each "Data" option takes a list of <i>name value</i> pairs on successive
62 <ul><li><i>name</i> is an unquoted, literal string without whitespace.</li>
63 <li><i>value</i> is a Perl expression that will be evaluated. If it's a
64 literal string, it must be quoted. This expression has access to the
65 svc_circuit object as '$svc_x' (or '$new' and '$old' in "Replace Data")
66 and the customer record as '$cust_main'.</li></ul>
67 If "Success Regexp" is specified, the response from the server will be
68 tested against it to determine if the export succeeded.</p>