Class PricingPlanUpdateParams.Builder

java.lang.Object
com.stripe.param.v2.billing.PricingPlanUpdateParams.Builder
Enclosing class:
PricingPlanUpdateParams

public static class PricingPlanUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public PricingPlanUpdateParams build()
      Finalize and obtain parameter instance from this builder.
    • setActive

      public PricingPlanUpdateParams.Builder setActive(Boolean active)
      Whether the PricingPlan is active.
    • setDescription

      public PricingPlanUpdateParams.Builder setDescription(String description)
      Description of pricing plan subscription.
    • setDescription

      public PricingPlanUpdateParams.Builder setDescription(EmptyParam description)
      Description of pricing plan subscription.
    • setDisplayName

      public PricingPlanUpdateParams.Builder setDisplayName(String displayName)
      Display name of the PricingPlan. Maximum 250 characters.
    • setDisplayName

      public PricingPlanUpdateParams.Builder setDisplayName(EmptyParam displayName)
      Display name of the PricingPlan. Maximum 250 characters.
    • putExtraParam

      public PricingPlanUpdateParams.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PricingPlanUpdateParams.extraParams for the field documentation.
    • putAllExtraParam

      public PricingPlanUpdateParams.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PricingPlanUpdateParams.extraParams for the field documentation.
    • setLiveVersion

      public PricingPlanUpdateParams.Builder setLiveVersion(String liveVersion)
      The ID of the live version of the PricingPlan.
    • setLiveVersion

      public PricingPlanUpdateParams.Builder setLiveVersion(EmptyParam liveVersion)
      The ID of the live version of the PricingPlan.
    • setLookupKey

      public PricingPlanUpdateParams.Builder setLookupKey(String lookupKey)
      An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
    • setLookupKey

      public PricingPlanUpdateParams.Builder setLookupKey(EmptyParam lookupKey)
      An internal key you can use to search for a particular PricingPlan. Maximum length of 200 characters.
    • putMetadata

      public PricingPlanUpdateParams.Builder putMetadata(String key, String value)
      Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PricingPlanUpdateParams.metadata for the field documentation.
    • putMetadata

      public PricingPlanUpdateParams.Builder putMetadata(String key, EmptyParam value)
      Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PricingPlanUpdateParams.metadata for the field documentation.
    • putAllMetadata

      public PricingPlanUpdateParams.Builder putAllMetadata(Map<String,Object> map)
      Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. Map values can only be one of the following types: `String`, `EmptyParam`. See PricingPlanUpdateParams.metadata for the field documentation.