FS::SignupClient - Freeside signup client API
use FS::SignupClient qw( signup_info new_customer );
( $locales, $packages, $pops ) = signup_info;
$error = new_customer ( { 'first' => $first, 'last' => $last, 'ss' => $ss, 'comapny' => $company, 'address1' => $address1, 'address2' => $address2, 'city' => $city, 'county' => $county, 'state' => $state, 'zip' => $zip, 'country' => $country, 'daytime' => $daytime, 'night' => $night, 'fax' => $fax, 'payby' => $payby, 'payinfo' => $payinfo, 'paydate' => $paydate, 'payname' => $payname, 'invoicing_list' => $invoicing_list, 'pkgpart' => $pkgpart, 'username' => $username, '_password' => $password, 'popnum' => $popnum, } );
This module provides an API for a remote signup server.
It needs to be run as the freeside user. Because of this, the program which calls these subroutines should be written very carefully.
Returns three array references of hash references.
The first set of hash references is of allowable locales. Each hash reference has the following keys: taxnum state county country
The second set of hash references is of allowable packages. Each hash reference has the following keys: pkgpart pkg
The third set of hash references is of allowable POPs (Points Of Presence). Each hash reference has the following keys: popnum city state ac exch
Adds a customer to the remote Freeside system. Requires a hash reference as a paramater with the following keys: first last ss comapny address1 address2 city county state zip country daytime night fax payby payinfo paydate payname invoicing_list pkgpart username _password popnum
Returns a scalar error message, or the empty string for success.
$Id: SignupClient.html,v 1.1 2001-04-23 12:41:57 ivan Exp $
fs_signupd, FS::SignupServer, FS::cust_main