public class FileIdRec extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FileIdRec.UploadStatus
A processing status from jet api about a bulk uploaded file.
|
Constructor and Description |
---|
FileIdRec(String url,
BulkUploadFileType fileType,
String fileName,
String received,
String processingStart,
String processingEnd,
FileIdRec.UploadStatus status,
int errorCount,
String errorUrl,
List<String> errorExcerpt,
String jetFileId)
Create a new JetFileId instance representing a response from the JetFileId
request.
|
Modifier and Type | Method and Description |
---|---|
static FileIdRec |
fromJSON(javax.json.JsonObject json)
Convert jet json into an instance of this.
|
int |
getErrorCount()
Number of errors encountered when processing the file
|
List<String> |
getErrorExcerpt()
First 20 errors with description of location in the file
|
String |
getErrorUrl()
URL to the file with errors
|
String |
getFileName()
Merchant's name for the file
|
BulkUploadFileType |
getFileType()
Type of file that was uploaded
|
String |
getJetFileId()
An identification assigned by Jet to track the file.
|
String |
getProcessingEnd()
The date-time the file finished processing
|
String |
getProcessingStart()
The date-time the file started processing
|
String |
getReceived()
The date-time the file was received
|
FileIdRec.UploadStatus |
getStatus()
The status of the file
|
String |
getUrl()
The URL where the file was placed
|
javax.json.JsonObject |
toJson()
Turn this into jet json
|
public FileIdRec(String url, BulkUploadFileType fileType, String fileName, String received, String processingStart, String processingEnd, FileIdRec.UploadStatus status, int errorCount, String errorUrl, List<String> errorExcerpt, String jetFileId)
url
- The URL where the file was placedfileType
- Type of file that was uploadedfileName
- Merchant's name for the filereceived
- The date-time the file was receivedprocessingStart
- The date-time the file started processingprocessingEnd
- The date-time the file finished processingstatus
- The status of the fileerrorCount
- Number of errors encountered when processing the fileerrorUrl
- URL to the file with errorserrorExcerpt
- First 20 errors with description of location in the
filejetFileId
- An identification assigned by Jet to track the file. This
identification retrieves the file upload details including processing
errorspublic static FileIdRec fromJSON(javax.json.JsonObject json)
json
- Jet jsonpublic String getUrl()
public BulkUploadFileType getFileType()
public String getFileName()
public String getReceived()
public String getProcessingStart()
public String getProcessingEnd()
public FileIdRec.UploadStatus getStatus()
public int getErrorCount()
public String getErrorUrl()
public List<String> getErrorExcerpt()
public String getJetFileId()
public javax.json.JsonObject toJson()
Copyright © 2017. All rights reserved.