Sha256: 24802d02f29aded2f02e243cd1efc451ac935b2e4bffc67f8d8b90c9c9b1dc4a

Contents?: true

Size: 1.47 KB

Versions: 49

Compression:

Stored size: 1.47 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module BillingPortal
    # A portal configuration describes the functionality and behavior of a portal session.
    class Configuration < APIResource
      extend Stripe::APIOperations::Create
      extend Stripe::APIOperations::List
      include Stripe::APIOperations::Save

      OBJECT_NAME = "billing_portal.configuration"
      def self.object_name
        "billing_portal.configuration"
      end

      # Creates a configuration that describes the functionality and behavior of a PortalSession
      def self.create(params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: "/v1/billing_portal/configurations",
          params: params,
          opts: opts
        )
      end

      # Returns a list of configurations that describe the functionality of the customer portal.
      def self.list(filters = {}, opts = {})
        request_stripe_object(
          method: :get,
          path: "/v1/billing_portal/configurations",
          params: filters,
          opts: opts
        )
      end

      # Updates a configuration that describes the functionality of the customer portal.
      def self.update(id, params = {}, opts = {})
        request_stripe_object(
          method: :post,
          path: format("/v1/billing_portal/configurations/%<id>s", { id: CGI.escape(id) }),
          params: params,
          opts: opts
        )
      end
    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/billing_portal/configuration.rb
stripe-13.2.0 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.1.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.2.0.pre.beta.3 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.2.0.pre.beta.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.1.1 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.2.0.pre.beta.1 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.1.0 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.0.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.1.0.pre.beta.3 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.0.1 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.1.0.pre.beta.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-13.0.0 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.7.0.pre.beta.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.7.0.pre.beta.1 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.6.0 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.6.0.pre.beta.1 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.5.0 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.5.0.pre.beta.2 lib/stripe/resources/billing_portal/configuration.rb
stripe-12.5.0.pre.beta.1 lib/stripe/resources/billing_portal/configuration.rb