Package com.stripe.model
Class ProductFeature
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.ProductFeature
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
static ProductFeature
create
(String product, ProductFeatureCreateParams params) Creates a product_feature, which represents a feature attachment to a product.static ProductFeature
create
(String product, ProductFeatureCreateParams params, RequestOptions options) Creates a product_feature, which represents a feature attachment to a product.static ProductFeature
Creates a product_feature, which represents a feature attachment to a product.static ProductFeature
Creates a product_feature, which represents a feature attachment to a product.Deletes the feature attachment to a product.delete
(String product, RequestOptions options) Deletes the feature attachment to a product.Deletes the feature attachment to a product.Deletes the feature attachment to a product.boolean
Always true for a deleted object.A feature represents a monetizable ability or functionality in your system.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.int
hashCode()
static ProductFeatureCollection
list
(String product, ProductFeatureListParams params) Retrieve a list of features for a product.static ProductFeatureCollection
list
(String product, ProductFeatureListParams params, RequestOptions options) Retrieve a list of features for a product.static ProductFeatureCollection
Retrieve a list of features for a product.static ProductFeatureCollection
Retrieve a list of features for a product.static ProductFeature
Retrieves a product_feature, which represents a feature attachment to a product.static ProductFeature
retrieve
(String product, String id, RequestOptions options) Retrieves a product_feature, which represents a feature attachment to a product.static ProductFeature
retrieve
(String product, String id, ProductFeatureRetrieveParams params, RequestOptions options) Retrieves a product_feature, which represents a feature attachment to a product.static ProductFeature
Retrieves a product_feature, which represents a feature attachment to a product.void
setDeleted
(Boolean deleted) Always true for a deleted object.void
setEntitlementFeature
(Feature entitlementFeature) A feature represents a monetizable ability or functionality in your system.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
ProductFeature
public ProductFeature()
-
-
Method Details
-
create
public static ProductFeature create(String product, Map<String, Object> params) throws StripeExceptionCreates a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
create
public static ProductFeature create(String product, Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
create
public static ProductFeature create(String product, ProductFeatureCreateParams params) throws StripeException Creates a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
create
public static ProductFeature create(String product, ProductFeatureCreateParams params, RequestOptions options) throws StripeException Creates a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
delete
Deletes the feature attachment to a product.- Throws:
StripeException
-
delete
Deletes the feature attachment to a product.- Throws:
StripeException
-
delete
Deletes the feature attachment to a product.- Throws:
StripeException
-
delete
public ProductFeature delete(String product, Map<String, Object> params, RequestOptions options) throws StripeExceptionDeletes the feature attachment to a product.- Throws:
StripeException
-
list
public static ProductFeatureCollection list(String product, Map<String, Object> params) throws StripeExceptionRetrieve a list of features for a product.- Throws:
StripeException
-
list
public static ProductFeatureCollection list(String product, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of features for a product.- Throws:
StripeException
-
list
public static ProductFeatureCollection list(String product, ProductFeatureListParams params) throws StripeException Retrieve a list of features for a product.- Throws:
StripeException
-
list
public static ProductFeatureCollection list(String product, ProductFeatureListParams params, RequestOptions options) throws StripeException Retrieve a list of features for a product.- Throws:
StripeException
-
retrieve
Retrieves a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
retrieve
public static ProductFeature retrieve(String product, String id, RequestOptions options) throws StripeException Retrieves a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
retrieve
public static ProductFeature retrieve(String product, String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
retrieve
public static ProductFeature retrieve(String product, String id, ProductFeatureRetrieveParams params, RequestOptions options) throws StripeException Retrieves a product_feature, which represents a feature attachment to a product.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getDeleted
Always true for a deleted object. -
getEntitlementFeature
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. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
product_feature
. -
setDeleted
Always true for a deleted object. -
setEntitlementFeature
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. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
product_feature
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-