(self, model)
return handler(default_list_kwargs)
Returns a sequence of kwargs dicts to pass to model.api_list

        This allows us to sync models that require parameters to api_list

        :param model:
        :return: Sequence[dict]
Returns a sequence of kwargs dicts to pass to model.api_list
Returns a sequence of kwargs dicts to pass to model . api_list
def get_list_kwargs(self, model):
        """
        Returns a sequence of kwargs dicts to pass to model.api_list

        This allows us to sync models that require parameters to api_list

        :param model:
        :return: Sequence[dict]
        """

        list_kwarg_handlers_dict = {
            "PaymentMethod": self.get_list_kwargs_pm,
            "SubscriptionItem": self.get_list_kwargs_si,
            "CountrySpec": self.get_list_kwargs_country_spec,
            "TransferReversal": self.get_list_kwargs_trr,
            "ApplicationFeeRefund": self.get_list_kwargs_fee_refund,
            "TaxId": self.get_list_kwargs_tax_id,
            "UsageRecordSummary": self.get_list_kwargs_sis,
        }

        # get all Stripe Accounts for the given platform account.
        # note that we need to fetch from Stripe as we have no way of knowing that the ones in the local db are up to date
        # as this can also be the first time the user runs sync.
        accs_set = self.get_stripe_account()

        default_list_kwargs = self.get_default_list_kwargs(model, accs_set)

        handler = list_kwarg_handlers_dict.get(
            model.__name__, lambda _: default_list_kwargs
        )

        return handler(default_list_kwargs)
def get_list_kwargs ( self , model ) : list_kwarg_handlers_dict = { "PaymentMethod" : self . get_list_kwargs_pm , "SubscriptionItem" : self . get_list_kwargs_si , "CountrySpec" : self . get_list_kwargs_country_spec , "TransferReversal" : self . get_list_kwargs_trr , "ApplicationFeeRefund" : self . get_list_kwargs_fee_refund , "TaxId" : self . get_list_kwargs_tax_id , "UsageRecordSummary" : self . get_list_kwargs_sis , } # get all Stripe Accounts for the given platform account. # note that we need to fetch from Stripe as we have no way of knowing that the ones in the local db are up to date # as this can also be the first time the user runs sync. accs_set = self . get_stripe_account ( ) default_list_kwargs = self . get_default_list_kwargs ( model , accs_set ) handler = list_kwarg_handlers_dict . get ( model . __name__ , lambda _ : default_list_kwargs ) return handler ( default_list_kwargs )