See the following from AirPods Repair - Official Apple Support
If you need service for your AirPods or Charging Case, there's no
charge if the issue is covered under the Apple One Year Limited Warranty
or consumer law.
The Apple Limited Warranty covers a defective battery, but it doesn’t
cover wear from normal use. If your battery has a manufacturing defect
and it's covered by our warranty or consumer law, we'll service it at no
additional cost. If your battery service isn't covered, we can replace
your battery for a fee.
If your AirPods or Charging Case get damaged accidentally, you can
replace the damaged item for an out-of-warranty fee. If you lose an
AirPod or your Charging Case, we can replace your lost item for a fee.
If we need to replace your AirPods or Charging Case, your replacement
will be new or equivalent to new in performance and reliability.