public class EcommerceClient extends Bayonet
api_key, api_version| Constructor and Description |
|---|
EcommerceClient(java.lang.String api_key,
java.lang.String api_version)
Constructor to set up the client configuration
|
| Modifier and Type | Method and Description |
|---|---|
void |
consulting(EcommerceConsultingRequest params)
Handler for sending consulting API calls
|
void |
feedback(EcommerceFeedbackRequest params)
Handler for sending feedback API calls
|
void |
feedbackHistorical(EcommerceFeedbackHistoricalRequest params)
Handler for sending feedback-historical API calls
|
java.lang.String |
getFeedbackApiTransCode() |
java.lang.Integer |
getHttpResponseCode()
Getters
|
java.lang.Integer |
getReasonCode() |
java.lang.String |
getReasonMessage() |
java.util.HashMap<java.lang.String,java.lang.Object> |
getResponsePayload() |
java.lang.String |
getRiskLevel() |
java.util.ArrayList<java.lang.String> |
getRulesTriggered() |
void |
updateTransaction(EcommerceUpdateTransactionRequest params)
Handler for sending update-transaction API calls
- this endpoint is used to report changes in the status of a transaction, eg.
|
validateClientConfigpublic EcommerceClient(java.lang.String api_key,
java.lang.String api_version)
api_key - client api keyapi_version - Bayonet api version to connect topublic void consulting(EcommerceConsultingRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void feedback(EcommerceFeedbackRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void feedbackHistorical(EcommerceFeedbackHistoricalRequest params) throws BayonetException
params - POST request parameters to be sent in the JSON payloadBayonetException - if the API returns an errorpublic void updateTransaction(EcommerceUpdateTransactionRequest 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.lang.String getFeedbackApiTransCode()
public java.util.ArrayList<java.lang.String> getRulesTriggered()
public java.lang.String getRiskLevel()
public java.util.HashMap<java.lang.String,java.lang.Object> getResponsePayload()