Package com.stripe.model.entitlements
Class ActiveEntitlement
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.entitlements.ActiveEntitlement
- All Implemented Interfaces:
- HasId,- StripeActiveObject,- StripeObjectInterface
An active entitlement describes access to a feature for a customer.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.stripe.net.ApiResourceApiResource.RequestMethod
- 
Field SummaryFields inherited from class com.stripe.net.ApiResourceCHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObjectPRETTY_PRINT_GSON
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanbooleanGet ID of expandablefeatureobject.Get expandedfeature.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.A unique key you provide as your own system identifier.String representing the object's type.inthashCode()static ActiveEntitlementCollectionlist(ActiveEntitlementListParams params) Retrieve a list of active entitlements for a customer.static ActiveEntitlementCollectionlist(ActiveEntitlementListParams params, RequestOptions options) Retrieve a list of active entitlements for a customer.static ActiveEntitlementCollectionRetrieve a list of active entitlements for a customer.static ActiveEntitlementCollectionlist(Map<String, Object> params, RequestOptions options) Retrieve a list of active entitlements for a customer.static ActiveEntitlementRetrieve an active entitlement.static ActiveEntitlementretrieve(String id, RequestOptions options) Retrieve an active entitlement.static ActiveEntitlementretrieve(String id, ActiveEntitlementRetrieveParams params, RequestOptions options) Retrieve an active entitlement.static ActiveEntitlementRetrieve an active entitlement.voidsetFeature(String id) voidsetFeatureObject(Feature expandableObject) 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.voidsetLookupKey(String lookupKey) A unique key you provide as your own system identifier.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.ApiResourcecheckNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObjectdeserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObjecttrySetResponseGetter
- 
Constructor Details- 
ActiveEntitlementpublic ActiveEntitlement()
 
- 
- 
Method Details- 
getFeatureGet ID of expandablefeatureobject.
- 
setFeature
- 
getFeatureObjectGet expandedfeature.
- 
setFeatureObject
- 
listRetrieve a list of active entitlements for a customer.- Throws:
- StripeException
 
- 
listpublic static ActiveEntitlementCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of active entitlements for a customer.- Throws:
- StripeException
 
- 
listpublic static ActiveEntitlementCollection list(ActiveEntitlementListParams params) throws StripeException Retrieve a list of active entitlements for a customer.- Throws:
- StripeException
 
- 
listpublic static ActiveEntitlementCollection list(ActiveEntitlementListParams params, RequestOptions options) throws StripeException Retrieve a list of active entitlements for a customer.- Throws:
- StripeException
 
- 
retrieveRetrieve an active entitlement.- Throws:
- StripeException
 
- 
retrieveRetrieve an active entitlement.- Throws:
- StripeException
 
- 
retrievepublic static ActiveEntitlement retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve an active entitlement.- Throws:
- StripeException
 
- 
retrievepublic static ActiveEntitlement retrieve(String id, ActiveEntitlementRetrieveParams params, RequestOptions options) throws StripeException Retrieve an active entitlement.- Throws:
- StripeException
 
- 
setResponseGetterDescription copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
- setResponseGetterin interface- StripeActiveObject
- Overrides:
- setResponseGetterin class- ApiResource
- Parameters:
- responseGetter- the- StripeResponseGetterinstance to use for making further requests.
 
- 
getLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
getLookupKeyA unique key you provide as your own system identifier. This may be up to 80 characters.
- 
getObjectString representing the object's type. Objects of the same type share the same value.Equal to entitlements.active_entitlement.
- 
setIdUnique identifier for the object.
- 
setLivemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.
- 
setLookupKeyA unique key you provide as your own system identifier. This may be up to 80 characters.
- 
setObjectString representing the object's type. Objects of the same type share the same value.Equal to entitlements.active_entitlement.
- 
equals
- 
canEqual
- 
hashCodepublic int hashCode()
- 
getIdUnique identifier for the object.
 
-