Sha256: b26b1b11227e44c1002a325b784e0450ecf670599ec12c7516704ceecea06293

Contents?: true

Size: 888 Bytes

Versions: 13

Compression:

Stored size: 888 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Reporting
    class ReportTypeService < StripeService
      # Returns a full list of Report Types.
      def list(params = {}, opts = {})
        request(
          method: :get,
          path: "/v1/reporting/report_types",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).)
      def retrieve(report_type, params = {}, opts = {})
        request(
          method: :get,
          path: format("/v1/reporting/report_types/%<report_type>s", { report_type: CGI.escape(report_type) }),
          params: params,
          opts: opts,
          base_address: :api
        )
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/services/reporting/report_type_service.rb
stripe-13.2.0 lib/stripe/services/reporting/report_type_service.rb
stripe-13.1.2 lib/stripe/services/reporting/report_type_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/reporting/report_type_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/reporting/report_type_service.rb
stripe-13.1.1 lib/stripe/services/reporting/report_type_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/reporting/report_type_service.rb
stripe-13.1.0 lib/stripe/services/reporting/report_type_service.rb
stripe-13.0.2 lib/stripe/services/reporting/report_type_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/reporting/report_type_service.rb
stripe-13.0.1 lib/stripe/services/reporting/report_type_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/reporting/report_type_service.rb
stripe-13.0.0 lib/stripe/services/reporting/report_type_service.rb