def _stripe_object_to_refunds(
        cls, target_cls, data, charge, api_key=djstripe_settings.STRIPE_SECRET_KEY
    ):
        """
        Retrieves Refunds for a charge
        :param target_cls: The target class to instantiate per refund
        :type target_cls: Type[djstripe.models.Refund]
        :param data: The data dictionary received from the Stripe API.
        :type data: dict
        :param charge: The charge object that refunds are for.
        :type charge: djstripe.models.Refund
        :return:
        """
        stripe_refunds = convert_to_stripe_object(data.get("refunds"))

        if not stripe_refunds:
            return []

        refund_objs = []
        stripe_account = getattr(stripe_refunds, "stripe_account", None)
        for refund_data in stripe_refunds.auto_paging_iter():
            item, _ = target_cls._get_or_create_from_stripe_object(
                refund_data,
                refetch=False,
                api_key=api_key,
                stripe_account=stripe_account,
            )
            refund_objs.append(item)

        return refund_objs

        Retrieves Refunds for a charge
        :param target_cls: The target class to instantiate per refund
        :type target_cls: Type[djstripe.models.Refund]
        :param data: The data dictionary received from the Stripe API.
        :type data: dict
        :param charge: The charge object that refunds are for.
        :type charge: djstripe.models.Refund
        :return:
        
djstripe/models/base.py