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 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 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.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
-
ActiveEntitlement
public ActiveEntitlement()
-
-
Method Details
-
getFeature
Get ID of expandablefeatureobject. -
setFeature
-
getFeatureObject
Get expandedfeature. -
setFeatureObject
-
list
Retrieve a list of active entitlements for a customer.- Throws:
StripeException
-
list
public static ActiveEntitlementCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve a list of active entitlements for a customer.- Throws:
StripeException
-
list
public static ActiveEntitlementCollection list(ActiveEntitlementListParams params) throws StripeException Retrieve a list of active entitlements for a customer.- Throws:
StripeException
-
list
public static ActiveEntitlementCollection list(ActiveEntitlementListParams params, RequestOptions options) throws StripeException Retrieve a list of active entitlements for a customer.- Throws:
StripeException
-
retrieve
Retrieve an active entitlement.- Throws:
StripeException
-
retrieve
Retrieve an active entitlement.- Throws:
StripeException
-
retrieve
public static ActiveEntitlement retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve an active entitlement.- Throws:
StripeException
-
retrieve
public static ActiveEntitlement retrieve(String id, ActiveEntitlementRetrieveParams params, RequestOptions options) throws StripeException Retrieve an active entitlement.- 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.
-
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getLookupKey
A unique key you provide as your own system identifier. This may be up to 80 characters. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
entitlements.active_entitlement. -
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. -
setLookupKey
A unique key you provide as your own system identifier. This may be up to 80 characters. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
entitlements.active_entitlement. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-