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

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

package net.authorize.api.controller;

import net.authorize.api.contract.v1.GetTransactionListRequest;
import net.authorize.api.contract.v1.GetTransactionListResponse;
import net.authorize.api.contract.v1.ValidationModeEnum;
import net.authorize.api.controller.base.ApiOperationBase;

public class GetTransactionListController extends ApiOperationBase {

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy