Struct gusto_api::garnishments::Garnishments
source · pub struct Garnishments {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl Garnishments
impl Garnishments
sourcepub async fn get_employee(
&self,
employee_id: &str
) -> Result<Response<Vec<Garnishment>>, ClientError>
pub async fn get_employee( &self, employee_id: &str ) -> Result<Response<Vec<Garnishment>>, ClientError>
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.
sourcepub async fn get_all_employee(
&self,
employee_id: &str
) -> Result<Response<Vec<Garnishment>>, ClientError>
pub async fn get_all_employee( &self, employee_id: &str ) -> Result<Response<Vec<Garnishment>>, ClientError>
Get garnishments for an employee.
This function performs a GET
to the /v1/employees/{employee_id}/garnishments
endpoint.
As opposed to get_employee
, 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.
sourcepub async fn post_employee(
&self,
employee_id: &str,
body: &PostEmployeeGarnishmentsRequest
) -> Result<Response<Garnishment>, ClientError>
pub async fn post_employee( &self, employee_id: &str, body: &PostEmployeeGarnishmentsRequest ) -> Result<Response<Garnishment>, ClientError>
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.
sourcepub async fn get(
&self,
garnishment_id: &str
) -> Result<Response<Garnishment>, ClientError>
pub async fn get( &self, garnishment_id: &str ) -> Result<Response<Garnishment>, ClientError>
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.
sourcepub async fn put(
&self,
garnishment_id: &str,
body: &PutGarnishmentRequest
) -> Result<Response<Garnishment>, ClientError>
pub async fn put( &self, garnishment_id: &str, body: &PutGarnishmentRequest ) -> Result<Response<Garnishment>, ClientError>
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.