-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v914 * Update generated code for v918 * Update generated code for v919 * Update generated code for v923 * Update generated code for v935 * Update generated code for v938 * Revert "Update generated code for v935" This reverts commit 5316ec6. --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]>
- Loading branch information
1 parent
a12ff9c
commit dfea3bd
Showing
9 changed files
with
289 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v908 | ||
v938 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# 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 | ||
include Stripe::APIOperations::Save | ||
|
||
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 | ||
|
||
# Update a feature's metadata or permanently deactivate it. | ||
def self.update(id, params = {}, opts = {}) | ||
request_stripe_object( | ||
method: :post, | ||
path: format("/v1/entitlements/features/%<id>s", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts | ||
) | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
# A product_feature represents an attachment between a feature and a product. | ||
# When a product is purchased that has a feature attached, Stripe will create an entitlement to the feature for the purchasing customer. | ||
class ProductFeature < APIResource | ||
OBJECT_NAME = "product_feature" | ||
def self.object_name | ||
"product_feature" | ||
end | ||
end | ||
end |
Oops, something went wrong.