Class Connection

java.lang.Object
com.xero.models.identity.Connection

public class Connection
extends Object
Connection
  • Constructor Details

    • Connection

      public Connection()
  • Method Details

    • id

      public Connection id​(UUID id)
    • getId

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

      public void setId​(UUID id)
    • tenantId

      public Connection tenantId​(UUID tenantId)
    • getTenantId

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

      public void setTenantId​(UUID tenantId)
    • authEventId

      public Connection authEventId​(UUID authEventId)
    • getAuthEventId

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

      public void setAuthEventId​(UUID authEventId)
    • tenantType

      public Connection tenantType​(String tenantType)
    • getTenantType

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

      public void setTenantType​(String tenantType)
    • tenantName

      public Connection tenantName​(String tenantName)
    • getTenantName

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

      public void setTenantName​(String tenantName)
    • createdDateUtc

      public Connection createdDateUtc​(org.threeten.bp.LocalDateTime createdDateUtc)
    • 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)
    • updatedDateUtc

      public Connection updatedDateUtc​(org.threeten.bp.LocalDateTime updatedDateUtc)
    • 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)
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object