Package com.clover.sdk.v3.payments
Class PurchaseCardBillingInfo
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.PurchaseCardBillingInfo
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PurchaseCardBillingInfo extends GenericParcelable implements Validator, JSONifiable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PurchaseCardBillingInfo.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<PurchaseCardBillingInfo>
CREATOR
static JSONifiable.Creator<PurchaseCardBillingInfo>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PurchaseCardBillingInfo()
Constructs a new empty instance.protected
PurchaseCardBillingInfo(boolean noInit)
Constructs a new empty instance.PurchaseCardBillingInfo(PurchaseCardBillingInfo src)
Constructs a new instance that is a deep copy of the source instance.PurchaseCardBillingInfo(String json)
Constructs a new instance from the given JSON String.PurchaseCardBillingInfo(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
clearBillingAddress()
Clears the 'billingAddress' field, the 'has' method for this field will now return falsevoid
clearBillingZip()
Clears the 'billingZip' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.PurchaseCardBillingInfo
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getBillingAddress()
billing address for l2.String
getBillingZip()
billing zip for l2.protected GenericClient
getGenericClient()
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.boolean
hasBillingAddress()
Checks whether the 'billingAddress' field has been set, however the value could be nullboolean
hasBillingZip()
Checks whether the 'billingZip' field has been set, however the value could be nullboolean
isNotNullBillingAddress()
Checks whether the 'billingAddress' field is set and is not nullboolean
isNotNullBillingZip()
Checks whether the 'billingZip' field is set and is not nullvoid
mergeChanges(PurchaseCardBillingInfo 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.PurchaseCardBillingInfo
setBillingAddress(String billingAddress)
Sets the field 'billingAddress'.PurchaseCardBillingInfo
setBillingZip(String billingZip)
Sets the field 'billingZip'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PurchaseCardBillingInfo> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PurchaseCardBillingInfo> JSON_CREATOR
-
-
Constructor Detail
-
PurchaseCardBillingInfo
public PurchaseCardBillingInfo()
Constructs a new empty instance.
-
PurchaseCardBillingInfo
protected PurchaseCardBillingInfo(boolean noInit)
Constructs a new empty instance.
-
PurchaseCardBillingInfo
public PurchaseCardBillingInfo(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PurchaseCardBillingInfo
public PurchaseCardBillingInfo(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.
-
PurchaseCardBillingInfo
public PurchaseCardBillingInfo(PurchaseCardBillingInfo src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getBillingAddress
public String getBillingAddress()
billing address for l2.
-
getBillingZip
public String getBillingZip()
billing zip for l2.
-
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
-
isNotNullBillingAddress
public boolean isNotNullBillingAddress()
Checks whether the 'billingAddress' field is set and is not null
-
isNotNullBillingZip
public boolean isNotNullBillingZip()
Checks whether the 'billingZip' field is set and is not null
-
hasBillingAddress
public boolean hasBillingAddress()
Checks whether the 'billingAddress' field has been set, however the value could be null
-
hasBillingZip
public boolean hasBillingZip()
Checks whether the 'billingZip' field has been set, however the value could be null
-
setBillingAddress
public PurchaseCardBillingInfo setBillingAddress(String billingAddress)
Sets the field 'billingAddress'.
-
setBillingZip
public PurchaseCardBillingInfo setBillingZip(String billingZip)
Sets the field 'billingZip'.
-
clearBillingAddress
public void clearBillingAddress()
Clears the 'billingAddress' field, the 'has' method for this field will now return false
-
clearBillingZip
public void clearBillingZip()
Clears the 'billingZip' 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 PurchaseCardBillingInfo copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PurchaseCardBillingInfo src)
Copy all the changed fields from the given source to this instance.
-
-