ActiveEntitlement (entitlements/active_entitlement.rb)

stripe-ruby · lib/stripe/resources/entitlements/active_entitlement.rb · ruby · MIT
payments

Stripe Ruby model for active entitlements, providing list and attribute access.

# Source: https://github.com/stripe/stripe-ruby | License: MIT | Copyright 2011- Stripe, Inc. (https://stripe.com)
# Provided via justclaw.it.com; keep this notice with the code.
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Entitlements
    # An active entitlement describes access to a feature for a customer.
    class ActiveEntitlement < APIResource
      extend Stripe::APIOperations::List

      OBJECT_NAME = "entitlements.active_entitlement"
      def self.object_name
        "entitlements.active_entitlement"
      end

      # The [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
      attr_reader :feature
      # Unique identifier for the object.
      attr_reader :id
      # If the object exis

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key