Interface PaymentScheduleTerm.Builder

    • Method Detail

      • currencyCode

        PaymentScheduleTerm.Builder currencyCode​(String currencyCode)

        Defines the currency for the prices mentioned in the term.

        Parameters:
        currencyCode - Defines the currency for the prices mentioned in the term.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        PaymentScheduleTerm.Builder schedule​(Collection<ScheduleItem> schedule)

        List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.

        Parameters:
        schedule - List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        PaymentScheduleTerm.Builder schedule​(ScheduleItem... schedule)

        List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.

        Parameters:
        schedule - List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • schedule

        PaymentScheduleTerm.Builder schedule​(Consumer<ScheduleItem.Builder>... schedule)

        List of the payment schedule where each element defines one installment of payment. It contains the information necessary for calculating the price.

        This is a convenience method that creates an instance of the ScheduleItem.Builder avoiding the need to create one manually via ScheduleItem.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #schedule(List).

        Parameters:
        schedule - a consumer that will call methods on ScheduleItem.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #schedule(java.util.Collection)
      • type

        PaymentScheduleTerm.Builder type​(String type)

        Type of the term.

        Parameters:
        type - Type of the term.
        Returns:
        Returns a reference to this object so that method calls can be chained together.