Interface LineItemRecurrenceInfo


public interface LineItemRecurrenceInfo

Information about recurring orders and frequencies.


Example to create an instance using the builder pattern

     LineItemRecurrenceInfo lineItemRecurrenceInfo = LineItemRecurrenceInfo.builder()
             .recurrencePolicy(recurrencePolicyBuilder -> recurrencePolicyBuilder)
             .priceSelectionMode(PriceSelectionMode.FIXED)
             .build()
 
  • Method Details

    • getRecurrencePolicy

      @NotNull @Valid @NotNull @Valid RecurrencePolicyReference getRecurrencePolicy()

      Reference to a RecurrencePolicy.

      Returns:
      recurrencePolicy
    • getPriceSelectionMode

      @NotNull @NotNull PriceSelectionMode getPriceSelectionMode()

      Indicates how the price of a line item will be selected during order creation.

      Returns:
      priceSelectionMode
    • setRecurrencePolicy

      void setRecurrencePolicy(RecurrencePolicyReference recurrencePolicy)

      Reference to a RecurrencePolicy.

      Parameters:
      recurrencePolicy - value to be set
    • setPriceSelectionMode

      void setPriceSelectionMode(PriceSelectionMode priceSelectionMode)

      Indicates how the price of a line item will be selected during order creation.

      Parameters:
      priceSelectionMode - value to be set
    • of

      factory method
      Returns:
      instance of LineItemRecurrenceInfo
    • of

      factory method to create a shallow copy LineItemRecurrenceInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

    • deepCopy

      @Nullable static LineItemRecurrenceInfo deepCopy(@Nullable LineItemRecurrenceInfo template)
      factory method to create a deep copy of LineItemRecurrenceInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for LineItemRecurrenceInfo
      Returns:
      builder
    • builder

      create builder for LineItemRecurrenceInfo instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withLineItemRecurrenceInfo

      default <T> T withLineItemRecurrenceInfo(Function<LineItemRecurrenceInfo,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<LineItemRecurrenceInfo> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference