Class PayPalCallbackRequest

    • Constructor Detail

      • PayPalCallbackRequest

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

        protected PayPalCallbackRequest​(boolean noInit)
        Constructs a new empty instance.
      • 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.
      • 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
      • 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
      • 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.