Package com.clover.sdk.v3.billing
Class DevicePriceInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.billing.DevicePriceInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class DevicePriceInfo extends GenericParcelable implements Validator, JSONifiable
Deprecated.This is a Clover private internal use class and should not be used. There are no connectors available to get this data from Clover services.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DevicePriceInfo.Constraints
Deprecated.-
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<DevicePriceInfo>
CREATOR
Deprecated.static JSONifiable.Creator<DevicePriceInfo>
JSON_CREATOR
Deprecated.-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description DevicePriceInfo()
Deprecated.Constructs a new empty instance.protected
DevicePriceInfo(boolean noInit)
Deprecated.Constructs a new empty instance.DevicePriceInfo(DevicePriceInfo src)
Deprecated.Constructs a new instance that is a deep copy of the source instance.DevicePriceInfo(String json)
Deprecated.Constructs a new instance from the given JSON String.DevicePriceInfo(JSONObject jsonObject)
Deprecated.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 Deprecated Methods Modifier and Type Method Description void
clearDeviceCountInfo()
Deprecated.Clears the 'deviceCountInfo' field, the 'has' method for this field will now return falsevoid
clearPrice()
Deprecated.Clears the 'price' field, the 'has' method for this field will now return falseboolean
containsChanges()
Deprecated.Returns true if this instance has any changes.DevicePriceInfo
copyChanges()
Deprecated.Create a copy of this instance that contains only fields that were set after the constructor was called.DeviceCountInfo
getDeviceCountInfo()
Deprecated.protected GenericClient
getGenericClient()
Deprecated.JSONObject
getJSONObject()
Deprecated.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.Long
getPrice()
Deprecated.boolean
hasDeviceCountInfo()
Deprecated.Checks whether the 'deviceCountInfo' field has been set, however the value could be nullboolean
hasPrice()
Deprecated.Checks whether the 'price' field has been set, however the value could be nullboolean
isNotNullDeviceCountInfo()
Deprecated.Checks whether the 'deviceCountInfo' field is set and is not nullboolean
isNotNullPrice()
Deprecated.Checks whether the 'price' field is set and is not nullvoid
mergeChanges(DevicePriceInfo src)
Deprecated.Copy all the changed fields from the given source to this instance.void
resetChangeLog()
Deprecated.Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.DevicePriceInfo
setDeviceCountInfo(DeviceCountInfo deviceCountInfo)
Deprecated.Sets the field 'deviceCountInfo'.DevicePriceInfo
setPrice(Long price)
Deprecated.Sets the field 'price'.void
validate()
Deprecated.-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<DevicePriceInfo> CREATOR
Deprecated.
-
JSON_CREATOR
public static final JSONifiable.Creator<DevicePriceInfo> JSON_CREATOR
Deprecated.
-
-
Constructor Detail
-
DevicePriceInfo
public DevicePriceInfo()
Deprecated.Constructs a new empty instance.
-
DevicePriceInfo
protected DevicePriceInfo(boolean noInit)
Deprecated.Constructs a new empty instance.
-
DevicePriceInfo
public DevicePriceInfo(String json) throws IllegalArgumentException
Deprecated.Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
DevicePriceInfo
public DevicePriceInfo(JSONObject jsonObject)
Deprecated.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.
-
DevicePriceInfo
public DevicePriceInfo(DevicePriceInfo src)
Deprecated.Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getPrice
public Long getPrice()
Deprecated.
-
getDeviceCountInfo
public DeviceCountInfo getDeviceCountInfo()
Deprecated.
-
getGenericClient
protected GenericClient getGenericClient()
Deprecated.- Specified by:
getGenericClient
in classGenericParcelable
-
getJSONObject
public JSONObject getJSONObject()
Deprecated.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
-
isNotNullPrice
public boolean isNotNullPrice()
Deprecated.Checks whether the 'price' field is set and is not null
-
isNotNullDeviceCountInfo
public boolean isNotNullDeviceCountInfo()
Deprecated.Checks whether the 'deviceCountInfo' field is set and is not null
-
hasPrice
public boolean hasPrice()
Deprecated.Checks whether the 'price' field has been set, however the value could be null
-
hasDeviceCountInfo
public boolean hasDeviceCountInfo()
Deprecated.Checks whether the 'deviceCountInfo' field has been set, however the value could be null
-
setPrice
public DevicePriceInfo setPrice(Long price)
Deprecated.Sets the field 'price'.
-
setDeviceCountInfo
public DevicePriceInfo setDeviceCountInfo(DeviceCountInfo deviceCountInfo)
Deprecated.Sets the field 'deviceCountInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
-
clearPrice
public void clearPrice()
Deprecated.Clears the 'price' field, the 'has' method for this field will now return false
-
clearDeviceCountInfo
public void clearDeviceCountInfo()
Deprecated.Clears the 'deviceCountInfo' field, the 'has' method for this field will now return false
-
containsChanges
public boolean containsChanges()
Deprecated.Returns true if this instance has any changes.
-
resetChangeLog
public void resetChangeLog()
Deprecated.Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
-
copyChanges
public DevicePriceInfo copyChanges()
Deprecated.Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(DevicePriceInfo src)
Deprecated.Copy all the changed fields from the given source to this instance.
-
-