public class BankFeedsApi extends Object
| Constructor and Description |
|---|
BankFeedsApi() |
BankFeedsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
ByteArrayInputStream |
convertInputToByteArray(InputStream is) |
FeedConnections |
createFeedConnections(String accessToken,
String xeroTenantId,
FeedConnections feedConnections)
create one or more new feed connection
By passing in the FeedConnections array object in the body, you can create one or more new feed connections
|
com.google.api.client.http.HttpResponse |
createFeedConnectionsForHttpResponse(String accessToken,
String xeroTenantId,
FeedConnections feedConnections) |
Statements |
createStatements(String accessToken,
String xeroTenantId,
Statements statements)
202 - Success returns Statements array of objects in response
|
com.google.api.client.http.HttpResponse |
createStatementsForHttpResponse(String accessToken,
String xeroTenantId,
Statements statements) |
FeedConnections |
deleteFeedConnections(String accessToken,
String xeroTenantId,
FeedConnections feedConnections)
Delete an exsiting feed connection
By passing in FeedConnections array object in the body, you can delete a feed connection.
|
com.google.api.client.http.HttpResponse |
deleteFeedConnectionsForHttpResponse(String accessToken,
String xeroTenantId,
FeedConnections feedConnections) |
ApiClient |
getApiClient() |
FeedConnection |
getFeedConnection(String accessToken,
String xeroTenantId,
UUID id)
Retrive single feed connection based on unique id provided
By passing in a FeedConnection Id options, you can search for matching feed connections
|
com.google.api.client.http.HttpResponse |
getFeedConnectionForHttpResponse(String accessToken,
String xeroTenantId,
UUID id) |
FeedConnections |
getFeedConnections(String accessToken,
String xeroTenantId,
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(String accessToken,
String xeroTenantId,
Integer page,
Integer pageSize) |
static BankFeedsApi |
getInstance(ApiClient apiClient) |
Statement |
getStatement(String accessToken,
String xeroTenantId,
UUID statementId)
Retrive single statement based on unique id provided
By passing in a statement id, you can search for matching statements
|
com.google.api.client.http.HttpResponse |
getStatementForHttpResponse(String accessToken,
String xeroTenantId,
UUID statementId) |
Statements |
getStatements(String accessToken,
String xeroTenantId,
Integer page,
Integer pageSize,
String xeroApplicationId,
String xeroUserId)
Retrive all statements based on unique search criteria
By passing in parameters, you can search for matching statements
|
com.google.api.client.http.HttpResponse |
getStatementsForHttpResponse(String accessToken,
String xeroTenantId,
Integer page,
Integer pageSize,
String xeroApplicationId,
String xeroUserId) |
String |
getUserAgent() |
void |
setApiClient(ApiClient apiClient) |
void |
setUserAgent(String userAgent) |
public BankFeedsApi()
public BankFeedsApi(ApiClient apiClient)
public static BankFeedsApi getInstance(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void setUserAgent(String userAgent)
public String getUserAgent()
public FeedConnections createFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException
201 - success new feed connection(s)response
400 - invalid input, object invalid
409 - failed to create new feed connection(s)response
xeroTenantId - Xero identifier for TenantfeedConnections - Feed Connection(s) array object in the bodyaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException
IOExceptionpublic Statements createStatements(String accessToken, String xeroTenantId, Statements statements) throws IOException
202 - Success returns Statements array of objects in response
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
xeroTenantId - Xero identifier for Tenantstatements - Statements array of objects in the bodyaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse createStatementsForHttpResponse(String accessToken, String xeroTenantId, Statements statements) throws IOException
IOExceptionpublic FeedConnections deleteFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException
202 - Success response for deleted feed connection
400 - bad input parameter
xeroTenantId - Xero identifier for TenantfeedConnections - Feed Connections array object in the bodyaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse deleteFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException
IOExceptionpublic FeedConnection getFeedConnection(String accessToken, String xeroTenantId, UUID id) throws IOException
200 - success returns a FeedConnection object matching the id in response
400 - bad input parameter
xeroTenantId - Xero identifier for Tenantid - Unique identifier for retrieving single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getFeedConnectionForHttpResponse(String accessToken, String xeroTenantId, UUID id) throws IOException
IOExceptionpublic FeedConnections getFeedConnections(String accessToken, String xeroTenantId, Integer page, Integer pageSize) throws IOException
201 - search results matching criteria returned with pagination and items array
400 - validation error response
xeroTenantId - Xero identifier for Tenantpage - 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.accessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize) throws IOException
IOExceptionpublic Statement getStatement(String accessToken, String xeroTenantId, UUID statementId) throws IOException
200 - search results matching id for single statement
404 - Statement not found
xeroTenantId - Xero identifier for TenantstatementId - statement id for single objectaccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getStatementForHttpResponse(String accessToken, String xeroTenantId, UUID statementId) throws IOException
IOExceptionpublic Statements getStatements(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) throws IOException
200 - success returns Statements array of objects response
400 - bad input parameter
xeroTenantId - Xero identifier for Tenantpage - unique id for single objectpageSize - Page size which specifies how many records per page will be returned (default 10). Example - https://api.xero.com/bankfeeds.xro/1.0/Statements?pageSize=100 to specify page size of 100.xeroApplicationId - The xeroApplicationId parameterxeroUserId - The xeroUserId parameteraccessToken - Authorization token for user set in header of each requestIOException - if an error occurs while attempting to invoke the APIpublic com.google.api.client.http.HttpResponse getStatementsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) throws IOException
IOExceptionpublic ByteArrayInputStream convertInputToByteArray(InputStream is) throws IOException
IOExceptionCopyright © 2020. All rights reserved.