Package com.clover.sdk.v3.account
Class Account
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.account.Account
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Account extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Account.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Account>
CREATOR
static JSONifiable.Creator<Account>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Account()
Constructs a new empty instance.protected
Account(boolean noInit)
Constructs a new empty instance.Account(Account src)
Constructs a new instance that is a deep copy of the source instance.Account(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAuthFactors()
Clears the 'authFactors' field, the 'has' method for this field will now return falsevoid
clearClaimedTime()
Clears the 'claimedTime' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearCsrfToken()
Clears the 'csrfToken' field, the 'has' method for this field will now return falsevoid
clearDevelopers()
Clears the 'developers' field, the 'has' method for this field will now return falsevoid
clearEmail()
Clears the 'email' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearInviteSent()
Clears the 'inviteSent' field, the 'has' method for this field will now return falsevoid
clearIsActive()
Clears the 'isActive' field, the 'has' method for this field will now return falsevoid
clearLastLogin()
Clears the 'lastLogin' field, the 'has' method for this field will now return falsevoid
clearMerchants()
Clears the 'merchants' field, the 'has' method for this field will now return falsevoid
clearName()
Clears the 'name' field, the 'has' method for this field will now return falsevoid
clearPrimaryDeveloper()
Clears the 'primaryDeveloper' field, the 'has' method for this field will now return falsevoid
clearPrimaryEnterprise()
Clears the 'primaryEnterprise' field, the 'has' method for this field will now return falsevoid
clearPrimaryMerchant()
Clears the 'primaryMerchant' field, the 'has' method for this field will now return falsevoid
clearPrimaryReseller()
Clears the 'primaryReseller' field, the 'has' method for this field will now return falsevoid
clearResellers()
Clears the 'resellers' field, the 'has' method for this field will now return falsevoid
clearRole()
Clears the 'role' field, the 'has' method for this field will now return falsevoid
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Account
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.List<Reference>
getAuthFactors()
Long
getClaimedTime()
Long
getCreatedTime()
String
getCsrfToken()
List<Reference>
getDevelopers()
String
getEmail()
protected GenericClient
getGenericClient()
String
getId()
Boolean
getInviteSent()
Boolean
getIsActive()
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.Long
getLastLogin()
List<Reference>
getMerchants()
String
getName()
Reference
getPrimaryDeveloper()
The primary developerReference
getPrimaryEnterprise()
The primary enterpriseReference
getPrimaryMerchant()
The primary merchantReference
getPrimaryReseller()
The primary resellerList<Reference>
getResellers()
Reference
getRole()
String
getStatus()
boolean
hasAuthFactors()
Checks whether the 'authFactors' field has been set, however the value could be nullboolean
hasClaimedTime()
Checks whether the 'claimedTime' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasCsrfToken()
Checks whether the 'csrfToken' field has been set, however the value could be nullboolean
hasDevelopers()
Checks whether the 'developers' field has been set, however the value could be nullboolean
hasEmail()
Checks whether the 'email' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasInviteSent()
Checks whether the 'inviteSent' field has been set, however the value could be nullboolean
hasIsActive()
Checks whether the 'isActive' field has been set, however the value could be nullboolean
hasLastLogin()
Checks whether the 'lastLogin' field has been set, however the value could be nullboolean
hasMerchants()
Checks whether the 'merchants' field has been set, however the value could be nullboolean
hasName()
Checks whether the 'name' field has been set, however the value could be nullboolean
hasPrimaryDeveloper()
Checks whether the 'primaryDeveloper' field has been set, however the value could be nullboolean
hasPrimaryEnterprise()
Checks whether the 'primaryEnterprise' field has been set, however the value could be nullboolean
hasPrimaryMerchant()
Checks whether the 'primaryMerchant' field has been set, however the value could be nullboolean
hasPrimaryReseller()
Checks whether the 'primaryReseller' field has been set, however the value could be nullboolean
hasResellers()
Checks whether the 'resellers' field has been set, however the value could be nullboolean
hasRole()
Checks whether the 'role' field has been set, however the value could be nullboolean
hasStatus()
Checks whether the 'status' field has been set, however the value could be nullboolean
isNotEmptyAuthFactors()
Checks whether the 'authFactors' field is set and is not null and is not emptyboolean
isNotEmptyDevelopers()
Checks whether the 'developers' field is set and is not null and is not emptyboolean
isNotEmptyMerchants()
Checks whether the 'merchants' field is set and is not null and is not emptyboolean
isNotEmptyResellers()
Checks whether the 'resellers' field is set and is not null and is not emptyboolean
isNotNullAuthFactors()
Checks whether the 'authFactors' field is set and is not nullboolean
isNotNullClaimedTime()
Checks whether the 'claimedTime' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullCsrfToken()
Checks whether the 'csrfToken' field is set and is not nullboolean
isNotNullDevelopers()
Checks whether the 'developers' field is set and is not nullboolean
isNotNullEmail()
Checks whether the 'email' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullInviteSent()
Checks whether the 'inviteSent' field is set and is not nullboolean
isNotNullIsActive()
Checks whether the 'isActive' field is set and is not nullboolean
isNotNullLastLogin()
Checks whether the 'lastLogin' field is set and is not nullboolean
isNotNullMerchants()
Checks whether the 'merchants' field is set and is not nullboolean
isNotNullName()
Checks whether the 'name' field is set and is not nullboolean
isNotNullPrimaryDeveloper()
Checks whether the 'primaryDeveloper' field is set and is not nullboolean
isNotNullPrimaryEnterprise()
Checks whether the 'primaryEnterprise' field is set and is not nullboolean
isNotNullPrimaryMerchant()
Checks whether the 'primaryMerchant' field is set and is not nullboolean
isNotNullPrimaryReseller()
Checks whether the 'primaryReseller' field is set and is not nullboolean
isNotNullResellers()
Checks whether the 'resellers' field is set and is not nullboolean
isNotNullRole()
Checks whether the 'role' field is set and is not nullboolean
isNotNullStatus()
Checks whether the 'status' field is set and is not nullvoid
mergeChanges(Account src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Account
setAuthFactors(List<Reference> authFactors)
Sets the field 'authFactors'.Account
setClaimedTime(Long claimedTime)
Sets the field 'claimedTime'.Account
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Account
setCsrfToken(String csrfToken)
Sets the field 'csrfToken'.Account
setDevelopers(List<Reference> developers)
Sets the field 'developers'.Account
setEmail(String email)
Sets the field 'email'.Account
setId(String id)
Sets the field 'id'.Account
setInviteSent(Boolean inviteSent)
Sets the field 'inviteSent'.Account
setIsActive(Boolean isActive)
Sets the field 'isActive'.Account
setLastLogin(Long lastLogin)
Sets the field 'lastLogin'.Account
setMerchants(List<Reference> merchants)
Sets the field 'merchants'.Account
setName(String name)
Sets the field 'name'.Account
setPrimaryDeveloper(Reference primaryDeveloper)
Sets the field 'primaryDeveloper'.Account
setPrimaryEnterprise(Reference primaryEnterprise)
Sets the field 'primaryEnterprise'.Account
setPrimaryMerchant(Reference primaryMerchant)
Sets the field 'primaryMerchant'.Account
setPrimaryReseller(Reference primaryReseller)
Sets the field 'primaryReseller'.Account
setResellers(List<Reference> resellers)
Sets the field 'resellers'.Account
setRole(Reference role)
Sets the field 'role'.Account
setStatus(String status)
Sets the field 'status'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Account> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Account> JSON_CREATOR
-
-
Constructor Detail
-
Account
public Account()
Constructs a new empty instance.
-
Account
protected Account(boolean noInit)
Constructs a new empty instance.
-
Account
public Account(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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()
-
getRole
public Reference getRole()
-
getCsrfToken
public String getCsrfToken()
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
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
-
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.
-
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.
-
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.
-
-