Struct gusto_api::locations::Locations [−][src]
pub struct Locations { /* fields omitted */ }
Implementations
Get company locations.
This function performs a GET
to the /v1/companies/{company_id_or_uuid}/locations
endpoint.
Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.
Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.
Get company locations.
This function performs a GET
to the /v1/companies/{company_id_or_uuid}/locations
endpoint.
As opposed to get_company_locations
, this function returns all the pages of the request at once.
Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.
Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.
pub async fn post_company_location(
&self,
company_id_or_uuid: &str,
body: &PostCompanyLocationRequest
) -> Result<Location>
pub async fn post_company_location(
&self,
company_id_or_uuid: &str,
body: &PostCompanyLocationRequest
) -> Result<Location>
Create a company location.
This function performs a POST
to the /v1/companies/{company_id_or_uuid}/locations
endpoint.
Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.
Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.
Get a location.
This function performs a GET
to the /v1/locations/{location_id}
endpoint.
Get a location.
pub async fn put_location(
&self,
location_id: &str,
body: &PutLocationRequest
) -> Result<Location>
pub async fn put_location(
&self,
location_id: &str,
body: &PutLocationRequest
) -> Result<Location>
Update a location.
This function performs a PUT
to the /v1/locations/{location_id}
endpoint.
Update a location.