Class Prices.Builder

  • Enclosing class:
    Prices

    public static class Prices.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • model

        public Prices.Builder model​(Prices.Model model)
        Pricing model.
        Parameters:
        model - the value to set
        Returns:
        this builder
      • value

        public Prices.Builder value​(String value)
        Currency value.
        Parameters:
        value - the value to set
        Returns:
        this builder
      • rangeMin

        public Prices.Builder rangeMin​(String rangeMin)
        The minimum quantity for tier pricing (exclusive).

        Only applicable for products that support range-based pricing.

        Parameters:
        rangeMin - the value to set
        Returns:
        this builder
      • rangeMax

        public Prices.Builder rangeMax​(String rangeMax)
        The maximum quantity for tier pricing (inclusive).

        Only applicable for products that support range-based pricing.

        Parameters:
        rangeMax - the value to set
        Returns:
        this builder
      • rangeUnit

        public Prices.Builder rangeUnit​(String rangeUnit)
        The rangeMin and rangeMax unit of measurement (for example, “GB” or “TB”).
        Parameters:
        rangeUnit - the value to set
        Returns:
        this builder
      • build

        public Prices build()