Class TaxDocumentMetadata

    • Method Detail

      • taxDocumentAccessToken

        public final String taxDocumentAccessToken()

        The tax document access token, which contains information that the Tax Settings API uses to locate the tax document.

        If you update your tax registration, the existing taxDocumentAccessToken won't be valid. To get the latest token, call the GetTaxRegistration or ListTaxRegistrations API operation. This token is valid for 24 hours.

        Returns:
        The tax document access token, which contains information that the Tax Settings API uses to locate the tax document.

        If you update your tax registration, the existing taxDocumentAccessToken won't be valid. To get the latest token, call the GetTaxRegistration or ListTaxRegistrations API operation. This token is valid for 24 hours.

      • taxDocumentName

        public final String taxDocumentName()

        The name of your tax document.

        Returns:
        The name of your tax document.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)