Package com.clover.sdk.v3.billing
Class Charge
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.billing.Charge
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class Charge extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Charge.Constraints
-
Nested classes/interfaces inherited from interface com.clover.sdk.JSONifiable
JSONifiable.Creator<T>
-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<Charge>
CREATOR
static JSONifiable.Creator<Charge>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description Charge()
Constructs a new empty instance.protected
Charge(boolean noInit)
Constructs a new empty instance.Charge(Charge src)
Constructs a new instance that is a deep copy of the source instance.Charge(String json)
Constructs a new instance from the given JSON String.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearAmount()
Clears the 'amount' field, the 'has' method for this field will now return falsevoid
clearCreatedTime()
Clears the 'createdTime' field, the 'has' method for this field will now return falsevoid
clearCurrency()
Clears the 'currency' field, the 'has' method for this field will now return falsevoid
clearDeveloperPortion()
Clears the 'developerPortion' field, the 'has' method for this field will now return falsevoid
clearEndDate()
Clears the 'endDate' field, the 'has' method for this field will now return falsevoid
clearExportMonth()
Clears the 'exportMonth' field, the 'has' method for this field will now return falsevoid
clearId()
Clears the 'id' field, the 'has' method for this field will now return falsevoid
clearInfoleaseChargeAttempts()
Clears the 'infoleaseChargeAttempts' field, the 'has' method for this field will now return falsevoid
clearMerchantAppCharge()
Clears the 'merchantAppCharge' field, the 'has' method for this field will now return falsevoid
clearMerchantPlanCharge()
Clears the 'merchantPlanCharge' field, the 'has' method for this field will now return falsevoid
clearModifiedTime()
Clears the 'modifiedTime' field, the 'has' method for this field will now return falsevoid
clearStartDate()
Clears the 'startDate' field, the 'has' method for this field will now return falsevoid
clearStatus()
Clears the 'status' field, the 'has' method for this field will now return falsevoid
clearTax()
Clears the 'tax' field, the 'has' method for this field will now return falsevoid
clearTaxClassificationCode()
Clears the 'taxClassificationCode' field, the 'has' method for this field will now return falsevoid
clearType()
Clears the 'type' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.Charge
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.Long
getAmount()
Long
getCreatedTime()
String
getCurrency()
Long
getDeveloperPortion()
Long
getEndDate()
Long
getExportMonth()
protected GenericClient
getGenericClient()
String
getId()
List<InfoleaseChargeAttempt>
getInfoleaseChargeAttempts()
Infolease charge attemptsJSONObject
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.Reference
getMerchantAppCharge()
Object which includes the charge object and some details regarding the app chargeReference
getMerchantPlanCharge()
Object which includes the charge object and some details regarding the plan chargeLong
getModifiedTime()
Long
getStartDate()
ChargeStatus
getStatus()
Long
getTax()
String
getTaxClassificationCode()
ChargeType
getType()
boolean
hasAmount()
Checks whether the 'amount' field has been set, however the value could be nullboolean
hasCreatedTime()
Checks whether the 'createdTime' field has been set, however the value could be nullboolean
hasCurrency()
Checks whether the 'currency' field has been set, however the value could be nullboolean
hasDeveloperPortion()
Checks whether the 'developerPortion' field has been set, however the value could be nullboolean
hasEndDate()
Checks whether the 'endDate' field has been set, however the value could be nullboolean
hasExportMonth()
Checks whether the 'exportMonth' field has been set, however the value could be nullboolean
hasId()
Checks whether the 'id' field has been set, however the value could be nullboolean
hasInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field has been set, however the value could be nullboolean
hasMerchantAppCharge()
Checks whether the 'merchantAppCharge' field has been set, however the value could be nullboolean
hasMerchantPlanCharge()
Checks whether the 'merchantPlanCharge' field has been set, however the value could be nullboolean
hasModifiedTime()
Checks whether the 'modifiedTime' field has been set, however the value could be nullboolean
hasStartDate()
Checks whether the 'startDate' field has been set, however the value could be nullboolean
hasStatus()
Checks whether the 'status' field has been set, however the value could be nullboolean
hasTax()
Checks whether the 'tax' field has been set, however the value could be nullboolean
hasTaxClassificationCode()
Checks whether the 'taxClassificationCode' field has been set, however the value could be nullboolean
hasType()
Checks whether the 'type' field has been set, however the value could be nullboolean
isNotEmptyInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field is set and is not null and is not emptyboolean
isNotNullAmount()
Checks whether the 'amount' field is set and is not nullboolean
isNotNullCreatedTime()
Checks whether the 'createdTime' field is set and is not nullboolean
isNotNullCurrency()
Checks whether the 'currency' field is set and is not nullboolean
isNotNullDeveloperPortion()
Checks whether the 'developerPortion' field is set and is not nullboolean
isNotNullEndDate()
Checks whether the 'endDate' field is set and is not nullboolean
isNotNullExportMonth()
Checks whether the 'exportMonth' field is set and is not nullboolean
isNotNullId()
Checks whether the 'id' field is set and is not nullboolean
isNotNullInfoleaseChargeAttempts()
Checks whether the 'infoleaseChargeAttempts' field is set and is not nullboolean
isNotNullMerchantAppCharge()
Checks whether the 'merchantAppCharge' field is set and is not nullboolean
isNotNullMerchantPlanCharge()
Checks whether the 'merchantPlanCharge' field is set and is not nullboolean
isNotNullModifiedTime()
Checks whether the 'modifiedTime' field is set and is not nullboolean
isNotNullStartDate()
Checks whether the 'startDate' field is set and is not nullboolean
isNotNullStatus()
Checks whether the 'status' field is set and is not nullboolean
isNotNullTax()
Checks whether the 'tax' field is set and is not nullboolean
isNotNullTaxClassificationCode()
Checks whether the 'taxClassificationCode' field is set and is not nullboolean
isNotNullType()
Checks whether the 'type' field is set and is not nullvoid
mergeChanges(Charge src)
Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.Charge
setAmount(Long amount)
Sets the field 'amount'.Charge
setCreatedTime(Long createdTime)
Sets the field 'createdTime'.Charge
setCurrency(String currency)
Sets the field 'currency'.Charge
setDeveloperPortion(Long developerPortion)
Sets the field 'developerPortion'.Charge
setEndDate(Long endDate)
Sets the field 'endDate'.Charge
setExportMonth(Long exportMonth)
Sets the field 'exportMonth'.Charge
setId(String id)
Sets the field 'id'.Charge
setInfoleaseChargeAttempts(List<InfoleaseChargeAttempt> infoleaseChargeAttempts)
Sets the field 'infoleaseChargeAttempts'.Charge
setMerchantAppCharge(Reference merchantAppCharge)
Sets the field 'merchantAppCharge'.Charge
setMerchantPlanCharge(Reference merchantPlanCharge)
Sets the field 'merchantPlanCharge'.Charge
setModifiedTime(Long modifiedTime)
Sets the field 'modifiedTime'.Charge
setStartDate(Long startDate)
Sets the field 'startDate'.Charge
setStatus(ChargeStatus status)
Sets the field 'status'.Charge
setTax(Long tax)
Sets the field 'tax'.Charge
setTaxClassificationCode(String taxClassificationCode)
Sets the field 'taxClassificationCode'.Charge
setType(ChargeType type)
Sets the field 'type'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<Charge> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<Charge> JSON_CREATOR
-
-
Constructor Detail
-
Charge
public Charge()
Constructs a new empty instance.
-
Charge
protected Charge(boolean noInit)
Constructs a new empty instance.
-
Charge
public Charge(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
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()
-
getStatus
public ChargeStatus getStatus()
-
getType
public ChargeType getType()
-
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
-
getInfoleaseChargeAttempts
public List<InfoleaseChargeAttempt> getInfoleaseChargeAttempts()
Infolease charge attempts
-
getGenericClient
protected GenericClient getGenericClient()
- Specified by:
getGenericClient
in classGenericParcelable
-
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 interfaceJSONifiable
-
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
-
setDeveloperPortion
public Charge setDeveloperPortion(Long developerPortion)
Sets the field 'developerPortion'.
-
setStatus
public Charge setStatus(ChargeStatus status)
Sets the field 'status'.
-
setType
public Charge setType(ChargeType type)
Sets the field 'type'.
-
setTaxClassificationCode
public Charge setTaxClassificationCode(String taxClassificationCode)
Sets the field 'taxClassificationCode'.
-
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.
-
-