Class BatchCardTotal

    • Constructor Detail

      • BatchCardTotal

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

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

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

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

      • getCardType

        public CardType getCardType()
      • getCardTypeLabel

        public String getCardTypeLabel()
        In the case of CardType.OTHER, an optional label might be provided
      • getInstallments

        public Long getInstallments()
        Number of installments for this CardTotal
      • 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
      • isNotNullCardType

        public boolean isNotNullCardType()
        Checks whether the 'cardType' field is set and is not null
      • isNotNullCardTypeLabel

        public boolean isNotNullCardTypeLabel()
        Checks whether the 'cardTypeLabel' field is set and is not null
      • isNotNullInstallments

        public boolean isNotNullInstallments()
        Checks whether the 'installments' 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
      • hasCardType

        public boolean hasCardType()
        Checks whether the 'cardType' field has been set, however the value could be null
      • hasCardTypeLabel

        public boolean hasCardTypeLabel()
        Checks whether the 'cardTypeLabel' field has been set, however the value could be null
      • hasInstallments

        public boolean hasInstallments()
        Checks whether the 'installments' 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
      • setCardTypeLabel

        public BatchCardTotal setCardTypeLabel​(String cardTypeLabel)
        Sets the field 'cardTypeLabel'.
      • setInstallments

        public BatchCardTotal setInstallments​(Long installments)
        Sets the field 'installments'.
      • clearCardType

        public void clearCardType()
        Clears the 'cardType' field, the 'has' method for this field will now return false
      • clearCardTypeLabel

        public void clearCardTypeLabel()
        Clears the 'cardTypeLabel' field, the 'has' method for this field will now return false
      • clearInstallments

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

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