Package com.stripe.model
Class UsageRecordSummary
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.model.UsageRecordSummary
-
- All Implemented Interfaces:
HasId
,StripeObjectInterface
public class UsageRecordSummary extends StripeObject implements HasId
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsageRecordSummary.Period
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description UsageRecordSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getId()
Unique identifier for the object.java.lang.String
getInvoice()
The invoice in which this usage period has been billed for.java.lang.Boolean
getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.java.lang.String
getObject()
String representing the object's type.UsageRecordSummary.Period
getPeriod()
java.lang.String
getSubscriptionItem()
The ID of the subscription item this summary is describing.java.lang.Long
getTotalUsage()
The total usage within this usage period.int
hashCode()
void
setId(java.lang.String id)
Unique identifier for the object.void
setInvoice(java.lang.String invoice)
The invoice in which this usage period has been billed for.void
setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setObject(java.lang.String object)
String representing the object's type.void
setPeriod(UsageRecordSummary.Period period)
void
setSubscriptionItem(java.lang.String subscriptionItem)
The ID of the subscription item this summary is describing.void
setTotalUsage(java.lang.Long totalUsage)
The total usage within this usage period.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getInvoice
public java.lang.String getInvoice()
The invoice in which this usage period has been billed for.
-
getLivemode
public java.lang.Boolean getLivemode()
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
getObject
public java.lang.String getObject()
String representing the object's type. Objects of the same type share the same value.Equal to
usage_record_summary
.
-
getPeriod
public UsageRecordSummary.Period getPeriod()
-
getSubscriptionItem
public java.lang.String getSubscriptionItem()
The ID of the subscription item this summary is describing.
-
getTotalUsage
public java.lang.Long getTotalUsage()
The total usage within this usage period.
-
setId
public void setId(java.lang.String id)
Unique identifier for the object.
-
setInvoice
public void setInvoice(java.lang.String invoice)
The invoice in which this usage period has been billed for.
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.
-
setObject
public void setObject(java.lang.String object)
String representing the object's type. Objects of the same type share the same value.Equal to
usage_record_summary
.
-
setPeriod
public void setPeriod(UsageRecordSummary.Period period)
-
setSubscriptionItem
public void setSubscriptionItem(java.lang.String subscriptionItem)
The ID of the subscription item this summary is describing.
-
setTotalUsage
public void setTotalUsage(java.lang.Long totalUsage)
The total usage within this usage period.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-