コード例 #1
0
        /**
         * AUTO_GENERATED
         */
        public GetAllowedFundingSourcesResponse GetAllowedFundingSources(GetAllowedFundingSourcesRequest getAllowedFundingSourcesRequest, string apiUserName)
        {
            string  response = Call("GetAllowedFundingSources", getAllowedFundingSourcesRequest.ToNVPString(""), apiUserName);
            NVPUtil util     = new NVPUtil();

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

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

            NVPUtil util = new NVPUtil();

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