# Path: mollie/api/resources/chargebacks.py
# class Chargebacks(ResourceBase):
#     RESOURCE_ID_PREFIX = "chb_"
# 
#     def get_resource_object(self, result):
#         return Chargeback(result, self.client)
# 
#     def get(self, chargeback_id, **params):
#         """Verify the chargeback ID and retrieve the chargeback from the API."""
#         if not chargeback_id or not chargeback_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid chargeback ID: '{chargeback_id}'. "
#                 f"A chargeback ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(chargeback_id, **params)


from .chargebacks import Chargebacks


class SettlementChargebacks(Chargebacks):
    settlement_id = None

    def get_resource_name(self):
        return f"settlements/{self.settlement_id}/chargebacks"


# Path: mollie/api/resources/chargebacks.py
# class Chargebacks(ResourceBase):
#     RESOURCE_ID_PREFIX = "chb_"
# 
#     def get_resource_object(self, result):
#         return Chargeback(result, self.client)
# 
#     def get(self, chargeback_id, **params):
#         """Verify the chargeback ID and retrieve the chargeback from the API."""
#         if not chargeback_id or not chargeback_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid chargeback ID: '{chargeback_id}'. "
#                 f"A chargeback ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(chargeback_id, **params)


# Path: mollie/api/resources/settlement_chargebacks.py
from .chargebacks import Chargebacks



class SettlementChargebacks(Chargebacks):
    settlement_id = None

    def get_resource_name(self):
        return f"settlements/{self.settlement_id}/chargebacks"


    def with_parent_id(self, settlement_id):