Sha256: ee07cc7a84c2451f2b60584837375a0af7a008cb0cd02e3ca29c46b68eab4925

Contents?: true

Size: 518 Bytes

Versions: 38

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

module Stripe
  module APIOperations
    module List
      def list(filters = {}, opts = {})
        opts = Util.normalize_opts(opts)

        resp, opts = execute_resource_request(:get, resource_url, filters, opts)
        obj = ListObject.construct_from(resp.data, opts)

        # set filters so that we can fetch the same limit, expansions, and
        # predicates when accessing the next and previous pages
        obj.filters = filters.dup
        obj
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
stripe-6.3.0 lib/stripe/api_operations/list.rb
stripe-6.2.0 lib/stripe/api_operations/list.rb
stripe-6.1.0 lib/stripe/api_operations/list.rb
stripe-6.0.0 lib/stripe/api_operations/list.rb
stripe-5.55.0 lib/stripe/api_operations/list.rb
stripe-5.54.0 lib/stripe/api_operations/list.rb
stripe-5.53.0 lib/stripe/api_operations/list.rb
stripe-5.52.0 lib/stripe/api_operations/list.rb
stripe-5.50.0 lib/stripe/api_operations/list.rb
stripe-5.49.0 lib/stripe/api_operations/list.rb
stripe-5.48.0 lib/stripe/api_operations/list.rb
stripe-5.47.0 lib/stripe/api_operations/list.rb
stripe-5.46.0 lib/stripe/api_operations/list.rb
stripe-5.45.0 lib/stripe/api_operations/list.rb
stripe-5.44.0 lib/stripe/api_operations/list.rb
stripe-5.43.0 lib/stripe/api_operations/list.rb
stripe-5.42.0 lib/stripe/api_operations/list.rb
stripe-5.41.0 lib/stripe/api_operations/list.rb
stripe-5.40.0 lib/stripe/api_operations/list.rb
stripe-5.39.0 lib/stripe/api_operations/list.rb