Class MeteredItem

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeteredItem
All Implemented Interfaces:
HasId, StripeObjectInterface

public class MeteredItem extends StripeObject implements HasId
  • Constructor Details

    • MeteredItem

      public MeteredItem()
  • Method Details

    • getCreated

      public Instant getCreated()
      Timestamp of when the object was created.
    • getDisplayName

      public String getDisplayName()
      Description that customers will see in the invoice line item. Maximum length of 250 characters.
    • getInvoicePresentationDimensions

      public List<String> getInvoicePresentationDimensions()
      Optional array of Meter dimensions to group event dimension keys for invoice line items.
    • 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.
    • getLookupKey

      public String getLookupKey()
      An internal key you can use to search for a particular billable item. Maximum length of 200 characters.
    • getMetadata

      public Map<String,String> getMetadata()
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • getMeter

      public String getMeter()
      ID of the Meter that measures usage for this Metered Item.
    • getMeterSegmentConditions

      public List<MeteredItem.MeterSegmentCondition> getMeterSegmentConditions()
      Optional array of Meter segments to filter event dimension keys for billing.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.metered_item.

    • getTaxDetails

      public MeteredItem.TaxDetails getTaxDetails()
      Stripe Tax details.
    • getUnitLabel

      public String getUnitLabel()
      The unit to use when displaying prices for this billable item in places like Checkout. For example, set this field to "CPU-hour" for Checkout to display "(price) per CPU-hour", or "1 million events" to display "(price) per 1 million events". Maximum length of 100 characters.
    • setCreated

      public void setCreated(Instant created)
      Timestamp of when the object was created.
    • setDisplayName

      public void setDisplayName(String displayName)
      Description that customers will see in the invoice line item. Maximum length of 250 characters.
    • setId

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

      public void setInvoicePresentationDimensions(List<String> invoicePresentationDimensions)
      Optional array of Meter dimensions to group event dimension keys for invoice line items.
    • 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.
    • setLookupKey

      public void setLookupKey(String lookupKey)
      An internal key you can use to search for a particular billable item. Maximum length of 200 characters.
    • setMetadata

      public void setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
    • setMeter

      public void setMeter(String meter)
      ID of the Meter that measures usage for this Metered Item.
    • setMeterSegmentConditions

      public void setMeterSegmentConditions(List<MeteredItem.MeterSegmentCondition> meterSegmentConditions)
      Optional array of Meter segments to filter event dimension keys for billing.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value of the object field.

      Equal to v2.billing.metered_item.

    • setTaxDetails

      public void setTaxDetails(MeteredItem.TaxDetails taxDetails)
      Stripe Tax details.
    • setUnitLabel

      public void setUnitLabel(String unitLabel)
      The unit to use when displaying prices for this billable item in places like Checkout. For example, set this field to "CPU-hour" for Checkout to display "(price) per CPU-hour", or "1 million events" to display "(price) per 1 million events". Maximum length of 100 characters.
    • 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