Interface PaymentKeyReference

All Superinterfaces:
KeyReference

public interface PaymentKeyReference extends KeyReference

Used by the Import API to identify a Payment.


Example to create an instance using the builder pattern

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

  • Method Details

    • getKey

      @NotNull @NotNull String getKey()

      User-defined unique identifier of the referenced Payment.

      Specified by:
      getKey in interface KeyReference
      Returns:
      key
    • setKey

      void setKey(String key)

      User-defined unique identifier of the referenced Payment.

      Specified by:
      setKey in interface KeyReference
      Parameters:
      key - value to be set
    • 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
    • copyDeep

      Specified by:
      copyDeep in interface KeyReference
    • deepCopy

      @Nullable static PaymentKeyReference deepCopy(@Nullable PaymentKeyReference template)
      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