diff options
| author | ivan <ivan> | 2003-12-23 00:51:37 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2003-12-23 00:51:37 +0000 | 
| commit | 38d7ed9d33840a59bbbf6895e3c7a6d191094c03 (patch) | |
| tree | 0d28b71f21742501f2ed99025d64ba0e30b790fd /fs_selfservice | |
| parent | 3c0d5d77527f46e59c68fb6f92de2391e779f07b (diff) | |
add edit_info to selfservice API
Diffstat (limited to 'fs_selfservice')
| -rw-r--r-- | fs_selfservice/FS-SelfService/SelfService.pm | 18 | 
1 files changed, 17 insertions, 1 deletions
diff --git a/fs_selfservice/FS-SelfService/SelfService.pm b/fs_selfservice/FS-SelfService/SelfService.pm index be6dd3a8a..715f935f3 100644 --- a/fs_selfservice/FS-SelfService/SelfService.pm +++ b/fs_selfservice/FS-SelfService/SelfService.pm @@ -23,6 +23,7 @@ $socket .= '.'.$tag if defined $tag && length($tag);    'chsh'            => 'passwd/passwd',    'login'           => 'MyAccount/login',    'customer_info'   => 'MyAccount/customer_info', +  'edit_info'       => 'MyAccount/edit_info',    'invoice'         => 'MyAccount/invoice',    'cancel'          => 'MyAccount/cancel',    'payment_info'    => 'MyAccount/payment_info', @@ -113,7 +114,7 @@ FS::SelfService - Freeside self-service API    my $customer_info = customer_info( { 'session_id' => $session_id } );    #payment_info and process_payment are available in 1.5+ only -  my $payment_info = payment_info) { 'session_id' => $session_id } ); +  my $payment_info = payment_info( { 'session_id' => $session_id } );    #!!! process_payment example @@ -244,8 +245,23 @@ the following keys: invnum, date, owed  An HTML fragment containing shipping and billing addresses. +=item The following fields are also returned: first last company address1 address2 city county state zip country daytime night fax ship_first ship_last ship_company ship_address1 ship_address2 ship_city ship_state ship_zip ship_country ship_daytime ship_night ship_fax +  =back +=item edit_info HASHREF + +Takes a hash reference as parameter with any of the following keys: + +first last company address1 address2 city county state zip country daytime night fax ship_first ship_last ship_company ship_address1 ship_address2 ship_city ship_state ship_zip ship_country ship_daytime ship_night ship_fax + +If a field exists, the customer record is updated with the new value of that +field.  If a field does not exist, that field is not changed on the customer +record. + +Returns a hash reference with a single key, B<error>, empty on success, or an +error message on errors +  =item invoice HASHREF  Returns an invoice.  Takes a hash reference as parameter with two keys:  | 
