Stripe::EntitlementsApi
Constants
Constructors
Instance methods
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
Retrieve a list of active entitlements for a customer
@required @param customer [String?] The ID of the customer. @optional @param ending_before [String?] A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::EntitlementsResourceCustomerEntitlementList]<p>Retrieve a list of active entitlements for a customer</p>
@required @param customer [String?] The ID of the customer.
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return nil
Retrieve an active entitlement
@required @param id [String?] The ID of the entitlement. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::EntitlementsActiveEntitlement]<p>Retrieve an active entitlement</p> @required @param id [String?] The ID of the entitlement. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil
<p>Retrieve an active entitlement</p> @required @param id [String?] The ID of the entitlement. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::EntitlementsActiveEntitlement, Integer, Hash)] Stripe::EntitlementsActiveEntitlement, response status code and response headers
<p>Retrieve a list of active entitlements for a customer</p>
@required @param customer [String?] The ID of the customer.
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return [Tuple(Stripe::EntitlementsResourceCustomerEntitlementList, Integer, Hash)] Stripe::EntitlementsResourceCustomerEntitlementList, response status code and response headers
Retrieve a list of features
@optional @param ending_before [String?] A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param archived [Bool?] If set, filter results to only include features with the given archive status. @optional @param lookup_key [String?] If set, filter results to only include features with the given lookup_key. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::EntitlementsResourceFeatureList]<p>Retrieve a list of features</p>
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param archived [Bool?] If set, filter results to only include features with the given archive status.
@optional @param lookup_key [String?] If set, filter results to only include features with the given lookup_key.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return nil
Retrieves a feature
@required @param id [String?] The ID of the feature. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::EntitlementsFeature]<p>Retrieves a feature</p> @required @param id [String?] The ID of the feature. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil
<p>Retrieves a feature</p> @required @param id [String?] The ID of the feature. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::EntitlementsFeature, Integer, Hash)] Stripe::EntitlementsFeature, response status code and response headers
<p>Retrieve a list of features</p>
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param archived [Bool?] If set, filter results to only include features with the given archive status.
@optional @param lookup_key [String?] If set, filter results to only include features with the given lookup_key.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return [Tuple(Stripe::EntitlementsResourceFeatureList, Integer, Hash)] Stripe::EntitlementsResourceFeatureList, response status code and response headers
Creates a feature
@required @param lookup_key [String?] A unique key you provide as your own system identifier. This may be up to 80 characters. @required @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Hash(String, String)?] @return [Stripe::EntitlementsFeature]<p>Creates a feature</p> @required @param lookup_key [String?] A unique key you provide as your own system identifier. This may be up to 80 characters. @required @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Hash(String, String)?] @return nil
Update a feature’s metadata or permanently deactivate it.
@required @param id [String?] @optional @param active [Bool?] Inactive features cannot be attached to new products and will not be returned from the features list endpoint. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Stripe::PostEntitlementsFeaturesIdRequestMetadata?] @optional @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @return [Stripe::EntitlementsFeature]<p>Update a feature’s metadata or permanently deactivate it.</p> @required @param id [String?] @optional @param active [Bool?] Inactive features cannot be attached to new products and will not be returned from the features list endpoint. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Stripe::PostEntitlementsFeaturesIdRequestMetadata?] @optional @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @return nil
<p>Update a feature’s metadata or permanently deactivate it.</p> @required @param id [String?] @optional @param active [Bool?] Inactive features cannot be attached to new products and will not be returned from the features list endpoint. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Stripe::PostEntitlementsFeaturesIdRequestMetadata?] @optional @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @return [Tuple(Stripe::EntitlementsFeature, Integer, Hash)] Stripe::EntitlementsFeature, response status code and response headers
<p>Creates a feature</p> @required @param lookup_key [String?] A unique key you provide as your own system identifier. This may be up to 80 characters. @required @param name [String?] The feature's name, for your own purpose, not meant to be displayable to the customer. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param metadata [Hash(String, String)?] @return [Tuple(Stripe::EntitlementsFeature, Integer, Hash)] Stripe::EntitlementsFeature, response status code and response headers