# Path: mollie/api/resources/refunds.py
# class Refunds(ResourceBase):
#     RESOURCE_ID_PREFIX = "re_"
# 
#     def get_resource_object(self, result):
#         return Refund(result, self.client)
# 
#     def get(self, refund_id, **params):
#         if not refund_id or not refund_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid refund ID: '{refund_id}'. A refund ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(refund_id, **params)


from .refunds import Refunds


class SettlementRefunds(Refunds):
    settlement_id = None

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


# Path: mollie/api/resources/refunds.py
# class Refunds(ResourceBase):
#     RESOURCE_ID_PREFIX = "re_"
# 
#     def get_resource_object(self, result):
#         return Refund(result, self.client)
# 
#     def get(self, refund_id, **params):
#         if not refund_id or not refund_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid refund ID: '{refund_id}'. A refund ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(refund_id, **params)


# Path: mollie/api/resources/settlement_refunds.py
from .refunds import Refunds



class SettlementRefunds(Refunds):
    settlement_id = None

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


    def with_parent_id(self, settlement_id):