Sha256: 04a636ede8c1bce1201bf09c4075aa0bd6b8bcf21cce73ae20ff2ec4b36ebf07

Contents?: true

Size: 1.28 KB

Versions: 20

Compression:

Stored size: 1.28 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Entitlements
    class FeatureService < StripeService
      # Creates a feature
      def create(params = {}, opts = {})
        request(
          method: :post,
          path: "/v1/entitlements/features",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Retrieve a list of features
      def list(params = {}, opts = {})
        request(
          method: :get,
          path: "/v1/entitlements/features",
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Retrieves a feature
      def retrieve(id, params = {}, opts = {})
        request(
          method: :get,
          path: format("/v1/entitlements/features/%<id>s", { id: CGI.escape(id) }),
          params: params,
          opts: opts,
          base_address: :api
        )
      end

      # Update a feature's metadata or permanently deactivate it.
      def update(id, params = {}, opts = {})
        request(
          method: :post,
          path: format("/v1/entitlements/features/%<id>s", { id: CGI.escape(id) }),
          params: params,
          opts: opts,
          base_address: :api
        )
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
stripe-13.5.0 lib/stripe/services/entitlements/feature_service.rb
stripe-13.4.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.4.0 lib/stripe/services/entitlements/feature_service.rb
stripe-13.3.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.3.0 lib/stripe/services/entitlements/feature_service.rb
stripe-13.3.0.pre.beta.3 lib/stripe/services/entitlements/feature_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/entitlements/feature_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.2.0 lib/stripe/services/entitlements/feature_service.rb
stripe-13.1.2 lib/stripe/services/entitlements/feature_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/entitlements/feature_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/entitlements/feature_service.rb
stripe-13.1.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.1.0 lib/stripe/services/entitlements/feature_service.rb
stripe-13.0.2 lib/stripe/services/entitlements/feature_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/entitlements/feature_service.rb
stripe-13.0.1 lib/stripe/services/entitlements/feature_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/entitlements/feature_service.rb
stripe-13.0.0 lib/stripe/services/entitlements/feature_service.rb