Struct gusto_api::garnishments::Garnishments [−][src]
pub struct Garnishments { /* fields omitted */ }
Implementations
Get garnishments for an employee.
This function performs a GET
to the /v1/employees/{employee_id}/garnishments
endpoint.
Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments.
pub async fn get_all_employee_garnishments(
&self,
employee_id: &str
) -> Result<Vec<Garnishment>>
pub async fn get_all_employee_garnishments(
&self,
employee_id: &str
) -> Result<Vec<Garnishment>>
Get garnishments for an employee.
This function performs a GET
to the /v1/employees/{employee_id}/garnishments
endpoint.
As opposed to get_employee_garnishments
, this function returns all the pages of the request at once.
Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments.
pub async fn post_employee_garnishment(
&self,
employee_id: &str,
body: &PostEmployeeGarnishmentRequest
) -> Result<Garnishment>
pub async fn post_employee_garnishment(
&self,
employee_id: &str,
body: &PostEmployeeGarnishmentRequest
) -> Result<Garnishment>
Create a garnishment.
This function performs a POST
to the /v1/employees/{employee_id}/garnishments
endpoint.
Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments.
Get a garnishment.
This function performs a GET
to the /v1/garnishments/{garnishment_id}
endpoint.
Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments.
pub async fn put_garnishment(
&self,
garnishment_id: &str,
body: &PutGarnishmentRequest
) -> Result<Garnishment>
pub async fn put_garnishment(
&self,
garnishment_id: &str,
body: &PutGarnishmentRequest
) -> Result<Garnishment>
Update a garnishment.
This function performs a PUT
to the /v1/garnishments/{garnishment_id}
endpoint.
Garnishments, or employee deductions, are fixed amounts or percentages deducted from an employee’s pay. They can be deducted a specific number of times or on a recurring basis. Garnishments can also have maximum deductions on a yearly or per-pay-period bases. Common uses for garnishments are court-ordered payments for child support or back taxes. Some companies provide loans to their employees that are repaid via garnishments.