public class RedactClient extends AbstractClient
NexmoClient.getRedactClient().httpWrapper| Constructor and Description |
|---|
RedactClient(HttpWrapper httpWrapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
redactTransaction(RedactRequest redactRequest)
Submit a request to the Redact API to redact a transaction.
|
void |
redactTransaction(java.lang.String id,
RedactRequest.Product product)
Submit a request to the Redact API to redact a transaction.
|
void |
redactTransaction(java.lang.String id,
RedactRequest.Product product,
RedactRequest.Type type)
Submit a request to the Redact API to redact a transaction.
|
public RedactClient(HttpWrapper httpWrapper)
public void redactTransaction(java.lang.String id, RedactRequest.Product product) throws NexmoResponseParseException, NexmoClientException
id - The transaction id to redact.product - The RedactRequest.Product which corresponds to the transaction.NexmoClientException - if there was a problem with the Nexmo request or response objects.NexmoResponseParseException - if the response from the API could not be parsed.public void redactTransaction(java.lang.String id, RedactRequest.Product product, RedactRequest.Type type) throws NexmoResponseParseException, NexmoClientException
id - The transaction id to redact.product - The RedactRequest.Product which corresponds to the transaction.type - The RedactRequest.Type which is required if redacting SMS data.NexmoClientException - if there was a problem with the Nexmo request or response objects.NexmoResponseParseException - if the response from the API could not be parsed.public void redactTransaction(RedactRequest redactRequest) throws NexmoResponseParseException, NexmoClientException
redactRequest - a RedactRequest object which contains the request parameters.NexmoClientException - if there was a problem with the Nexmo request or response objects.NexmoResponseParseException - if the response from the API could not be parsed.