Package com.stripe.model
Class UsageRecordSummary
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.UsageRecordSummary
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getId()
Unique identifier for the object.The invoice in which this usage period has been billed for.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.The ID of the subscription item this summary is describing.The total usage within this usage period.int
hashCode()
void
Unique identifier for the object.void
setInvoice
(String invoice) The invoice in which this usage period has been billed for.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
setPeriod
(UsageRecordSummary.Period period) void
setSubscriptionItem
(String subscriptionItem) The ID of the subscription item this summary is describing.void
setTotalUsage
(Long totalUsage) The total usage within this usage period.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
UsageRecordSummary
public UsageRecordSummary()
-
-
Method Details
-
getInvoice
The invoice in which this usage period has been billed for. -
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
usage_record_summary
. -
getPeriod
-
getSubscriptionItem
The ID of the subscription item this summary is describing. -
getTotalUsage
The total usage within this usage period. -
setId
Unique identifier for the object. -
setInvoice
The invoice in which this usage period has been billed for. -
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
usage_record_summary
. -
setPeriod
-
setSubscriptionItem
The ID of the subscription item this summary is describing. -
setTotalUsage
The total usage within this usage period. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-