RT#29296: API stuff: Add new locations [change_package_location API call]
[freeside.git] / FS / FS / cust_location / API.pm
1 package FS::cust_location::API;
2
3 use strict;
4
5 # this gets used by FS::cust_main::API and FS::cust_pkg::API,
6 # so don't use FS::cust_main or FS::cust_pkg here
7
8 # some of these could probably be included, but in general,
9 # probably a bad idea to expose everything in 
10 # cust_main::Location::location_fields by default
11 #
12 #locationname
13 #district
14 #latitude
15 #longitude
16 #censustract
17 #censusyear
18 #geocode
19 #coord_auto
20 #addr_clean
21
22 sub API_editable_fields {
23   return qw(
24     address1
25     address2
26     city
27     county
28     state
29     zip
30     country
31   );
32 }
33
34 1;