Class AccountResponse


  • @Immutable
    public class AccountResponse
    extends Object
    • Constructor Detail

      • AccountResponse

        public AccountResponse​(AcmeAccount accountDao,
                               org.springframework.web.util.UriComponentsBuilder uriComponentsBuilder)
    • Method Detail

      • getId

        public long getId()
        Returns:
        the id
      • setId

        public void setId​(long id)
        Parameters:
        id - the id to set
      • getStatus

        public AccountStatus getStatus()
        Returns:
        the status
      • setStatus

        public void setStatus​(AccountStatus status)
        Parameters:
        status - the status to set
      • getContacts

        public String[] getContacts()
        Returns:
        the contacts
      • setContacts

        public void setContacts​(String[] contacts)
        Parameters:
        contacts - the contacts to set
      • isTermsAgreed

        public boolean isTermsAgreed()
        Returns:
        the termsAgreed
      • setTermsAgreed

        public void setTermsAgreed​(boolean termsAgreed)
        Parameters:
        termsAgreed - the termsAgreed to set
      • getOrders

        public String getOrders()
        Returns:
        the orders
      • setOrders

        public void setOrders​(String orders)
        Parameters:
        orders - the orders to set