Sha256: e5cbd2f5f761e826c2e605af2f207308c17fcd9cecb626fd9a7ac380b162e4b5

Contents?: true

Size: 929 Bytes

Versions: 13

Compression:

Stored size: 929 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module FinancialConnections
    class SessionService < StripeService
      # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js.
      def create(params = {}, opts = {})
        request(
          method: :post,
          path: "/v1/financial_connections/sessions",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Retrieves the details of a Financial Connections Session
      def retrieve(session, params = {}, opts = {})
        request(
          method: :get,
          path: format("/v1/financial_connections/sessions/%<session>s", { session: CGI.escape(session) }),
          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/financial_connections/session_service.rb
stripe-13.2.0 lib/stripe/services/financial_connections/session_service.rb
stripe-13.1.2 lib/stripe/services/financial_connections/session_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/financial_connections/session_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/financial_connections/session_service.rb
stripe-13.1.1 lib/stripe/services/financial_connections/session_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/financial_connections/session_service.rb
stripe-13.1.0 lib/stripe/services/financial_connections/session_service.rb
stripe-13.0.2 lib/stripe/services/financial_connections/session_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/financial_connections/session_service.rb
stripe-13.0.1 lib/stripe/services/financial_connections/session_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/financial_connections/session_service.rb
stripe-13.0.0 lib/stripe/services/financial_connections/session_service.rb