Class PricingPlan

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

public class PricingPlan extends StripeObject implements HasId
  • Constructor Details

    • PricingPlan

      public PricingPlan()
  • Method Details

    • getActive

      public Boolean getActive()
      Whether the PricingPlan is active.
    • getCreated

      public Instant getCreated()
      Time at which the object was created.
    • getCurrency

      public String getCurrency()
      The currency of the PricingPlan.
    • getDescription

      public String getDescription()
      A description for pricing plan subscription. Maximum length of 500 characters.
    • getDisplayName

      public String getDisplayName()
      Display name of the PricingPlan.
    • getLatestVersion

      public String getLatestVersion()
      The ID of the latest version of the PricingPlan.
    • getLiveVersion

      public String getLiveVersion()
      The ID of the live version of the PricingPlan.
    • 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 PricingPlan. 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.pricing_plan.

    • getTaxBehavior

      public String getTaxBehavior()
      The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.

      One of exclusive, or inclusive.

    • setActive

      public void setActive(Boolean active)
      Whether the PricingPlan is active.
    • setCreated

      public void setCreated(Instant created)
      Time at which the object was created.
    • setCurrency

      public void setCurrency(String currency)
      The currency of the PricingPlan.
    • setDescription

      public void setDescription(String description)
      A description for pricing plan subscription. Maximum length of 500 characters.
    • setDisplayName

      public void setDisplayName(String displayName)
      Display name of the PricingPlan.
    • setId

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

      public void setLatestVersion(String latestVersion)
      The ID of the latest version of the PricingPlan.
    • setLiveVersion

      public void setLiveVersion(String liveVersion)
      The ID of the live version of the PricingPlan.
    • 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 PricingPlan. 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.pricing_plan.

    • setTaxBehavior

      public void setTaxBehavior(String taxBehavior)
      The Stripe Tax tax behavior - whether the PricingPlan is inclusive or exclusive of tax.

      One of exclusive, or inclusive.

    • 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