X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FAPI.pm;h=4ff1a3ab592c61d28cdd6dd4c5e959be9f8437ce;hb=039d72ae9e7adf98f46c3b4219100d57208c3685;hp=5db29b2b5a678a739ec4cdb622756334402b58dc;hpb=70ff8d2c5f32a674d4ae75c8f018e630033ed645;p=freeside.git diff --git a/FS/FS/API.pm b/FS/FS/API.pm index 5db29b2b5..4ff1a3ab5 100644 --- a/FS/FS/API.pm +++ b/FS/FS/API.pm @@ -65,6 +65,10 @@ Amount paid Option date for payment +=item order_number + +Optional order number + =back Example: @@ -77,6 +81,7 @@ Example: #optional '_date' => 1397977200, #UNIX timestamp + 'order_number' => '12345', ); if ( $result->{'error'} ) { @@ -755,6 +760,8 @@ secret locationnum - pass this, or the following keys (don't pass both) +locationname + address1 address2 @@ -767,8 +774,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. @@ -785,7 +806,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}; }