Class PriceUpdateParams.Builder

java.lang.Object
com.stripe.param.PriceUpdateParams.Builder
Enclosing class:
PriceUpdateParams

public static class PriceUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

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

      public PriceUpdateParams.Builder setActive(Boolean active)
      Whether the price can be used for new purchases. Defaults to true.
    • addExpand

      public PriceUpdateParams.Builder addExpand(String element)
      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See PriceUpdateParams.expand for the field documentation.
    • addAllExpand

      public PriceUpdateParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See PriceUpdateParams.expand for the field documentation.
    • putExtraParam

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

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

      public PriceUpdateParams.Builder setLookupKey(String lookupKey)
      A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
    • setLookupKey

      public PriceUpdateParams.Builder setLookupKey(EmptyParam lookupKey)
      A lookup key used to retrieve prices dynamically from a static string. This may be up to 200 characters.
    • putMetadata

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

      public PriceUpdateParams.Builder putAllMetadata(Map<String,String> 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. See PriceUpdateParams.metadata for the field documentation.
    • setMetadata

      public PriceUpdateParams.Builder setMetadata(EmptyParam 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
    • setMetadata

      public PriceUpdateParams.Builder 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
    • setNickname

      public PriceUpdateParams.Builder setNickname(String nickname)
      A brief description of the price, hidden from customers.
    • setNickname

      public PriceUpdateParams.Builder setNickname(EmptyParam nickname)
      A brief description of the price, hidden from customers.
    • setRecurring

      public PriceUpdateParams.Builder setRecurring(PriceUpdateParams.Recurring recurring)
      The recurring components of a price such as interval and usage_type.
    • setRecurring

      public PriceUpdateParams.Builder setRecurring(EmptyParam recurring)
      The recurring components of a price such as interval and usage_type.
    • setTaxBehavior

      public PriceUpdateParams.Builder setTaxBehavior(PriceUpdateParams.TaxBehavior taxBehavior)
      Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified. Once specified as either inclusive or exclusive, it cannot be changed.
    • setTransferLookupKey

      public PriceUpdateParams.Builder setTransferLookupKey(Boolean transferLookupKey)
      If set to true, will atomically remove the lookup key from the existing price, and assign it to this price.