X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FAPI.pm;h=91d0a9bce03d512f08010f7dc229a06dfcdec660;hb=e5683945ae51a6f14ad62facfd60357aff196f13;hp=8eaecf6c0648b7b06c8681397d705d9d6c72b6d0;hpb=e5ae3c8ec436d52a9e437d5bf0b2a1bf12dc46fe;p=freeside.git diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 8eaecf6c0..91d0a9bce 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -449,7 +449,7 @@ sub new_customer { #same for refnum like signup_server-default_refnum $opt{refnum} ||= FS::Conf->new->config('signup_server-default_refnum'); - $class->API_insert( %opt ); + FS::cust_main->API_insert( %opt ); } =item update_customer @@ -573,6 +573,104 @@ Example: print Dumper($result); +Returns the following fields: + +=over 4 + +=item error + +Empty, or error message (in which case, none of the other fields will be populated) + +=item display_custnum + +Optional customer number display override - if present, use this for all UI instead of the real database custnum + +=item name + +Simple string for customer identification (from first, last, company) + +=item balance + +=item status + +=item statuscolor + +=item first + +=item last + +=item company + +=item daytime + +=item night + +=item mobile + +=item fax + +=item agentnum + +Agent (Company) + +=item salesnum + +Sales person + +=item refnum + +Advertising channel + +=item classnum + +Customer class + +=item usernum + +Employee (initial customer insert) + +=item referral_custnum + +Referring customer + +=item address1 + +=item address2 + +=item city + +=item county + +=item state + +=item zip + +=item country + +=item ship_address1 + +=item ship_address2 + +=item ship_city + +=item ship_county + +=item ship_state + +=item ship_zip + +=item ship_country + +=item invoicing_list + +Comma-separated list of email addresses + +=item postal_invoicing + +0 or 1 + +=back + =cut sub customer_info {