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

    Fields inherited from class io.bayonet.Bayonet

    api_key, api_version
  • 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
    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

    Methods inherited from class io.bayonet.Bayonet

    validateClientConfig

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 key
      api_version - Bayonet api version to connect to
  • Method Details

    • reportTransaction

      public void reportTransaction​(LendingReportTransactionRequest params) throws BayonetException
      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 BayonetException
      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
    • consult

      public void consult​(LendingConsultRequest params) throws BayonetException
      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

      public void feedback​(LendingFeedbackRequest params) throws BayonetException
      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

      public void feedbackHistorical​(LendingFeedbackHistoricalRequest params) throws BayonetException
      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()