Class RateCardUpdateParams.Builder

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

public static class RateCardUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

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

      public RateCardUpdateParams.Builder setActive(Boolean active)
      Sets whether the RateCard is active. Inactive RateCards cannot be used in new activations or have new rates added.
    • setDisplayName

      public RateCardUpdateParams.Builder setDisplayName(String displayName)
      A customer-facing name for the RateCard. This name is used in Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 characters.
    • setDisplayName

      public RateCardUpdateParams.Builder setDisplayName(EmptyParam displayName)
      A customer-facing name for the RateCard. This name is used in Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 characters.
    • putExtraParam

      public RateCardUpdateParams.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 RateCardUpdateParams.extraParams for the field documentation.
    • putAllExtraParam

      public RateCardUpdateParams.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 RateCardUpdateParams.extraParams for the field documentation.
    • setLiveVersion

      public RateCardUpdateParams.Builder setLiveVersion(String liveVersion)
      Changes the version that new RateCard activations will use. Providing live_version = "latest" will set the RateCard's live_version to its latest version.
    • setLiveVersion

      public RateCardUpdateParams.Builder setLiveVersion(EmptyParam liveVersion)
      Changes the version that new RateCard activations will use. Providing live_version = "latest" will set the RateCard's live_version to its latest version.
    • setLookupKey

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

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

      public RateCardUpdateParams.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 RateCardUpdateParams.metadata for the field documentation.
    • putMetadata

      public RateCardUpdateParams.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 RateCardUpdateParams.metadata for the field documentation.
    • putAllMetadata

      public RateCardUpdateParams.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 RateCardUpdateParams.metadata for the field documentation.