Interface OrderAddPaymentAction

All Superinterfaces:
OrderUpdateAction, ResourceUpdateAction<OrderUpdateAction>

public interface OrderAddPaymentAction extends OrderUpdateAction
OrderAddPaymentAction
Example to create an instance using the builder pattern

     OrderAddPaymentAction orderAddPaymentAction = OrderAddPaymentAction.builder()
             .payment(paymentBuilder -> paymentBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getPayment

      @NotNull @Valid @NotNull @Valid PaymentResourceIdentifier getPayment()

      Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.

      Returns:
      payment
    • setPayment

      void setPayment(PaymentResourceIdentifier payment)

      Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.

      Parameters:
      payment - value to be set
    • of

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

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

      factory method to create a deep copy of OrderAddPaymentAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static OrderAddPaymentActionBuilder builder()
      builder factory method for OrderAddPaymentAction
      Returns:
      builder
    • builder

      create builder for OrderAddPaymentAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderAddPaymentAction

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