/**
         * AUTO_GENERATED
         */
        public PreapprovalResponse Preapproval(PreapprovalRequest preapprovalRequest, string apiUserName)
        {
            string  response = Call("Preapproval", preapprovalRequest.ToNVPString(""), apiUserName);
            NVPUtil util     = new NVPUtil();

            return(PreapprovalResponse.CreateInstance(util.ParseNVPString(response), "", -1));
        }
        /// <summary>
        ///
        /// </summary>
        ///<param name="preapprovalRequest"></param>
        ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param>
        public PreapprovalResponse Preapproval(PreapprovalRequest preapprovalRequest, ICredential credential)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, preapprovalRequest.ToNVPString(string.Empty), ServiceName, "Preapproval", credential);

            ((PlatformAPICallPreHandler)apiCallPreHandler).SDKName    = SDKName;
            ((PlatformAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion;
            ((PlatformAPICallPreHandler)apiCallPreHandler).PortName   = "AdaptivePayments";

            NVPUtil util = new NVPUtil();

            return(PreapprovalResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1));
        }