public class JetAPISettlement extends JetAPI implements IJetAPISettlement
API.REQUEST_TYPE
AUTH_TEST_RESPONSE, config
client, context, lockHost, maxDownloadSize
Constructor and Description |
---|
JetAPISettlement(IAPIHttpClient client,
JetConfig conf)
Create a new API instance
|
JetAPISettlement(IAPIHttpClient client,
JetConfig conf,
boolean lockHost)
Create a new API instance
|
JetAPISettlement(IAPIHttpClient client,
JetConfig conf,
boolean lockHost,
long maxDownloadSize)
Create a new API instance
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getSettlementDays(int days)
Retrieve a list of uri's for retrieving settlement reports.
|
List<String> |
getSettlementDays(int days,
boolean includePath)
Retrieve a list of uri's for retrieving settlement reports.
|
SettlementRec |
getSettlementReport(String id)
Retrieve a settlement report
|
IJetAPIResponse |
sendGetSettlementDays(int days)
Retrieve a list of uri's for retrieving settlement reports.
|
IJetAPIResponse |
sendGetSettlementReport(String id)
Retrieve a settlement report
|
executeRequest, get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, jsonArrayToTokenList, login, post, post, post, put, put, put, setErrorHandler
public JetAPISettlement(IAPIHttpClient client, JetConfig conf)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectpublic JetAPISettlement(IAPIHttpClient client, JetConfig conf, boolean lockHost)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectlockHost
- Toggle locking the host to a domain if http is not present
in the url string.public JetAPISettlement(IAPIHttpClient client, JetConfig conf, boolean lockHost, long maxDownloadSize)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectlockHost
- Toggle locking the host to a domain if http is not present
in the url string.maxDownloadSize
- Set a maximum download site for the local client.
This is a fixed limit.public IJetAPIResponse sendGetSettlementDays(int days) throws APIException, JetException
sendGetSettlementDays
in interface IJetAPISettlement
days
- The number of days from today that you'd like to retrieve
settlement reportsAPIException
JetException
public List<String> getSettlementDays(int days, boolean includePath) throws APIException, JetException
getSettlementDays
in interface IJetAPISettlement
days
- The number of days from today that you'd like to retrieve
settlement reportsincludePath
- Toggle returning the entire path or just the rightmost
part. (you only need the right side)APIException
JetException
public List<String> getSettlementDays(int days) throws APIException, JetException
getSettlementDays
in interface IJetAPISettlement
days
- The number of days from today that you'd like to retrieve
settlement reportsAPIException
JetException
public IJetAPIResponse sendGetSettlementReport(String id) throws APIException, JetException
sendGetSettlementReport
in interface IJetAPISettlement
id
- report idAPIException
JetException
public SettlementRec getSettlementReport(String id) throws APIException, JetException
getSettlementReport
in interface IJetAPISettlement
id
- report idAPIException
JetException
Copyright © 2017. All rights reserved.