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