Interface CartRemovePaymentAction

All Superinterfaces:
CartUpdateAction, ResourceUpdateAction<CartUpdateAction>
All Known Implementing Classes:
CartRemovePaymentActionImpl

public interface CartRemovePaymentAction extends CartUpdateAction
CartRemovePaymentAction
Example to create an instance using the builder pattern

     CartRemovePaymentAction cartRemovePaymentAction = CartRemovePaymentAction.builder()
             .payment(paymentBuilder -> paymentBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getPayment

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

      Payment to remove from the Cart.

      Returns:
      payment
    • setPayment

      void setPayment(PaymentResourceIdentifier payment)

      Payment to remove from the Cart.

      Parameters:
      payment - value to be set
    • of

      factory method
      Returns:
      instance of CartRemovePaymentAction
    • of

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

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

      builder factory method for CartRemovePaymentAction
      Returns:
      builder
    • builder

      create builder for CartRemovePaymentAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCartRemovePaymentAction

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