public class BankFeedsApi extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Pattern |
MESSAGE_PATTERN |
protected com.xero.model.ObjectFactory |
objFactory |
protected static DateFormat |
utcFormatter |
| Constructor and Description |
|---|
BankFeedsApi(ApiClient apiClient) |
BankFeedsApi(Config config) |
BankFeedsApi(Config config,
SignerFactory signerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToMapIfNotNull(Map<String,String> map,
String key,
Object value) |
FeedConnections |
createFeedConnections(FeedConnections feedConnections)
create one or more new feed connection
By passing in the appropriate body, you can create one or more new feed connections in the system
|
Statements |
createStatements(Statements statements)
202 - Success
|
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
org.threeten.bp.OffsetDateTime ifModifiedSince) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
org.threeten.bp.OffsetDateTime ifModifiedSince,
String contentType) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
String contentType) |
protected String |
DATA(String url,
String body,
Map<String,String> params,
String method,
String xeroApplicationId,
String xeroTenantId,
String xeroUserId) |
FeedConnections |
deleteFeedConnections(FeedConnections feedConnections)
delete an exsiting feed connection
By passing in the appropriate body, you can create a new feed connections in the system
|
protected ByteArrayInputStream |
FILE(String url,
String body,
Map<String,String> params,
String method) |
protected String |
FILE(String url,
String body,
Map<String,String> params,
String method,
byte[] byteBody) |
protected ByteArrayInputStream |
FILE(String url,
String body,
Map<String,String> params,
String method,
String accept) |
ApiClient |
getApiClient() |
FeedConnection |
getFeedConnection(String id)
get single feed connection by id
By passing in a FeedConnection Id options, you can search for available feed connections in the system
|
FeedConnections |
getFeedConnections(Integer page,
Integer pageSize)
searches feed connections
By passing in the appropriate options, you can search for available feed connections in the system
|
Statement |
getStatement(String statementId)
200 - search results matching id for single statement
|
Statements |
getStatements(Integer page,
Integer pageSize,
String xeroApplicationId,
String xeroTenantId,
String xeroUserId)
200 - search results matching criteria
|
void |
setApiClient(ApiClient apiClient) |
void |
setOAuthToken(String token,
String tokenSecret) |
protected static final DateFormat utcFormatter
protected static final Pattern MESSAGE_PATTERN
protected final com.xero.model.ObjectFactory objFactory
public BankFeedsApi(Config config)
public BankFeedsApi(Config config, SignerFactory signerFactory)
public BankFeedsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
protected String DATA(String url, String body, Map<String,String> params, String method) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, org.threeten.bp.OffsetDateTime ifModifiedSince) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, String contentType) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, org.threeten.bp.OffsetDateTime ifModifiedSince, String contentType) throws IOException
IOExceptionprotected String DATA(String url, String body, Map<String,String> params, String method, String xeroApplicationId, String xeroTenantId, String xeroUserId) throws IOException
IOExceptionprotected ByteArrayInputStream FILE(String url, String body, Map<String,String> params, String method) throws IOException
IOExceptionprotected ByteArrayInputStream FILE(String url, String body, Map<String,String> params, String method, String accept) throws IOException
IOExceptionprotected String FILE(String url, String body, Map<String,String> params, String method, byte[] byteBody) throws IOException
IOExceptionpublic FeedConnections createFeedConnections(FeedConnections feedConnections) throws IOException
201 - feed connection created
400 - invalid input, object invalid
feedConnections - Feed Connection(s) to addIOException - if an error occurs while attempting to invoke the APIpublic Statements createStatements(Statements statements) throws IOException
202 - Success
400 - Statement failed validation
403 - Invalid application or feed connection
409 - Duplicate statement received
413 - Statement exceeds size limit
422 - Unprocessable Entity
500 - Intermittent Xero Error
statements - Feed Connection(s) to addIOException - if an error occurs while attempting to invoke the APIpublic FeedConnections deleteFeedConnections(FeedConnections feedConnections) throws IOException
202 - create results matching body content
400 - bad input parameter
feedConnections - Feed Connections to deleteIOException - if an error occurs while attempting to invoke the APIpublic FeedConnection getFeedConnection(String id) throws IOException
200 - search results matching criteria
400 - bad input parameter
id - feed connection id for single objectIOException - if an error occurs while attempting to invoke the APIpublic FeedConnections getFeedConnections(Integer page, Integer pageSize) throws IOException
201 - search results matching criteria
400 - bad input parameter
page - Page number which specifies the set of records to retrieve. By default the number of the records per set is 10. Example - https://api.xero.com/bankfeeds.xro/1.0/FeedConnections?page=1 to get the second set of the records. When page value is not a number or a negative number, by default, the first set of records is returned.pageSize - Page size which specifies how many records per page will be returned (default 10). Example - https://api.xero.com/bankfeeds.xro/1.0/FeedConnections?pageSize=100 to specify page size of 100.IOException - if an error occurs while attempting to invoke the APIpublic Statement getStatement(String statementId) throws IOException
200 - search results matching id for single statement
404 - Statement not found
statementId - The statementId parameterIOException - if an error occurs while attempting to invoke the APIpublic Statements getStatements(Integer page, Integer pageSize, String xeroApplicationId, String xeroTenantId, String xeroUserId) throws IOException
200 - search results matching criteria
400 - bad input parameter
page - The page parameterpageSize - The pageSize parameterxeroApplicationId - The xeroApplicationId parameterxeroTenantId - The xeroTenantId parameterxeroUserId - The xeroUserId parameterIOException - if an error occurs while attempting to invoke the APICopyright © 2018. All rights reserved.