public class BankFeedsApi extends Object
| Constructor and Description |
|---|
BankFeedsApi() |
BankFeedsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayInputStream |
convertInputToByteArray(InputStream is) |
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
|
com.google.api.client.http.HttpResponse |
createFeedConnectionsForHttpResponse(FeedConnections feedConnections) |
Statements |
createStatements(Statements statements)
202 - Success
|
com.google.api.client.http.HttpResponse |
createStatementsForHttpResponse(Statements statements) |
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
|
com.google.api.client.http.HttpResponse |
deleteFeedConnectionsForHttpResponse(FeedConnections feedConnections) |
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
|
com.google.api.client.http.HttpResponse |
getFeedConnectionForHttpResponse(String id) |
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
|
com.google.api.client.http.HttpResponse |
getFeedConnectionsForHttpResponse(Integer page,
Integer pageSize) |
Statement |
getStatement(String statementId)
200 - search results matching id for single statement
|
com.google.api.client.http.HttpResponse |
getStatementForHttpResponse(String statementId) |
Statements |
getStatements(Integer page,
Integer pageSize,
String xeroApplicationId,
String xeroTenantId,
String xeroUserId)
200 - search results matching criteria
|
com.google.api.client.http.HttpResponse |
getStatementsForHttpResponse(Integer page,
Integer pageSize,
String xeroApplicationId,
String xeroTenantId,
String xeroUserId) |
String |
getUserAgent() |
String |
getXeroTenantId() |
void |
setApiClient(ApiClient apiClient) |
void |
setUserAgent(String userAgent) |
void |
setXeroTenantId(String xeroTenantId) |
public BankFeedsApi()
public BankFeedsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public String getXeroTenantId()
public void setXeroTenantId(String xeroTenantId)
public void setUserAgent(String userAgent)
public String getUserAgent()
public 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 com.google.api.client.http.HttpResponse createFeedConnectionsForHttpResponse(FeedConnections feedConnections) throws IOException
IOExceptionpublic 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 com.google.api.client.http.HttpResponse createStatementsForHttpResponse(Statements statements) throws IOException
IOExceptionpublic 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 com.google.api.client.http.HttpResponse deleteFeedConnectionsForHttpResponse(FeedConnections feedConnections) throws IOException
IOExceptionpublic 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 com.google.api.client.http.HttpResponse getFeedConnectionForHttpResponse(String id) throws IOException
IOExceptionpublic 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 com.google.api.client.http.HttpResponse getFeedConnectionsForHttpResponse(Integer page, Integer pageSize) throws IOException
IOExceptionpublic 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 com.google.api.client.http.HttpResponse getStatementForHttpResponse(String statementId) throws IOException
IOExceptionpublic 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 APIpublic com.google.api.client.http.HttpResponse getStatementsForHttpResponse(Integer page, Integer pageSize, String xeroApplicationId, String xeroTenantId, String xeroUserId) throws IOException
IOExceptionpublic ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
IOExceptionCopyright © 2019. All rights reserved.