Package com.stripe.model.v2.billing
Class CustomPricingUnit
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.CustomPricingUnit
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Whether the custom pricing unit is active.Timestamp of when the object was created.Description that customers will see in the invoice line item.getId()
Unique identifier for the object.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 Custom Pricing Unit.Set of key-value pairs that you can attach to an object.String representing the object's type.int
hashCode()
void
Whether the custom pricing unit is active.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
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 Custom Pricing Unit.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CustomPricingUnit
public CustomPricingUnit()
-
-
Method Details
-
getActive
Whether the custom pricing unit is active. -
getCreated
Timestamp of when the object was created. -
getDisplayName
Description that customers will see in the invoice line item. Maximum length of 10 characters. -
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 Custom Pricing Unit. 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. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.custom_pricing_unit
. -
setActive
Whether the custom pricing unit is active. -
setCreated
Timestamp of when the object was created. -
setDisplayName
Description that customers will see in the invoice line item. Maximum length of 10 characters. -
setId
Unique identifier for the object. -
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 Custom Pricing Unit. 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. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.custom_pricing_unit
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-