Class PricingPlanVersion

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

public class PricingPlanVersion extends StripeObject implements HasId
  • Constructor Details

    • PricingPlanVersion

      public PricingPlanVersion()
  • Method Details

    • getCreated

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

      public Instant getEndDate()
      The timestamp when this version became inactive. Null if it's the latest version.
    • 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.
    • 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_version.

    • getPricingPlan

      public String getPricingPlan()
      The ID of the PricingPlan this version belongs to.
    • getStartDate

      public Instant getStartDate()
      The timestamp when this version became active.
    • setCreated

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

      public void setEndDate(Instant endDate)
      The timestamp when this version became inactive. Null if it's the latest version.
    • 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.
    • 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_version.

    • setPricingPlan

      public void setPricingPlan(String pricingPlan)
      The ID of the PricingPlan this version belongs to.
    • setStartDate

      public void setStartDate(Instant startDate)
      The timestamp when this version became active.
    • 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