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

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

package net.authorize.api.controller;

import net.authorize.api.contract.v1.ARBUpdateSubscriptionRequest;
import net.authorize.api.contract.v1.ARBUpdateSubscriptionResponse;
import net.authorize.api.contract.v1.ValidationModeEnum;
import net.authorize.api.controller.base.ApiOperationBase;

public class ARBUpdateSubscriptionController extends ApiOperationBase {

	public ARBUpdateSubscriptionController(ARBUpdateSubscriptionRequest apiRequest) {
		super(apiRequest);
	}
	
	@Override
	protected void validateRequest() {
		ARBUpdateSubscriptionRequest request = this.getApiRequest();
		
		//validate required fields		
		if ( null == request.getSubscriptionId()) throw new NullPointerException("SubscriptionId cannot be null");
		if ( null == request.getSubscription()) throw new NullPointerException("Subscription cannot be null");
		
		//validate not-required fields		
		//creditCardOne.setCardCode("");
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy