Package com.clover.sdk.v3.payments
Class PayPalCallbackRequest
- java.lang.Object
-
- com.clover.sdk.GenericParcelable
-
- com.clover.sdk.v3.payments.PayPalCallbackRequest
-
- All Implemented Interfaces:
Parcelable
,JSONifiable
,Validator
public class PayPalCallbackRequest extends GenericParcelable implements Validator, JSONifiable
This is an auto-generated Clover data object.PayPal/Venmo Callback request object.
Fields
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PayPalCallbackRequest.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<PayPalCallbackRequest>
CREATOR
static JSONifiable.Creator<PayPalCallbackRequest>
JSON_CREATOR
-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Modifier Constructor Description PayPalCallbackRequest()
Constructs a new empty instance.protected
PayPalCallbackRequest(boolean noInit)
Constructs a new empty instance.PayPalCallbackRequest(PayPalCallbackRequest src)
Constructs a new instance that is a deep copy of the source instance.PayPalCallbackRequest(String json)
Constructs a new instance from the given JSON String.PayPalCallbackRequest(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
clearDeviceUUID()
Clears the 'deviceUUID' field, the 'has' method for this field will now return falsevoid
clearMerchantRefId()
Clears the 'merchantRefId' field, the 'has' method for this field will now return falsevoid
clearPayerId()
Clears the 'payerId' field, the 'has' method for this field will now return falsevoid
clearQrcRefId()
Clears the 'qrcRefId' field, the 'has' method for this field will now return falsevoid
clearTimestamp()
Clears the 'timestamp' field, the 'has' method for this field will now return falsevoid
clearTransactionId()
Clears the 'transactionId' field, the 'has' method for this field will now return falseboolean
containsChanges()
Returns true if this instance has any changes.PayPalCallbackRequest
copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.String
getDeviceUUID()
UUID of Clover device.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.String
getMerchantRefId()
merchant_ref_id provided as part of MPQRC's id.String
getPayerId()
payer_id provided as part of merchant-presented QR code (MPQRC) id.String
getQrcRefId()
Unique id used by Clover to make the payment call.String
getTimestamp()
time_stamp provided as part of MPQRC's id.String
getTransactionId()
UUID of payment.boolean
hasDeviceUUID()
Checks whether the 'deviceUUID' field has been set, however the value could be nullboolean
hasMerchantRefId()
Checks whether the 'merchantRefId' field has been set, however the value could be nullboolean
hasPayerId()
Checks whether the 'payerId' field has been set, however the value could be nullboolean
hasQrcRefId()
Checks whether the 'qrcRefId' field has been set, however the value could be nullboolean
hasTimestamp()
Checks whether the 'timestamp' field has been set, however the value could be nullboolean
hasTransactionId()
Checks whether the 'transactionId' field has been set, however the value could be nullboolean
isNotNullDeviceUUID()
Checks whether the 'deviceUUID' field is set and is not nullboolean
isNotNullMerchantRefId()
Checks whether the 'merchantRefId' field is set and is not nullboolean
isNotNullPayerId()
Checks whether the 'payerId' field is set and is not nullboolean
isNotNullQrcRefId()
Checks whether the 'qrcRefId' field is set and is not nullboolean
isNotNullTimestamp()
Checks whether the 'timestamp' field is set and is not nullboolean
isNotNullTransactionId()
Checks whether the 'transactionId' field is set and is not nullvoid
mergeChanges(PayPalCallbackRequest 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.PayPalCallbackRequest
setDeviceUUID(String deviceUUID)
Sets the field 'deviceUUID'.PayPalCallbackRequest
setMerchantRefId(String merchantRefId)
Sets the field 'merchantRefId'.PayPalCallbackRequest
setPayerId(String payerId)
Sets the field 'payerId'.PayPalCallbackRequest
setQrcRefId(String qrcRefId)
Sets the field 'qrcRefId'.PayPalCallbackRequest
setTimestamp(String timestamp)
Sets the field 'timestamp'.PayPalCallbackRequest
setTransactionId(String transactionId)
Sets the field 'transactionId'.void
validate()
-
Methods inherited from class com.clover.sdk.GenericParcelable
describeContents, getBundle, toString, writeToParcel
-
-
-
-
Field Detail
-
CREATOR
public static final Parcelable.Creator<PayPalCallbackRequest> CREATOR
-
JSON_CREATOR
public static final JSONifiable.Creator<PayPalCallbackRequest> JSON_CREATOR
-
-
Constructor Detail
-
PayPalCallbackRequest
public PayPalCallbackRequest()
Constructs a new empty instance.
-
PayPalCallbackRequest
protected PayPalCallbackRequest(boolean noInit)
Constructs a new empty instance.
-
PayPalCallbackRequest
public PayPalCallbackRequest(String json) throws IllegalArgumentException
Constructs a new instance from the given JSON String.- Throws:
IllegalArgumentException
-
PayPalCallbackRequest
public PayPalCallbackRequest(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.
-
PayPalCallbackRequest
public PayPalCallbackRequest(PayPalCallbackRequest src)
Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
-
-
Method Detail
-
getPayerId
public String getPayerId()
payer_id provided as part of merchant-presented QR code (MPQRC) id. Encrypted account number of the merchant.
-
getMerchantRefId
public String getMerchantRefId()
merchant_ref_id provided as part of MPQRC's id. Unique identifier that merchant sends to identify their request.
-
getTimestamp
public String getTimestamp()
time_stamp provided as part of MPQRC's id. Specifies the current system time.
-
getQrcRefId
public String getQrcRefId()
Unique id used by Clover to make the payment call.
-
getTransactionId
public String getTransactionId()
UUID of payment. Used only on the client.
-
getDeviceUUID
public String getDeviceUUID()
UUID of Clover device.
-
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
-
isNotNullPayerId
public boolean isNotNullPayerId()
Checks whether the 'payerId' field is set and is not null
-
isNotNullMerchantRefId
public boolean isNotNullMerchantRefId()
Checks whether the 'merchantRefId' field is set and is not null
-
isNotNullTimestamp
public boolean isNotNullTimestamp()
Checks whether the 'timestamp' field is set and is not null
-
isNotNullQrcRefId
public boolean isNotNullQrcRefId()
Checks whether the 'qrcRefId' field is set and is not null
-
isNotNullTransactionId
public boolean isNotNullTransactionId()
Checks whether the 'transactionId' field is set and is not null
-
isNotNullDeviceUUID
public boolean isNotNullDeviceUUID()
Checks whether the 'deviceUUID' field is set and is not null
-
hasPayerId
public boolean hasPayerId()
Checks whether the 'payerId' field has been set, however the value could be null
-
hasMerchantRefId
public boolean hasMerchantRefId()
Checks whether the 'merchantRefId' field has been set, however the value could be null
-
hasTimestamp
public boolean hasTimestamp()
Checks whether the 'timestamp' field has been set, however the value could be null
-
hasQrcRefId
public boolean hasQrcRefId()
Checks whether the 'qrcRefId' field has been set, however the value could be null
-
hasTransactionId
public boolean hasTransactionId()
Checks whether the 'transactionId' field has been set, however the value could be null
-
hasDeviceUUID
public boolean hasDeviceUUID()
Checks whether the 'deviceUUID' field has been set, however the value could be null
-
setPayerId
public PayPalCallbackRequest setPayerId(String payerId)
Sets the field 'payerId'.
-
setMerchantRefId
public PayPalCallbackRequest setMerchantRefId(String merchantRefId)
Sets the field 'merchantRefId'.
-
setTimestamp
public PayPalCallbackRequest setTimestamp(String timestamp)
Sets the field 'timestamp'.
-
setQrcRefId
public PayPalCallbackRequest setQrcRefId(String qrcRefId)
Sets the field 'qrcRefId'.
-
setTransactionId
public PayPalCallbackRequest setTransactionId(String transactionId)
Sets the field 'transactionId'.
-
setDeviceUUID
public PayPalCallbackRequest setDeviceUUID(String deviceUUID)
Sets the field 'deviceUUID'.
-
clearPayerId
public void clearPayerId()
Clears the 'payerId' field, the 'has' method for this field will now return false
-
clearMerchantRefId
public void clearMerchantRefId()
Clears the 'merchantRefId' field, the 'has' method for this field will now return false
-
clearTimestamp
public void clearTimestamp()
Clears the 'timestamp' field, the 'has' method for this field will now return false
-
clearQrcRefId
public void clearQrcRefId()
Clears the 'qrcRefId' field, the 'has' method for this field will now return false
-
clearTransactionId
public void clearTransactionId()
Clears the 'transactionId' field, the 'has' method for this field will now return false
-
clearDeviceUUID
public void clearDeviceUUID()
Clears the 'deviceUUID' 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 PayPalCallbackRequest copyChanges()
Create a copy of this instance that contains only fields that were set after the constructor was called.
-
mergeChanges
public void mergeChanges(PayPalCallbackRequest src)
Copy all the changed fields from the given source to this instance.
-
-