X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FAPI.pm;h=6ca2b553be3622690954daec16b453adfd8e254d;hp=1c4cbd9af5e7190d2df51c0c8d34a01429349d21;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=e498e76c74a2e65e1c0b6a5514130ff71cee8a5b diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 1c4cbd9af..6ca2b553b 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -66,6 +66,10 @@ Amount paid Option date for payment +=item order_number + +Optional order number + =back Example: @@ -78,6 +82,7 @@ Example: #optional '_date' => 1397977200, #UNIX timestamp + 'order_number' => '12345', ); if ( $result->{'error'} ) { @@ -568,6 +573,8 @@ secret locationnum - pass this, or the following keys (don't pass both) +locationname + address1 address2 @@ -580,8 +587,22 @@ state zip +addr_clean + country +censustract + +censusyear + +location_type + +location_number + +location_kind + +incorporated + On error, returns a hashref with an 'error' key. On success, returns a hashref with 'pkgnum' and 'locationnum' keys, containing the new values. @@ -598,7 +619,24 @@ sub change_package_location { my %changeopt; - foreach my $field ('locationnum',FS::cust_location::API::API_editable_fields()) { + foreach my $field ( qw( + locationnum + locationname + address1 + address2 + city + county + state + zip + addr_clean + country + censustract + censusyear + location_type + location_number + location_kind + incorporated + )) { $changeopt{$field} = $opt{$field} if $opt{$field}; }