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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Get ID of expandablefeature
object.Get expandedfeature
.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.A unique key you provide as your own system identifier.String representing the object's type.int
hashCode()
static ActiveEntitlementCollection
list
(ActiveEntitlementListParams params) Retrieve a list of active entitlements for a customer.static ActiveEntitlementCollection
list
(ActiveEntitlementListParams params, RequestOptions options) Retrieve a list of active entitlements for a customer.static ActiveEntitlementCollection
Retrieve a list of active entitlements for a customer.static ActiveEntitlementCollection
list
(Map<String, Object> params, RequestOptions options) Retrieve a list of active entitlements for a customer.static ActiveEntitlement
Retrieve an active entitlement.static ActiveEntitlement
retrieve
(String id, RequestOptions options) Retrieve an active entitlement.static ActiveEntitlement
retrieve
(String id, ActiveEntitlementRetrieveParams params, RequestOptions options) Retrieve an active entitlement.static ActiveEntitlement
Retrieve an active entitlement.void
setFeature
(String id) void
setFeatureObject
(Feature expandableObject) 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
setLookupKey
(String lookupKey) A unique key you provide as your own system identifier.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
-
ActiveEntitlement
public ActiveEntitlement()
-
-
Method Details
-
getFeature
Get ID of expandablefeature
object. -
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: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.
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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.
-