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