net.authorize.api.controller.DeleteCustomerProfileController Maven / Gradle / Ivy
package net.authorize.api.controller;
import net.authorize.api.contract.v1.DeleteCustomerProfileRequest;
import net.authorize.api.contract.v1.DeleteCustomerProfileResponse;
import net.authorize.api.controller.base.ApiOperationBase;
/**
* @author ramittal
*
*/
public class DeleteCustomerProfileController extends ApiOperationBase {
public DeleteCustomerProfileController(DeleteCustomerProfileRequest apiRequest) {
super(apiRequest);
}
@Override
protected void validateRequest() {
DeleteCustomerProfileRequest request = this.getApiRequest();
//validate required fields
if ( null == request.getCustomerProfileId()) throw new NullPointerException("CustomerProfileId cannot be null");
//if ( null == request.getRefId()) throw new NullPointerException("RefId cannot be null");
//validate not-required fields
}
@Override
protected Class getResponseType() {
return DeleteCustomerProfileResponse.class;
}
}