Package com.stripe.model.v2.billing
Class MeteredItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.MeteredItem
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about MeterSegmentCondition, please refer to the API Reference.static class
For more details about TaxDetails, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Timestamp of when the object was created.Description that customers will see in the invoice line item.getId()
Unique identifier for the object.Optional array of Meter dimensions to group event dimension keys for invoice line items.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.An internal key you can use to search for a particular billable item.Set of key-value pairs that you can attach to an object.getMeter()
ID of the Meter that measures usage for this Metered Item.Optional array of Meter segments to filter event dimension keys for billing.String representing the object's type.Stripe Tax details.The unit to use when displaying prices for this billable item in places like Checkout.int
hashCode()
void
setCreated
(Instant created) Timestamp of when the object was created.void
setDisplayName
(String displayName) Description that customers will see in the invoice line item.void
Unique identifier for the object.void
setInvoicePresentationDimensions
(List<String> invoicePresentationDimensions) Optional array of Meter dimensions to group event dimension keys for invoice line items.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
setLookupKey
(String lookupKey) An internal key you can use to search for a particular billable item.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
ID of the Meter that measures usage for this Metered Item.void
setMeterSegmentConditions
(List<MeteredItem.MeterSegmentCondition> meterSegmentConditions) Optional array of Meter segments to filter event dimension keys for billing.void
String representing the object's type.void
setTaxDetails
(MeteredItem.TaxDetails taxDetails) Stripe Tax details.void
setUnitLabel
(String unitLabel) The unit to use when displaying prices for this billable item in places like Checkout.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
MeteredItem
public MeteredItem()
-
-
Method Details
-
getCreated
Timestamp of when the object was created. -
getDisplayName
Description that customers will see in the invoice line item. Maximum length of 250 characters. -
getInvoicePresentationDimensions
Optional array of Meter dimensions to group event dimension keys for invoice line items. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getLookupKey
An internal key you can use to search for a particular billable item. Maximum length of 200 characters. -
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
ID of the Meter that measures usage for this Metered Item. -
getMeterSegmentConditions
Optional array of Meter segments to filter event dimension keys for billing. -
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
Stripe Tax details. -
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
Timestamp of when the object was created. -
setDisplayName
Description that customers will see in the invoice line item. Maximum length of 250 characters. -
setId
Unique identifier for the object. -
setInvoicePresentationDimensions
Optional array of Meter dimensions to group event dimension keys for invoice line items. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setLookupKey
An internal key you can use to search for a particular billable item. Maximum length of 200 characters. -
setMetadata
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
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
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
Stripe Tax details. -
setUnitLabel
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
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-