(cls, target_cls, data, charge)
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:
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:
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 :
def _stripe_object_to_refunds(cls, target_cls, data, charge):
        """
        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:
        """

        refunds = data.get("refunds")
        if not refunds:
            return []

        refund_objs = []
        for refund_data in refunds.auto_paging_iter():
            item, _ = target_cls._get_or_create_from_stripe_object(
                refund_data, refetch=False
            )
            refund_objs.append(item)

        return refund_objs
def _stripe_object_to_refunds ( cls , target_cls , data , charge ) : refunds = data . get ( "refunds" ) if not refunds : return [ ] refund_objs = [ ] for refund_data in refunds . auto_paging_iter ( ) : item , _ = target_cls . _get_or_create_from_stripe_object ( refund_data , refetch = False ) refund_objs . append ( item ) return refund_objs