Class BankFeedsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert intput to byte arraycreateFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections, String idempotencyKey) 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, String idempotencyKey) 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 connectionscreateStatements(String accessToken, String xeroTenantId, Statements statements, String idempotencyKey) Creates one or more new statementscom.google.api.client.http.HttpResponsecreateStatementsForHttpResponse(String accessToken, String xeroTenantId, Statements statements, String idempotencyKey) Creates one or more new statementsdeleteFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections, String idempotencyKey) Delete an existing 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, String idempotencyKey) Delete an existing feed connection By passing in FeedConnections array object in the body, you can delete a feed connection.get ApiClientgetFeedConnection(String accessToken, String xeroTenantId, UUID id) Retrieve single feed connection based on a 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) Retrieve single feed connection based on a unique id provided By passing in a FeedConnection Id options, you can search for matching feed connectionsgetFeedConnections(String accessToken, String xeroTenantId, Integer page, Integer pageSize) Searches for 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) Searches for feed connections By passing in the appropriate options, you can search for available feed connections in the system.static BankFeedsApigetInstance(ApiClient apiClient) BankFeedsApi getInstancegetStatement(String accessToken, String xeroTenantId, UUID statementId) Retrieve 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) Retrieve single statement based on unique id provided By passing in a statement id, you can search for matching statementsgetStatements(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) Retrieve all statements 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) Retrieve all statements By passing in parameters, you can search for matching statementsget user agentvoidsetApiClient(ApiClient apiClient) set ApiClientvoidsetUserAgent(String userAgent) set user agent
-
Constructor Details
-
BankFeedsApi
public BankFeedsApi()BankFeedsApi -
BankFeedsApi
BankFeedsApi- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
-
Method Details
-
getInstance
BankFeedsApi getInstance- Parameters:
apiClient- ApiClient pass into the new instance of this class- Returns:
- instance of this class
-
getApiClient
-
setApiClient
set ApiClient- Parameters:
apiClient- ApiClient pass into the new instance of this class
-
setUserAgent
set user agent- Parameters:
userAgent- string to override the user agent
-
getUserAgent
-
createFeedConnections
public FeedConnections createFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections, String idempotencyKey) throws IOException 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 connections202 - success new feed connection(s)response
400 - failed to create new feed connection(s)response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantfeedConnections- Feed Connection(s) array object in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException 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 connections202 - success new feed connection(s)response
400 - failed to create new feed connection(s)response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantfeedConnections- Feed Connection(s) array object in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
createStatements
public Statements createStatements(String accessToken, String xeroTenantId, Statements statements, String idempotencyKey) throws IOException Creates one or more new statements202 - 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
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantstatements- Statements array of objects in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Creates one or more new statements202 - 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
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantstatements- Statements array of objects in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
deleteFeedConnections
public FeedConnections deleteFeedConnections(String accessToken, String xeroTenantId, FeedConnections feedConnections, String idempotencyKey) throws IOException Delete an existing 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantfeedConnections- Feed Connections array object in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- 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, String idempotencyKey) throws IOException Delete an existing 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantfeedConnections- Feed Connections array object in the bodyidempotencyKey- This allows you to safely retry requests without the risk of duplicate processing. 128 character max.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getFeedConnection
public FeedConnection getFeedConnection(String accessToken, String xeroTenantId, UUID id) throws IOException Retrieve single feed connection based on a 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantid- Unique identifier for retrieving single object- 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 Retrieve single feed connection based on a 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for Tenantid- Unique identifier for retrieving single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getFeedConnections
public FeedConnections getFeedConnections(String accessToken, String xeroTenantId, Integer page, Integer pageSize) throws IOException Searches for feed connections By passing in the appropriate options, you can search for available feed connections in the system.202 - search results matching criteria returned with pagination and items array
400 - validation error response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.- 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 Searches for feed connections By passing in the appropriate options, you can search for available feed connections in the system.202 - search results matching criteria returned with pagination and items array
400 - validation error response
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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.- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatement
public Statement getStatement(String accessToken, String xeroTenantId, UUID statementId) throws IOException Retrieve 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantstatementId- statement id for single object- 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 Retrieve 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:
accessToken- Authorization token for user set in header of each requestxeroTenantId- Xero identifier for TenantstatementId- statement id for single object- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
getStatements
public Statements getStatements(String accessToken, String xeroTenantId, Integer page, Integer pageSize, String xeroApplicationId, String xeroUserId) throws IOException Retrieve all statements By passing in parameters, you can search for matching statements200 - success returns Statements array of objects response
400 - bad input parameter
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 parameter- 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 Retrieve all statements By passing in parameters, you can search for matching statements200 - success returns Statements array of objects response
400 - bad input parameter
- Parameters:
accessToken- Authorization token for user set in header of each requestxeroTenantId- 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 parameter- Returns:
- HttpResponse
- Throws:
IOException- if an error occurs while attempting to invoke the API
-
convertInputToByteArray
convert intput to byte array- Parameters:
is- InputStream the server status code returned- Returns:
- byteArrayInputStream a ByteArrayInputStream
- Throws:
IOException- for failed or interrupted I/O operations
-