Class OrderRefundRequest

    • Constructor Detail

      • OrderRefundRequest

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

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

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

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

      • getIncludeTip

        public Boolean getIncludeTip()
      • getReason

        public String getReason()
        Describes the reason for the refund
      • 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
      • isNotNullRefunds

        public boolean isNotNullRefunds()
        Checks whether the 'refunds' field is set and is not null
      • isNotEmptyRefunds

        public boolean isNotEmptyRefunds()
        Checks whether the 'refunds' field is set and is not null and is not empty
      • isNotNullLineItems

        public boolean isNotNullLineItems()
        Checks whether the 'lineItems' field is set and is not null
      • isNotEmptyLineItems

        public boolean isNotEmptyLineItems()
        Checks whether the 'lineItems' field is set and is not null and is not empty
      • isNotNullIncludeTip

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

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

        public boolean hasRefunds()
        Checks whether the 'refunds' field has been set, however the value could be null
      • hasLineItems

        public boolean hasLineItems()
        Checks whether the 'lineItems' field has been set, however the value could be null
      • hasIncludeTip

        public boolean hasIncludeTip()
        Checks whether the 'includeTip' 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
      • setRefunds

        public OrderRefundRequest setRefunds​(List<Refund> refunds)
        Sets the field 'refunds'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • setLineItems

        public OrderRefundRequest setLineItems​(List<Reference> lineItems)
        Sets the field 'lineItems'. Nulls in the given List are skipped. List parameter is copied, so it will not reflect any changes, but objects inside it will.
      • clearRefunds

        public void clearRefunds()
        Clears the 'refunds' field, the 'has' method for this field will now return false
      • clearLineItems

        public void clearLineItems()
        Clears the 'lineItems' field, the 'has' method for this field will now return false
      • clearIncludeTip

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

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