Class LinkCardRequest


  • public class LinkCardRequest
    extends java.lang.Object
    • Constructor Detail

      • LinkCardRequest

        public LinkCardRequest​(java.util.Optional<? extends LinkCardWaitFor> xWaitFor,
                               java.lang.String accountID,
                               LinkCard linkCard)
      • LinkCardRequest

        public LinkCardRequest​(java.lang.String accountID,
                               LinkCard linkCard)
    • Method Detail

      • xWaitFor

        public java.util.Optional<LinkCardWaitFor> xWaitFor()
        Optional header to wait for certain events, such as the creation of a payment method, to occur before returning a response.

        When this header is set to `payment-method`, the response will include any payment methods that were created for the newly linked card in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.

      • accountID

        public java.lang.String accountID()
      • withXWaitFor

        public LinkCardRequest withXWaitFor​(LinkCardWaitFor xWaitFor)
        Optional header to wait for certain events, such as the creation of a payment method, to occur before returning a response.

        When this header is set to `payment-method`, the response will include any payment methods that were created for the newly linked card in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.

      • withXWaitFor

        public LinkCardRequest withXWaitFor​(java.util.Optional<? extends LinkCardWaitFor> xWaitFor)
        Optional header to wait for certain events, such as the creation of a payment method, to occur before returning a response.

        When this header is set to `payment-method`, the response will include any payment methods that were created for the newly linked card in the `paymentMethods` field. Otherwise, the `paymentMethods` field will be omitted from the response.

      • withAccountID

        public LinkCardRequest withAccountID​(java.lang.String accountID)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object