net.authorize.api.controller.CreateCustomerProfileController Maven / Gradle / Ivy
package net.authorize.api.controller;
import net.authorize.api.contract.v1.CreateCustomerProfileRequest;
import net.authorize.api.contract.v1.CreateCustomerProfileResponse;
import net.authorize.api.contract.v1.ValidationModeEnum;
import net.authorize.api.controller.base.ApiOperationBase;
public class CreateCustomerProfileController extends ApiOperationBase {
public CreateCustomerProfileController(CreateCustomerProfileRequest apiRequest) {
super(apiRequest);
}
@Override
protected void validateRequest() {
CreateCustomerProfileRequest request = this.getApiRequest();
//validate required fields
if ( null == request.getProfile()) throw new NullPointerException("Profile cannot be null");
}
@Override
protected Class getResponseType() {
return CreateCustomerProfileResponse.class;
}
}