Class BankFeedsApi
public class BankFeedsApi extends Object
-
Constructor Summary
Constructors Constructor Description BankFeedsApi()BankFeedsApi(ApiClient apiClient) -
Method Summary
Modifier and Type Method Description ByteArrayInputStreamconvertInputToByteArray(InputStream is)FeedConnectionscreateFeedConnections(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 connectionscom.google.api.client.http.HttpResponsecreateFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections)StatementscreateStatements(String accessToken, String xeroTenantId, Statements statements)202 - Success returns Statements array of objects in responsecom.google.api.client.http.HttpResponsecreateStatementsForHttpResponse(String accessToken, String xeroTenantId, Statements statements)FeedConnectionsdeleteFeedConnections(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.HttpResponsedeleteFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections)ApiClientgetApiClient()FeedConnectiongetFeedConnection(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 connectionscom.google.api.client.http.HttpResponsegetFeedConnectionForHttpResponse(String accessToken, String xeroTenantId, UUID id)FeedConnectionsgetFeedConnections(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.HttpResponsegetFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize)static BankFeedsApigetInstance(ApiClient apiClient)StatementgetStatement(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 statementscom.google.api.client.http.HttpResponsegetStatementForHttpResponse(String accessToken, String xeroTenantId, UUID statementId)StatementsgetStatements(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 statementscom.google.api.client.http.HttpResponsegetStatementsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId)StringgetUserAgent()voidsetApiClient(ApiClient apiClient)voidsetUserAgent(String userAgent)
-
Constructor Details
-
BankFeedsApi
public BankFeedsApi() -
BankFeedsApi
-
-
Method Details
-
getInstance
-
getApiClient
-
setApiClient
-
setUserAgent
-
getUserAgent
-
createFeedConnections
public FeedConnections createFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOExceptioncreate one or more new feed connection By passing in the FeedConnections array object in the body, you can create one or more new feed connections201 - success new feed connection(s)response
400 - invalid input, object invalid
409 - failed to create new feed connection(s)response
- Parameters:
xeroTenantId- Xero identifier for TenantfeedConnections- Feed Connection(s) array object in the bodyaccessToken- Authorization token for user set in header of each request- Returns:
- FeedConnections
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createFeedConnectionsForHttpResponse
public com.google.api.client.http.HttpResponse createFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException- Throws:
IOException
-
createStatements
public Statements createStatements(String accessToken, String xeroTenantId, Statements statements) throws IOException202 - Success returns Statements array of objects in response400 - 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
- Parameters:
xeroTenantId- Xero identifier for Tenantstatements- Statements array of objects in the bodyaccessToken- Authorization token for user set in header of each request- Returns:
- Statements
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createStatementsForHttpResponse
public com.google.api.client.http.HttpResponse createStatementsForHttpResponse(String accessToken, String xeroTenantId, Statements statements) throws IOException- Throws:
IOException
-
deleteFeedConnections
public FeedConnections deleteFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOExceptionDelete an exsiting feed connection By passing in FeedConnections array object in the body, you can delete a feed connection.202 - Success response for deleted feed connection
400 - bad input parameter
- Parameters:
xeroTenantId- Xero identifier for TenantfeedConnections- Feed Connections array object in the bodyaccessToken- Authorization token for user set in header of each request- Returns:
- FeedConnections
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteFeedConnectionsForHttpResponse
public com.google.api.client.http.HttpResponse deleteFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException- Throws:
IOException
-
getFeedConnection
public FeedConnection getFeedConnection(String accessToken, String xeroTenantId, UUID id) throws IOExceptionRetrive single feed connection based on unique id provided By passing in a FeedConnection Id options, you can search for matching feed connections200 - success returns a FeedConnection object matching the id in response
400 - bad input parameter
- Parameters:
xeroTenantId- Xero identifier for Tenantid- Unique identifier for retrieving single objectaccessToken- Authorization token for user set in header of each request- Returns:
- FeedConnection
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getFeedConnectionForHttpResponse
public com.google.api.client.http.HttpResponse getFeedConnectionForHttpResponse(String accessToken, String xeroTenantId, UUID id) throws IOException- Throws:
IOException
-
getFeedConnections
public FeedConnections getFeedConnections(String accessToken, String xeroTenantId, Integer page, Integer pageSize) throws IOExceptionsearches feed connections By passing in the appropriate options, you can search for available feed connections in the system.201 - search results matching criteria returned with pagination and items array
400 - validation error response
- Parameters:
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 request- Returns:
- FeedConnections
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getFeedConnectionsForHttpResponse
public com.google.api.client.http.HttpResponse getFeedConnectionsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize) throws IOException- Throws:
IOException
-
getStatement
public Statement getStatement(String accessToken, String xeroTenantId, UUID statementId) throws IOExceptionRetrive single statement based on unique id provided By passing in a statement id, you can search for matching statements200 - search results matching id for single statement
404 - Statement not found
- Parameters:
xeroTenantId- Xero identifier for TenantstatementId- statement id for single objectaccessToken- Authorization token for user set in header of each request- Returns:
- Statement
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatementForHttpResponse
public com.google.api.client.http.HttpResponse getStatementForHttpResponse(String accessToken, String xeroTenantId, UUID statementId) throws IOException- Throws:
IOException
-
getStatements
public Statements getStatements(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) throws IOExceptionRetrive all statements based on unique search criteria By passing in parameters, you can search for matching statements200 - success returns Statements array of objects response
400 - bad input parameter
- Parameters:
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 request- Returns:
- Statements
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatementsForHttpResponse
public com.google.api.client.http.HttpResponse getStatementsForHttpResponse(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) throws IOException- Throws:
IOException
-
convertInputToByteArray
- Throws:
IOException
-