Class Account

    • Constructor Detail

      • Account

        public Account()
        Constructs a new empty instance.
      • Account

        protected Account​(boolean noInit)
        Constructs a new empty instance.
      • Account

        public Account​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • Account

        public Account​(Account src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getId

        public String getId()
      • getName

        public String getName()
      • getEmail

        public String getEmail()
      • getPrimaryMerchant

        public Reference getPrimaryMerchant()
        The primary merchant
      • getPrimaryDeveloper

        public Reference getPrimaryDeveloper()
        The primary developer
      • getPrimaryReseller

        public Reference getPrimaryReseller()
        The primary reseller
      • getPrimaryEnterprise

        public Reference getPrimaryEnterprise()
        The primary enterprise
      • getIsActive

        public Boolean getIsActive()
      • getCreatedTime

        public Long getCreatedTime()
      • getClaimedTime

        public Long getClaimedTime()
      • getLastLogin

        public Long getLastLogin()
      • getInviteSent

        public Boolean getInviteSent()
      • getStatus

        public String getStatus()
      • getCsrfToken

        public String getCsrfToken()
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • isNotNullEmail

        public boolean isNotNullEmail()
        Checks whether the 'email' field is set and is not null
      • isNotNullPrimaryMerchant

        public boolean isNotNullPrimaryMerchant()
        Checks whether the 'primaryMerchant' field is set and is not null
      • isNotNullPrimaryDeveloper

        public boolean isNotNullPrimaryDeveloper()
        Checks whether the 'primaryDeveloper' field is set and is not null
      • isNotNullPrimaryReseller

        public boolean isNotNullPrimaryReseller()
        Checks whether the 'primaryReseller' field is set and is not null
      • isNotNullPrimaryEnterprise

        public boolean isNotNullPrimaryEnterprise()
        Checks whether the 'primaryEnterprise' field is set and is not null
      • isNotNullIsActive

        public boolean isNotNullIsActive()
        Checks whether the 'isActive' field is set and is not null
      • isNotNullCreatedTime

        public boolean isNotNullCreatedTime()
        Checks whether the 'createdTime' field is set and is not null
      • isNotNullClaimedTime

        public boolean isNotNullClaimedTime()
        Checks whether the 'claimedTime' field is set and is not null
      • isNotNullLastLogin

        public boolean isNotNullLastLogin()
        Checks whether the 'lastLogin' field is set and is not null
      • isNotNullInviteSent

        public boolean isNotNullInviteSent()
        Checks whether the 'inviteSent' field is set and is not null
      • isNotNullStatus

        public boolean isNotNullStatus()
        Checks whether the 'status' field is set and is not null
      • isNotNullRole

        public boolean isNotNullRole()
        Checks whether the 'role' field is set and is not null
      • isNotNullMerchants

        public boolean isNotNullMerchants()
        Checks whether the 'merchants' field is set and is not null
      • isNotEmptyMerchants

        public boolean isNotEmptyMerchants()
        Checks whether the 'merchants' field is set and is not null and is not empty
      • isNotNullDevelopers

        public boolean isNotNullDevelopers()
        Checks whether the 'developers' field is set and is not null
      • isNotEmptyDevelopers

        public boolean isNotEmptyDevelopers()
        Checks whether the 'developers' field is set and is not null and is not empty
      • isNotNullResellers

        public boolean isNotNullResellers()
        Checks whether the 'resellers' field is set and is not null
      • isNotEmptyResellers

        public boolean isNotEmptyResellers()
        Checks whether the 'resellers' field is set and is not null and is not empty
      • isNotNullCsrfToken

        public boolean isNotNullCsrfToken()
        Checks whether the 'csrfToken' field is set and is not null
      • isNotNullAuthFactors

        public boolean isNotNullAuthFactors()
        Checks whether the 'authFactors' field is set and is not null
      • isNotEmptyAuthFactors

        public boolean isNotEmptyAuthFactors()
        Checks whether the 'authFactors' field is set and is not null and is not empty
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • hasEmail

        public boolean hasEmail()
        Checks whether the 'email' field has been set, however the value could be null
      • hasPrimaryMerchant

        public boolean hasPrimaryMerchant()
        Checks whether the 'primaryMerchant' field has been set, however the value could be null
      • hasPrimaryDeveloper

        public boolean hasPrimaryDeveloper()
        Checks whether the 'primaryDeveloper' field has been set, however the value could be null
      • hasPrimaryReseller

        public boolean hasPrimaryReseller()
        Checks whether the 'primaryReseller' field has been set, however the value could be null
      • hasPrimaryEnterprise

        public boolean hasPrimaryEnterprise()
        Checks whether the 'primaryEnterprise' field has been set, however the value could be null
      • hasIsActive

        public boolean hasIsActive()
        Checks whether the 'isActive' field has been set, however the value could be null
      • hasCreatedTime

        public boolean hasCreatedTime()
        Checks whether the 'createdTime' field has been set, however the value could be null
      • hasClaimedTime

        public boolean hasClaimedTime()
        Checks whether the 'claimedTime' field has been set, however the value could be null
      • hasLastLogin

        public boolean hasLastLogin()
        Checks whether the 'lastLogin' field has been set, however the value could be null
      • hasInviteSent

        public boolean hasInviteSent()
        Checks whether the 'inviteSent' field has been set, however the value could be null
      • hasStatus

        public boolean hasStatus()
        Checks whether the 'status' field has been set, however the value could be null
      • hasRole

        public boolean hasRole()
        Checks whether the 'role' field has been set, however the value could be null
      • hasMerchants

        public boolean hasMerchants()
        Checks whether the 'merchants' field has been set, however the value could be null
      • hasDevelopers

        public boolean hasDevelopers()
        Checks whether the 'developers' field has been set, however the value could be null
      • hasResellers

        public boolean hasResellers()
        Checks whether the 'resellers' field has been set, however the value could be null
      • hasCsrfToken

        public boolean hasCsrfToken()
        Checks whether the 'csrfToken' field has been set, however the value could be null
      • hasAuthFactors

        public boolean hasAuthFactors()
        Checks whether the 'authFactors' field has been set, however the value could be null
      • setId

        public Account setId​(String id)
        Sets the field 'id'.
      • setName

        public Account setName​(String name)
        Sets the field 'name'.
      • setEmail

        public Account setEmail​(String email)
        Sets the field 'email'.
      • setPrimaryMerchant

        public Account setPrimaryMerchant​(Reference primaryMerchant)
        Sets the field 'primaryMerchant'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPrimaryDeveloper

        public Account setPrimaryDeveloper​(Reference primaryDeveloper)
        Sets the field 'primaryDeveloper'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPrimaryReseller

        public Account setPrimaryReseller​(Reference primaryReseller)
        Sets the field 'primaryReseller'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setPrimaryEnterprise

        public Account setPrimaryEnterprise​(Reference primaryEnterprise)
        Sets the field 'primaryEnterprise'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setIsActive

        public Account setIsActive​(Boolean isActive)
        Sets the field 'isActive'.
      • setCreatedTime

        public Account setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setClaimedTime

        public Account setClaimedTime​(Long claimedTime)
        Sets the field 'claimedTime'.
      • setLastLogin

        public Account setLastLogin​(Long lastLogin)
        Sets the field 'lastLogin'.
      • setInviteSent

        public Account setInviteSent​(Boolean inviteSent)
        Sets the field 'inviteSent'.
      • setStatus

        public Account setStatus​(String status)
        Sets the field 'status'.
      • setRole

        public Account setRole​(Reference role)
        Sets the field 'role'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setMerchants

        public Account setMerchants​(List<Reference> merchants)
        Sets the field 'merchants'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setDevelopers

        public Account setDevelopers​(List<Reference> developers)
        Sets the field 'developers'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setResellers

        public Account setResellers​(List<Reference> resellers)
        Sets the field 'resellers'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setCsrfToken

        public Account setCsrfToken​(String csrfToken)
        Sets the field 'csrfToken'.
      • setAuthFactors

        public Account setAuthFactors​(List<Reference> authFactors)
        Sets the field 'authFactors'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • clearEmail

        public void clearEmail()
        Clears the 'email' field, the 'has' method for this field will now return false
      • clearPrimaryMerchant

        public void clearPrimaryMerchant()
        Clears the 'primaryMerchant' field, the 'has' method for this field will now return false
      • clearPrimaryDeveloper

        public void clearPrimaryDeveloper()
        Clears the 'primaryDeveloper' field, the 'has' method for this field will now return false
      • clearPrimaryReseller

        public void clearPrimaryReseller()
        Clears the 'primaryReseller' field, the 'has' method for this field will now return false
      • clearPrimaryEnterprise

        public void clearPrimaryEnterprise()
        Clears the 'primaryEnterprise' field, the 'has' method for this field will now return false
      • clearIsActive

        public void clearIsActive()
        Clears the 'isActive' field, the 'has' method for this field will now return false
      • clearCreatedTime

        public void clearCreatedTime()
        Clears the 'createdTime' field, the 'has' method for this field will now return false
      • clearClaimedTime

        public void clearClaimedTime()
        Clears the 'claimedTime' field, the 'has' method for this field will now return false
      • clearLastLogin

        public void clearLastLogin()
        Clears the 'lastLogin' field, the 'has' method for this field will now return false
      • clearInviteSent

        public void clearInviteSent()
        Clears the 'inviteSent' field, the 'has' method for this field will now return false
      • clearStatus

        public void clearStatus()
        Clears the 'status' field, the 'has' method for this field will now return false
      • clearRole

        public void clearRole()
        Clears the 'role' field, the 'has' method for this field will now return false
      • clearMerchants

        public void clearMerchants()
        Clears the 'merchants' field, the 'has' method for this field will now return false
      • clearDevelopers

        public void clearDevelopers()
        Clears the 'developers' field, the 'has' method for this field will now return false
      • clearResellers

        public void clearResellers()
        Clears the 'resellers' field, the 'has' method for this field will now return false
      • clearCsrfToken

        public void clearCsrfToken()
        Clears the 'csrfToken' field, the 'has' method for this field will now return false
      • clearAuthFactors

        public void clearAuthFactors()
        Clears the 'authFactors' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public Account copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(Account src)
        Copy all the changed fields from the given source to this instance.