(cls, *args, **kwargs)
return accs_set
Get set of all stripe account ids including the Platform Acccount
Get set of all stripe account ids including the Platform Acccount
Get set of all stripe account ids including the Platform Acccount
def get_stripe_account(cls, *args, **kwargs):
        """Get set of all stripe account ids including the Platform Acccount"""
        accs_set = set()

        # special case, since own account isn't returned by Account.api_list
        stripe_platform_obj = models.Account.stripe_class.retrieve(
            api_key=djstripe_settings.STRIPE_SECRET_KEY
        )
        accs_set.add(stripe_platform_obj.id)

        for stripe_connected_obj in models.Account.api_list(**kwargs):
            accs_set.add(stripe_connected_obj.id)

        return accs_set
def get_stripe_account ( cls , * args , * * kwargs ) : accs_set = set ( ) # special case, since own account isn't returned by Account.api_list stripe_platform_obj = models . Account . stripe_class . retrieve ( api_key = djstripe_settings . STRIPE_SECRET_KEY ) accs_set . add ( stripe_platform_obj . id ) for stripe_connected_obj in models . Account . api_list ( * * kwargs ) : accs_set . add ( stripe_connected_obj . id ) return accs_set