Class TicketsListRequest
- java.lang.Object
-
- com.merge.api.resources.ticketing.tickets.requests.TicketsListRequest
-
public final class TicketsListRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTicketsListRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TicketsListRequest.Builderbuilder()booleanequals(java.lang.Object other)java.util.Optional<java.lang.String>getAccountId()java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<java.lang.String>getAssigneeIds()java.util.Optional<java.lang.String>getCollectionIds()java.util.Optional<java.time.OffsetDateTime>getCompletedAfter()java.util.Optional<java.time.OffsetDateTime>getCompletedBefore()java.util.Optional<java.lang.String>getContactId()java.util.Optional<java.time.OffsetDateTime>getCreatedAfter()java.util.Optional<java.time.OffsetDateTime>getCreatedBefore()java.util.Optional<java.lang.String>getCursor()java.util.Optional<java.time.OffsetDateTime>getDueAfter()java.util.Optional<java.time.OffsetDateTime>getDueBefore()java.util.Optional<TicketsListRequestExpand>getExpand()java.util.Optional<java.lang.Boolean>getIncludeDeletedData()java.util.Optional<java.lang.Boolean>getIncludeRemoteData()java.util.Optional<java.lang.Boolean>getIncludeRemoteFields()java.util.Optional<java.lang.Boolean>getIncludeShellData()java.util.Optional<java.time.OffsetDateTime>getModifiedAfter()java.util.Optional<java.time.OffsetDateTime>getModifiedBefore()java.util.Optional<java.lang.Integer>getPageSize()java.util.Optional<java.lang.String>getParentTicketId()java.util.Optional<TicketsListRequestPriority>getPriority()java.util.Optional<java.time.OffsetDateTime>getRemoteCreatedAfter()java.util.Optional<java.time.OffsetDateTime>getRemoteCreatedBefore()java.util.Optional<TicketsListRequestRemoteFields>getRemoteFields()java.util.Optional<java.lang.String>getRemoteId()java.util.Optional<java.time.OffsetDateTime>getRemoteUpdatedAfter()java.util.Optional<java.time.OffsetDateTime>getRemoteUpdatedBefore()java.util.Optional<TicketsListRequestShowEnumOrigins>getShowEnumOrigins()java.util.Optional<TicketsListRequestStatus>getStatus()java.util.Optional<java.lang.String>getTags()java.util.Optional<java.lang.String>getTicketType()java.util.Optional<java.lang.String>getTicketUrl()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getAccountId
public java.util.Optional<java.lang.String> getAccountId()
- Returns:
- If provided, will only return tickets for this account.
-
getAssigneeIds
public java.util.Optional<java.lang.String> getAssigneeIds()
- Returns:
- If provided, will only return tickets assigned to the assignee_ids; multiple assignee_ids can be separated by commas.
-
getCollectionIds
public java.util.Optional<java.lang.String> getCollectionIds()
- Returns:
- If provided, will only return tickets assigned to the collection_ids; multiple collection_ids can be separated by commas.
-
getCompletedAfter
public java.util.Optional<java.time.OffsetDateTime> getCompletedAfter()
- Returns:
- If provided, will only return tickets completed after this datetime.
-
getCompletedBefore
public java.util.Optional<java.time.OffsetDateTime> getCompletedBefore()
- Returns:
- If provided, will only return tickets completed before this datetime.
-
getContactId
public java.util.Optional<java.lang.String> getContactId()
- Returns:
- If provided, will only return tickets for this contact.
-
getCreatedAfter
public java.util.Optional<java.time.OffsetDateTime> getCreatedAfter()
- Returns:
- If provided, will only return objects created after this datetime.
-
getCreatedBefore
public java.util.Optional<java.time.OffsetDateTime> getCreatedBefore()
- Returns:
- If provided, will only return objects created before this datetime.
-
getCursor
public java.util.Optional<java.lang.String> getCursor()
- Returns:
- The pagination cursor value.
-
getDueAfter
public java.util.Optional<java.time.OffsetDateTime> getDueAfter()
- Returns:
- If provided, will only return tickets due after this datetime.
-
getDueBefore
public java.util.Optional<java.time.OffsetDateTime> getDueBefore()
- Returns:
- If provided, will only return tickets due before this datetime.
-
getExpand
public java.util.Optional<TicketsListRequestExpand> getExpand()
- Returns:
- Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
-
getIncludeDeletedData
public java.util.Optional<java.lang.Boolean> getIncludeDeletedData()
- Returns:
- Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
-
getIncludeRemoteData
public java.util.Optional<java.lang.Boolean> getIncludeRemoteData()
- Returns:
- Whether to include the original data Merge fetched from the third-party to produce these models.
-
getIncludeRemoteFields
public java.util.Optional<java.lang.Boolean> getIncludeRemoteFields()
- Returns:
- Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format.
-
getIncludeShellData
public java.util.Optional<java.lang.Boolean> getIncludeShellData()
- Returns:
- Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null).
-
getModifiedAfter
public java.util.Optional<java.time.OffsetDateTime> getModifiedAfter()
- Returns:
- If provided, only objects synced by Merge after this date time will be returned.
-
getModifiedBefore
public java.util.Optional<java.time.OffsetDateTime> getModifiedBefore()
- Returns:
- If provided, only objects synced by Merge before this date time will be returned.
-
getPageSize
public java.util.Optional<java.lang.Integer> getPageSize()
- Returns:
- Number of results to return per page.
-
getParentTicketId
public java.util.Optional<java.lang.String> getParentTicketId()
- Returns:
- If provided, will only return sub tickets of the parent_ticket_id.
-
getPriority
public java.util.Optional<TicketsListRequestPriority> getPriority()
- Returns:
- If provided, will only return tickets of this priority.
URGENT- URGENTHIGH- HIGHNORMAL- NORMALLOW- LOW
-
getRemoteCreatedAfter
public java.util.Optional<java.time.OffsetDateTime> getRemoteCreatedAfter()
- Returns:
- If provided, will only return tickets created in the third party platform after this datetime.
-
getRemoteCreatedBefore
public java.util.Optional<java.time.OffsetDateTime> getRemoteCreatedBefore()
- Returns:
- If provided, will only return tickets created in the third party platform before this datetime.
-
getRemoteFields
public java.util.Optional<TicketsListRequestRemoteFields> getRemoteFields()
- Returns:
- Deprecated. Use show_enum_origins.
-
getRemoteId
public java.util.Optional<java.lang.String> getRemoteId()
- Returns:
- The API provider's ID for the given object.
-
getRemoteUpdatedAfter
public java.util.Optional<java.time.OffsetDateTime> getRemoteUpdatedAfter()
- Returns:
- If provided, will only return tickets updated in the third party platform after this datetime.
-
getRemoteUpdatedBefore
public java.util.Optional<java.time.OffsetDateTime> getRemoteUpdatedBefore()
- Returns:
- If provided, will only return tickets updated in the third party platform before this datetime.
-
getShowEnumOrigins
public java.util.Optional<TicketsListRequestShowEnumOrigins> getShowEnumOrigins()
- Returns:
- A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. Learn more
-
getStatus
public java.util.Optional<TicketsListRequestStatus> getStatus()
- Returns:
- If provided, will only return tickets of this status.
OPEN- OPENCLOSED- CLOSEDIN_PROGRESS- IN_PROGRESSON_HOLD- ON_HOLD
-
getTags
public java.util.Optional<java.lang.String> getTags()
- Returns:
- If provided, will only return tickets matching the tags; multiple tags can be separated by commas.
-
getTicketType
public java.util.Optional<java.lang.String> getTicketType()
- Returns:
- If provided, will only return tickets of this type.
-
getTicketUrl
public java.util.Optional<java.lang.String> getTicketUrl()
- Returns:
- If provided, will only return tickets where the URL matches or contains the substring
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static TicketsListRequest.Builder builder()
-
-