code: def list_all_payment_sources(cls, **kwargs):
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._list_all_payment_sources_with_http_info(**kwargs)
          else:
              (data) = cls._list_all_payment_sources_with_http_info(**kwargs)
              return data
docs: List PaymentSources
  
          Return a list of PaymentSources
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.list_all_payment_sources(async=True)
          >>> result = thread.get()
  
          :param async bool
          :param int page: page number
          :param int size: page size
          :param str sort: page order
          :return: page[PaymentSource]
                   If the method is called asynchronously,
                   returns the request thread.