public class Transaction
extends java.lang.Object
Constructor and Description |
---|
Transaction() |
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(java.io.File file,
java.lang.String mimetype)
Read an attachment from a file and add it to the transaction, using the name of the provided
File as the attachment's file name. |
void |
addAttachment(java.lang.String filename,
java.lang.String mimetype,
byte[] contents)
Add an attachment to the transaction.
|
void |
addAttachment(java.lang.String filename,
java.lang.String mimetype,
java.io.File file)
Read an attachment from a file and add it to the transaction.
|
void |
addAttachment(java.lang.String filename,
java.lang.String mimetype,
java.io.InputStream inputStream)
Read an attachment from a stream and add it to the transaction.
|
java.util.List<Attachment> |
getAttachments() |
ContactReference |
getContact() |
java.lang.Object |
getContent() |
ImportReference |
getImportReference() |
long |
getType() |
void |
setContact(ContactReference contact) |
void |
setContent(java.lang.Object content) |
void |
setContentFromString(java.lang.String jsonContent) |
void |
setImportReference(ImportReference importReference) |
void |
setType(long type) |
public long getType()
public void setType(long type)
public ContactReference getContact()
public void setContact(ContactReference contact)
public java.lang.Object getContent()
public void setContent(java.lang.Object content)
public void setContentFromString(java.lang.String jsonContent)
public ImportReference getImportReference()
public void setImportReference(ImportReference importReference)
public void addAttachment(java.io.File file, java.lang.String mimetype) throws java.io.IOException
File
as the attachment's file name.file
- the file to read the attachment contents frommimetype
- the mime type of the attachmentjava.io.IOException
public void addAttachment(java.lang.String filename, java.lang.String mimetype, java.io.File file) throws java.io.IOException
filename
- the file name of the attachment to use in the e-mailmimetype
- the mime type of the attachmentfile
- the file to read the attachment contents fromjava.io.IOException
public void addAttachment(java.lang.String filename, java.lang.String mimetype, java.io.InputStream inputStream) throws java.io.IOException
filename
- the file name of the attachment to use in the e-mailmimetype
- the mime type of the attachmentinputStream
- the input stream to read the attachment contents from.java.io.IOException
public void addAttachment(java.lang.String filename, java.lang.String mimetype, byte[] contents)
filename
- the file name of the attachment to use in the e-mailmimetype
- the mime type of the attachmentcontents
- the attachment contentspublic java.util.List<Attachment> getAttachments()
Copyright © 2018. All Rights Reserved.