Sha256: c46aaae40bcf4ce0b72b62fb8d2692cdc25a4d751cc0ec7b3fd2fac9177ebed6

Contents?: true

Size: 1.03 KB

Versions: 49

Compression:

Stored size: 1.03 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
  #
  # We recommend that you create an AccountSession each time you need to display an embedded component
  # to your user. Do not save AccountSessions to your database as they expire relatively
  # quickly, and cannot be used more than once.
  #
  # Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components)
  class AccountSession < APIResource
    extend Stripe::APIOperations::Create

    OBJECT_NAME = "account_session"
    def self.object_name
      "account_session"
    end

    # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.
    def self.create(params = {}, opts = {})
      request_stripe_object(method: :post, path: "/v1/account_sessions", params: params, opts: opts)
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/resources/account_session.rb
stripe-13.2.0 lib/stripe/resources/account_session.rb
stripe-13.1.2 lib/stripe/resources/account_session.rb
stripe-13.2.0.pre.beta.3 lib/stripe/resources/account_session.rb
stripe-13.2.0.pre.beta.2 lib/stripe/resources/account_session.rb
stripe-13.1.1 lib/stripe/resources/account_session.rb
stripe-13.2.0.pre.beta.1 lib/stripe/resources/account_session.rb
stripe-13.1.0 lib/stripe/resources/account_session.rb
stripe-13.0.2 lib/stripe/resources/account_session.rb
stripe-13.1.0.pre.beta.3 lib/stripe/resources/account_session.rb
stripe-13.0.1 lib/stripe/resources/account_session.rb
stripe-13.1.0.pre.beta.2 lib/stripe/resources/account_session.rb
stripe-13.0.0 lib/stripe/resources/account_session.rb
stripe-12.7.0.pre.beta.2 lib/stripe/resources/account_session.rb
stripe-12.7.0.pre.beta.1 lib/stripe/resources/account_session.rb
stripe-12.6.0 lib/stripe/resources/account_session.rb
stripe-12.6.0.pre.beta.1 lib/stripe/resources/account_session.rb
stripe-12.5.0 lib/stripe/resources/account_session.rb
stripe-12.5.0.pre.beta.2 lib/stripe/resources/account_session.rb
stripe-12.5.0.pre.beta.1 lib/stripe/resources/account_session.rb