Interface PaymentSetAnonymousIdAction

All Superinterfaces:
PaymentUpdateAction, ResourceUpdateAction<PaymentUpdateAction>

public interface PaymentSetAnonymousIdAction extends PaymentUpdateAction

If the Payment is already associated with a Customer, an InvalidOperation error is returned.


Example to create an instance using the builder pattern

     PaymentSetAnonymousIdAction paymentSetAnonymousIdAction = PaymentSetAnonymousIdAction.builder()
             .build()
 
  • Field Details

    • SET_ANONYMOUS_ID

      static final String SET_ANONYMOUS_ID
      discriminator value for PaymentSetAnonymousIdAction
      See Also:
  • Method Details

    • getAnonymousId

      String getAnonymousId()

      Value to set. If empty, any existing value will be removed.

      Returns:
      anonymousId
    • setAnonymousId

      void setAnonymousId(String anonymousId)

      Value to set. If empty, any existing value will be removed.

      Parameters:
      anonymousId - value to be set
    • of

      factory method
      Returns:
      instance of PaymentSetAnonymousIdAction
    • of

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

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

      builder factory method for PaymentSetAnonymousIdAction
      Returns:
      builder
    • builder

      create builder for PaymentSetAnonymousIdAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPaymentSetAnonymousIdAction

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