public class FigoSession extends FigoApi
| Modifier and Type | Class and Description |
|---|---|
static class |
FigoSession.FieldVisited |
static class |
FigoSession.PendingTransactions |
API_FIGO_LIVE, API_FIGO_STAGE| Constructor and Description |
|---|
FigoSession(String accessToken)
Creates a FigoSession instance
|
FigoSession(String accessToken,
int timeout)
Creates a FigoSession instance
|
FigoSession(String accessToken,
int timeout,
String apiEndpoint)
Creates a FigoSession instance
|
| Modifier and Type | Method and Description |
|---|---|
Payment |
addContainerPayment(PaymentContainer container) |
Notification |
addNotification(Notification notification)
Register a new notification on the server for the user
|
Payment |
addPayment(Payment payment)
Create a new payment
|
void |
cancelTask(String taskToken)
Cancels a given task if possible
|
void |
cancelTask(TaskTokenResponse tokenResponse)
Cancels a given task if possible
|
TaskTokenResponse |
createSyncTask(String state,
String redirect_url,
List<String> syncTasks,
List<String> accountIds)
Create a sync task
|
TaskTokenResponse |
createSyncTask(String state,
String redirect_url,
List<String> syncTasks,
List<String> accountIds,
boolean disableNotifications,
int ifNotSyncedSince,
boolean autoContinue,
boolean savePin)
Create a sync task.
|
TaskTokenResponse |
createSyncTask(SyncTokenRequest syncTokenRequest)
Create a sync task
|
TaskTokenResponse |
deleteStandingOrder(StandingOrder standingOrder)
Create a deletion task for a standing order
|
TaskTokenResponse |
deleteStandingOrder(String standingOrderId)
Create a deletion task for a standing order
|
Account |
getAccount(String accountId)
Returns the account with the specified ID
|
AccountBalance |
getAccountBalance(Account account)
Returns the balance details of the supplied account
|
AccountBalance |
getAccountBalance(String accountId)
Returns the balance details of the account with he specified ID
|
List<Account> |
getAccounts()
All accounts the user has granted your app access to
|
Bank |
getBank(Account account)
Get Bank for account
|
Bank |
getBank(String bankId)
Get bank
|
BankLoginSettings |
getLoginSettings(String countryCode,
String bankCode)
Returns the login settings for a specified banking or payment service
|
ServiceLoginSettings |
getLoginSettingsForService(String countryCode,
String serviceName) |
Notification |
getNotification(String notificationId)
Retrieve a specific notification by ID
|
List<Notification> |
getNotifications()
All notifications registered by this client for the user
|
Payment |
getPayment(Account account,
String paymentId)
Retrieve a specific payment by ID
|
Payment |
getPayment(String accountId,
String paymentId)
Retrieve a specific payment by ID
|
List<PaymentProposal> |
getPaymentProposals()
Returns a list of PaymentProposals.
|
List<Payment> |
getPayments()
Retrieve all payments
|
List<Payment> |
getPayments(Account account)
all payments on a certain account
|
List<Payment> |
getPayments(String accountId)
Retrieve all payments on a certain account
|
List<Security> |
getSecurities()
Retrieves all securities of the current user
|
List<Security> |
getSecurities(Account account)
Retrieves all securities of a specific account
|
List<Security> |
getSecurities(String accountId)
Retrieves all securities of a specific account
|
Security |
getSecurity(Account account,
String securityId)
Retrieves a specific security
|
Security |
getSecurity(String accountId,
String securityId)
Retrieves a specific security
|
StandingOrder |
getStandingOrder(String standingOrderId)
Retrieve a specific standing order by ID
|
List<StandingOrder> |
getStandingOrders()
All standing orders on all accounts of the user
|
List<StandingOrder> |
getStandingOrders(String accountId)
Get an array of standing orders objects, one for each standing order of the user matching the criteria.
|
List<Service> |
getSupportedServices()
Returns a list of all supported credit cards and payment services for all countries
|
List<Service> |
getSupportedServices(String countryCode)
Returns a list of all supported credit cards and payment services for a country
|
String |
getSyncURL(String state,
String redirect_url)
URL to trigger a synchronization.
|
String |
getSyncURL(String state,
String redirect_url,
List<String> syncTasks)
URL to trigger a synchronization.
|
String |
getSyncURL(String state,
String redirect_url,
List<String> syncTasks,
List<String> accountIds)
URL to trigger a synchronization.
|
TaskStatusResponse |
getTaskState(String tokenId)
Get the current status of a Task by id
|
TaskStatusResponse |
getTaskState(String tokenId,
String pin)
Deprecated.
|
TaskStatusResponse |
getTaskState(TaskTokenResponse tokenResponse)
Get the current status of a Task
|
Transaction |
getTransaction(String accountId,
String transactionId)
Retrieve a specific transaction by ID
|
List<Transaction> |
getTransactions()
All transactions on all account of the user
|
List<Transaction> |
getTransactions(Account account)
Retrieve all transactions on a specific account of the user
|
List<Transaction> |
getTransactions(Account account,
String since,
Integer count,
Integer offset,
FigoSession.PendingTransactions include_pending)
Get an array of Transaction objects, one for each transaction of the user matching the criteria.
|
List<Transaction> |
getTransactions(String accountId)
Retrieve all transactions on a specific account of the user
|
List<Transaction> |
getTransactions(String accountId,
String since,
Integer count,
Integer offset,
FigoSession.PendingTransactions include_pending)
Get an array of Transaction objects, one for each transaction of the user matching the criteria.
|
User |
getUser()
Get the current figo Account
|
void |
modifySecurities(Account account,
FigoSession.FieldVisited visited)
Modifies the visited field of all securities of a specific account
|
void |
modifySecurities(FigoSession.FieldVisited visited)
Modifies the visited field of all securities of the current user
|
void |
modifySecurities(String accountId,
FigoSession.FieldVisited visited)
Modifies the visited field of all securities of a specific account
|
void |
modifySecurity(Security security,
FigoSession.FieldVisited visited)
Modifies the visited field of a specific security
|
Payment |
modifyStandingOrder(StandingOrder updatedStandingOrder)
Update a standing order, this creates a new payment which has to be submitted to update the existing
standing order
|
void |
modifyTransaction(Transaction transaction,
FigoSession.FieldVisited visited)
Modifies the visited field of a specific transaction
|
void |
modifyTransactions(Account account,
FigoSession.FieldVisited visited)
Modifies the visited field of all transactions of a specific account
|
void |
modifyTransactions(FigoSession.FieldVisited visited)
Modifies the visited field of all transactions of the current user
|
void |
modifyTransactions(String accountId,
FigoSession.FieldVisited visited)
Modifies the visited field of all transactions of a specific account
|
protected <T> T |
processResponse(HttpURLConnection connection,
Type typeOfT)
Method to process the response.
|
void |
removeAccount(Account account)
Remove an account
|
void |
removeAccount(String accountId)
Remove an account
|
void |
removeBankPin(Bank bank)
Remove the stored PIN for a bank (if there was one)
|
void |
removeBankPin(String bankId)
Remove the stored PIN for a bank (if there was one)
|
void |
removeNotification(Notification notification)
Remove a stored notification from the server
|
void |
removePayment(Payment payment)
Remove a stored payment from the server
|
void |
removeTransaction(Transaction transaction)
Removes a Transaction
|
void |
removeUser()
Delete figo Account
|
TaskStatusResponse |
setupAndSyncAccount(FigoPinException exception,
String newPin)
Exception handler for a wrong pin.
|
TaskStatusResponse |
setupAndSyncAccount(String bankCode,
String countryCode,
String loginName,
String pin)
Deprecated.
|
TaskStatusResponse |
setupAndSyncAccount(String bankCode,
String countryCode,
String loginName,
String pin,
List<String> syncTasks)
Setups an account an starts the initial syncronization directly
|
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
List<String> credentials)
Deprecated.
|
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
List<String> credentials,
List<String> syncTasks)
Returns a TaskToken for a new account creation task
|
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
List<String> credentials,
List<String> syncTasks,
boolean savePin,
boolean disable_first_sync) |
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
String encryptedCredentials,
List<String> syncTasks,
boolean savePin,
boolean disable_first_sync) |
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
String loginName,
String pin)
Deprecated.
|
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
String loginName,
String pin,
List<String> syncTasks)
Returns a TaskToken for a new account creation task
|
TaskTokenResponse |
setupNewAccount(String bankCode,
String countryCode,
String loginName,
String pin,
List<String> syncTasks,
boolean savePin,
boolean disable_first_sync) |
void |
startTask(String taskToken)
Start communication with bank server.
|
void |
startTask(TaskTokenResponse tokenResponse)
Start communication with bank server.
|
String |
submitPayment(Payment payment,
String tanSchemeId,
String state)
Submit payment to bank server
|
String |
submitPayment(Payment payment,
String tanSchemeId,
String state,
String redirectUri)
Submit payment to bank server
|
TaskStatusResponse |
submitResponseToTask(String tokenId,
String response,
TaskResponseType type) |
TaskStatusResponse |
submitResponseToTask(TaskTokenResponse tokenResponse,
String response,
TaskResponseType type) |
Account |
updateAccount(Account account)
Modify an account
|
AccountBalance |
updateAccountBalance(Account account,
AccountBalance accountBalance)
Modify balance or account limits
|
AccountBalance |
updateAccountBalance(String accountId,
AccountBalance accountBalance)
Modify balance or account limits
|
Bank |
updateBank(Bank bank)
Modify a bank
|
Notification |
updateNotification(Notification notification)
Update a stored notification
|
Payment |
updatePayment(Payment payment)
Update a stored payment
|
User |
updateUser(User user)
Modify figo Account
|
createGson, getApiEndpoint, getTimeout, handleResponse, queryApi, setProxy, setTimeout, setTrustManager, setupTrustManagerpublic FigoSession(String accessToken)
accessToken - the access token to bind this session to a userpublic FigoSession(String accessToken, int timeout)
accessToken - the access token to bind this session to a usertimeout - the timeout used for queriespublic FigoSession(String accessToken, int timeout, String apiEndpoint)
accessToken - the access token to bind this session to a usertimeout - the timeout used for queriesapiEndpoint - which endpoint to use (customize for different figo deployment)public User getUser() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic User updateUser(User user) throws FigoException, IOException
user - modified user object to be savedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeUser()
throws FigoException,
IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Service> getSupportedServices(String countryCode) throws FigoException, IOException
countryCode - FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Service> getSupportedServices() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic BankLoginSettings getLoginSettings(String countryCode, String bankCode) throws FigoException, IOException
countryCode - bankCode - FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic ServiceLoginSettings getLoginSettingsForService(String countryCode, String serviceName) throws IOException, FigoException
IOExceptionFigoException@Deprecated public TaskTokenResponse setupNewAccount(String bankCode, String countryCode, String loginName, String pin) throws FigoException, IOException
FigoExceptionIOExceptionpublic TaskTokenResponse setupNewAccount(String bankCode, String countryCode, String loginName, String pin, List<String> syncTasks) throws FigoException, IOException
bankCode - countryCode - loginName - pin - syncTasks - FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskTokenResponse setupNewAccount(String bankCode, String countryCode, String loginName, String pin, List<String> syncTasks, boolean savePin, boolean disable_first_sync) throws FigoException, IOException
bankCode - countryCode - syncTasks - savePin - disable_first_sync - FigoExceptionIOException@Deprecated public TaskTokenResponse setupNewAccount(String bankCode, String countryCode, List<String> credentials) throws FigoException, IOException
FigoExceptionIOExceptionpublic TaskTokenResponse setupNewAccount(String bankCode, String countryCode, List<String> credentials, List<String> syncTasks) throws FigoException, IOException
bankCode - countryCode - credentials - FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskTokenResponse setupNewAccount(String bankCode, String countryCode, List<String> credentials, List<String> syncTasks, boolean savePin, boolean disable_first_sync) throws FigoException, IOException
bankCode - countryCode - credentials - syncTasks - savePin - disable_first_sync - FigoExceptionIOExceptionpublic TaskTokenResponse setupNewAccount(String bankCode, String countryCode, String encryptedCredentials, List<String> syncTasks, boolean savePin, boolean disable_first_sync) throws FigoException, IOException
bankCode - countryCode - encryptedCredentials - syncTasks - savePin - disable_first_sync - FigoExceptionIOException@Deprecated public TaskStatusResponse setupAndSyncAccount(String bankCode, String countryCode, String loginName, String pin) throws FigoException, IOException, FigoPinException, InterruptedException
public TaskStatusResponse setupAndSyncAccount(String bankCode, String countryCode, String loginName, String pin, List<String> syncTasks) throws FigoException, IOException, FigoPinException, InterruptedException
bankCode - countryCode - loginName - pin - FigoException - Base class for all figoExceptionsIOException - IOException, FigoPinException, InterruptedExceptionFigoPinExceptionInterruptedExceptionpublic TaskStatusResponse setupAndSyncAccount(FigoPinException exception, String newPin) throws FigoException, IOException, FigoPinException, InterruptedException
exception - FigoPinException which provides info about the account which should be creatednewPin - new PINFigoException - Base class for all figoExceptionsIOException - IOException, FigoPinException, InterruptedExceptionFigoPinExceptionInterruptedExceptionpublic List<Account> getAccounts() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Account getAccount(String accountId) throws FigoException, IOException
accountId - figo ID of the account to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Account updateAccount(Account account) throws FigoException, IOException
account - the modified account to be savedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeAccount(String accountId) throws FigoException, IOException
accountId - ID of the account to be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeAccount(Account account) throws FigoException, IOException
account - Account to be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic AccountBalance getAccountBalance(String accountId) throws FigoException, IOException
accountId - figo ID of the account to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic AccountBalance getAccountBalance(Account account) throws FigoException, IOException
account - account whose balance should be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic AccountBalance updateAccountBalance(String accountId, AccountBalance accountBalance) throws FigoException, IOException
accountId - ID of the account to be modifiedaccountBalance - modified AccountBalance object to be savedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic AccountBalance updateAccountBalance(Account account, AccountBalance accountBalance) throws FigoException, IOException
account - account to be modifiedaccountBalance - modified AccountBalance object to be savedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Transaction> getTransactions() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Transaction> getTransactions(String accountId) throws FigoException, IOException
accountId - the ID of the account for which to retrieve the transactionsFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Transaction> getTransactions(Account account) throws FigoException, IOException
account - the account for which to retrieve the transactionsFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Transaction> getTransactions(Account account, String since, Integer count, Integer offset, FigoSession.PendingTransactions include_pending) throws FigoException, IOException
account - account for which to list the transactionssince - this parameter can either be a transaction ID or a datecount - limit the number of returned transactionsoffset - which offset into the result set should be used to determine the first transaction to return (useful in combination with count)include_pending - this flag indicates whether pending transactions should be included in the response; pending transactions are always included as a complete
set, regardless of the `since` parameterFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Transaction> getTransactions(String accountId, String since, Integer count, Integer offset, FigoSession.PendingTransactions include_pending) throws FigoException, IOException
accountId - ID of the account for which to list the transactionssince - this parameter can either be a transaction ID or a datecount - limit the number of returned transactionsoffset - which offset into the result set should be used to determine the first transaction to return (useful in combination with count)include_pending - this flag indicates whether pending transactions should be included in the response; pending transactions are always included as a complete
set, regardless of the `since` parameterFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Transaction getTransaction(String accountId, String transactionId) throws FigoException, IOException
accountId - ID of the account on which the transaction occurredtransactionId - the figo ID of the specific transactionFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifyTransaction(Transaction transaction, FigoSession.FieldVisited visited) throws FigoException, IOException
transaction - transaction which will be modifiedvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifyTransactions(FigoSession.FieldVisited visited) throws FigoException, IOException
visited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifyTransactions(Account account, FigoSession.FieldVisited visited) throws FigoException, IOException
account - account which owns the transactionsvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifyTransactions(String accountId, FigoSession.FieldVisited visited) throws FigoException, IOException
accountId - Id of the account which owns the transactionsvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeTransaction(Transaction transaction) throws FigoException, IOException
transaction - transaction which will be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<StandingOrder> getStandingOrders(String accountId) throws FigoException, IOException
accountId - ID of the account for which to list the standing ordersFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<StandingOrder> getStandingOrders() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic StandingOrder getStandingOrder(String standingOrderId) throws FigoException, IOException
standingOrderId - the figo ID of the specific standingOrderFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment modifyStandingOrder(StandingOrder updatedStandingOrder) throws IOException, FigoException
updatedStandingOrder - standing order where values which should be updated are setIOExceptionFigoExceptionpublic TaskTokenResponse deleteStandingOrder(StandingOrder standingOrder) throws IOException, FigoException
standingOrder - the standing order to deleteIOExceptionFigoExceptionpublic TaskTokenResponse deleteStandingOrder(String standingOrderId) throws IOException, FigoException
standingOrderId - the standing order id to deleteIOExceptionFigoExceptionpublic Security getSecurity(String accountId, String securityId) throws FigoException, IOException
accountId - id of the security owning accountsecurityId - id of the security which will be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Security getSecurity(Account account, String securityId) throws FigoException, IOException
account - owning accountsecurityId - id of the security which will be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Security> getSecurities() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Security> getSecurities(Account account) throws FigoException, IOException
account - Security owning accountFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Security> getSecurities(String accountId) throws FigoException, IOException
accountId - Security owning account idFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifySecurity(Security security, FigoSession.FieldVisited visited) throws FigoException, IOException
security - security which will be modifiedvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifySecurities(FigoSession.FieldVisited visited) throws FigoException, IOException
visited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifySecurities(Account account, FigoSession.FieldVisited visited) throws FigoException, IOException
account - account which owns the securitiesvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void modifySecurities(String accountId, FigoSession.FieldVisited visited) throws FigoException, IOException
accountId - Id of the account which owns the securitiesvisited - new value for the visited fieldFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Bank getBank(String bankId) throws FigoException, IOException
bankId - ID of the bank to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Bank getBank(Account account) throws FigoException, IOException
account - Account for which to return the BankFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Bank updateBank(Bank bank) throws FigoException, IOException
bank - modified bank object to be savedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeBankPin(String bankId) throws FigoException, IOException
bankId - ID of the bank whose pin should be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeBankPin(Bank bank) throws FigoException, IOException
bank - bank whose pin should be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Notification> getNotifications() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Notification getNotification(String notificationId) throws FigoException, IOException
notificationId - figo ID for the notification to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Notification addNotification(Notification notification) throws FigoException, IOException
notification - Notification which should be registeredFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Notification updateNotification(Notification notification) throws FigoException, IOException
notification - Notification with updated valuesFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removeNotification(Notification notification) throws FigoException, IOException
notification - Notification to be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Payment> getPayments() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Payment> getPayments(String accountId) throws FigoException, IOException
accountId - the ID of the account for which to retrieve the paymentsFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic List<Payment> getPayments(Account account) throws FigoException, IOException
account - the account for which to retrieve the paymentsFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment getPayment(String accountId, String paymentId) throws FigoException, IOException
accountId - ID of the account on which the payment can be foundpaymentId - ID of the payment to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment getPayment(Account account, String paymentId) throws FigoException, IOException
account - the account on which the payment can be foundpaymentId - ID of the payment to be retrievedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment addPayment(Payment payment) throws FigoException, IOException
payment - Payment which should be createdFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment addContainerPayment(PaymentContainer container) throws FigoException, IOException
FigoExceptionIOExceptionpublic List<PaymentProposal> getPaymentProposals() throws FigoException, IOException
FigoException - Base class for all figoExceptionsIOException - IOExceptionpublic Payment updatePayment(Payment payment) throws FigoException, IOException
payment - Payment with updated valuesFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void removePayment(Payment payment) throws FigoException, IOException
payment - payment to be removedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic String submitPayment(Payment payment, String tanSchemeId, String state) throws FigoException, IOException
payment - payment to be submittedtanSchemeId - TAN scheme ID of user-selected TAN schemestate - Any kind of string that will be forwarded in the callback response messageFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic String submitPayment(Payment payment, String tanSchemeId, String state, String redirectUri) throws FigoException, IOException
payment - payment to be submittedtanSchemeId - TAN scheme ID of user-selected TAN schemestate - Any kind of string that will be forwarded in the callback response messageredirectUri - At the end of the submission process a response will be sent to this callback URLFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic String getSyncURL(String state, String redirect_url) throws FigoException, IOException
state - String passed on through the complete synchronization process and to the redirect target at the end. It should be used to validated the
authenticity of the call to the redirect URLredirect_url - URI the user is redirected to after the process completesFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic String getSyncURL(String state, String redirect_url, List<String> syncTasks) throws FigoException, IOException
state - String passed on through the complete synchronization process and to the redirect target at the end. It should be used to validated the
authenticity of the call to the redirect URLredirect_url - URI the user is redirected to after the process completessyncTasks - Tasks to sync while talking to the bank. Transactions are activated by defaultFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic String getSyncURL(String state, String redirect_url, List<String> syncTasks, List<String> accountIds) throws FigoException, IOException
state - String passed on through the complete synchronization process and to the redirect target at the end. It should be used to validated the
authenticity of the call to the redirect URLredirect_url - URI the user is redirected to after the process completessyncTasks - Tasks to sync while talking to the bank. Transactions are activated by defaultaccountIds - Accounts to syncFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskTokenResponse createSyncTask(String state, String redirect_url, List<String> syncTasks, List<String> accountIds) throws IOException, FigoException
state - String passed on through the complete synchronization process and to the redirect target at the end. It should be used to validated the
authenticity of the call to the redirect URLredirect_url - URI the user is redirected to after the process completessyncTasks - Tasks to sync while talking to the bank. Transactions are activated by defaultaccountIds - Accounts to syncFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskTokenResponse createSyncTask(String state, String redirect_url, List<String> syncTasks, List<String> accountIds, boolean disableNotifications, int ifNotSyncedSince, boolean autoContinue, boolean savePin) throws IOException, FigoException
state - String passed on through the complete synchronization process and to the redirect target at the end. It should be used to validated the
authenticity of the call to the redirect URLredirect_url - URI the user is redirected to after the process completessyncTasks - Tasks to sync while talking to the bank. Transactions are activated by defaultaccountIds - Accounts to syncdisableNotifications - Disable notifications for this syncautoContinue - Continue on errorsavePin - Save the pin for further syncsFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskTokenResponse createSyncTask(SyncTokenRequest syncTokenRequest) throws IOException, FigoException
syncTokenRequest - A SyncTokenRequest objectFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskStatusResponse getTaskState(TaskTokenResponse tokenResponse) throws FigoException, IOException
tokenResponse - A TaskTokenResponse Object for the task which will be checkedFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic TaskStatusResponse getTaskState(String tokenId) throws FigoException, IOException
tokenId - ID of the TaskToken which will be checkedFigoException - Base class for all figoExceptionsIOException - IOException@Deprecated public TaskStatusResponse getTaskState(String tokenId, String pin) throws FigoException, IOException
FigoExceptionIOExceptionpublic TaskStatusResponse submitResponseToTask(String tokenId, String response, TaskResponseType type) throws FigoException, IOException
FigoExceptionIOExceptionpublic TaskStatusResponse submitResponseToTask(TaskTokenResponse tokenResponse, String response, TaskResponseType type) throws FigoException, IOException
FigoExceptionIOExceptionpublic void startTask(TaskTokenResponse tokenResponse) throws FigoException, IOException
tokenResponse - TokenResponse ObjectFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void startTask(String taskToken) throws FigoException, IOException
taskToken - Token IDFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void cancelTask(TaskTokenResponse tokenResponse) throws FigoException, IOException
tokenResponse - Token Response ObjectFigoException - Base class for all figoExceptionsIOException - IOExceptionpublic void cancelTask(String taskToken) throws FigoException, IOException
taskToken - Token IDFigoException - Base class for all figoExceptionsIOException - IOExceptionprotected <T> T processResponse(HttpURLConnection connection, Type typeOfT) throws IOException, FigoException
FigoApiprocessResponse in class FigoApiIOException - IOExceptionFigoException - Base class for all figoExceptionsCopyright © 2018 figo GmbH. All rights reserved.