Interface PaymentKeyReference

All Superinterfaces:
KeyReference

public interface PaymentKeyReference extends KeyReference

References a payment by key.


Example to create an instance using the builder pattern

     PaymentKeyReference paymentKeyReference = PaymentKeyReference.builder()
             .key("{key}")
             .build()
 
  • Field Details

  • Method Details

    • of

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

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

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

      static PaymentKeyReferenceBuilder builder()
      builder factory method for PaymentKeyReference
      Returns:
      builder
    • builder

      create builder for PaymentKeyReference instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withPaymentKeyReference

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