Struct gusto_api::compensations::Compensations [−][src]
pub struct Compensations { /* fields omitted */ }Implementations
pub async fn get_compensations_compensation_id(
&self,
compensation_id: &str
) -> Result<Compensation>
pub async fn get_compensations_compensation_id(
&self,
compensation_id: &str
) -> Result<Compensation>
Get a compensation.
This function performs a GET to the /v1/compensations/{compensation_id} endpoint.
Compensations contain information on how much is paid out for a job. Jobs may have many compensations, but only one that is active. The current compensation is the one with the most recent effective_date.
Note: Currently, jobs are arbitrarily limited to a single compensation as multiple compensations per job are not yet available in Gusto. The API is architected as if multiple compensations may exist, so integrations should integrate under the same assumption. The only exception is that creating a compensation with the same job_id as another will fail with a relevant error.
pub async fn put_compensations_compensation_id(
&self,
compensation_id: &str,
body: &PutCompensationsCompensationIdRequest
) -> Result<Compensation>
pub async fn put_compensations_compensation_id(
&self,
compensation_id: &str,
body: &PutCompensationsCompensationIdRequest
) -> Result<Compensation>
Update a compensation.
This function performs a PUT to the /v1/compensations/{compensation_id} endpoint.
Compensations contain information on how much is paid out for a job. Jobs may have many compensations, but only one that is active. The current compensation is the one with the most recent effective_date.
Note: Currently, jobs are arbitrarily limited to a single compensation as multiple compensations per job are not yet available in Gusto. The API is architected as if multiple compensations may exist, so integrations should integrate under the same assumption. The only exception is that creating a compensation with the same job_id as another will fail with a relevant error
Get compensations for a job.
This function performs a GET to the /v1/jobs/{job_id}/compensations endpoint.
Compensations contain information on how much is paid out for a job. Jobs may have many compensations, but only one that is active. The current compensation is the one with the most recent effective_date.
Note: Currently, jobs are arbitrarily limited to a single compensation as multiple compensations per job are not yet available in Gusto. The API is architected as if multiple compensations may exist, so integrations should integrate under the same assumption. The only exception is that creating a compensation with the same job_id as another will fail with a relevant error.
Use the flsa_status to determine if an employee is elibgle for overtime.
pub async fn get_all_jobs_job_id_compensations(
&self,
job_id: &str
) -> Result<Vec<Compensation>>
pub async fn get_all_jobs_job_id_compensations(
&self,
job_id: &str
) -> Result<Vec<Compensation>>
Get compensations for a job.
This function performs a GET to the /v1/jobs/{job_id}/compensations endpoint.
As opposed to get_jobs_job_id_compensations, this function returns all the pages of the request at once.
Compensations contain information on how much is paid out for a job. Jobs may have many compensations, but only one that is active. The current compensation is the one with the most recent effective_date.
Note: Currently, jobs are arbitrarily limited to a single compensation as multiple compensations per job are not yet available in Gusto. The API is architected as if multiple compensations may exist, so integrations should integrate under the same assumption. The only exception is that creating a compensation with the same job_id as another will fail with a relevant error.
Use the flsa_status to determine if an employee is elibgle for overtime.