Class Connection


  • public class Connection
    extends Object
    Connection
    • Constructor Detail

      • Connection

        public Connection()
    • Method Detail

      • id

        public Connection id​(UUID id)
        Xero identifier
        Parameters:
        id - UUID
        Returns:
        Connection
      • getId

        public UUID getId()
        Xero identifier
        Returns:
        id
      • setId

        public void setId​(UUID id)
        Xero identifier
        Parameters:
        id - UUID
      • tenantId

        public Connection tenantId​(UUID tenantId)
        Xero identifier of organisation
        Parameters:
        tenantId - UUID
        Returns:
        Connection
      • getTenantId

        public UUID getTenantId()
        Xero identifier of organisation
        Returns:
        tenantId
      • setTenantId

        public void setTenantId​(UUID tenantId)
        Xero identifier of organisation
        Parameters:
        tenantId - UUID
      • authEventId

        public Connection authEventId​(UUID authEventId)
        Identifier shared across connections authorised at the same time
        Parameters:
        authEventId - UUID
        Returns:
        Connection
      • getAuthEventId

        public UUID getAuthEventId()
        Identifier shared across connections authorised at the same time
        Returns:
        authEventId
      • setAuthEventId

        public void setAuthEventId​(UUID authEventId)
        Identifier shared across connections authorised at the same time
        Parameters:
        authEventId - UUID
      • tenantType

        public Connection tenantType​(String tenantType)
        Xero tenant type (i.e. ORGANISATION, PRACTICE)
        Parameters:
        tenantType - String
        Returns:
        Connection
      • getTenantType

        public String getTenantType()
        Xero tenant type (i.e. ORGANISATION, PRACTICE)
        Returns:
        tenantType
      • setTenantType

        public void setTenantType​(String tenantType)
        Xero tenant type (i.e. ORGANISATION, PRACTICE)
        Parameters:
        tenantType - String
      • tenantName

        public Connection tenantName​(String tenantName)
        Xero tenant name
        Parameters:
        tenantName - String
        Returns:
        Connection
      • getTenantName

        public String getTenantName()
        Xero tenant name
        Returns:
        tenantName
      • setTenantName

        public void setTenantName​(String tenantName)
        Xero tenant name
        Parameters:
        tenantName - String
      • createdDateUtc

        public Connection createdDateUtc​(org.threeten.bp.LocalDateTime createdDateUtc)
        The date when the user connected this tenant to your app
        Parameters:
        createdDateUtc - LocalDateTime
        Returns:
        Connection
      • getCreatedDateUtc

        public org.threeten.bp.LocalDateTime getCreatedDateUtc()
        The date when the user connected this tenant to your app
        Returns:
        createdDateUtc
      • setCreatedDateUtc

        public void setCreatedDateUtc​(org.threeten.bp.LocalDateTime createdDateUtc)
        The date when the user connected this tenant to your app
        Parameters:
        createdDateUtc - LocalDateTime
      • updatedDateUtc

        public Connection updatedDateUtc​(org.threeten.bp.LocalDateTime updatedDateUtc)
        The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app.
        Parameters:
        updatedDateUtc - LocalDateTime
        Returns:
        Connection
      • getUpdatedDateUtc

        public org.threeten.bp.LocalDateTime getUpdatedDateUtc()
        The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app.
        Returns:
        updatedDateUtc
      • setUpdatedDateUtc

        public void setUpdatedDateUtc​(org.threeten.bp.LocalDateTime updatedDateUtc)
        The date when the user most recently connected this tenant to your app. May differ to the created date if the user has disconnected and subsequently reconnected this tenant to your app.
        Parameters:
        updatedDateUtc - LocalDateTime
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object