Class CustomPricingUnit

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

public class CustomPricingUnit extends StripeObject implements HasId
  • Constructor Details

    • CustomPricingUnit

      public CustomPricingUnit()
  • Method Details

    • getActive

      public Boolean getActive()
      Whether the custom pricing unit is active.
    • 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 10 characters.
    • 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 Custom Pricing Unit. 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.
    • 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.custom_pricing_unit.

    • setActive

      public void setActive(Boolean active)
      Whether the custom pricing unit is active.
    • 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 10 characters.
    • setId

      public void setId(String id)
      Unique identifier for the object.
    • 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 Custom Pricing Unit. 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.
    • 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.custom_pricing_unit.

    • 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