Sha256: ee1ed40b8aca515c1bf8d5d8aa3f59319c2b99ab92011a4a9ad3c5dc99fca487

Contents?: true

Size: 1.61 KB

Versions: 13

Compression:

Stored size: 1.61 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module BillingPortal
    class ConfigurationService < StripeService
      # Creates a configuration that describes the functionality and behavior of a PortalSession
      def create(params = {}, opts = {})
        request(
          method: :post,
          path: "/v1/billing_portal/configurations",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

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

      # Retrieves a configuration that describes the functionality of the customer portal.
      def retrieve(configuration, params = {}, opts = {})
        request(
          method: :get,
          path: format("/v1/billing_portal/configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
          params: params,
          opts: opts,
          base_address: :api
        )
      end

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