Class BatchCardlessTotal

    • Constructor Detail

      • BatchCardlessTotal

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

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

        public BatchCardlessTotal​(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.
      • BatchCardlessTotal

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

      • getCardlessType

        public CardlessPaymentNetwork getCardlessType()
        Type of cardless payment network used for authorization
      • getCount

        public Long getCount()
        Total count of types
      • getTotal

        public Long getTotal()
        Total amount for type
      • 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
      • isNotNullCardlessType

        public boolean isNotNullCardlessType()
        Checks whether the 'cardlessType' field is set and is not null
      • isNotNullCount

        public boolean isNotNullCount()
        Checks whether the 'count' field is set and is not null
      • isNotNullTotal

        public boolean isNotNullTotal()
        Checks whether the 'total' field is set and is not null
      • hasCardlessType

        public boolean hasCardlessType()
        Checks whether the 'cardlessType' field has been set, however the value could be null
      • hasCount

        public boolean hasCount()
        Checks whether the 'count' field has been set, however the value could be null
      • hasTotal

        public boolean hasTotal()
        Checks whether the 'total' field has been set, however the value could be null
      • clearCardlessType

        public void clearCardlessType()
        Clears the 'cardlessType' field, the 'has' method for this field will now return false
      • clearCount

        public void clearCount()
        Clears the 'count' field, the 'has' method for this field will now return false
      • clearTotal

        public void clearTotal()
        Clears the 'total' 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 BatchCardlessTotal copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

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