/// <summary> /// Set Leave Allowances /// </summary> /// <remarks> /// Sets the leave allowances for the specified employees (dictionary keyed by employee ID). /// </remarks> public SgLeaveAllowanceModel SetLeaveAllowances(int businessId, SgLeaveAllowancesRequest request) { return(ApiRequest <SgLeaveAllowanceModel, SgLeaveAllowancesRequest>($"/business/{businessId}/leaveallowances", request, Method.PUT)); }
/// <summary> /// Set Leave Allowances /// </summary> /// <remarks> /// Sets the leave allowances for the specified employees (dictionary keyed by employee ID). /// </remarks> public Task <SgLeaveAllowanceModel> SetLeaveAllowancesAsync(int businessId, SgLeaveAllowancesRequest request, CancellationToken cancellationToken = default) { return(ApiRequestAsync <SgLeaveAllowanceModel, SgLeaveAllowancesRequest>($"/business/{businessId}/leaveallowances", request, Method.PUT, cancellationToken)); }