Class SubscriptionCreateParams.Item.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setBillingThresholds

        public SubscriptionCreateParams.Item.Builder setBillingThresholds​(EmptyParam billingThresholds)
        Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
      • putExtraParam

        public SubscriptionCreateParams.Item.Builder putExtraParam​(java.lang.String key,
                                                                   java.lang.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 SubscriptionCreateParams.Item.extraParams for the field documentation.
      • putAllExtraParam

        public SubscriptionCreateParams.Item.Builder putAllExtraParam​(java.util.Map<java.lang.String,​java.lang.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 SubscriptionCreateParams.Item.extraParams for the field documentation.
      • putMetadata

        public SubscriptionCreateParams.Item.Builder putMetadata​(java.lang.String key,
                                                                 java.lang.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 SubscriptionCreateParams.Item.metadata for the field documentation.
      • putAllMetadata

        public SubscriptionCreateParams.Item.Builder putAllMetadata​(java.util.Map<java.lang.String,​java.lang.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 SubscriptionCreateParams.Item.metadata for the field documentation.
      • addTaxRate

        public SubscriptionCreateParams.Item.Builder addTaxRate​(java.lang.String element)
        Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SubscriptionCreateParams.Item.taxRates for the field documentation.
      • addAllTaxRate

        public SubscriptionCreateParams.Item.Builder addAllTaxRate​(java.util.List<java.lang.String> elements)
        Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See SubscriptionCreateParams.Item.taxRates for the field documentation.