3 <TITLE>FS::SignupClient - Freeside signup client API</TITLE>
4 <LINK REV="made" HREF="mailto:perl@packages.debian.org">
9 <A NAME="__index__"></A>
14 <LI><A HREF="#name">NAME</A></LI>
15 <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
16 <LI><A HREF="#description">DESCRIPTION</A></LI>
17 <LI><A HREF="#subroutines">SUBROUTINES</A></LI>
18 <LI><A HREF="#bugs">BUGS</A></LI>
19 <LI><A HREF="#see also">SEE ALSO</A></LI>
25 <H1><A NAME="name">NAME</A></H1>
26 <P>FS::SignupClient - Freeside signup client API</P>
29 <H1><A NAME="synopsis">SYNOPSIS</A></H1>
31 use FS::SignupClient qw( signup_info new_customer );</PRE>
33 ( $locales, $packages, $pops ) = signup_info;</PRE>
35 $error = new_customer ( {
39 'comapny' => $company,
40 'address1' => $address1,
41 'address2' => $address2,
43 'county' => $county,
46 'country' => $country,
47 'daytime' => $daytime,
51 'payinfo' => $payinfo,
52 'paydate' => $paydate,
53 'payname' => $payname,
54 'invoicing_list' => $invoicing_list,
55 'referral_custnum' => $referral_custnum,
56 'pkgpart' => $pkgpart,
57 'username' => $username,
58 '_password' => $password,
59 'popnum' => $popnum,
63 <H1><A NAME="description">DESCRIPTION</A></H1>
64 <P>This module provides an API for a remote signup server.</P>
65 <P>It needs to be run as the freeside user. Because of this, the program which
66 calls these subroutines should be written very carefully.</P>
69 <H1><A NAME="subroutines">SUBROUTINES</A></H1>
71 <DT><STRONG><A NAME="item_signup_info">signup_info</A></STRONG><BR>
73 Returns three array references of hash references.
74 <P>The first set of hash references is of allowable locales. Each hash reference
75 has the following keys:
80 <P>The second set of hash references is of allowable packages. Each hash
81 reference has the following keys:
84 <P>The third set of hash references is of allowable POPs (Points Of Presence).
85 Each hash reference has the following keys:
92 <DT><STRONG><A NAME="item_new_customer_HASHREF">new_customer HASHREF</A></STRONG><BR>
94 Adds a customer to the remote Freeside system. Requires a hash reference as
95 a paramater with the following keys:
120 <P>Returns a scalar error message, or the empty string for success.</P>
124 <H1><A NAME="bugs">BUGS</A></H1>
127 <H1><A NAME="see also">SEE ALSO</A></H1>
128 <P><EM>fs_signupd</EM>, <A HREF="../FS/SignupServer.html">the FS::SignupServer manpage</A>, <A HREF=".././FS/cust_main.html">the FS::cust_main manpage</A></P>