Class AttachmentsClient
- java.lang.Object
-
- com.merge.api.resources.ticketing.attachments.AttachmentsClient
-
public class AttachmentsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AttachmentsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TicketingAttachmentResponsecreate(TicketingAttachmentEndpointRequest request)Creates anAttachmentobject with the given values.TicketingAttachmentResponsecreate(TicketingAttachmentEndpointRequest request, RequestOptions requestOptions)Creates anAttachmentobject with the given values.java.io.InputStreamdownloadRetrieve(java.lang.String id)Returns theFilecontent with the givenidas a stream of bytes.java.io.InputStreamdownloadRetrieve(java.lang.String id, AttachmentsDownloadRetrieveRequest request)Returns theFilecontent with the givenidas a stream of bytes.java.io.InputStreamdownloadRetrieve(java.lang.String id, AttachmentsDownloadRetrieveRequest request, RequestOptions requestOptions)Returns theFilecontent with the givenidas a stream of bytes.PaginatedAttachmentListlist()Returns a list ofAttachmentobjects.PaginatedAttachmentListlist(AttachmentsListRequest request)Returns a list ofAttachmentobjects.PaginatedAttachmentListlist(AttachmentsListRequest request, RequestOptions requestOptions)Returns a list ofAttachmentobjects.MetaResponsemetaPostRetrieve()Returns metadata forTicketingAttachmentPOSTs.MetaResponsemetaPostRetrieve(RequestOptions requestOptions)Returns metadata forTicketingAttachmentPOSTs.Attachmentretrieve(java.lang.String id)Returns anAttachmentobject with the givenid.Attachmentretrieve(java.lang.String id, AttachmentsRetrieveRequest request)Returns anAttachmentobject with the givenid.Attachmentretrieve(java.lang.String id, AttachmentsRetrieveRequest request, RequestOptions requestOptions)Returns anAttachmentobject with the givenid.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AttachmentsClient
public AttachmentsClient(ClientOptions clientOptions)
-
-
Method Detail
-
list
public PaginatedAttachmentList list()
Returns a list ofAttachmentobjects.
-
list
public PaginatedAttachmentList list(AttachmentsListRequest request)
Returns a list ofAttachmentobjects.
-
list
public PaginatedAttachmentList list(AttachmentsListRequest request, RequestOptions requestOptions)
Returns a list ofAttachmentobjects.
-
create
public TicketingAttachmentResponse create(TicketingAttachmentEndpointRequest request)
Creates anAttachmentobject with the given values.
-
create
public TicketingAttachmentResponse create(TicketingAttachmentEndpointRequest request, RequestOptions requestOptions)
Creates anAttachmentobject with the given values.
-
retrieve
public Attachment retrieve(java.lang.String id)
Returns anAttachmentobject with the givenid.
-
retrieve
public Attachment retrieve(java.lang.String id, AttachmentsRetrieveRequest request)
Returns anAttachmentobject with the givenid.
-
retrieve
public Attachment retrieve(java.lang.String id, AttachmentsRetrieveRequest request, RequestOptions requestOptions)
Returns anAttachmentobject with the givenid.
-
downloadRetrieve
public java.io.InputStream downloadRetrieve(java.lang.String id)
Returns theFilecontent with the givenidas a stream of bytes.
-
downloadRetrieve
public java.io.InputStream downloadRetrieve(java.lang.String id, AttachmentsDownloadRetrieveRequest request)Returns theFilecontent with the givenidas a stream of bytes.
-
downloadRetrieve
public java.io.InputStream downloadRetrieve(java.lang.String id, AttachmentsDownloadRetrieveRequest request, RequestOptions requestOptions)Returns theFilecontent with the givenidas a stream of bytes.
-
metaPostRetrieve
public MetaResponse metaPostRetrieve()
Returns metadata forTicketingAttachmentPOSTs.
-
metaPostRetrieve
public MetaResponse metaPostRetrieve(RequestOptions requestOptions)
Returns metadata forTicketingAttachmentPOSTs.
-
-