# Path: mollie/api/resources/captures.py
# class Captures(ResourceBase):
#     RESOURCE_ID_PREFIX = "cpt_"
# 
#     def get_resource_object(self, result):
#         return Capture(result, self.client)
# 
#     def get_resource_name(self):
#         return f"payments/{self.payment_id}/captures"
# 
#     def get(self, capture_id, **params):
#         """Verify the capture ID and retrieve the capture from the API."""
#         if not capture_id or not capture_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid capture ID: '{capture_id}'. A capture ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(capture_id, **params)
# 
#     def with_parent_id(self, payment_id):
#         self.payment_id = payment_id
#         return self
# 
#     def on(self, payment):
#         return self.with_parent_id(payment.id)


from .captures import Captures


class SettlementCaptures(Captures):
    settlement_id = None

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

    def with_parent_id(self, settlement_id):

# Path: mollie/api/resources/captures.py
# class Captures(ResourceBase):
#     RESOURCE_ID_PREFIX = "cpt_"
# 
#     def get_resource_object(self, result):
#         return Capture(result, self.client)
# 
#     def get_resource_name(self):
#         return f"payments/{self.payment_id}/captures"
# 
#     def get(self, capture_id, **params):
#         """Verify the capture ID and retrieve the capture from the API."""
#         if not capture_id or not capture_id.startswith(self.RESOURCE_ID_PREFIX):
#             raise IdentifierError(
#                 f"Invalid capture ID: '{capture_id}'. A capture ID should start with '{self.RESOURCE_ID_PREFIX}'."
#             )
#         return super().get(capture_id, **params)
# 
#     def with_parent_id(self, payment_id):
#         self.payment_id = payment_id
#         return self
# 
#     def on(self, payment):
#         return self.with_parent_id(payment.id)


# Path: mollie/api/resources/settlement_captures.py
from .captures import Captures



class SettlementCaptures(Captures):
    settlement_id = None

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

    def with_parent_id(self, settlement_id):

        self.settlement_id = settlement_id