@classmethod
def _stripe_object_to_tax_rates(cls, target_cls, data):
    """
        Retrieves TaxRates for a SubscriptionItem or InvoiceItem
        :param target_cls:
        :param data:
        :return:
        """
    tax_rates = []
    for tax_rate_data in data.get('tax_rates', []):
        tax_rate, _ = target_cls._get_or_create_from_stripe_object(
            tax_rate_data, refetch=False)
        tax_rates.append(tax_rate)
    return tax_rates
