Sha256: 71602a22872e67e0bdff096cbcac4101c324762eb4948c1b6bfd3c457ed15855

Contents?: true

Size: 775 Bytes

Versions: 8

Compression:

Stored size: 775 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
  # control over a Customer.
  class CustomerSession < APIResource
    extend Stripe::APIOperations::Create

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

    # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.
    def self.create(params = {}, opts = {})
      request_stripe_object(
        method: :post,
        path: "/v1/customer_sessions",
        params: params,
        opts: opts
      )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stripe-12.5.0 lib/stripe/resources/customer_session.rb
stripe-12.5.0.pre.beta.2 lib/stripe/resources/customer_session.rb
stripe-12.5.0.pre.beta.1 lib/stripe/resources/customer_session.rb
stripe-12.4.0 lib/stripe/resources/customer_session.rb
stripe-12.3.0 lib/stripe/resources/customer_session.rb
stripe-12.2.0 lib/stripe/resources/customer_session.rb
stripe-12.2.0.pre.beta.1 lib/stripe/resources/customer_session.rb
stripe-12.1.0 lib/stripe/resources/customer_session.rb