freeside/fs_signup/FS-SignupClient SignupClient.pm,1.13,1.14

ivan ivan at pouncequick.420.am
Thu Jun 10 05:31:37 PDT 2004


Update of /home/cvs/cvsroot/freeside/fs_signup/FS-SignupClient
In directory pouncequick:/tmp/cvs-serv23020/fs_signup/FS-SignupClient

Modified Files:
	SignupClient.pm 
Log Message:
agent interface

Index: SignupClient.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_signup/FS-SignupClient/SignupClient.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- SignupClient.pm	24 Oct 2003 19:28:49 -0000	1.13
+++ SignupClient.pm	10 Jun 2004 12:31:32 -0000	1.14
@@ -1,7 +1,7 @@
 package FS::SignupClient;
 
 use strict;
-use vars qw($VERSION @ISA @EXPORT_OK); # $fs_signupd_socket);
+use vars qw($VERSION @ISA @EXPORT_OK $init_data); # $fs_signupd_socket);
 use Exporter;
 #use Socket;
 #use FileHandle;
@@ -12,7 +12,7 @@
 $VERSION = '0.04';
 
 @ISA = qw( Exporter );
- at EXPORT_OK = qw( signup_info new_customer );
+ at EXPORT_OK = qw( signup_info new_customer regionselector );
 
 =head1 NAME
 
@@ -99,7 +99,7 @@
 #compatibility bit
 sub signup_info {
 
-  my $init_data = FS::SelfService::signup_info();
+  $init_data = FS::SelfService::signup_info();
 
   (map { $init_data->{$_} } qw( cust_main_county part_pkg svc_acct_pop ) ),
   $init_data;
@@ -148,9 +148,55 @@
   $hash->{'error'};
 }
 
+=item regionselector SELECTED_COUNTY, SELECTED_STATE, SELECTED_COUNTRY, PREFIX, ONCHANGE
+
+=cut
+
+sub regionselector {
+  my ( $selected_county, $selected_state, $selected_country,
+       $prefix, $onchange ) = @_;
+  signup_info() unless $init_data;
+  FS::SelfService::regionselector({
+    selected_county  => $selected_county,
+    selected_state   => $selected_state,
+    selected_country => $selected_country,
+    prefix           => $prefix,
+    onchange         => $onchange,
+    default_country  => $init_data->{countrydefault},
+    locales          => $init_data->{cust_main_county},
+  });
+    #default_state    => $init_data->{statedefault},
+}
+
+=item expselect PREFIX, DATE
+
+=cut
+
+sub expselect {
+  FS::SelfService::expselect(@_);
+}
+
+=item popselector 
+
+=cut
+
+sub popselector {
+  my( $popnum ) = @_;
+  signup_info() unless $init_data;
+  FS::SelfService::popselector({
+    popnum => $popnum,
+    pops   => $init_data->{svc_acct_pop},
+  });
+    #popac =>
+    #acstate =>
+}
+
 =back
 
 =head1 BUGS
+
+This is just a wrapper around FS::SelfService functions for backwards
+compatibility and will probably be deprecated soon.
 
 =head1 SEE ALSO
 




More information about the freeside-commits mailing list