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
The Custom Pricing Unit object.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanWhether 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()voidWhether the custom pricing unit is active.voidsetCreated(Instant created) Timestamp of when the object was created.voidsetDisplayName(String displayName) Description that customers will see in the invoice line item.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLookupKey(String lookupKey) An internal key you can use to search for a particular Custom Pricing Unit.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-