Interface PaymentInfo


public interface PaymentInfo
PaymentInfo
Example to create an instance using the builder pattern

     PaymentInfo paymentInfo = PaymentInfo.builder()
             .plusPayments(paymentsBuilder -> paymentsBuilder)
             .build()
 
  • Method Details

    • getPayments

      @NotNull @Valid @NotNull @Valid List<Reference> getPayments()
      Returns:
      payments
    • setPayments

      void setPayments(Reference... payments)
      set payments
      Parameters:
      payments - values to be set
    • setPayments

      void setPayments(List<Reference> payments)
      set payments
      Parameters:
      payments - values to be set
    • of

      static PaymentInfo of()
      factory method
      Returns:
      instance of PaymentInfo
    • of

      static PaymentInfo of(PaymentInfo template)
      factory method to create a shallow copy PaymentInfo
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      static PaymentInfoBuilder builder()
      builder factory method for PaymentInfo
      Returns:
      builder
    • builder

      static PaymentInfoBuilder builder(PaymentInfo template)
      create builder for PaymentInfo instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPaymentInfo

      default <T> T withPaymentInfo(Function<PaymentInfo,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<PaymentInfo> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference