| Modifier and Type | Method and Description |
|---|---|
CreateBeneficiaryResponse |
createBeneficiary(Payment.BeneficiaryInfo beneficiary,
String accessToken,
String userSecret)
createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this
DapiApp's appSecret. |
CreateBeneficiaryResponse |
createBeneficiary(Payment.BeneficiaryInfo beneficiary,
String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
createBeneficiary talks to the CreateBeneficiary endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
CreateTransferResponse |
createTransfer(Payment.Transfer transfer,
String accessToken,
String userSecret)
createTransfer talks to the CreateTransfer endpoint of Dapi, with this
DapiApp's appSecret. |
CreateTransferResponse |
createTransfer(Payment.Transfer transfer,
String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
createTransfer talks to the CreateTransfer endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
ExchangeTokenResponse |
exchangeToken(String accessCode,
String connectionID)
exchangeToken talks to the ExchangeToken endpoint of Dapi, with this
DapiApp's appSecret. |
GetAccountsResponse |
getAccounts(String accessToken,
String userSecret)
getAccounts talks to the GetAccounts endpoint of Dapi, with this
DapiApp's appSecret. |
GetAccountsResponse |
getAccounts(String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getAccounts talks to the GetAccounts endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetAccountsMetadataResponse |
getAccountsMetadata(String accessToken,
String userSecret)
getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this
DapiApp's appSecret. |
GetAccountsMetadataResponse |
getAccountsMetadata(String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getAccountsMetadata talks to the GetAccountsMetadata endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetBalanceResponse |
getBalance(String accountID,
String accessToken,
String userSecret)
getBalance talks to the GetBalance endpoint of Dapi, with this
DapiApp's appSecret. |
GetBalanceResponse |
getBalance(String accountID,
String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getBalance talks to the GetBalance endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetBeneficiariesResponse |
getBeneficiaries(String accessToken,
String userSecret)
getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this
DapiApp's appSecret. |
GetBeneficiariesResponse |
getBeneficiaries(String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getBeneficiaries talks to the GetBeneficiaries endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetIdentityResponse |
getIdentity(String accessToken,
String userSecret)
getIdentity talks to the GetIdentity endpoint of Dapi, with this
DapiApp's appSecret. |
GetIdentityResponse |
getIdentity(String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getIdentity talks to the GetIdentity endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetTransactionsResponse |
getTransactions(String accountID,
LocalDate fromDate,
LocalDate toDate,
String accessToken,
String userSecret)
getTransactions talks to the GetTransactions endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
GetTransactionsResponse |
getTransactions(String accountID,
LocalDate fromDate,
LocalDate toDate,
String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
getTransactions talks to the GetTransactions endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
okhttp3.Response |
handleSDKRequest(String bodyJson)
handleSDKRequest injects this
DapiApp's appSecret in the passed request body, bodyJson, and then
forwards the request to Dapi, and returns the RAW response got. |
okhttp3.Response |
handleSDKRequest(String bodyJson,
HashMap<String,String> headersMap)
handleSDKRequest injects this
DapiApp's appSecret in the passed request body, bodyJson, and then
forwards the request to Dapi, with the passed headers, headersMap, and returns the RAW response got. |
TransferAutoflowResponse |
transferAutoflow(Payment.TransferAutoflow transferAutoflow,
String accessToken,
String userSecret)
transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this
DapiApp's appSecret. |
TransferAutoflowResponse |
transferAutoflow(Payment.TransferAutoflow transferAutoflow,
String accessToken,
String userSecret,
String operationID,
UserInput[] userInputs)
transferAutoflow talks to the TransferAutoflow endpoint of Dapi, with this
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs. |
public DapiApp(Config config)
public ExchangeTokenResponse exchangeToken(String accessCode, String connectionID) throws IOException
DapiApp's appSecret.accessCode - retrieved from user login.connectionID - retrieved from user login.ExchangeTokenResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetIdentityResponse getIdentity(String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetIdentityResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetIdentityResponse getIdentity(String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetIdentityResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetAccountsResponse getAccounts(String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetAccountsResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetAccountsResponse getAccounts(String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetAccountsResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetBalanceResponse getBalance(String accountID, String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accountID - the id of the account which this operation is about.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetBalanceResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetBalanceResponse getBalance(String accountID, String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accountID - the id of the account which this operation is about.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetBalanceResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetTransactionsResponse getTransactions(String accountID, LocalDate fromDate, LocalDate toDate, String accessToken, String userSecret) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accountID - the id of the account which this operation is about.fromDate - the start date of the transactions we want.toDate - the end date of the transactions we want.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetTransactionsResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetTransactionsResponse getTransactions(String accountID, LocalDate fromDate, LocalDate toDate, String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accountID - the id of the account which this operation is about.fromDate - the start date of the transactions we want.toDate - the end date of the transactions we want.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetTransactionsResponse.IOException - in case of trouble happened while executing the request or reading the response.public CreateBeneficiaryResponse createBeneficiary(Payment.BeneficiaryInfo beneficiary, String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.CreateBeneficiaryResponse.IOException - in case of trouble happened while executing the request or reading the response.public CreateBeneficiaryResponse createBeneficiary(Payment.BeneficiaryInfo beneficiary, String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.CreateBeneficiaryResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetBeneficiariesResponse getBeneficiaries(String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetBeneficiariesResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetBeneficiariesResponse getBeneficiaries(String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetBeneficiariesResponse.IOException - in case of trouble happened while executing the request or reading the response.public CreateTransferResponse createTransfer(Payment.Transfer transfer, String accessToken, String userSecret) throws IOException
DapiApp's appSecret.transfer - the transfer details that we want to initiate.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.CreateTransferResponse.IOException - in case of trouble happened while executing the request or reading the response.public CreateTransferResponse createTransfer(Payment.Transfer transfer, String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.transfer - the transfer details that we want to initiate.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.CreateTransferResponse.IOException - in case of trouble happened while executing the request or reading the response.public TransferAutoflowResponse transferAutoflow(Payment.TransferAutoflow transferAutoflow, String accessToken, String userSecret) throws IOException
DapiApp's appSecret.transferAutoflow - the details required to create a TransferAutoflow operation.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.TransferAutoflowResponse.IOException - in case of trouble happened while executing the request or reading the response.public TransferAutoflowResponse transferAutoflow(Payment.TransferAutoflow transferAutoflow, String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.transferAutoflow - the details required to create a TransferAutoflow operation.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.TransferAutoflowResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetAccountsMetadataResponse getAccountsMetadata(String accessToken, String userSecret) throws IOException
DapiApp's appSecret.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.GetAccountsMetadataResponse.IOException - in case of trouble happened while executing the request or reading the response.public GetAccountsMetadataResponse getAccountsMetadata(String accessToken, String userSecret, String operationID, UserInput[] userInputs) throws IOException
DapiApp's appSecret,
to continue a previous operation that required to provide some userInputs.accessToken - retrieved from the ExchangeToken process.userSecret - retrieved from the user login.operationID - retrieved from the previous call's response.userInputs - built from the previous call's response, and the required user input.GetAccountsMetadataResponse.IOException - in case of trouble happened while executing the request or reading the response.public okhttp3.Response handleSDKRequest(String bodyJson, HashMap<String,String> headersMap) throws IOException, com.google.gson.JsonSyntaxException
DapiApp's appSecret in the passed request body, bodyJson, and then
forwards the request to Dapi, with the passed headers, headersMap, and returns the RAW response got.bodyJson - the body of the request, in JSON format.headersMap - any headers that needs to be passed with the request.Response representing the HTTP response of this operation.IOException - in case of trouble happened while executing the request.com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.public okhttp3.Response handleSDKRequest(String bodyJson) throws IOException, com.google.gson.JsonSyntaxException
DapiApp's appSecret in the passed request body, bodyJson, and then
forwards the request to Dapi, and returns the RAW response got.bodyJson - the body of the request, in JSON format.Response representing the HTTP response of this operation.IOException - in case of trouble happened while executing the request.com.google.gson.JsonSyntaxException - in case of trouble happened while reading the request body.Copyright © 2021–2022 Dapi. All rights reserved.