net.authorize.api.controller.CreateFingerPrintController Maven / Gradle / Ivy
package net.authorize.api.controller;
import net.authorize.api.contract.v1.CreateFingerPrintRequest;
import net.authorize.api.contract.v1.CreateFingerPrintResponse;
import net.authorize.api.contract.v1.ValidationModeEnum;
import net.authorize.api.controller.base.ApiOperationBase;
public class CreateFingerPrintController extends ApiOperationBase {
public CreateFingerPrintController(CreateFingerPrintRequest apiRequest) {
super(apiRequest);
}
@Override
protected void validateRequest() {
CreateFingerPrintRequest request = this.getApiRequest();
//validate required fields
if ( null == request.getSupportInformation()) throw new NullPointerException("SupportInformation cannot be null");
//validate not-required fields
//creditCardOne.setCardCode("");
}
@Override
protected Class getResponseType() {
return CreateFingerPrintResponse.class;
}
}