Sha256: c22e72819346ca26d54e33dc974d03b9cec353b9f1ae9ab8825c0ff890c0571c
Contents?: true
Size: 1.06 KB
Versions: 5
Compression:
Stored size: 1.06 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Entitlements # A feature represents a monetizable ability or functionality in your system. # Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer. class Feature < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List OBJECT_NAME = "entitlements.feature" def self.object_name "entitlements.feature" end # Creates a feature def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/entitlements/features", params: params, opts: opts ) end # Retrieve a list of features def self.list(filters = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/entitlements/features", params: filters, opts: opts ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems