Package com.clover.sdk.v3.developer
Class DeveloperMerchantLimits
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.developer.DeveloperMerchantLimits
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DeveloperMerchantLimits 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
DeveloperMerchantLimits.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<DeveloperMerchantLimits>
CREATOR
static JSONifiable.Creator<DeveloperMerchantLimits>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description DeveloperMerchantLimits()
Constructs a new empty instance.protected
DeveloperMerchantLimits(boolean noInit)
Constructs a new empty instance.DeveloperMerchantLimits(DeveloperMerchantLimits src)
Constructs a new instance that is a deep copy of the source instance.DeveloperMerchantLimits(String json)
Constructs a new instance from the given JSON String.DeveloperMerchantLimits(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
clearConcurrentMerchantRequestLimit()
Clears the 'concurrentMerchantRequestLimit' field, the 'has' method for this field will now return falsevoid
clearConcurrentRequestLimit()
Clears the 'concurrentRequestLimit' field, the 'has' method for this field will now return falsevoid
clearMerchantRequestLimit()
Clears the 'merchantRequestLimit' field, the 'has' method for this field will now return falsevoid
clearRequestLimit()
Clears the 'requestLimit' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.DeveloperMerchantLimits
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Integer
getConcurrentMerchantRequestLimit()
Concurrent request limit for each merchant app.Integer
getConcurrentRequestLimit()
Total concurrent requests for developer app.protected GenericClient
getGenericClient()
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.Integer
getMerchantRequestLimit()
Limit for each merchant app.Integer
getRequestLimit()
Total limit for developers.boolean
hasConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field has been set, however the value could be nullboolean
hasConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field has been set, however the value could be nullboolean
hasMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field has been set, however the value could be nullboolean
hasRequestLimit()
Checks whether the 'requestLimit' field has been set, however the value could be nullboolean
isNotNullConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field is set and is not nullboolean
isNotNullConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field is set and is not nullboolean
isNotNullMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field is set and is not nullboolean
isNotNullRequestLimit()
Checks whether the 'requestLimit' field is set and is not nullvoid
mergeChanges(DeveloperMerchantLimits 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.DeveloperMerchantLimits
setConcurrentMerchantRequestLimit(Integer concurrentMerchantRequestLimit)
Sets the field 'concurrentMerchantRequestLimit'.DeveloperMerchantLimits
setConcurrentRequestLimit(Integer concurrentRequestLimit)
Sets the field 'concurrentRequestLimit'.DeveloperMerchantLimits
setMerchantRequestLimit(Integer merchantRequestLimit)
Sets the field 'merchantRequestLimit'.DeveloperMerchantLimits
setRequestLimit(Integer requestLimit)
Sets the field 'requestLimit'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DeveloperMerchantLimits> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<DeveloperMerchantLimits> JSON_CREATOR
-
-
Constructor Detail
-
DeveloperMerchantLimits
public DeveloperMerchantLimits()
Constructs a new empty instance.
-
DeveloperMerchantLimits
protected DeveloperMerchantLimits(boolean noInit)
Constructs a new empty instance.
-
DeveloperMerchantLimits
public DeveloperMerchantLimits(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
DeveloperMerchantLimits
public DeveloperMerchantLimits(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.
-
DeveloperMerchantLimits
public DeveloperMerchantLimits(DeveloperMerchantLimits src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getRequestLimit
public Integer getRequestLimit()
Total limit for developers.
-
getMerchantRequestLimit
public Integer getMerchantRequestLimit()
Limit for each merchant app.
-
getConcurrentRequestLimit
public Integer getConcurrentRequestLimit()
Total concurrent requests for developer app.
-
getConcurrentMerchantRequestLimit
public Integer getConcurrentMerchantRequestLimit()
Concurrent request limit for each merchant app.
-
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
-
isNotNullRequestLimit
public boolean isNotNullRequestLimit()
Checks whether the 'requestLimit' field is set and is not null
-
isNotNullMerchantRequestLimit
public boolean isNotNullMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field is set and is not null
-
isNotNullConcurrentRequestLimit
public boolean isNotNullConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field is set and is not null
-
isNotNullConcurrentMerchantRequestLimit
public boolean isNotNullConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field is set and is not null
-
hasRequestLimit
public boolean hasRequestLimit()
Checks whether the 'requestLimit' field has been set, however the value could be null
-
hasMerchantRequestLimit
public boolean hasMerchantRequestLimit()
Checks whether the 'merchantRequestLimit' field has been set, however the value could be null
-
hasConcurrentRequestLimit
public boolean hasConcurrentRequestLimit()
Checks whether the 'concurrentRequestLimit' field has been set, however the value could be null
-
hasConcurrentMerchantRequestLimit
public boolean hasConcurrentMerchantRequestLimit()
Checks whether the 'concurrentMerchantRequestLimit' field has been set, however the value could be null
-
setRequestLimit
public DeveloperMerchantLimits setRequestLimit(Integer requestLimit)
Sets the field 'requestLimit'.
-
setMerchantRequestLimit
public DeveloperMerchantLimits setMerchantRequestLimit(Integer merchantRequestLimit)
Sets the field 'merchantRequestLimit'.
-
setConcurrentRequestLimit
public DeveloperMerchantLimits setConcurrentRequestLimit(Integer concurrentRequestLimit)
Sets the field 'concurrentRequestLimit'.
-
setConcurrentMerchantRequestLimit
public DeveloperMerchantLimits setConcurrentMerchantRequestLimit(Integer concurrentMerchantRequestLimit)
Sets the field 'concurrentMerchantRequestLimit'.
-
clearRequestLimit
public void clearRequestLimit()
Clears the 'requestLimit' field, the 'has' method for this field will now return false
-
clearMerchantRequestLimit
public void clearMerchantRequestLimit()
Clears the 'merchantRequestLimit' field, the 'has' method for this field will now return false
-
clearConcurrentRequestLimit
public void clearConcurrentRequestLimit()
Clears the 'concurrentRequestLimit' field, the 'has' method for this field will now return false
-
clearConcurrentMerchantRequestLimit
public void clearConcurrentMerchantRequestLimit()
Clears the 'concurrentMerchantRequestLimit' 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 DeveloperMerchantLimits copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(DeveloperMerchantLimits src)
Copy all the changed fields from the given source to this instance.
-
-