Package com.stripe.model
Class CustomerEntitlementSummary
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.CustomerEntitlementSummary
- All Implemented Interfaces:
StripeActiveObject
,StripeObjectInterface
A summary of a customer's entitlements.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The customer that is entitled to this feature.The list of entitlements this customer has.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 CustomerEntitlementSummary
Retrieve the entitlement summary for a customer.static CustomerEntitlementSummary
retrieve
(String customer, RequestOptions options) Retrieve the entitlement summary for a customer.static CustomerEntitlementSummary
retrieve
(String customer, CustomerEntitlementSummaryRetrieveParams params, RequestOptions options) Retrieve the entitlement summary for a customer.static CustomerEntitlementSummary
Retrieve the entitlement summary for a customer.void
setCustomer
(String customer) The customer that is entitled to this feature.void
setEntitlements
(CustomerEntitlementCollection entitlements) The list of entitlements this customer has.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, rawRequest, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, 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
-
CustomerEntitlementSummary
public CustomerEntitlementSummary()
-
-
Method Details
-
retrieve
Retrieve the entitlement summary for a customer.- Throws:
StripeException
-
retrieve
public static CustomerEntitlementSummary retrieve(String customer, RequestOptions options) throws StripeException Retrieve the entitlement summary for a customer.- Throws:
StripeException
-
retrieve
public static CustomerEntitlementSummary retrieve(String customer, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieve the entitlement summary for a customer.- Throws:
StripeException
-
retrieve
public static CustomerEntitlementSummary retrieve(String customer, CustomerEntitlementSummaryRetrieveParams params, RequestOptions options) throws StripeException Retrieve the entitlement summary for a customer.- 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.
-
getCustomer
The customer that is entitled to this feature. -
getEntitlements
The list of entitlements this customer has. -
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
customer_entitlement_summary
. -
setCustomer
The customer that is entitled to this feature. -
setEntitlements
The list of entitlements this customer has. -
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
customer_entitlement_summary
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-