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
  • Constructor Details

    • UsageRecordSummary

      public UsageRecordSummary()
  • Method Details

    • getInvoice

      public String getInvoice()
      The invoice in which this usage period has been billed for.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public 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 String getSubscriptionItem()
      The ID of the subscription item this summary is describing.
    • getTotalUsage

      public Long getTotalUsage()
      The total usage within this usage period.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • setInvoice

      public void setInvoice(String invoice)
      The invoice in which this usage period has been billed for.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(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(String subscriptionItem)
      The ID of the subscription item this summary is describing.
    • setTotalUsage

      public void setTotalUsage(Long totalUsage)
      The total usage within this usage period.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getId

      public String getId()
      Unique identifier for the object.
      Specified by:
      getId in interface HasId