mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-12-05 00:02:14 -05:00
27 lines
702 B
Ruby
27 lines
702 B
Ruby
# 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
|
|
|
|
# Retrieve a list of active entitlements for a customer
|
|
def self.list(filters = {}, opts = {})
|
|
request_stripe_object(
|
|
method: :get,
|
|
path: "/v1/entitlements/active_entitlements",
|
|
params: filters,
|
|
opts: opts
|
|
)
|
|
end
|
|
end
|
|
end
|
|
end
|