Class PricingPlanComponent

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

public class PricingPlanComponent extends StripeObject implements HasId
  • Constructor Details

    • PricingPlanComponent

      public PricingPlanComponent()
  • Method Details

    • getCreated

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

      public PricingPlanComponent.LicenseFee getLicenseFee()
      Details if this component is a License Fee.
    • 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 PricingPlanComponent.
    • 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_component.

    • getPricingPlan

      public String getPricingPlan()
      The ID of the Pricing Plan this component belongs to.
    • getPricingPlanVersion

      public String getPricingPlanVersion()
      The ID of the Pricing Plan Version this component belongs to.
    • getRateCard

      public PricingPlanComponent.RateCard getRateCard()
      Details if this component is a Rate Card.
    • getServiceAction

      public PricingPlanComponent.ServiceAction getServiceAction()
      Details if this component is a Service Action.
    • getType

      public String getType()
      The type of the PricingPlanComponent.

      One of license_fee, rate_card, or service_action.

    • setCreated

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

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

      public void setLicenseFee(PricingPlanComponent.LicenseFee licenseFee)
      Details if this component is a License Fee.
    • 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 PricingPlanComponent.
    • 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_component.

    • setPricingPlan

      public void setPricingPlan(String pricingPlan)
      The ID of the Pricing Plan this component belongs to.
    • setPricingPlanVersion

      public void setPricingPlanVersion(String pricingPlanVersion)
      The ID of the Pricing Plan Version this component belongs to.
    • setRateCard

      public void setRateCard(PricingPlanComponent.RateCard rateCard)
      Details if this component is a Rate Card.
    • setServiceAction

      public void setServiceAction(PricingPlanComponent.ServiceAction serviceAction)
      Details if this component is a Service Action.
    • setType

      public void setType(String type)
      The type of the PricingPlanComponent.

      One of license_fee, rate_card, or service_action.

    • 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