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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic ProductFeaturecreate(String product, ProductFeatureCreateParams params) Creates a product_feature, which represents a feature attachment to a product.static ProductFeaturecreate(String product, ProductFeatureCreateParams params, RequestOptions options) Creates a product_feature, which represents a feature attachment to a product.static ProductFeatureCreates a product_feature, which represents a feature attachment to a product.static ProductFeatureCreates 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.booleanAlways true for a deleted object.A feature represents a monetizable ability or functionality in your system.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.inthashCode()static ProductFeatureCollectionlist(String product, ProductFeatureListParams params) Retrieve a list of features for a product.static ProductFeatureCollectionlist(String product, ProductFeatureListParams params, RequestOptions options) Retrieve a list of features for a product.static ProductFeatureCollectionRetrieve a list of features for a product.static ProductFeatureCollectionRetrieve a list of features for a product.static ProductFeatureRetrieves a product_feature, which represents a feature attachment to a product.static ProductFeatureretrieve(String product, String id, RequestOptions options) Retrieves a product_feature, which represents a feature attachment to a product.static ProductFeatureretrieve(String product, String id, ProductFeatureRetrieveParams params, RequestOptions options) Retrieves a product_feature, which represents a feature attachment to a product.static ProductFeatureRetrieves a product_feature, which represents a feature attachment to a product.voidsetDeleted(Boolean deleted) Always true for a deleted object.voidsetEntitlementFeature(Feature entitlementFeature) A feature represents a monetizable ability or functionality in your system.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-