Sha256: 4533f0e80c5be3bbc8975ce34af6e4d9398b939a4189e0a217a90acee3b71000

Contents?: true

Size: 774 Bytes

Versions: 13

Compression:

Stored size: 774 Bytes

Contents

# frozen_string_literal: true
# typed: true

module Stripe
  class StripeService
    # Initializes a new StripeService
    def initialize(requestor)
      @requestor = requestor
    end

    def request(method:, path:, base_address:, params: {}, opts: {})
      @requestor.execute_request(
        method,
        path,
        base_address,
        params: params,
        opts: RequestOptions.extract_opts_from_hash(opts)
      )
    end

    def request_stream(method:, path:, base_address:, params: {}, opts: {}, &read_body_chunk_block)
      @requestor.execute_request_stream(
        method,
        path,
        base_address,
        params: params,
        opts: RequestOptions.extract_opts_from_hash(opts),
        &read_body_chunk_block
      )
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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