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 classUsageRecordSummary.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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetId()Unique identifier for the object.java.lang.StringgetInvoice()The invoice in which this usage period has been billed for.java.lang.BooleangetLivemode()Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.java.lang.StringgetObject()String representing the object's type.UsageRecordSummary.PeriodgetPeriod()java.lang.StringgetSubscriptionItem()The ID of the subscription item this summary is describing.java.lang.LonggetTotalUsage()The total usage within this usage period.inthashCode()voidsetId(java.lang.String id)Unique identifier for the object.voidsetInvoice(java.lang.String invoice)The invoice in which this usage period has been billed for.voidsetLivemode(java.lang.Boolean livemode)Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetObject(java.lang.String object)String representing the object's type.voidsetPeriod(UsageRecordSummary.Period period)voidsetSubscriptionItem(java.lang.String subscriptionItem)The ID of the subscription item this summary is describing.voidsetTotalUsage(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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-