public class LendingClient extends Bayonet
api_key, api_version| Constructor and Description |
|---|
LendingClient(java.lang.String api_key,
java.lang.String api_version)
Constructor to set up the client configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
consult(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 time
|
void |
feedback(LendingFeedbackRequest params)
Handler for sending feedback API calls
|
void |
feedbackHistorical(LendingFeedbackHistoricalRequest params)
Handler for sending feedback-historical API calls
|
java.lang.Integer |
getHttpResponseCode()
Getters
|
java.lang.Integer |
getReasonCode() |
java.lang.String |
getReasonMessage() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getResponsePayload() |
void |
reportTransaction(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 transactions
|
void |
reportTransactionAndConsult(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
|
validateClientConfigpublic LendingClient(java.lang.String api_key,
java.lang.String api_version)
api_key - client api keyapi_version - Bayonet api version to connect topublic void reportTransaction(LendingReportTransactionRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void reportTransactionAndConsult(LendingReportTransactionRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void consult(LendingConsultRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void feedback(LendingFeedbackRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void feedbackHistorical(LendingFeedbackHistoricalRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic java.lang.Integer getHttpResponseCode()
public java.lang.Integer getReasonCode()
public java.lang.String getReasonMessage()
public java.util.HashMap<java.lang.String,java.lang.Object> getResponsePayload()