예제 #1
0
        /**
         * To be updated.
         *    Countries Supported:
         *     US - United States
         *    Supported FinancialProduct: PayPal netSpend Master
         * Prepaid Card
         *
         *
         *
         *
         *
         */
        public AddPartnerFinancialProductResponse AddPartnerFinancialProduct(AddPartnerFinancialProductRequest addPartnerFinancialProductRequest, string apiUserName)
        {
            string  response = Call("AddPartnerFinancialProduct", addPartnerFinancialProductRequest.ToNVPString(""), apiUserName);
            NVPUtil util     = new NVPUtil();

            return(AddPartnerFinancialProductResponse.CreateInstance(util.ParseNVPString(response), "", -1));
        }
        /// <summary>
        /// To be updated.
        /// Countries Supported:
        /// US - United
        /// States
        /// Supported FinancialProduct: PayPal netSpend Master
        /// Prepaid Card
        ///
        ///
        ///
        ///
        ///
        /// </summary>
        ///<param name="addPartnerFinancialProductRequest"></param>
        ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param>
        public AddPartnerFinancialProductResponse AddPartnerFinancialProduct(AddPartnerFinancialProductRequest addPartnerFinancialProductRequest, string apiUserName)
        {
            IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, addPartnerFinancialProductRequest.ToNVPString(string.Empty), ServiceName, "AddPartnerFinancialProduct", apiUserName, getAccessToken(), getAccessTokenSecret());

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

            NVPUtil util = new NVPUtil();

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