Class MeteredItemCreateParams.Builder

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

public static class MeteredItemCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public MeteredItemCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setDisplayName

      public MeteredItemCreateParams.Builder setDisplayName(String displayName)
      Required. Description that customers will see in the invoice line item. Maximum length of 250 characters.
    • putExtraParam

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

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

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

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

      public MeteredItemCreateParams.Builder setLookupKey(String lookupKey)
      An internal key you can use to search for a particular billable item. Must be unique among billable items. Maximum length of 200 characters.
    • putMetadata

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

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

      public MeteredItemCreateParams.Builder setMeter(String meter)
      Required. ID of the Meter that measures usage for this Metered Item.
    • addMeterSegmentCondition

      Add an element to `meterSegmentConditions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See MeteredItemCreateParams.meterSegmentConditions for the field documentation.
    • addAllMeterSegmentCondition

      Add all elements to `meterSegmentConditions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See MeteredItemCreateParams.meterSegmentConditions for the field documentation.
    • setTaxDetails

      Stripe Tax details.
    • setUnitLabel

      public MeteredItemCreateParams.Builder setUnitLabel(String unitLabel)
      The unit to use when displaying prices for this billable item in places like Checkout. For example, set this field to "CPU-hour" for Checkout to display "(price) per CPU-hour", or "1 million events" to display "(price) per 1 million events". Maximum length of 100 characters.