Class SummaryMerchantCharges

    • Constructor Detail

      • SummaryMerchantCharges

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

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

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

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

      • getCurrency

        public String getCurrency()
      • getNum

        public Long getNum()
      • getTotalAmount

        public Long getTotalAmount()
      • getTotalTax

        public Long getTotalTax()
      • getTotalDeveloperPortion

        public Long getTotalDeveloperPortion()
      • getNumOfMerchants

        public Integer getNumOfMerchants()
      • 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
      • isNotNullCurrency

        public boolean isNotNullCurrency()
        Checks whether the 'currency' field is set and is not null
      • isNotNullNum

        public boolean isNotNullNum()
        Checks whether the 'num' field is set and is not null
      • isNotNullTotalAmount

        public boolean isNotNullTotalAmount()
        Checks whether the 'totalAmount' field is set and is not null
      • isNotNullTotalTax

        public boolean isNotNullTotalTax()
        Checks whether the 'totalTax' field is set and is not null
      • isNotNullTotalDeveloperPortion

        public boolean isNotNullTotalDeveloperPortion()
        Checks whether the 'totalDeveloperPortion' field is set and is not null
      • isNotNullNumOfMerchants

        public boolean isNotNullNumOfMerchants()
        Checks whether the 'numOfMerchants' field is set and is not null
      • hasCurrency

        public boolean hasCurrency()
        Checks whether the 'currency' field has been set, however the value could be null
      • hasNum

        public boolean hasNum()
        Checks whether the 'num' field has been set, however the value could be null
      • hasTotalAmount

        public boolean hasTotalAmount()
        Checks whether the 'totalAmount' field has been set, however the value could be null
      • hasTotalTax

        public boolean hasTotalTax()
        Checks whether the 'totalTax' field has been set, however the value could be null
      • hasTotalDeveloperPortion

        public boolean hasTotalDeveloperPortion()
        Checks whether the 'totalDeveloperPortion' field has been set, however the value could be null
      • hasNumOfMerchants

        public boolean hasNumOfMerchants()
        Checks whether the 'numOfMerchants' field has been set, however the value could be null
      • setTotalDeveloperPortion

        public SummaryMerchantCharges setTotalDeveloperPortion​(Long totalDeveloperPortion)
        Sets the field 'totalDeveloperPortion'.
      • clearCurrency

        public void clearCurrency()
        Clears the 'currency' field, the 'has' method for this field will now return false
      • clearNum

        public void clearNum()
        Clears the 'num' field, the 'has' method for this field will now return false
      • clearTotalAmount

        public void clearTotalAmount()
        Clears the 'totalAmount' field, the 'has' method for this field will now return false
      • clearTotalTax

        public void clearTotalTax()
        Clears the 'totalTax' field, the 'has' method for this field will now return false
      • clearTotalDeveloperPortion

        public void clearTotalDeveloperPortion()
        Clears the 'totalDeveloperPortion' field, the 'has' method for this field will now return false
      • clearNumOfMerchants

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

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