Class DeveloperMerchantLimits

    • Constructor Detail

      • DeveloperMerchantLimits

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

        protected DeveloperMerchantLimits​(boolean noInit)
        Constructs a new empty instance.
      • 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.
      • 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
      • 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
      • 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.