Class CreditRefund

    • Constructor Detail

      • CreditRefund

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

        protected CreditRefund​(boolean noInit)
        Constructs a new empty instance.
      • CreditRefund

        public CreditRefund​(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.
      • CreditRefund

        public CreditRefund​(CreditRefund 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()
        Unique identifier
      • getOrderRef

        public Reference getOrderRef()
        The order with which the refund is associated
      • getDevice

        public Reference getDevice()
        Device which processed the transaction for this refund, a 128-bit UUID, not a normal base-13 Clover ID.
      • getCreatedTime

        public Long getCreatedTime()
        The time when the refund was recorded on the server
      • getClientCreatedTime

        public Long getClientCreatedTime()
        The time when the refund was recorded on the client
      • getCredit

        public Reference getCredit()
        The credit with which the credit refund is associated
      • getEmployee

        public Reference getEmployee()
      • getGermanInfo

        public GermanInfo getGermanInfo()
        German region-specific information
      • getAppTracking

        public AppTracking getAppTracking()
        Tracking information for the app that created this payment.
      • getReason

        public String getReason()
        Reason why the credit refund was initiated
      • getTransactionInfo

        public TransactionInfo getTransactionInfo()
        Transaction information
      • 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
      • isNotNullId

        public boolean isNotNullId()
        Checks whether the 'id' field is set and is not null
      • isNotNullOrderRef

        public boolean isNotNullOrderRef()
        Checks whether the 'orderRef' field is set and is not null
      • isNotNullDevice

        public boolean isNotNullDevice()
        Checks whether the 'device' field is set and is not null
      • isNotNullCreatedTime

        public boolean isNotNullCreatedTime()
        Checks whether the 'createdTime' field is set and is not null
      • isNotNullClientCreatedTime

        public boolean isNotNullClientCreatedTime()
        Checks whether the 'clientCreatedTime' field is set and is not null
      • isNotNullCredit

        public boolean isNotNullCredit()
        Checks whether the 'credit' field is set and is not null
      • isNotNullEmployee

        public boolean isNotNullEmployee()
        Checks whether the 'employee' field is set and is not null
      • isNotNullGermanInfo

        public boolean isNotNullGermanInfo()
        Checks whether the 'germanInfo' field is set and is not null
      • isNotNullAppTracking

        public boolean isNotNullAppTracking()
        Checks whether the 'appTracking' field is set and is not null
      • isNotNullReason

        public boolean isNotNullReason()
        Checks whether the 'reason' field is set and is not null
      • isNotNullTransactionInfo

        public boolean isNotNullTransactionInfo()
        Checks whether the 'transactionInfo' field is set and is not null
      • hasId

        public boolean hasId()
        Checks whether the 'id' field has been set, however the value could be null
      • hasOrderRef

        public boolean hasOrderRef()
        Checks whether the 'orderRef' field has been set, however the value could be null
      • hasDevice

        public boolean hasDevice()
        Checks whether the 'device' 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
      • hasClientCreatedTime

        public boolean hasClientCreatedTime()
        Checks whether the 'clientCreatedTime' field has been set, however the value could be null
      • hasCredit

        public boolean hasCredit()
        Checks whether the 'credit' field has been set, however the value could be null
      • hasEmployee

        public boolean hasEmployee()
        Checks whether the 'employee' field has been set, however the value could be null
      • hasGermanInfo

        public boolean hasGermanInfo()
        Checks whether the 'germanInfo' field has been set, however the value could be null
      • hasAppTracking

        public boolean hasAppTracking()
        Checks whether the 'appTracking' field has been set, however the value could be null
      • hasReason

        public boolean hasReason()
        Checks whether the 'reason' field has been set, however the value could be null
      • hasTransactionInfo

        public boolean hasTransactionInfo()
        Checks whether the 'transactionInfo' field has been set, however the value could be null
      • setOrderRef

        public CreditRefund setOrderRef​(Reference orderRef)
        Sets the field 'orderRef'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setDevice

        public CreditRefund setDevice​(Reference device)
        Sets the field 'device'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setCreatedTime

        public CreditRefund setCreatedTime​(Long createdTime)
        Sets the field 'createdTime'.
      • setClientCreatedTime

        public CreditRefund setClientCreatedTime​(Long clientCreatedTime)
        Sets the field 'clientCreatedTime'.
      • setCredit

        public CreditRefund setCredit​(Reference credit)
        Sets the field 'credit'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setEmployee

        public CreditRefund setEmployee​(Reference employee)
        Sets the field 'employee'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setGermanInfo

        public CreditRefund setGermanInfo​(GermanInfo germanInfo)
        Sets the field 'germanInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setAppTracking

        public CreditRefund setAppTracking​(AppTracking appTracking)
        Sets the field 'appTracking'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • setTransactionInfo

        public CreditRefund setTransactionInfo​(TransactionInfo transactionInfo)
        Sets the field 'transactionInfo'. The parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • clearId

        public void clearId()
        Clears the 'id' field, the 'has' method for this field will now return false
      • clearOrderRef

        public void clearOrderRef()
        Clears the 'orderRef' field, the 'has' method for this field will now return false
      • clearDevice

        public void clearDevice()
        Clears the 'device' 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
      • clearClientCreatedTime

        public void clearClientCreatedTime()
        Clears the 'clientCreatedTime' field, the 'has' method for this field will now return false
      • clearCredit

        public void clearCredit()
        Clears the 'credit' field, the 'has' method for this field will now return false
      • clearEmployee

        public void clearEmployee()
        Clears the 'employee' field, the 'has' method for this field will now return false
      • clearGermanInfo

        public void clearGermanInfo()
        Clears the 'germanInfo' field, the 'has' method for this field will now return false
      • clearAppTracking

        public void clearAppTracking()
        Clears the 'appTracking' field, the 'has' method for this field will now return false
      • clearReason

        public void clearReason()
        Clears the 'reason' field, the 'has' method for this field will now return false
      • clearTransactionInfo

        public void clearTransactionInfo()
        Clears the 'transactionInfo' 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 CreditRefund copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(CreditRefund src)
        Copy all the changed fields from the given source to this instance.