X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FAPI.pm;h=8c5d10666b460193f54245720481d600d2e36174;hp=33c4775d9855e302ddb780ba1461fa8083dd1c75;hb=f8bb0d02510a30c7c0c14900c4ffb61431209ac0;hpb=e4829d1025798f30b0af30d1e22da2f7c769df31 diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 33c4775d9..8c5d10666 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -373,6 +373,23 @@ Used for determining FCC 477 reporting Used for determining FCC 477 reporting +=item ship_address1 + +=item ship_address2 + +=item ship_city + +=item ship_county + +=item ship_state + +=item ship_zip + +=item ship_country + +Optional shipping address fields. If sending an optional shipping address, +ship_address1, ship_city, ship_state and ship_zip are required. + =item daytime Daytime phone number @@ -433,7 +450,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 @@ -557,6 +574,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 {