Interface PaymentMethodToken


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

     PaymentMethodToken paymentMethodToken = PaymentMethodToken.builder()
             .value("{value}")
             .build()
 
  • Method Details

    • getValue

      @NotNull @NotNull String getValue()

      Tokenized representation of the Payment Method.

      It is displayed in the following instances:

      • in the payload of an API Extension for Payments and PaymentMethods
      • when querying Payments and PaymentMethods

      It is masked in the following instances:

      • in the payload of Payment and PaymentMethod messages
      • when querying MyPayments
      • in referenced Payments and PaymentMethods embedded through Reference Expansion
      Returns:
      value
    • setValue

      void setValue(String value)

      Tokenized representation of the Payment Method.

      It is displayed in the following instances:

      • in the payload of an API Extension for Payments and PaymentMethods
      • when querying Payments and PaymentMethods

      It is masked in the following instances:

      • in the payload of Payment and PaymentMethod messages
      • when querying MyPayments
      • in referenced Payments and PaymentMethods embedded through Reference Expansion
      Parameters:
      value - value to be set
    • of

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

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

      PaymentMethodToken copyDeep()
    • deepCopy

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

      static PaymentMethodTokenBuilder builder()
      builder factory method for PaymentMethodToken
      Returns:
      builder
    • builder

      static PaymentMethodTokenBuilder builder(PaymentMethodToken template)
      create builder for PaymentMethodToken instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPaymentMethodToken

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