Interface PaymentMethodSetMethodAction

All Superinterfaces:
PaymentMethodUpdateAction

public interface PaymentMethodSetMethodAction extends PaymentMethodUpdateAction

This action generates the PaymentMethodMethodSet Message.


Example to create an instance using the builder pattern

     PaymentMethodSetMethodAction paymentMethodSetMethodAction = PaymentMethodSetMethodAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getMethod

      String getMethod()

      New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.

      Returns:
      method
    • setMethod

      void setMethod(String method)

      New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.

      Parameters:
      method - value to be set
    • of

      factory method
      Returns:
      instance of PaymentMethodSetMethodAction
    • of

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

      Specified by:
      copyDeep in interface PaymentMethodUpdateAction
    • deepCopy

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

      builder factory method for PaymentMethodSetMethodAction
      Returns:
      builder
    • builder

      create builder for PaymentMethodSetMethodAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPaymentMethodSetMethodAction

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