Class Charge

    • Constructor Detail

      • Charge

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

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

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

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

      • getId

        public String getId()
      • getCurrency

        public String getCurrency()
      • getAmount

        public Long getAmount()
      • getTax

        public Long getTax()
      • getDeveloperPortion

        public Long getDeveloperPortion()
      • getTaxClassificationCode

        public String getTaxClassificationCode()
      • getStartDate

        public Long getStartDate()
      • getEndDate

        public Long getEndDate()
      • getExportMonth

        public Long getExportMonth()
      • getCreatedTime

        public Long getCreatedTime()
      • getModifiedTime

        public Long getModifiedTime()
      • getMerchantAppCharge

        public Reference getMerchantAppCharge()
        Object which includes the charge object and some details regarding the app charge
      • getMerchantPlanCharge

        public Reference getMerchantPlanCharge()
        Object which includes the charge object and some details regarding the plan charge
      • 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
      • isNotNullId

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

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

        public boolean isNotNullAmount()
        Checks whether the 'amount' field is set and is not null
      • isNotNullTax

        public boolean isNotNullTax()
        Checks whether the 'tax' field is set and is not null
      • isNotNullDeveloperPortion

        public boolean isNotNullDeveloperPortion()
        Checks whether the 'developerPortion' field is set and is not null
      • isNotNullStatus

        public boolean isNotNullStatus()
        Checks whether the 'status' field is set and is not null
      • isNotNullType

        public boolean isNotNullType()
        Checks whether the 'type' field is set and is not null
      • isNotNullTaxClassificationCode

        public boolean isNotNullTaxClassificationCode()
        Checks whether the 'taxClassificationCode' field is set and is not null
      • isNotNullStartDate

        public boolean isNotNullStartDate()
        Checks whether the 'startDate' field is set and is not null
      • isNotNullEndDate

        public boolean isNotNullEndDate()
        Checks whether the 'endDate' field is set and is not null
      • isNotNullExportMonth

        public boolean isNotNullExportMonth()
        Checks whether the 'exportMonth' field is set and is not null
      • isNotNullCreatedTime

        public boolean isNotNullCreatedTime()
        Checks whether the 'createdTime' field is set and is not null
      • isNotNullModifiedTime

        public boolean isNotNullModifiedTime()
        Checks whether the 'modifiedTime' field is set and is not null
      • isNotNullMerchantAppCharge

        public boolean isNotNullMerchantAppCharge()
        Checks whether the 'merchantAppCharge' field is set and is not null
      • isNotNullMerchantPlanCharge

        public boolean isNotNullMerchantPlanCharge()
        Checks whether the 'merchantPlanCharge' field is set and is not null
      • isNotNullInfoleaseChargeAttempts

        public boolean isNotNullInfoleaseChargeAttempts()
        Checks whether the 'infoleaseChargeAttempts' field is set and is not null
      • isNotEmptyInfoleaseChargeAttempts

        public boolean isNotEmptyInfoleaseChargeAttempts()
        Checks whether the 'infoleaseChargeAttempts' field is set and is not null and is not empty
      • hasId

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

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

        public boolean hasAmount()
        Checks whether the 'amount' field has been set, however the value could be null
      • hasTax

        public boolean hasTax()
        Checks whether the 'tax' field has been set, however the value could be null
      • hasDeveloperPortion

        public boolean hasDeveloperPortion()
        Checks whether the 'developerPortion' field has been set, however the value could be null
      • hasStatus

        public boolean hasStatus()
        Checks whether the 'status' field has been set, however the value could be null
      • hasType

        public boolean hasType()
        Checks whether the 'type' field has been set, however the value could be null
      • hasTaxClassificationCode

        public boolean hasTaxClassificationCode()
        Checks whether the 'taxClassificationCode' field has been set, however the value could be null
      • hasStartDate

        public boolean hasStartDate()
        Checks whether the 'startDate' field has been set, however the value could be null
      • hasEndDate

        public boolean hasEndDate()
        Checks whether the 'endDate' field has been set, however the value could be null
      • hasExportMonth

        public boolean hasExportMonth()
        Checks whether the 'exportMonth' field has been set, however the value could be null
      • hasCreatedTime

        public boolean hasCreatedTime()
        Checks whether the 'createdTime' field has been set, however the value could be null
      • hasModifiedTime

        public boolean hasModifiedTime()
        Checks whether the 'modifiedTime' field has been set, however the value could be null
      • hasMerchantAppCharge

        public boolean hasMerchantAppCharge()
        Checks whether the 'merchantAppCharge' field has been set, however the value could be null
      • hasMerchantPlanCharge

        public boolean hasMerchantPlanCharge()
        Checks whether the 'merchantPlanCharge' field has been set, however the value could be null
      • hasInfoleaseChargeAttempts

        public boolean hasInfoleaseChargeAttempts()
        Checks whether the 'infoleaseChargeAttempts' field has been set, however the value could be null
      • setId

        public Charge setId​(String id)
        Sets the field 'id'.
      • setCurrency

        public Charge setCurrency​(String currency)
        Sets the field 'currency'.
      • setAmount

        public Charge setAmount​(Long amount)
        Sets the field 'amount'.
      • setTax

        public Charge setTax​(Long tax)
        Sets the field 'tax'.
      • setDeveloperPortion

        public Charge setDeveloperPortion​(Long developerPortion)
        Sets the field 'developerPortion'.
      • setTaxClassificationCode

        public Charge setTaxClassificationCode​(String taxClassificationCode)
        Sets the field 'taxClassificationCode'.
      • setStartDate

        public Charge setStartDate​(Long startDate)
        Sets the field 'startDate'.
      • setEndDate

        public Charge setEndDate​(Long endDate)
        Sets the field 'endDate'.
      • setExportMonth

        public Charge setExportMonth​(Long exportMonth)
        Sets the field 'exportMonth'.
      • setCreatedTime

        public Charge setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setModifiedTime

        public Charge setModifiedTime​(Long modifiedTime)
        Sets the field 'modifiedTime'.
      • setMerchantAppCharge

        public Charge setMerchantAppCharge​(Reference merchantAppCharge)
        Sets the field 'merchantAppCharge'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setMerchantPlanCharge

        public Charge setMerchantPlanCharge​(Reference merchantPlanCharge)
        Sets the field 'merchantPlanCharge'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setInfoleaseChargeAttempts

        public Charge setInfoleaseChargeAttempts​(List<InfoleaseChargeAttempt> infoleaseChargeAttempts)
        Sets the field 'infoleaseChargeAttempts'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearId

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

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

        public void clearAmount()
        Clears the 'amount' field, the 'has' method for this field will now return false
      • clearTax

        public void clearTax()
        Clears the 'tax' field, the 'has' method for this field will now return false
      • clearDeveloperPortion

        public void clearDeveloperPortion()
        Clears the 'developerPortion' field, the 'has' method for this field will now return false
      • clearStatus

        public void clearStatus()
        Clears the 'status' field, the 'has' method for this field will now return false
      • clearType

        public void clearType()
        Clears the 'type' field, the 'has' method for this field will now return false
      • clearTaxClassificationCode

        public void clearTaxClassificationCode()
        Clears the 'taxClassificationCode' field, the 'has' method for this field will now return false
      • clearStartDate

        public void clearStartDate()
        Clears the 'startDate' field, the 'has' method for this field will now return false
      • clearEndDate

        public void clearEndDate()
        Clears the 'endDate' field, the 'has' method for this field will now return false
      • clearExportMonth

        public void clearExportMonth()
        Clears the 'exportMonth' field, the 'has' method for this field will now return false
      • clearCreatedTime

        public void clearCreatedTime()
        Clears the 'createdTime' field, the 'has' method for this field will now return false
      • clearModifiedTime

        public void clearModifiedTime()
        Clears the 'modifiedTime' field, the 'has' method for this field will now return false
      • clearMerchantAppCharge

        public void clearMerchantAppCharge()
        Clears the 'merchantAppCharge' field, the 'has' method for this field will now return false
      • clearMerchantPlanCharge

        public void clearMerchantPlanCharge()
        Clears the 'merchantPlanCharge' field, the 'has' method for this field will now return false
      • clearInfoleaseChargeAttempts

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

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