All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.anet-java-sdk.2.0.2.source-code.ControllerTemplatet Maven / Gradle / Ivy

package net.authorize.api.controller;

import net.authorize.api.contract.v1.APICONTROLLERNAMERequest;
import net.authorize.api.contract.v1.APICONTROLLERNAMEResponse;
import net.authorize.api.contract.v1.ValidationModeEnum;
import net.authorize.api.controller.base.ApiOperationBase;

public class APICONTROLLERNAMEController extends ApiOperationBase {

	public APICONTROLLERNAMEController(APICONTROLLERNAMERequest apiRequest) {
		super(apiRequest);
	}
	
	@Override
	protected void validateRequest() {
		APICONTROLLERNAMERequest request = this.getApiRequest();
		
		//validate required fields		
		if ( null == request.getXXX) throw new NullPointerException("XXX cannot be null");
		
		//validate not-required fields		
		//creditCardOne.setCardCode("");
	}

	@Override
	protected Class getResponseType() {
		return APICONTROLLERNAMEResponse.class;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy