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

net.authorize.api.controller.CreateCustomerProfileFromTransactionController Maven / Gradle / Ivy

package net.authorize.api.controller;

import net.authorize.api.contract.v1.CreateCustomerProfileFromTransactionRequest;
import net.authorize.api.contract.v1.CreateCustomerProfileResponse;
import net.authorize.api.controller.base.ApiOperationBase;

public class CreateCustomerProfileFromTransactionController 
         extends ApiOperationBase {

	public CreateCustomerProfileFromTransactionController(
			CreateCustomerProfileFromTransactionRequest apiRequest) {
		super(apiRequest);
	}

	
	@Override
	protected void validateRequest() {
		CreateCustomerProfileFromTransactionRequest request = this.getApiRequest();
		
		//validate required fields		
		if ( null == request.getTransId()) throw new NullPointerException("TransId cannot be null");
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy