Class WebHook

    • Constructor Detail

      • WebHook

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

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

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

        public WebHook​(WebHook src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getUrl

        public String getUrl()
      • getSecret

        public String getSecret()
        A secret string included as a header in the HTTP request from Clover to the developer's web hook callback URL.
      • getValid

        public Boolean getValid()
      • getVerification

        public String getVerification()
        The verification code that was sent to the developer's web hook callback URL.
      • getOrders

        public Boolean getOrders()
      • getPayments

        public Boolean getPayments()
      • getInventory

        public Boolean getInventory()
      • getCustomers

        public Boolean getCustomers()
      • getMerchants

        public Boolean getMerchants()
      • getEmployees

        public Boolean getEmployees()
        Webhook subscription for employee create/update/delete
      • getCashAdjustment

        public Boolean getCashAdjustment()
      • getExports

        public Boolean getExports()
      • 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
      • isNotNullUrl

        public boolean isNotNullUrl()
        Checks whether the 'url' field is set and is not null
      • isNotNullSecret

        public boolean isNotNullSecret()
        Checks whether the 'secret' field is set and is not null
      • isNotNullValid

        public boolean isNotNullValid()
        Checks whether the 'valid' field is set and is not null
      • isNotNullVerification

        public boolean isNotNullVerification()
        Checks whether the 'verification' field is set and is not null
      • isNotNullOrders

        public boolean isNotNullOrders()
        Checks whether the 'orders' field is set and is not null
      • isNotNullApp

        public boolean isNotNullApp()
        Checks whether the 'app' field is set and is not null
      • isNotNullPayments

        public boolean isNotNullPayments()
        Checks whether the 'payments' field is set and is not null
      • isNotNullInventory

        public boolean isNotNullInventory()
        Checks whether the 'inventory' field is set and is not null
      • isNotNullCustomers

        public boolean isNotNullCustomers()
        Checks whether the 'customers' field is set and is not null
      • isNotNullMerchants

        public boolean isNotNullMerchants()
        Checks whether the 'merchants' field is set and is not null
      • isNotNullEmployees

        public boolean isNotNullEmployees()
        Checks whether the 'employees' field is set and is not null
      • isNotNullCashAdjustment

        public boolean isNotNullCashAdjustment()
        Checks whether the 'cashAdjustment' field is set and is not null
      • isNotNullExports

        public boolean isNotNullExports()
        Checks whether the 'exports' field is set and is not null
      • hasUrl

        public boolean hasUrl()
        Checks whether the 'url' field has been set, however the value could be null
      • hasSecret

        public boolean hasSecret()
        Checks whether the 'secret' field has been set, however the value could be null
      • hasValid

        public boolean hasValid()
        Checks whether the 'valid' field has been set, however the value could be null
      • hasVerification

        public boolean hasVerification()
        Checks whether the 'verification' field has been set, however the value could be null
      • hasOrders

        public boolean hasOrders()
        Checks whether the 'orders' field has been set, however the value could be null
      • hasApp

        public boolean hasApp()
        Checks whether the 'app' field has been set, however the value could be null
      • hasPayments

        public boolean hasPayments()
        Checks whether the 'payments' field has been set, however the value could be null
      • hasInventory

        public boolean hasInventory()
        Checks whether the 'inventory' field has been set, however the value could be null
      • hasCustomers

        public boolean hasCustomers()
        Checks whether the 'customers' field has been set, however the value could be null
      • hasMerchants

        public boolean hasMerchants()
        Checks whether the 'merchants' field has been set, however the value could be null
      • hasEmployees

        public boolean hasEmployees()
        Checks whether the 'employees' field has been set, however the value could be null
      • hasCashAdjustment

        public boolean hasCashAdjustment()
        Checks whether the 'cashAdjustment' field has been set, however the value could be null
      • hasExports

        public boolean hasExports()
        Checks whether the 'exports' field has been set, however the value could be null
      • setUrl

        public WebHook setUrl​(String url)
        Sets the field 'url'.
      • setSecret

        public WebHook setSecret​(String secret)
        Sets the field 'secret'.
      • setValid

        public WebHook setValid​(Boolean valid)
        Sets the field 'valid'.
      • setVerification

        public WebHook setVerification​(String verification)
        Sets the field 'verification'.
      • setOrders

        public WebHook setOrders​(Boolean orders)
        Sets the field 'orders'.
      • setApp

        public WebHook setApp​(Boolean app)
        Sets the field 'app'.
      • setPayments

        public WebHook setPayments​(Boolean payments)
        Sets the field 'payments'.
      • setInventory

        public WebHook setInventory​(Boolean inventory)
        Sets the field 'inventory'.
      • setCustomers

        public WebHook setCustomers​(Boolean customers)
        Sets the field 'customers'.
      • setMerchants

        public WebHook setMerchants​(Boolean merchants)
        Sets the field 'merchants'.
      • setEmployees

        public WebHook setEmployees​(Boolean employees)
        Sets the field 'employees'.
      • setCashAdjustment

        public WebHook setCashAdjustment​(Boolean cashAdjustment)
        Sets the field 'cashAdjustment'.
      • setExports

        public WebHook setExports​(Boolean exports)
        Sets the field 'exports'.
      • clearUrl

        public void clearUrl()
        Clears the 'url' field, the 'has' method for this field will now return false
      • clearSecret

        public void clearSecret()
        Clears the 'secret' field, the 'has' method for this field will now return false
      • clearValid

        public void clearValid()
        Clears the 'valid' field, the 'has' method for this field will now return false
      • clearVerification

        public void clearVerification()
        Clears the 'verification' field, the 'has' method for this field will now return false
      • clearOrders

        public void clearOrders()
        Clears the 'orders' field, the 'has' method for this field will now return false
      • clearApp

        public void clearApp()
        Clears the 'app' field, the 'has' method for this field will now return false
      • clearPayments

        public void clearPayments()
        Clears the 'payments' field, the 'has' method for this field will now return false
      • clearInventory

        public void clearInventory()
        Clears the 'inventory' field, the 'has' method for this field will now return false
      • clearCustomers

        public void clearCustomers()
        Clears the 'customers' field, the 'has' method for this field will now return false
      • clearMerchants

        public void clearMerchants()
        Clears the 'merchants' field, the 'has' method for this field will now return false
      • clearEmployees

        public void clearEmployees()
        Clears the 'employees' field, the 'has' method for this field will now return false
      • clearCashAdjustment

        public void clearCashAdjustment()
        Clears the 'cashAdjustment' field, the 'has' method for this field will now return false
      • clearExports

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

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