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