Package io.bayonet.clients
Class LendingClient
java.lang.Object
io.bayonet.Bayonet
io.bayonet.clients.LendingClient
public class LendingClient extends Bayonet
Created by imranarshad on 11/28/17
Client implementation for connecting to the Bayonet Lending API endpoints
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LendingClient(java.lang.String api_key, java.lang.String api_version)Constructor to set up the client configuration -
Method Summary
Modifier and Type Method Description voidconsult(LendingConsultRequest params)Handler for sending transaction listener API calls - and consult at the same time the only difference between this method and the reportTransaction method is that this method also generates a consult at the same timevoidfeedback(LendingFeedbackRequest params)Handler for sending feedback API callsvoidfeedbackHistorical(LendingFeedbackHistoricalRequest params)Handler for sending feedback-historical API callsjava.lang.IntegergetHttpResponseCode()Gettersjava.lang.IntegergetReasonCode()java.lang.StringgetReasonMessage()java.util.HashMap<java.lang.String,java.lang.Object>getResponsePayload()voidreportTransaction(LendingReportTransactionRequest params)Handler for sending transaction listener API calls the transaction listener is for sending solicitudes at the moment they are received the listener does not send any response about a persona's info, it only listens to the transactionsvoidreportTransactionAndConsult(LendingReportTransactionRequest params)Handler for sending transaction listener API calls - and consult at the same time the only difference between this method and the reportTransaction method is that this method also generates a consult at the same time
-
Constructor Details
-
LendingClient
public LendingClient(java.lang.String api_key, java.lang.String api_version)Constructor to set up the client configuration- Parameters:
api_key- client api keyapi_version- Bayonet api version to connect to
-
-
Method Details
-
reportTransaction
Handler for sending transaction listener API calls the transaction listener is for sending solicitudes at the moment they are received the listener does not send any response about a persona's info, it only listens to the transactions- Parameters:
params- POST request parameters to be sent in the JSON payload- Throws:
BayonetException- if the API returns an error
-
reportTransactionAndConsult
public void reportTransactionAndConsult(LendingReportTransactionRequest params) throws BayonetExceptionHandler for sending transaction listener API calls - and consult at the same time the only difference between this method and the reportTransaction method is that this method also generates a consult at the same time- Parameters:
params- POST request parameters to be sent in the JSON payload- Throws:
BayonetException- if the API returns an error
-
consult
Handler for sending transaction listener API calls - and consult at the same time the only difference between this method and the reportTransaction method is that this method also generates a consult at the same time- Parameters:
params- POST request parameters to be sent in the JSON payload- Throws:
BayonetException- if the API returns an error
-
feedback
Handler for sending feedback API calls- Parameters:
params- POST request parameters to be sent in the JSON payload- Throws:
BayonetException- if the API returns an error
-
feedbackHistorical
Handler for sending feedback-historical API calls- Parameters:
params- POST request parameters to be sent in the JSON payload- Throws:
BayonetException- if the API returns an error
-
getHttpResponseCode
public java.lang.Integer getHttpResponseCode()Getters -
getReasonCode
public java.lang.Integer getReasonCode() -
getReasonMessage
public java.lang.String getReasonMessage() -
getResponsePayload
public java.util.HashMap<java.lang.String,java.lang.Object> getResponsePayload()
-